Uploaded image for project: 'XalanJ2'
  1. XalanJ2
  2. XALANJ-1150

including a stylesheet that has a func:function tag gives an error

    XMLWordPrintableJSON

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.

      Attachments

        Activity

          People

            mkwan@ca.ibm.com Morris Kwan
            myquestions@attbi.com myquestions
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: