You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by dm...@apache.org on 2001/08/20 22:40:50 UTC
cvs commit: xml-xalan/test/tests/conf/copy copy47.xml copy47.xsl copy48.xml copy48.xsl copy44.xsl
dmarston 01/08/20 13:40:50
Modified: test/tests/conf/copy copy44.xsl
Added: test/tests/conf/copy copy47.xml copy47.xsl copy48.xml
copy48.xsl
Log:
Expand coverage of copy-of on namespace nodes.
Make copy44 a simpler base case.
Put exclude-result-prefixes in two new cases.
Revision Changes Path
1.2 +3 -3 xml-xalan/test/tests/conf/copy/copy44.xsl
Index: copy44.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/copy/copy44.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- copy44.xsl 2001/08/03 15:01:42 1.1
+++ copy44.xsl 2001/08/20 20:40:50 1.2
@@ -1,13 +1,12 @@
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:foo="http://foo.test.com"
- xmlns:joes="http://joes.com"
- exclude-result-prefixes="foo huh">
+ xmlns:joes="http://joes.com">
<!-- FileName: copy44 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
- <!-- Section: 11.2 -->
+ <!-- Section: 11.3 -->
<!-- Creator: David Marston -->
<!-- Purpose: Introduce namespace nodes through copy-of (i.e., no earlier reference). -->
@@ -19,6 +18,7 @@
<xsl:template match="doc">
<union>
+ <xsl:text> </xsl:text>
<xsl:copy-of select="bar | joes:bar" />
</union>
</xsl:template>
1.1 xml-xalan/test/tests/conf/copy/copy47.xml
Index: copy47.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<doc xmlns:foo="http://foo.test.com">
<bar>18 Generic Ave.</bar>
<foo:bar>157 Fourth St.</foo:bar>
<wonder:bar xmlns:wonder="http://wonder.com">777 Broadway</wonder:bar>
<bar xmlns:huh="http://unknown.com">12 Slammin Ave.</bar>
<joes:bar xmlns:joes="http://joes.com">17 Generic Ave.</joes:bar>
</doc>
1.1 xml-xalan/test/tests/conf/copy/copy47.xsl
Index: copy47.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:foo="http://foo.test.com"
xmlns:huh="http://unknown.com"
exclude-result-prefixes="huh">
<!-- FileName: copy47 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.1 (and 11.3) -->
<!-- Creator: David Marston -->
<!-- Purpose: Show that exclude-result-prefixes doesn't affect copy-of. -->
<xsl:template match="/">
<out>
<xsl:apply-templates select="doc"/>
</out>
</xsl:template>
<xsl:template match="doc">
<union>
<xsl:text> </xsl:text>
<xsl:copy-of select="bar | foo:bar" />
</union>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/copy/copy48.xml
Index: copy48.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<doc xmlns:foo="http://foo.test.com">
<bar>18 Generic Ave.</bar>
<foo:bar>157 Fourth St.</foo:bar>
<wonder:bar xmlns:wonder="http://wonder.com">777 Broadway</wonder:bar>
<bar xmlns:huh="http://unknown.com">12 Slammin Ave.</bar>
<joes:bar xmlns:joes="http://joes.com">17 Generic Ave.</joes:bar>
</doc>
1.1 xml-xalan/test/tests/conf/copy/copy48.xsl
Index: copy48.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:foo="http://foo.test.com"
xmlns:joes="http://joes.com"
exclude-result-prefixes="foo">
<!-- FileName: copy48 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.1 (and 11.3) -->
<!-- Creator: David Marston -->
<!-- Purpose: Unusual effect: "foo" is in effect on each copied node, but excluded from LREs "out" and "union". -->
<xsl:template match="/">
<out>
<xsl:apply-templates select="doc"/>
</out>
</xsl:template>
<xsl:template match="doc">
<union>
<xsl:text> </xsl:text>
<xsl:copy-of select="joes:bar | foo:bar" />
</union>
</xsl:template>
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org