View Single Post
  #2 (permalink)  
Old November 22nd, 2007, 04:53 AM
mhkay's Avatar
mhkay mhkay is offline
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

XSLT is a language that processes XML at the logical level, not at the lexical level. At the logical level, "'", "'", "#x27;", and "#x0027;" are completely equivalent representations of the same character, and XSLT can't distinguish between them either on input or on output.

If you need to manipulate XML at the lexical level (and I can't see why you should need to) then you need a lower-level tool.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference