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

Re: disable-output-escaping

Subject: Re: disable-output-escaping
From: "Charles Ohana" <cohana@xxxxxxxxxxxxxxx>
Date: Fri, 26 Mar 2004 14:14:13 -0500
disable output escaping
Hi David,
Thank you for your help. But I still need to avoid having "&amp;" 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 = "&amp;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 &amp; as output.
>   So I use <xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text> .
>   I don't know if it's the right thing to do.
>
>
> Just use &#160; no need for d-o-e at all.
>
>
>   I'm trying to avoid to have &amp; as output in my URI(s) (ie:
>   http://server/tmp.jsp?a=1&amp;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
> ________________________________________________________________________

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.