You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2005/02/09 22:13:22 UTC
DO NOT REPLY [Bug 30766] -
XSLTC fails to access auxilliary (non-main) xml file.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=30766>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=30766
david.green@maketechnologies.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |david.green@maketechnologies
| |.com
------- Additional Comments From david.green@maketechnologies.com 2005-02-09 22:13 -------
This should reproduce the problem:
!DOCUMENT1 (foo.xml)
<?xml version="1.0" encoding="UTF-8"?>
<foo>
<a>foo</a>
</foo>
!DOCUMENT2 (bar.xml)
<?xml version="1.0" encoding="UTF-8"?>
<bar>
<b>bar</b>
</bar>
!XSLT Stylesheet
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:variable name="BAR" select="document('bar.xml',/)"/>
<xsl:template match="/">
<xsl:message>
Foo root element name: <xsl:value-of select="local-name(/*)"/>
</xsl:message>
<xsl:for-each select="$BAR/bar/b">
<xsl:message>
Bar root element name: <xsl:value-of select="local-name(/*)"/>
</xsl:message>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
The output of running the test (from Ant) is as follows:
foobar-test:
[echo]
[echo] USING XSLTC PROCESSOR
[echo]
[java] Foo root element name: foo
[java] Bar root element name: foo
[java] <?xml version="1.0" encoding="UTF-8"?>
[echo]
[echo] USING INTERPRETIVE PROCESSOR
[echo]
[java] file:///C:/dev/BCCampus/connector/server-system/codegen/foobar.xslt;
Line #8; Column #19;
[java] Foo root element name: foo
[java] file:///C:/dev/BCCampus/connector/server-system/codegen/foobar.xslt;
Line #12; Column #19;
[java] Bar root element name: bar
[java] <?xml version="1.0" encoding="UTF-8"?>
--
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org