[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: attribute value templates & javascript entities, etc

Subject: RE: attribute value templates & javascript entities, etc
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Tue, 29 Jun 1999 17:37:54 +0100
javascript entities
> >> If I understand the question correctly, the answer is:
> 
> >> <BODY BACKGROUND="&amp;{{backgroundUrl}}" ...>>
 
> I have tried that, but I get the following HTML:
> 
> <BODY background="&amp;{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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.