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

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

Subject: Unparse-text() string contains ascii chars 29, 30 and 31
From: andrew welch <andrew.j.welch@xxxxxxxxx>
Date: Wed, 19 Oct 2005 16:50:27 +0100
string contain
I'm trying to process some data that's one long string delimited using
ascii characters 29, 30 and 31 (which are apparently group, record and
unit 'separator characters').

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

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

or

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

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

Is there any way around this?  I can't see how I can process the
string in XSLT without using the characters themselves.

The two alternative's I can see are to use an XMLFilter to turn it
into XML using Java, or to go back to the source to get them to export
their data in a less archaic way...

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.