XML and the BL Compiler
- From: "Jason" <judgej (at) xaraya.com>
- Date: Tue, 14 Nov 2006 09:29:36 -0000
Could you get away with this:
<element name="#$element#">
<item id="#$id#" name="#$name#" />
</element>
?
"Brian Bain" <xaraya (at) tefen.net> wrote in message
news:mailman.73.1163442160.23480.xaraya_devel (at) xaraya.com...
> Hi,
> I'm probably pushing the bounds of what I should be attempting here, but
> I've run into this issue. I want to return XML for an element on screen
> by enclosing the XML in a tag with that element's name. I'm pulling the
> element's name in my php function and passing it to the template as a
> variable. The problem is that the BL compiler doesn't like this whole
> concept. I've got a work around in mind, but I was wondering if any
> thought has been given to this type of issue, or if there's a proper way
> for handling something like this.
>
> My template looks something like this:
>
> <#$element#>
> <item id="#$id#" name="#$name#" />
> </#$element#>
>
> Essentially the $element is the ID of one of any number of on screen
> select boxes and the item is an option to be added to the select box. The
> whole thing works if I replace #$element# with a hardcoded text string.
>
> Is there a more appropriate way to handle this? Has there been any
> thought with respect to this type of issue going forward?
> Brian
_______________________________________________
Xaraya_devel mailing list
Xaraya_devel (at) xaraya.com
http://xaraya.com/mailman/listinfo/xaraya_devel