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

Re: encoding problem

Subject: Re: encoding problem
From: "Frank Chen" <frank63@xxxxxxxxxxxxx>
Date: Thu, 31 May 2001 16:53:19 +0800
Re:  encoding problem
It looks like you should have a text declaration in the entity:

<?xml version="1.0" encoding="iso-8859-1"?>
      <entry time='991146682'>
        <name>Joe User</name>
        <email>juser@xxxxxxxxxx</email>
        ...
      </entry>

      <entry time='...'>
        ...
      </entry>


>
> Hi!
>
> I have a problem concerning the encoding of the involved documents. The
> story is this:
>
>  - I have a simple web form, and the results are collected in a simple
>    XML file "result.xml":
>
>      <entry time='991146682'>
>        <name>Joe User</name>
>        <email>juser@xxxxxxxxxx</email>
>        ...
>      </entry>
>
>      <entry time='...'>
>        ...
>      </entry>
>
>    and so on.
>
>  - To process this file with XSLT, I wrap it into a dedicated top element:
>
>      <?xml version="1.0" encoding="ISO-8859-1"?>
>      <!DOCTYPE results [
>        <!ENTITY formresult SYSTEM "result.xml">
>      ]>
>
>      <results>
>        &formresult;
>      </results>
>
>    and use a style sheet that iterates over all "entry" children of the
>    "results" node.
>
> The result file contains Latin 1 characters, at least I'm pretty sure it
> is Latin 1 and not something else. When I process the file, I get errors
>
>    results.xsl:15: error: Input is not proper UTF-8, indicate encoding !
>       <projects>Einf|hrung in die Bioinformatik
>                     ^
>    results.xsl:15: error: Bytes: 0xFC 0x68 0x72 0x75
>       <projects>Einf|hrung in die Bioinformatik
>                     ^
>
> with xsltproc (from libxslt) and just
>
>    XSLT Error (java.lang.InternalError): null
>
> with Xalan. When I replace the entity in the wrapper file with the actual
> content of the file, both processors accept the file and process the style
> sheet.
>
> Any explanation what is going wrong and any help on how to solve this
> problem are appreciated.
>
> --
>  Joern Clausen
joern@xxxxxxxxxxxxxxxxxxxxxxxx
>  Faculty of Technology
http://www.TechFak.Uni-Bielefeld.DE/~joern/
>  Bielefeld University, Germany                           +49
(0)521/106-2905
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.