[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Safe-guarding codepoints-to-string() from wrong in
On 12/20/06, Abel Braaksma <abel.online@xxxxxxxxx> wrote:
I know that control characters are not allowed and throw an "Invalid XML character" error.
If the string contains control characters as character references, then its a bit harder because the references get expanded using unicode codepoints, and not those specified in the Windows-1252 mappings... So you need to parse/serialize the string to expand the references (I personally use JTidy with the CharEncoding set to Configuration.RAW which forces the Tidy to output the bytes instead of a reference) Its a pain.... cheers andrew
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|