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

RE: Entity Issues in Saxon Not in Xalan

Subject: RE: Entity Issues in Saxon Not in Xalan
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 13 Nov 2008 10:24:42 -0000
RE:  Entity Issues in Saxon Not in Xalan
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

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 

> -----Original Message-----
> From: V.Ramkumar [mailto:v.ramkumar@xxxxxxxxxxxxxxxxxxxxxx] 
> Sent: 13 November 2008 10:12
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  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


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.
First Name
Last Name
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.