xsl-list
[Top] [All Lists]

Re: [xsl] Unicode character decimal representation problem when copying the XML

2010-10-13 16:49:22
Thanks Jesper. The identity template looks great. What version of
saxon do I need to use with this stylesheet? I am getting following
error with saxonhe9-2-1-2j:

Error at xsl:apply-templates on line 443 column 124 of identity-template.xsl:
  XPST0017: XPath syntax error at char 72 on line 443 in {...se-topelements, $to
p-elemen...}:
    Cannot find a matching 1-argument function named {http://saxon.sf.net/}parse
()
Error at xsl:value-of on line 466 column 479 of identity-template.xsl:
  XPST0017: XPath syntax error at char 100 on line 466 in {...serialize($parsed,
 ''), con...}:
    Cannot find a matching 2-argument function named {http://saxon.sf.net/}seria
lize()


Thanks,
Pradnya



On Wed, Oct 13, 2010 at 5:25 PM, Jesper Tverskov 
<jesper(_at_)tverskov(_dot_)dk> wrote:
The only solution is to load the input as text, replace the entities,
then do your identity transform, and then replace back.

That is the technique I use in my experiment:  “Identity
transformation for XSLT 2.0”,
http://www.xmlplease.com/identity-template

Cheers,
Jesper Tverskov

http://www.xmlplease.com
http://www.xmlkurser.dk
http://www.xmltraining.net

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