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

Re: <![CDATA[ Confusions

Subject: Re: <![CDATA[ Confusions
From: Arian Hojat <arianhojat2000@xxxxxxxxx>
Date: Fri, 29 Jul 2005 01:09:41 -0700 (PDT)
html equivalent of cdata
hmmmm actually i might be interested in this thread...
maybe solving my problem will help out original poster
too..

I have a CDATA section with possibly non-compliant
html content coming in from my source document(RSS
feed).
Therefore I set my xsl:output method attribute to html
for my stylesheet.
but when i do a value-of for the node the CDATA is in,
I get escaped entity references so <TD> comes our as
&lt;TD&gt; which of course i dont want in my html
document.
I understand that CDATA get intrepreted like that so
you dont have to escape '<' etc, i tried various
things... the thing which i thought would work is
using a 'disable-output-escaping'

<xsl:text disable-output-escaping="true"><xsl:value-of
select="."></xsl:text>

but didnt work.
using saxon 8.3

googling and looking at dpawson's page i think maybe
<xsl:value-of select="SummaryHTML"
disable-output-escaping="yes"/> is what i want but i
will test tomorrow, any confirmations will be helpful.

Thanks!
Arian





--- David Carlisle <davidc@xxxxxxxxx> wrote:

> 
> 
> > My "" keep getting converted into &quot; 
>  A serialiser is allowed to do that (as " and &quot;
> are equivalent)
>  however it's rather surprising that it should use
> entity references in
>  element content. which system are you using?
> However if you are
>  generating xhtml " and & quot; are equivalent so it
> shouldn't matter
>  (if you are giving the resulting file to a conforma
> xhtml system)
> 
> If you are generating html, then if the html output
> method is being
> used, the serialiser should never use any entity
> references in the
> content of a script element (in no namespace) so in
> this case, if you
> are getting quot; it's a processor bug.
> 
> Within the stylesheet youcan either use a cdata
> section or write the <
> as &lt; (these are equivalent input and the choice
> of input style has no
> effect on the result).
> 
> David
> 
>
________________________________________________________________________
> This e-mail has been scanned for all viruses by
> Star. 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
>
________________________________________________________________________
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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.