schen8081
asked on
Error when transforming XML using XSL
Hello,
I'm getting the following error when tranforming XML. I do have several import calls in the XSL file. Import allows you to call one XSL, while the XSL may call several all XSL. I verified that there's no special chars. Any ideas?
thank you,
Stephen
Exception thrown on line '13' from page 'D:\\schen\\src\\XSLT\\tra nsform.jsp '.
javax.xml.transform.Transf ormerConfi gurationEx ception: javax.xml.transform.Transf ormerConfi gurationEx ception: javax.xml.transform.Transf ormerExcep tion: org.xml.sax.SAXParseExcept ion: Character conversion error: "Unconvertible UTF-8 character beginning with 0xa0" (line number may be too low).
at org.apache.xalan.processor .Transform erFactoryI mpl.newTra nsformer(T ransformer FactoryImp l.java:684 )
I'm getting the following error when tranforming XML. I do have several import calls in the XSL file. Import allows you to call one XSL, while the XSL may call several all XSL. I verified that there's no special chars. Any ideas?
thank you,
Stephen
Exception thrown on line '13' from page 'D:\\schen\\src\\XSLT\\tra
javax.xml.transform.Transf
at org.apache.xalan.processor
Gonna paste the xml and the xsls?
ASKER
XSL looks like this.. each of the import files have more import statements in there
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="c:\\Test\\TrialB\\He ad-01-2001 0804.xsl"/ >
<xsl:import href="c:\\Test\\TrialB\\Bo dy-01-2001 0804.xsl"/ >
<xsl:template match="Page">
<HTML>
<xsl:call-template name="Head"/>
<xsl:call-template name="Body"/>
</HTML>
</xsl:template>
</xsl:stylesheet>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:import href="c:\\Test\\TrialB\\He
<xsl:import href="c:\\Test\\TrialB\\Bo
<xsl:template match="Page">
<HTML>
<xsl:call-template name="Head"/>
<xsl:call-template name="Body"/>
</HTML>
</xsl:template>
</xsl:stylesheet>
Are u sure that u import successfully the xsls? Cause my IBM XSL Editor is unable to do so...
What about:
<xsl:import href="file:///c:/Test/Tria lB/Head-01 -20010804. xsl"/>
<xsl:import href="file:///c:/Test/Tria lB/Body-01 -20010804. xsl"/>
What about:
<xsl:import href="file:///c:/Test/Tria
<xsl:import href="file:///c:/Test/Tria
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
- To be PAQ'ed and points NOT refunded
Please leave any comments here within the
next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !
vemul
Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
- To be PAQ'ed and points NOT refunded
Please leave any comments here within the
next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER !
vemul
Cleanup Volunteer
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.