Hi David, Thank you for your help. But I still need to avoid having "&" as output. I have the following code in my stylesheet and I need the exact output. <xsl:template> <script> var tmp = "&a"; </script> </xsl:template> currently it generates var tmp = "&a"; instead of var tmp = "&a"; Thank you ... ----- Original Message ----- From: "David Carlisle" <davidc@xxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Friday, March 26, 2004 12:05 PM Subject: Re: disable-output-escaping > > The usual advice with disable output escaping is not to use it. > Especially in this case. > > > I'm trying to avoid to have & as output. > So I use <xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text> . > I don't know if it's the right thing to do. > > > Just use   no need for d-o-e at all. > > > I'm trying to avoid to have & as output in my URI(s) (ie: > http://server/tmp.jsp?a=1&b=2) > > > Why? The URI just has an & but like all & in HTML or XML this must be > quoted of you put that URI in a document. if you succeed in getting XSLT > not to quote it (which is quite hard as XSLT tries hard to force you to > do the right thing) then you will just have managed to produce a > document that is invalid html or not well formed xhtml. > > David > > > -- > http://www.dcarlisle.demon.co.uk/matthew > > ________________________________________________________________________ > This e-mail has been scanned for all viruses by Star Internet. The > service is powered by MessageLabs. For more information on a proactive > anti-virus service working around the clock, around the globe, visit: > http://www.star.net.uk > ________________________________________________________________________
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