dmarston 01/03/26 11:21:05
Added: test/tests/conf/namespace namespace98.xsl namespace49.xsl
namespace50.xml namespace50.xsl namespace51.xml
namespace51.xsl namespace52.xml namespace52.xsl
namespace53.xml namespace53.xsl namespace54.xml
namespace54.xsl namespace60.xml namespace60.xsl
namespace64.xml namespace64.xsl namespace71.xml
namespace71.xsl namespace72.xml namespace72.xsl
namespace73.xml namespace73.xsl namespace75.xml
namespace75.xsl namespace77.xml namespace77.xsl
namespace79.xml namespace79.xsl namespace85.xml
namespace85.xsl namespace91.xml namespace91.xsl
namespace92.xml namespace92.xsl namespace93.xml
namespace93.xsl namespace94.xml namespace94.xsl
namespace95.xml namespace95.xsl namespace98.xml
namespace49.xml
Log:
Many new xsl:element tests in development; these are just the
non-controversial ones.
Revision Changes Path
1.1 xml-xalan/test/tests/conf/namespace/namespace98.xsl
Index: namespace98.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace98 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Use prefixed xmlns declaration with non-null namespace
attrib, same URI and prefix. -->
<xsl:template match = "/">
<out>
<xsl:element name="p2:foo" namespace="barz.com" xmlns:p2="barz.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace49.xsl
Index: namespace49.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:ped="http://www.test.com">
<!-- FileName: namespace49 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements with xsl:element. -->
<!-- Creator: Paul Dick -->
<!-- Purpose: Baseline test of xsl:element; stylesheet has namespace node.
-->
<xsl:template match="doc">
<out>
<xsl:element name="inner"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace50.xml
Index: namespace50.xml
===================================================================
<?xml version="1.0"?>
<docs>
<doc/>
</docs>
1.1 xml-xalan/test/tests/conf/namespace/namespace50.xsl
Index: namespace50.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:ped="http://www.test.com">
<!-- FileName: namespace50 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements with xsl:element. -->
<!-- Creator: Paul Dick -->
<!-- Purpose: Use xsl:element with namespace attribute; prefix known at
stylesheet level. -->
<!-- Requested name with no prefix, so we probably get that. -->
<xsl:template match="doc">
<out>
<xsl:element name="inner" namespace="http://www.test.com"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace51.xml
Index: namespace51.xml
===================================================================
<?xml version="1.0"?>
<docs>
<doc/>
</docs>
1.1 xml-xalan/test/tests/conf/namespace/namespace51.xsl
Index: namespace51.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:ped="http://www.test.com">
<!-- FileName: namespace51 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements with xsl:element. -->
<!-- Creator: Paul Dick -->
<!-- Purpose: Use xsl:element with namespace attribute, but namespace new
at that point. -->
<!-- Requested name has no prefix, and we can get by without it. -->
<xsl:template match="doc">
<out>
<xsl:element name="inner" namespace="http://www.bdd.com"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace52.xml
Index: namespace52.xml
===================================================================
<?xml version="1.0"?>
<docs>
<a href="http://www.ped.com">Out1</a>
<b href="">Out2</b>
<c href="http://www.bdd.com">Out3</c>
</docs>
1.1 xml-xalan/test/tests/conf/namespace/namespace52.xsl
Index: namespace52.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:ped="http://www.ped.com">
<!-- FileName: namespace52 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements with xsl:element. -->
<!-- Creator: Paul Dick -->
<!-- Purpose: Use xsl:element with namespace in AVT, comes out as null
string. -->
<xsl:template match="/">
<out>
<xsl:element name="{docs/b}" namespace="{docs/b/@href}"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace53.xml
Index: namespace53.xml
===================================================================
<?xml version="1.0"?>
<docs>
<a href="http://www.ped.com">Out1</a>
<b href="">Out2</b>
<c href="http://www.bdd.com">Out3</c>
</docs>
1.1 xml-xalan/test/tests/conf/namespace/namespace53.xsl
Index: namespace53.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:ped="http://www.ped.com">
<!-- FileName: namespace53 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements with xsl:element. -->
<!-- Creator: Paul Dick -->
<!-- Purpose: Use xsl:element with namespace that is AVT, URI matches one
already in scope. -->
<!-- Requested name has no NS prefix, so we probably get just that. -->
<xsl:template match="/">
<out>
<xsl:element name="{docs/a}" namespace="{docs/a/@href}"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace54.xml
Index: namespace54.xml
===================================================================
<?xml version="1.0"?>
<docs>
<a href="http://www.ped.com">Out1</a>
<b href="">Out2</b>
<c href="http://www.bdd.com">Out3</c>
</docs>
1.1 xml-xalan/test/tests/conf/namespace/namespace54.xsl
Index: namespace54.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:ped="http://www.ped.com">
<!-- FileName: namespace54 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements with xsl:element. -->
<!-- Creator: Paul Dick -->
<!-- Purpose: Use xsl:element with a namespace that has AVT, introduces new
namespace. -->
<xsl:template match="/">
<out>
<xsl:element name="{docs/c}" namespace="{docs/c/@href}"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace60.xml
Index: namespace60.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace60.xsl
Index: namespace60.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="testguys.com">
<!-- FileName: namespace60 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for resetting of a prefixed namespace by a LRE;
stylesheet default NS set. -->
<!-- Should see one warning about namespace "none" unresolvable.
Recovery: put yyy directly inside higher element (out). -->
<xsl:template match = "/">
<out>
<xsl:element name="none:foo">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace64.xml
Index: namespace64.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace64.xsl
Index: namespace64.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:p1="testguys.com">
<!-- FileName: namespace64 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for prefixed name when prefixed NS is in scope; no
namespace attrib. -->
<xsl:template match = "/">
<out>
<xsl:element name="p1:foo">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace71.xml
Index: namespace71.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace71.xsl
Index: namespace71.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace71 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Baseline case of an xmlns declaration in xsl:element. -->
<xsl:template match = "/">
<out>
<xsl:element name="foo" xmlns="">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace72.xml
Index: namespace72.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace72.xsl
Index: namespace72.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace72 -->
<!-- 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 xsl:element. -->
<xsl:template match = "/">
<out>
<xsl:element name="foo" namespace="zebie" xmlns="">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace73.xml
Index: namespace73.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace73.xsl
Index: namespace73.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace73 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Put an unprefixed xmlns declaration in xsl:element where
requested name has prefix. -->
<!-- Should see one warning about namespace "abc" unresolvable.
Recovery: put yyy directly inside higher element (out). -->
<xsl:template match = "/">
<out>
<xsl:element name="abc:foo" xmlns="">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace75.xml
Index: namespace75.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace75.xsl
Index: namespace75.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace75 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Baseline case of a non-empty but unprefixed xmlns declaration
in xsl:element. -->
<xsl:template match = "/">
<out>
<xsl:element name="foo" xmlns="test.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace77.xml
Index: namespace77.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace77.xsl
Index: namespace77.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace77 -->
<!-- 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 (to
same) in xsl:element. -->
<xsl:template match = "/">
<out>
<xsl:element name="foo" namespace="test.com" xmlns="test.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace79.xml
Index: namespace79.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace79.xsl
Index: namespace79.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace75 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Have a non-empty but unprefixed xmlns declaration while
specifying prefixed name. -->
<!-- Should see one warning about namespace "wxyz" unresolvable.
Recovery: put yyy directly inside higher element (out). -->
<xsl:template match = "/">
<out>
<xsl:element name="wxyz:foo" xmlns="test.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace85.xml
Index: namespace85.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace85.xsl
Index: namespace85.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace85 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Use prefixed xmlns declaration (to null) with non-null
namespace attrib. -->
<xsl:template match = "/">
<out>
<xsl:element name="foo" namespace="testguys.com" xmlns:p2="">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace91.xml
Index: namespace91.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace91.xsl
Index: namespace91.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace91 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Baseline case of prefixed xmlns declaration in xsl:element.
-->
<xsl:template match = "/">
<out>
<xsl:element name="foo" xmlns:p2="barz.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace92.xml
Index: namespace92.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace92.xsl
Index: namespace92.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace92 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Use prefixed xmlns declaration with null namespace attrib. -->
<xsl:template match = "/">
<out>
<xsl:element name="foo" namespace="" xmlns:p2="barz.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace93.xml
Index: namespace93.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace93.xsl
Index: namespace93.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace93 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Use prefixed xmlns declaration with non-null namespace
attrib, different URIs. -->
<xsl:template match = "/">
<out>
<xsl:element name="foo" namespace="testguys.com" xmlns:p2="barz.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace94.xml
Index: namespace94.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace94.xsl
Index: namespace94.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace94 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Use prefixed xmlns declaration with non-null namespace
attrib, same URI. -->
<xsl:template match = "/">
<out>
<xsl:element name="foo" namespace="barz.com" xmlns:p2="barz.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace95.xml
Index: namespace95.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace95.xsl
Index: namespace95.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: namespace95 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Prefixed xmlns declaration and same-prefixed name; no
namespace attrib. -->
<xsl:template match = "/">
<out>
<xsl:element name="p2:foo" xmlns:p2="barz.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace98.xml
Index: namespace98.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace49.xml
Index: namespace49.xml
===================================================================
<?xml version="1.0"?>
<docs>
<doc/>
</docs>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]