The XSLT 2.0 serialization spec is much more prescriptive than XSLT 1.0
about how individual characters are serialized, and it specifies that
characters should not be output as character entities except where the specs
(in this case the HTML spec) requires it. But in any case, Saxon has never
used ' in the serialized output as it is never required, and XSLT has
never given you this level of control over the output serialization. It
seems you have made your application reliant on an accidental feature of one
processor.
Why do you require ' to be used? It suggests to me that the output is
being processed by an application that can only handle a limited subset of
HTML. Is that wise?
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: V.Ramkumar [mailto:v(_dot_)ramkumar(_at_)macmillansolutions(_dot_)com]
Sent: 13 November 2008 10:12
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Entity Issues in Saxon Not in Xalan
Hi,
I'm writing xslt for xml to html transform using xalan. In
this acii characters are converting to named entity for ex:
from ' to ' - This is my actual requirement.
But now I changed xslt processer to Saxon. In this, ascii
characters are converting into decimal character. Ex: from ' to '.
XSL,
<xsl:output method="html" indent="yes" encoding="us-ascii"/>
I need named entity. Without using, xsl:character-map how to
achive this task.
Regards,
Ramkumar
--~------------------------------------------------------------------
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>
--~--
--~------------------------------------------------------------------
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>
--~--