Anthony Gaudio wrote:
> I don't want Sablotron to convert the HTML entities into the actual
> character they represent.  I want the browser to deal with that.
> 
> when used with an XML document the result I would get is:
> <HTML>\</HTML>
> 
> I would like the result to be:
> <HTML>&#92</HTML>

Sorry, this is is impossible the way you try it. According to the spec
any XML parser (and every XSL-T-parser *is* an XML parser!) has to
convert entities *before* doing anything else. So the entity is
converted even before the XSL-T is working! You can get around that by
writing &amp;#92;, but even this might not work, depending on how the
XSL-T processor works. Maybe some nested &amp;amp;amp;...#92; will help,
maybe not. If you want to ensure getting &#92; you have to create it by
XSL-T.

Best regards,
Martin Stricker

Reply via email to