|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: attribute value templates & javascript entities, etc
> >> If I understand the question correctly, the answer is:
>
> >> <BODY BACKGROUND="&{{backgroundUrl}}" ...>>
> I have tried that, but I get the following HTML:
>
> <BODY background="&{background};" ...>
>
>
Yes, sorry, you're right.
The syntax you're trying to generate isn't well-formed XML and therefore XSL
doesn't want to generate it.
There are various work-arounds in SAXON for generating non-well-formed XML
(or should I say, non-XML) - for example it can handle "<%" and "%>" - but
nothing that specifically handles this, other than making the whole output
file "text" in which case you won't get any character escaping at all.
I think the only remedy is to generate something in place of the ampersand,
e.g. ##AMPERSAND##, and then post-process the output file..
I'll think about it for a future version.
Mike
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








