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

XSLT throws some unicode errors!!

Subject: XSLT throws some unicode errors!!
From: G Unnikrishnan <G.Unnikrishnan@xxxxxxx>
Date: Wed, 25 Jul 2001 16:42:54 +0000 (Asia/Calcutta)
g unnikrishnan
Hi,

I'm getting the following error while compiling the my xslt files.

"XSLT Error (javax.xml.transform.TransformerConfigurationException): An invalid 
XML character (Unicode: 0xa8) was found in the element content of the document."


I'm using the syntax, "java org.apache.xalan.xslt.Process -in index.xml -xsl 
standard.xslt" to compile my xslt file.


I ASSUMED that the problem could be the presence of a "?" in the html output 
which is 
present in my "standard.xslt" file.. 


<A target="_top"
      href="http://oraclestore.oracle.com/cec/cstage?eccookie=&amp;ecaction=
ecpassthru2&amp;template=walkin1.en.htm">

Please note the ? in the url.

I have tried various options to replace this question mark, but none seemed 
to be working. 

The last option which I tried is, put the following entity definition in the 
standard.xslt file.:

<!DOCTYPE xsl:stylesheet[
<!ENTITY qstn "&#63;">
]>


(&#63; = unicode equivalent of "?")

and put the "encoding="utf-8" reference within the following stylesheet 
definition:-

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output
          method="html"
          indent="yes"
          encoding="utf-8"

and refer the url as follows, replacing "?" with &qstn;

<A target="_top"
      href="{$ORHREF}/products/index.html&qstn;content.html">

Still, I'm getting the following error message:

"XSLT Error (javax.xml.transform.TransformerConfigurationException): An invalid 
XML character (Unicode: 0xa8) was found in the element content of the document."


My DTD reference in the XSLT file is as follows....

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output
          method="html"
          indent="yes"
          encoding="utf-8"
  doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN"
  doctype-system="http://www.w3.org/TR/REC-html40/loose.dtd"

/>


 Any idea to solve this problem?. or is there any other bug  which is 
giving this error? I have been really stuck up with this error(-:.....


regards
Unni


 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.