[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Entity Issues in Saxon Not in Xalan


Subject: RE: [xsl] Entity Issues in Saxon Not in Xalan
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 13 Nov 2008 10:24:42 -0000

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 &apos; 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 &apos; 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.ramkumar@xxxxxxxxxxxxxxxxxxxxxx] 
> Sent: 13 November 2008 10:12
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> 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 &apos; - 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 &#39;.
> 
> 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


Current Thread
Keywords