DOCTYPE in XSLT causes validation
Posted: Mon Oct 18, 2004 10:56 am
I have an XSLT which uses some entities defined in a separate file, which I "include" using the following DOCTYPE:
<!DOCTYPE xsl:stylesheet [
<!ENTITY % wbml_xslt SYSTEM "file:///d:\MYDOCU~1\Work\WBml\wbml_xslt.ent">
%wbml_xslt;
]>
Since I've uninstalled my evaluation copy of oXygen I cannot say for sure, but I seem to recall that oXygen produced an error message that I could only avoid by removing the DOCTYPE.
Now I have a problem when I run the same XSLT with Xalan. Every element that occurs in the XSLT receives an error message: "Element type ... must be declared." This was not the case before I installed oXygen. Evidently this occurs because Xerces, which Xalan is using to parse the XSLT, is validating.
My question: Was anything change during the installation of oXygen that would cause Xalan to tell Xerces to validate the XSLT, or cause Xerces to decide it had to?
Regards,
Richard
(richard.liu@ubs.com)
<!DOCTYPE xsl:stylesheet [
<!ENTITY % wbml_xslt SYSTEM "file:///d:\MYDOCU~1\Work\WBml\wbml_xslt.ent">
%wbml_xslt;
]>
Since I've uninstalled my evaluation copy of oXygen I cannot say for sure, but I seem to recall that oXygen produced an error message that I could only avoid by removing the DOCTYPE.
Now I have a problem when I run the same XSLT with Xalan. Every element that occurs in the XSLT receives an error message: "Element type ... must be declared." This was not the case before I installed oXygen. Evidently this occurs because Xerces, which Xalan is using to parse the XSLT, is validating.
My question: Was anything change during the installation of oXygen that would cause Xalan to tell Xerces to validate the XSLT, or cause Xerces to decide it had to?
Regards,
Richard
(richard.liu@ubs.com)