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

RE: disable out escaping for the CDATA section

Subject: RE: disable out escaping for the CDATA section
From: Vasu Chakkera <vasucv@xxxxxxxxxxx>
Date: Fri, 14 Nov 2008 17:39:47 +0000
RE:  disable out escaping for the CDATA section
> Why the result from CDATA section shows as < instead of < and & instead of &
even though i have used d-o-e yes ?
>
One glaring problem i can see straight away is the fact that you havent told
the stylesheet what your output is going to be..
using d-o-e is a cheat! and it is almost in most cases not required.

Try using





HTH
Vasu Chakkera
Numerical Algorithms Group.
Oxford.
www.vasucv.com




> Date: Fri, 14 Nov 2008 13:14:53 +0530
> From: p_arulraj@xxxxxxxxx
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  disable out escaping for the CDATA section
>
> Hi All,
>
> I need some clarification to use disable-output-escaping attribute in XSL.
>
> Here is my sample XML
>
>
>
> ID66<
>
>
>
> And my XSL has the following code
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> While generating the output to XML or HTML and then see the view source.. it
has the following output
>
> ID66<
>
> if (a < b && a < 0) then {
>
> return 1;
>
> else
>
> return 0;
>
> Why the result from CDATA section shows as < instead of < and & instead of &
even though i have used d-o-e yes ?
>
> Refered http://www.dpawson.co.uk/xsl/sect2/N2215.html#d3989e280
> Conversely <![CDATA only quotes < and & in the input: it has no effect
> on the output,  <  will be output as < unless d-o-e is
> used.
>
> Regards,
> Arul
>
>
>
> Be the first one to try the new Messenger 9 Beta! Go to
http://in.messenger.yahoo.com/win/
>






Give the world a slice of your life. Get a Live.in id Check it out!
_________________________________________________________________
Search for videos of Bollywood, Hollywood, Mollywood and every other wood,
only on Live.com
http://www.live.com/?scope=video&form=MICOAL

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.