cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20381] New: - XSLTC: top-level xsl:variable with document() breaks
Date Sat, 31 May 2003 05:54:10 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20381>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20381

XSLTC: top-level xsl:variable with document() breaks

           Summary: XSLTC: top-level xsl:variable with document() breaks
           Product: Cocoon 2
           Version: Current CVS 2.1
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: sitemap components
        AssignedTo: cocoon-dev@xml.apache.org
        ReportedBy: jefft@apache.org


Hi,

Seems that XSLTC doesn't like using document() in a top-level element:

<xsl:variable name="config" select="document('skinconf.xml')"/>

This has the effect of *importing* skinconf.xml nodes. If I then have a
copy-across rule:

  <xsl:template match="node()|@*" priority="-1">
    <xsl:copy>
      <xsl:apply-templates select="@*"/>
      <xsl:apply-templates/>
    </xsl:copy>
  </xsl:template>

Then skinconf.xml element bodies appear in the output.

This bug does not show when using regular Xalan, nor does it show up when using
XSLTC from the command-line. It seems to have something to do with the
document() function.

Attached is a sample subsitemap which demonstrates the bug. It can be unpacked
directly into build/webapp/. A script for testing command-line XSLTC is also
provided.


--Jeff

Mime
View raw message