Subject: Re: [xsl] CDATA with different encoding From: Andrew Welch <andrew.j.welch@xxxxxxxxx> Date: Wed, 26 Aug 2009 09:17:05 +0100 |
2009/8/26 Bartolomeo Nicolotti <bnicolotti@xxxxxxxxx>: > Hi, > > I've searched the archives with CDATA and Encoding but nothing resulted > so here's my post, maybe trivial, really sorry... > > We're receiving xml from a supplier encoded in ISO-8859-1 as specified > also by the direvtive: > > <?xml version="1.0" encoding="ISO-8859-1" ?> > > but the tags body are encoded in UTF-8. > > This would cause the parser to fail: > > http://www.w3schools.com/xmL/xml_encoding.asp > > So the supplier has surrounded the tag bodies with CDATA. > > <tag>[CDATA[ ...utf-8 ... ]]</tag> :) This question doesn't directly involve XSLT so you would be better off asking it on xml-dev. (The short answer is to get your supplier to supply XML that isn't rejected by an XML parser.) -- Andrew Welch http://andrewjwelch.com Kernow: http://kernowforsaxon.sf.net/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] CDATA with different encoding, Bartolomeo Nicolotti | Thread | Re: [xsl] CDATA with different enco, David Carlisle |
[xsl] CDATA with different encoding, Bartolomeo Nicolotti | Date | Re: [xsl] CDATA with different enco, David Carlisle |
Month |