R
ReignMan
I'm running JDK 1.4.0_01, Xalan2.5.1 and Tomcat 4.1.27. XSL
transformations work, yet when running in debug mode (Eclipse IDE), I
get the following:
[Error] 990S2html.xsl:3:80: Element type "xsl:stylesheet" must be
declared.
[Error] 990S2html.xsl:11:3: Element type "xslutput" must be
declared.
[Error] 990S2html.xsl:12:25: Element type "xsl:template" must be
declared.
[Error] 990S2html.xsl:14:7: Element type "html" must be declared.
[Error] 990S2html.xsl:14:13: Element type "head" must be declared.
[Error] 990S2html.xsl:14:63: Element type "script" must be declared.
<snip />
The beginning of my stylesheet is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [<!ENTITY quot """><!ENTITY nbsp
" "><!ENTITY iexcl "¡"><!ENTITY cent "¢"><!ENTITY pound
"£"><!ENTITY curren "¤"><!ENTITY yen "¥"><!ENTITY
brvbar "¦"><!ENTITY sect "§"><!ENTITY uml "¨"><!ENTITY
copy "©"><!ENTITY ordf "ª"><!ENTITY laquo "«"><!ENTITY
not "¬"><!ENTITY shy ""><!ENTITY reg "®"><!ENTITY macr
"¯"><!ENTITY deg "°"><!ENTITY plusmn "±"><!ENTITY sup2
"²"><!ENTITY sup3 "³"><!ENTITY frac14 "¼"><!ENTITY
frac12 "½"><!ENTITY frac34 "¾">]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xslutput
method="html"
encoding="ISO-8859-1"
media-type="text/html"
cdata-section-elements="script style"
doctype-system="http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
/>
<xsl:template match="/">
<html>
<snip />
This doesn't happen in XMLSpy or when using the MSXML libs, and the
transformations work fine. I've read that this might be classpath /
classloader related, and I've moved current Xalan & Xerces libs in and
out of the endorsed directories in both the JRE and Tomcat libraries
folders with no effect. Any suggestions?
Thanks.
transformations work, yet when running in debug mode (Eclipse IDE), I
get the following:
[Error] 990S2html.xsl:3:80: Element type "xsl:stylesheet" must be
declared.
[Error] 990S2html.xsl:11:3: Element type "xslutput" must be
declared.
[Error] 990S2html.xsl:12:25: Element type "xsl:template" must be
declared.
[Error] 990S2html.xsl:14:7: Element type "html" must be declared.
[Error] 990S2html.xsl:14:13: Element type "head" must be declared.
[Error] 990S2html.xsl:14:63: Element type "script" must be declared.
<snip />
The beginning of my stylesheet is:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [<!ENTITY quot """><!ENTITY nbsp
" "><!ENTITY iexcl "¡"><!ENTITY cent "¢"><!ENTITY pound
"£"><!ENTITY curren "¤"><!ENTITY yen "¥"><!ENTITY
brvbar "¦"><!ENTITY sect "§"><!ENTITY uml "¨"><!ENTITY
copy "©"><!ENTITY ordf "ª"><!ENTITY laquo "«"><!ENTITY
not "¬"><!ENTITY shy ""><!ENTITY reg "®"><!ENTITY macr
"¯"><!ENTITY deg "°"><!ENTITY plusmn "±"><!ENTITY sup2
"²"><!ENTITY sup3 "³"><!ENTITY frac14 "¼"><!ENTITY
frac12 "½"><!ENTITY frac34 "¾">]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xslutput
method="html"
encoding="ISO-8859-1"
media-type="text/html"
cdata-section-elements="script style"
doctype-system="http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
/>
<xsl:template match="/">
<html>
<snip />
This doesn't happen in XMLSpy or when using the MSXML libs, and the
transformations work fine. I've read that this might be classpath /
classloader related, and I've moved current Xalan & Xerces libs in and
out of the endorsed directories in both the JRE and Tomcat libraries
folders with no effect. Any suggestions?
Thanks.