curcuru 00/12/05 10:42:09
Added: test/tests/api/trax/xml baz.xml foo.xml
test/tests/api/trax/xml/subdir1 foo2.xml
test/tests/api/trax/xml/subdir1/subdir2 foo3.xml
test/tests/api/trax/xsl baz.xsl foo.xsl foo2.xsl foo3.xsl
test/tests/api/trax/xsl/inc1 inc1.xsl
test/tests/api/trax/xsl/inc1/inc2 inc2.xsl
Log:
New testfiles for trax/ExamplesTest.java
Revision Changes Path
1.1 xml-xalan/test/tests/api/trax/xml/baz.xml
Index: baz.xml
===================================================================
<?xml version='1.0'?>
<foo:document
xmlns:foo="http://apache.org/foo"
xmlns:bar="http://apache.org/bar">
<bar:element>MyBaz</bar:element>
</foo:document>
1.1 xml-xalan/test/tests/api/trax/xml/foo.xml
Index: foo.xml
===================================================================
<?xml version='1.0'?>
<?xml-stylesheet type="text/xsl" href="../xsl/foo.xsl"?>
<foo:document
xmlns:foo="http://apache.org/foo"
xmlns:bar="http://apache.org/bar"
file-name="test"
file-path="work"
creation-date="971255692078">
<bar:element>MyBar</bar:element>
</foo:document>
1.1 xml-xalan/test/tests/api/trax/xml/subdir1/foo2.xml
Index: foo2.xml
===================================================================
<?xml version='1.0'?>
<doc>text in foo2.xml</doc>
1.1
xml-xalan/test/tests/api/trax/xml/subdir1/subdir2/foo3.xml
Index: foo3.xml
===================================================================
<?xml version='1.0'?>
<doc>text in foo3.xml</doc>
1.1 xml-xalan/test/tests/api/trax/xsl/baz.xsl
Index: baz.xsl
===================================================================
<xsl:stylesheet
xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
<!-- same as foo.xsl but doesn't include the param because of a bug -->
<xsl:template match="/">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template
match="@*|*|text()|processing-instruction()">
<xsl:copy>
<xsl:apply-templates
select="@*|*|text()|processing-instruction()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/api/trax/xsl/foo.xsl
Index: foo.xsl
===================================================================
<xsl:stylesheet
xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'
xmlns:bar="http://apache.org/bar"
exclude-result-prefixes="bar">
<xsl:include href="inc1/inc1.xsl"/>
<xsl:param name="a-param">default param value</xsl:param>
<xsl:template match="bar:element">
<bar>
<param-val>
<xsl:value-of select="$a-param"/><xsl:text>, </xsl:text>
<xsl:value-of select="$my-var"/>
</param-val>
<data><xsl:apply-templates/></data>
</bar>
</xsl:template>
<xsl:template
match="@*|*|text()|processing-instruction()">
<xsl:copy>
<xsl:apply-templates
select="@*|*|text()|processing-instruction()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/api/trax/xsl/foo2.xsl
Index: foo2.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:bar="http://apache.org/bar">
<xsl:template match="bar">
<out>
<xsl:value-of select="."/>
</out>
</xsl:template>
<xsl:template match="text()">
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/api/trax/xsl/foo3.xsl
Index: foo3.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="out">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template match="text()">
<some-text><xsl:value-of select="."/></some-text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/api/trax/xsl/inc1/inc1.xsl
Index: inc1.xsl
===================================================================
<xsl:stylesheet
xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
<xsl:include href="inc2/inc2.xsl"/>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/api/trax/xsl/inc1/inc2/inc2.xsl
Index: inc2.xsl
===================================================================
<xsl:stylesheet
xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
<xsl:variable name="my-var" select="'text from my-var in inc2.xsl'"/>
</xsl:stylesheet>