[
https://issues.apache.org/jira/browse/XALANJ-1546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17722423#comment-17722423
]
Joe Kesselman commented on XALANJ-1546:
---------------------------------------
Given no response since '07, and the inability to reproduce it with Xalan 2.7.0
at that date, move to close this as fixed.
> XSLTC: top-level xsl:variable with document() breaks
> ----------------------------------------------------
>
> Key: XALANJ-1546
> URL: https://issues.apache.org/jira/browse/XALANJ-1546
> Project: XalanJ2
> Issue Type: Bug
> Components: XSLTC
> Affects Versions: 2.5
> Environment: Operating System: Linux
> Platform: Other
> Reporter: Jeff Turner
> Priority: Major
> Attachments: ASF.LICENSE.NOT.GRANTED--DocumentTest.java,
> ASF.LICENSE.NOT.GRANTED--document.xml, ASF.LICENSE.NOT.GRANTED--other.xml,
> ASF.LICENSE.NOT.GRANTED--stylesheet.xsl,
> ASF.LICENSE.NOT.GRANTED--xsltcbug2.tgz, XALANJ-1546.patch,
> xalan-bug20381-usecase.zip
>
>
> 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
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]