dmarston 01/09/05 11:30:32
Modified: test/tests/conf/namespace namespace91.xsl namespace92.xsl
namespace93.xsl namespace94.xsl namespace95.xsl
Added: test/tests/conf/namespace namespace100.xml namespace100.xsl
namespace101.xml namespace101.xsl namespace105.xml
namespace105.xsl namespace107.xml namespace107.xsl
namespace108.xml namespace108.xsl namespace109.xml
namespace109.xsl namespace115.xml namespace115.xsl
namespace57.xml namespace57.xsl namespace58.xml
namespace58.xsl namespace59.xml namespace59.xsl
namespace61.xml namespace61.xsl namespace65.xml
namespace65.xsl namespace66.xml namespace66.xsl
namespace74.xml namespace74.xsl namespace78.xml
namespace78.xsl namespace99.xml namespace99.xsl
Log:
More tests that are now ready for prime time.
Revision Changes Path
1.2 +4 -3 xml-xalan/test/tests/conf/namespace/namespace91.xsl
Index: namespace91.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/namespace/namespace91.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- namespace91.xsl 2001/03/26 19:21:03 1.1
+++ namespace91.xsl 2001/09/05 18:30:31 1.2
@@ -7,6 +7,9 @@
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Baseline case of prefixed xmlns declaration in xsl:element.
-->
+ <!-- NOTE: Processor developers could legitimately disagree about where
the "p2" name
+ has to be in scope on the result. It must be in effect for yyy, but
could be for foo
+ as well. The spec doesn't address this point. -->
<xsl:template match = "/">
<out>
@@ -16,6 +19,4 @@
</out>
</xsl:template>
-</xsl:stylesheet>
-
-
+</xsl:stylesheet>
\ No newline at end of file
1.2 +4 -3 xml-xalan/test/tests/conf/namespace/namespace92.xsl
Index: namespace92.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/namespace/namespace92.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- namespace92.xsl 2001/03/26 19:21:03 1.1
+++ namespace92.xsl 2001/09/05 18:30:31 1.2
@@ -7,6 +7,9 @@
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Use prefixed xmlns declaration with null namespace attrib.
-->
+ <!-- NOTE: Processor developers could legitimately disagree about where
the "p2" name
+ has to be in scope on the result. It must be in effect for yyy, but
could be for foo
+ as well. The spec doesn't address this point. -->
<xsl:template match = "/">
<out>
@@ -16,6 +19,4 @@
</out>
</xsl:template>
-</xsl:stylesheet>
-
-
+</xsl:stylesheet>
\ No newline at end of file
1.2 +4 -3 xml-xalan/test/tests/conf/namespace/namespace93.xsl
Index: namespace93.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/namespace/namespace93.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- namespace93.xsl 2001/03/26 19:21:03 1.1
+++ namespace93.xsl 2001/09/05 18:30:31 1.2
@@ -7,6 +7,9 @@
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Use prefixed xmlns declaration with non-null namespace
attrib, different URIs. -->
+ <!-- NOTE: Processor developers could legitimately disagree about where
the "p2" name
+ has to be in scope on the result. It must be in effect for yyy, but
could be for foo
+ as well. The spec doesn't address this point. -->
<xsl:template match = "/">
<out>
@@ -16,6 +19,4 @@
</out>
</xsl:template>
-</xsl:stylesheet>
-
-
+</xsl:stylesheet>
\ No newline at end of file
1.2 +4 -3 xml-xalan/test/tests/conf/namespace/namespace94.xsl
Index: namespace94.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/namespace/namespace94.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- namespace94.xsl 2001/03/26 19:21:03 1.1
+++ namespace94.xsl 2001/09/05 18:30:31 1.2
@@ -7,6 +7,9 @@
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Use prefixed xmlns declaration with non-null namespace
attrib, same URI. -->
+ <!-- NOTE: Processor developers could legitimately disagree about where
the "p2" name
+ has to be in scope on the result. It must be in effect for yyy, but
could be for foo
+ as well. The spec doesn't address this point. -->
<xsl:template match = "/">
<out>
@@ -16,6 +19,4 @@
</out>
</xsl:template>
-</xsl:stylesheet>
-
-
+</xsl:stylesheet>
\ No newline at end of file
1.2 +1 -3 xml-xalan/test/tests/conf/namespace/namespace95.xsl
Index: namespace95.xsl
===================================================================
RCS file: /home/cvs/xml-xalan/test/tests/conf/namespace/namespace95.xsl,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- namespace95.xsl 2001/03/26 19:21:03 1.1
+++ namespace95.xsl 2001/09/05 18:30:31 1.2
@@ -16,6 +16,4 @@
</out>
</xsl:template>
-</xsl:stylesheet>
-
-
+</xsl:stylesheet>
\ No newline at end of file
1.1 xml-xalan/test/tests/conf/namespace/namespace100.xml
Index: namespace100.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace100.xsl
Index: namespace100.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace100 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Use prefixed xmlns declaration, namespace attrib to same URI,
different prefix on name. -->
<!-- NOTE: Processor developers could legitimately disagree about where the
"p2" name
has to be in scope on the result. It must be in effect for yyy, but
could be for foo
as well. The spec doesn't address this point. -->
<xsl:template match = "/">
<out>
<xsl:element name="az:foo" namespace="barz.com" xmlns:p2="barz.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace101.xml
Index: namespace101.xml
===================================================================
<?xml version="1.0"?>
<docs>
<doc/>
</docs>
1.1 xml-xalan/test/tests/conf/namespace/namespace101.xsl
Index: namespace101.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="testguys.com" xmlns:ped="http://www.test.com">
<!-- FileName: namespace101 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements with xsl:element. -->
<!-- Creator: David Marston -->
<!-- Purpose: Use "plain" xsl:element while both default and prefixed NS
defined at top. -->
<xsl:template match="doc">
<out>
<xsl:element name="inner"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace105.xml
Index: namespace105.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace105.xsl
Index: namespace105.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="testguys.com">
<!-- FileName: namespace105 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Specify an empty namespace; default NS set at two levels. -->
<xsl:template match = "/">
<out>
<xsl:element namespace="" name="foo" xmlns="other.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace107.xml
Index: namespace107.xml
===================================================================
<?xml version="1.0"?>
<docs>
<doc/>
</docs>
1.1 xml-xalan/test/tests/conf/namespace/namespace107.xsl
Index: namespace107.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="testguys.com" xmlns:ped="www.test.com">
<!-- FileName: namespace107 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements with xsl:element. -->
<!-- Creator: David Marston -->
<!-- Purpose: Use xsl:element with namespace attribute; prefix known at
stylesheet level; default set. -->
<xsl:template match="doc">
<out>
<xsl:element name="inner" namespace="www.test.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace108.xml
Index: namespace108.xml
===================================================================
<?xml version="1.0"?>
<docs>
<doc/>
</docs>
1.1 xml-xalan/test/tests/conf/namespace/namespace108.xsl
Index: namespace108.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="testguys.com" xmlns:ped="www.test.com">
<!-- FileName: namespace108 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements with xsl:element. -->
<!-- Creator: David Marston -->
<!-- Purpose: Use xsl:element with namespace attribute that matches
default; another in scope. -->
<xsl:template match="doc">
<out>
<xsl:element name="inner" namespace="testguys.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace109.xml
Index: namespace109.xml
===================================================================
<?xml version="1.0"?>
<docs>
<doc/>
</docs>
1.1 xml-xalan/test/tests/conf/namespace/namespace109.xsl
Index: namespace109.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="testguys.com" xmlns:ped="www.test.com">
<!-- FileName: namespace109 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements with xsl:element. -->
<!-- Creator: David Marston -->
<!-- Purpose: Use namespace attribute, but namespace new at that point;
default was set. -->
<!-- Requested name has no prefix, and we can get by without it. -->
<xsl:template match="doc">
<out>
<xsl:element name="inner" namespace="other.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace115.xml
Index: namespace115.xml
===================================================================
<?xml version="1.0"?>
<docs>
<doc/>
</docs>
1.1 xml-xalan/test/tests/conf/namespace/namespace115.xsl
Index: namespace115.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:ped="www.test.com">
<!-- FileName: namespace115 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements with xsl:element. -->
<!-- Creator: David Marston -->
<!-- Purpose: Use xsl:element with namespace attribute and default changed;
prefix known at stylesheet level. -->
<xsl:template match="doc">
<out>
<xsl:element name="inner" namespace="www.test.com" xmlns="other.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace57.xml
Index: namespace57.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace57.xsl
Index: namespace57.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace57 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Test what happens when namespace attrib is a known URI, but
no prefixes involved. -->
<xsl:template match = "/">
<out xmlns="abc">
<xsl:element namespace="abc" name="foo">
<xsl:element name="yyy"/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace58.xml
Index: namespace58.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace58.xsl
Index: namespace58.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="http://testguys.com">
<!-- FileName: namespace58 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for namespace attribute matching stylesheet default. -->
<xsl:template match = "/">
<out>
<xsl:element name="q:foo" namespace="http://testguys.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace59.xml
Index: namespace59.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace59.xsl
Index: namespace59.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="http://testguys.com">
<!-- FileName: namespace59 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for namespace attribute with new URI and prefix
requested. -->
<xsl:template match = "/">
<out>
<xsl:element name="q:foo" namespace="http://other.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace61.xml
Index: namespace61.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace61.xsl
Index: namespace61.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="testguys.com">
<!-- FileName: namespace61 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for specification of an empty namespace; stylesheet
default NS set. -->
<xsl:template match = "/">
<out>
<xsl:element namespace="" name="foo">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace65.xml
Index: namespace65.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace65.xsl
Index: namespace65.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace65 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Test resetting prefix and URI to what they were anyway. -->
<xsl:template match = "/">
<out xmlns:baz="xyz">
<xsl:element namespace="xyz" name="baz:foo">
<baz:yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace66.xml
Index: namespace66.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace66.xsl
Index: namespace66.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace66 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Test resetting of a prefix to same URI as known prefix. -->
<xsl:template match = "/">
<out xmlns:p1="xyz">
<xsl:element namespace="xyz" name="baz:foo">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace74.xml
Index: namespace74.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace74.xsl
Index: namespace74.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace74 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Put both an unprefixed xmlns declaration and namespace attrib
in; name has prefix. -->
<xsl:template match = "/">
<out>
<xsl:element name="abc:foo" namespace="zebie" xmlns="">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace78.xml
Index: namespace78.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace78.xsl
Index: namespace78.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace78 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Mix a non-empty xmlns declaration and namespace attrib
(different URI) in xsl:element. -->
<xsl:template match = "/">
<out>
<xsl:element name="foo" namespace="abc.com" xmlns="test.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace99.xml
Index: namespace99.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace99.xsl
Index: namespace99.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace99 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Use prefixed xmlns declaration, namespace attrib sets
different URI of that prefix. -->
<xsl:template match = "/">
<out>
<xsl:element name="p2:foo" namespace="barz.com" xmlns:p2="testguys.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]