[ https://issues.apache.org/jira/browse/XALANJ-1546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12470518 ]
Henry Zongaro commented on XALANJ-1546: --------------------------------------- Hi, Mike. I've never tried reproducing this test before. I just tried the test case in xalan-bug20381-usecase.zip[1] and it produced incorrect results with Xalan-J 2.6.0, but ran correctly with Xalan-J 2.7.0 and with the latest source. I was unable to reproduce the problem with the test case that Morten provided, which was Christine's experience. Does the problem still exist? Are you able to reproduce it using Carlo's sample? If not, do you have another sample that demonstrates the problem? [1] https://issues.apache.org/jira/secure/attachment/18139/xalan-bug20381-usecase.zip > 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 > Assigned To: Xalan Developers Mailing List > Attachments: document.xml, DocumentTest.java, other.xml, > stylesheet.xsl, xalan-bug20381-usecase.zip, XALANJ-1546.patch, xsltcbug2.tgz > > > 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 is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]