xsl-list
[Top] [All Lists]

Re: [xsl] Supressing entity expansion during XSLT transform

2008-01-12 02:21:05
Thanks Mike for useful hints ...

On Jan 12, 2008 2:12 PM, Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:
Since entity expansion is done by the XML parser before the XSLT processor
gets any sight of the data, the only possible way you could stop it
happening would be at the XML parser level.

In practice the pragmatic solution is to preprocess entity references (at
the level of a text file, e.g. using Perl) to change &abc; to something like
#abc; where # is some sufficiently-rare character, and hten to postprocess
the transformation result to change it back.

Michael Kay
http://www.saxonica.com/


-- 
Regards,
Mukul Gandhi

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