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
<TD> 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 "
A serialiser is allowed to do that (as " and "
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 < (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>
--~--