[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Recognising Unicode in a CSV to XML transform


Subject: Re: [xsl] Recognising Unicode in a CSV to XML transform
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 26 May 2008 11:38:04 +0100

2008/5/26 Marney Cotterill <marney@xxxxxxxxxxxxxxxxxxxx>:
> My problem is when I feed the transform a CSV with any characters that sit
> outside the Basic Latin set, I get the "Cannot locate :" messege found in
> the <xsl:otherwise> statement.
>
> Is it possible to somehow integrate the following into the regex of the
> initial analyze string so these characters do not break the transform?

Hi,

The unparsed-text() and unparsed-text-available() functions take a
second argument for the encoding:

http://www.w3.org/TR/xslt20/#function-unparsed-text


cheers
-- 
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/


Current Thread