Details
-
Bug
-
Status: Resolved
-
Resolution: Fixed
-
2.4Dx
-
None
-
None
-
Operating System: Other
Platform: PC
-
12077
Description
Using: WindowsMe
JDK1.3.0_02
xalan-j_2_4_D1
If I have stylesheet1 that includes stylesheet2 at its top level, and
stylesheet2 has a func:function element at its top level, I get the following error:
func:function element must be top level
According to http://www.w3.org/TR/xslt#include ,
"The resource located by the href attribute value is parsed as an XML document,
and the children of the xsl:stylesheet element in this document replace the
xsl:include element in the including document. "
I take this to mean that func:function element of stylesheet2 becomes a top
level element in stylesheet1 because of its inclusion. This means that
func:function is already a top level element, and the transformer should not
give such an error message.
I will attach 3 files:
toppage.xsl
subpage.xsl
file.xml
The command used was:
"%JAVAHOME%\bin\java.exe" -classpath "%XALANCLASSPATH%"
org.apache.xalan.xslt.Process -IN file.xml -XSL toppage.xsl
Thank you.