By Date: <-- -->
By Thread: <-- -->

XML and the BL Compiler



Brian Bain wrote:
> 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

I don't know about appropriate, but I usually just feed the select boxes 
arrays. Is that not possible here?

Marc
_______________________________________________
Xaraya_devel mailing list
Xaraya_devel (at) xaraya.com
http://xaraya.com/mailman/listinfo/xaraya_devel