Subject: RE: How to avoid XML Parsing while XSLT Transform
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 16 Jul 2009 12:49:20 +0100
|
You might like to look at Andrew Welch's LexEv processor. This converts
entity references into nodes that are retained in the data model. However, I
don't think it can handle numeric character references - these are typically
converted to characters by the XML parser and there is no way to switch this
off.
Regards,
Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay
> -----Original Message-----
> From: Ramkumar [mailto:ramkumar@xxxxxxxxxxxxxxxxxx]
> Sent: 16 July 2009 12:39
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: How to avoid XML Parsing while XSLT Transform
>
> Hi List,
>
> While xslt (xml to xml) transformation, particular hexa
> decimal entity, for example, Apostrophe is changes into
> character (not character entity). I need this entity as any
> form of entity means decimal, character and hexa decimal entity.
>
> Input (Content):
> He lived in a room above a baker's shop.
>
> XSLT (saxon9 xslt v2.0):
> <xsl:output method="xml" indent="no" encoding="iso-8859-1"/>
>
> Transformed Output (Content):
> He lived in a room above a baker's shop.
>
> Expected Output (Content):
> He lived in a room above a baker’s shop.
> Or
> He lived in a room above a baker's shop.
>
> Provide provide solution for the above issue.
>
> Regards,
> Ramkumar,
|