xsl-list
[Top] [All Lists]

RE: [xsl] How to avoid XML Parsing while XSLT Transform

2009-07-16 07:58:35
Hi Michael,

Any other way to achieve my requirement using xslt2.0 with Saxon?

Regards,
Ramkumar,
PreMedia Global Ltd


-----Original Message-----
From: Michael Kay [mailto:mike(_at_)saxonica(_dot_)com] 
Sent: Thursday, July 16, 2009 5:19 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] How to avoid XML Parsing while XSLT Transform

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(_at_)premediaglobal(_dot_)com] 
Sent: 16 July 2009 12:39
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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&#8217;s shop.
Or
He lived in a room above a baker&apos;s shop.

Provide provide solution for the above issue.

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>
--~--




--~------------------------------------------------------------------
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>
--~--