[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Unparse-text() string contains ascii chars 29, 30

Subject: Re: Unparse-text() string contains ascii chars 29, 30 and 31
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 19 Oct 2005 17:13:24 +0100
Re:  Unparse-text() string contains ascii chars 29
>>>>> "andrew" == andrew welch <andrew.j.welch@xxxxxxxxx> writes:

    andrew> I'm trying to process some data that's one long string
    andrew> delimited using ascii characters 29, 30 and 31 (which are
    andrew> apparently group, record and unit 'separator characters').

    andrew> I can get access to the string using unparsed-text(), but
    andrew> when I attempt to process the string using any of the
    andrew> function eg:

    andrew> tokenize($str, '&#29;')

    andrew> or

    andrew> substring-before($str, '&#31;')

    andrew> ...the XML parser complains that these aren't legal XML
    andrew> characters (when the stylesheet itself is parsed).

Well, they aren't in XML 1.0 but they are in 1.1.
So if you edit the XML declaration, to specify 1.1, and if your parser
supports XML 1.1, your home and dry.
-- 
Colin Adams
Preston Lancashire

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.