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

RE: <![CDATA[ Confusions : use "disable-output-escapin

Subject: RE: <![CDATA[ Confusions : use "disable-output-escaping"
From: "Aitor San Juan" <asanjuan@xxxxxxxxxxxxxx>
Date: Fri, 29 Jul 2005 10:27:18 +0200
cdata disable output
Yes, I think what you want is to output the text as it is inside the CDATA
section with no conversion an dno escaping. You're right, you should use the
attribute disable-output-escaping with "yes", not "true".

Hope this helps.

-----Mensaje original-----
De: Arian Hojat [mailto:arianhojat2000@xxxxxxxxx]
Enviado el: viernes, 29 de julio de 2005 10:10
Para: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Asunto: Re:  <![CDATA[ Confusions


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



************ LEGEZKO OHARRA / AVISO LEGAL / LEGAL ADVICE *************
Mezu honek isilpeko informazioa gorde dezake, edo jabea duena, edota legez
babestuta dagoena. Zuri zuzendua ez bada, bidali duenari esan eta ezabatu,
inori berbidali edo gorde gabe, legeak debekatzen duelako mezuak erabiltzea
baimenik gabe.
--------------------------------------------------------------------------
Este mensaje puede contener informacisn confidencial, en propiedad o
legalmente protegida. Si usted no es el destinatario, le rogamos lo comunique
al remitente y proceda a borrarlo, sin reenviarlo ni conservarlo, ya que su
uso no autorizado esta prohibido legalmente.
--------------------------------------------------------------------------
This message may contain confidential, proprietary or legally privileged
information. If you are not the intended recipient of this message, please
notify it to the sender and delete without resending or backing it, as it is
legally prohibited.
**************************************************************************

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.