xsl-list
[Top] [All Lists]

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

2005-07-29 01:27:18
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(_at_)yahoo(_dot_)com]
Enviado el: viernes, 29 de julio de 2005 10:10
Para: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Asunto: Re: [xsl] <![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(_at_)nag(_dot_)co(_dot_)uk> 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

________________________________________________________________________


--~------------------------------------------------------------------
XSL-List info and archive: 
http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to:
http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--




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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)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 información 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 está 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.
**************************************************************************

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>
  • RE: <![CDATA[ Confusions : use "disable-output-escaping", Aitor San Juan <=