sax / special charcter problem (?)

Subject: sax / special charcter problem (?)
From: gauti@xxxxxxxxxxxx
Date: Mon, 11 Sep 2000 04:35:48 -0400 (EDT)
Hi!

Problem 1:

xml:
...
<!ENTITY middot "&#183;">
...
<paragraph>gauti&middot;gauti</paragraph>
...

xsl:
...
<html>
  <body>
    <p><xsl:value-of select="paragraph"/></p>
  </body>
</html>

error:
Works fine when run through xalan and xerces on the command line but when I run this through a servlet using sax the output is 'gauti&#57182;&#56437;ti'. Any ideas?

Problem 2:
xml:
...
<paragraph>ö</paragraph> <!-- swedish character, hope this shows ok on your computer :-) -->
...

same xsl.

error:
Ok on command line but the following sax error when I run it trough the servlet:
> org.xml.sax.SAXException occurred:
> An invalid XML character (Unicode: 0x1bcbf0) was found in the element content of the document.
                                      

Anyone?

cheers,

Gauti


----------------------------------------------------------------
Get your free email from AltaVista at http://altavista.iname.com


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


Current Thread