dmarston 00/12/17 13:28:47
Added: test/tests/conf/namespace test2.xsl incnspc13.xsl
namespace01.xml namespace01.xsl namespace02.xml
namespace02.xsl namespace03.xml namespace03.xsl
namespace04.xml namespace04.xsl namespace05.xml
namespace05.xsl namespace06.xml namespace06.xsl
namespace07.xml namespace07.xsl namespace09.xml
namespace09.xsl namespace10.xml namespace10.xsl
namespace11.xml namespace11.xsl namespace12.xml
namespace12.xsl namespace13.xml namespace13.xsl
namespace14.xml namespace14.xsl namespace15.xml
namespace15.xsl namespace16.xml namespace16.xsl
namespace17.xml namespace17.xsl namespace18.xml
namespace18.xsl namespace19.xml namespace19.xsl
namespace20.xml namespace20.xsl namespace21.xml
namespace21.xsl namespace22.xml namespace22.xsl
namespace23.xml namespace23.xsl namespace24.xml
namespace24.xsl namespace25.xml namespace25.xsl
namespace26.xml namespace26.xsl namespace27.xml
namespace27.xsl namespace28.xml namespace28.xsl
namespace29.xml namespace29.xsl namespace30.xml
namespace30.xsl namespace31.xml namespace31.xsl
namespace32.xml namespace32.xsl namespace33.xml
namespace33.xsl namespace34.xml namespace34.xsl
namespace35.xml namespace35.xsl test1.xsl
impnspc13.xsl
Log:
Copy of tests in Lotus/IBM repository
Revision Changes Path
1.1 xml-xalan/test/tests/conf/namespace/test2.xsl
Index: test2.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: test2 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.1 XSLT Namespace -->
<!-- Purpose: Used by nspc23. -->
<xsl:template match="/">
<test2/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/incnspc13.xsl
Index: incnspc13.xsl
===================================================================
<?xml version="1.0"?>
<jad:transform xmlns:jad="http://www.w3.org/1999/XSL/Transform" version="1.0">
<jad:output method="xml"/>
<!-- FileName: NSPC13inc -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991008 -->
<!-- Section: 2.1 XSLT Namespace. -->
<!-- Purpose: This stylesheet is being included by nspc13 which has the
namespace
prefix set to 'jad'. Testing that this setup with two different
namespaces
is not evil. -->
<jad:template match="doc">
<out>
<jad:value-of select="'In Include: Testing '"/>
<jad:for-each select="*">
<jad:value-of select="."/><jad:text> </jad:text>
</jad:for-each>
<jad:text>

</jad:text>
<jad:call-template name="ThatTemp">
<jad:with-param name="sam">quos</jad:with-param>
</jad:call-template>
</out>
</jad:template>
<jad:template name="ThatOtherTemp">
<jad:param name="sam">bo</jad:param>
Included xmlns:jad <jad:copy-of select="$sam"/>
</jad:template>
</jad:transform>
1.1 xml-xalan/test/tests/conf/namespace/namespace01.xml
Index: namespace01.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace01.xsl
Index: namespace01.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output indent="yes"/>
<!-- FileName: NSPC01 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Purpose: Apply namespaces to attributes -->
<xsl:template match="/">
<out xmlns:anamespace="foo.com">
<p>
<xsl:attribute name="Attr1" namespace="foo.com">true</xsl:attribute>
</p>
<p>
<xsl:attribute name="Attr2" namespace="baz.com">true</xsl:attribute>
</p>
<!-- This 3rd case is a base line and should not have associated
namespace -->
<p>
<xsl:attribute name="Attr3">true</xsl:attribute>
</p>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace02.xml
Index: namespace02.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace02.xsl
Index: namespace02.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output indent="yes"/>
<!-- FileName: NSPC02 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Purpose: Apply namespaces to elements. We differ from XT here due to
the
fact that we declare necessary namespace nodes on parent nodes of
subelements, this allows for simplier tracking of namespace nodes. -->
<xsl:template match="/">
<out xmlns:anamespace="foo.com">
<p><xsl:element name="test" namespace="foo.com"/></p>
<p><xsl:element name="test" namespace="baz.com"/>
<xsl:element name="foo" namespace="baz.com"/>
</p>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace03.xml
Index: namespace03.xml
===================================================================
<?xml version="1.0"?>
<doc>
<a/>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace03.xsl
Index: namespace03.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:space="http://fictitious.com"
version="1.0">
<!-- FileName: NSPC03 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.3 -->
<!-- Purpose: Adding an attribute to an element replaces any existing
attribute of that element with the same expanded-name. For attribute L,
there is only a local name. Attribute Q has a namespace. -->
<xsl:template match="a">
<out>The foo element....
<foo xmlns:space="http://fictitious.com">
<xsl:attribute name="L">loser1</xsl:attribute>
<xsl:attribute name="space:Q">loser2</xsl:attribute>
<xsl:attribute name="L">winner1</xsl:attribute>
<xsl:attribute name="space:Q">winner2</xsl:attribute>
</foo>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace04.xml
Index: namespace04.xml
===================================================================
<foo xmlns="http://bogus" up="down"/>
1.1 xml-xalan/test/tests/conf/namespace/namespace04.xsl
Index: namespace04.xsl
===================================================================
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:bogus="http://bogus">
<!-- FileName: NSPC04 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Purpose: Test that default namespaces do not apply directly to
attributes. -->
<xsl:template match="[EMAIL PROTECTED]">
<foo/>
</xsl:template>
<xsl:template match="[EMAIL PROTECTED]:up]">
<!-- this template should not trigger because the element is in the "bogus"
namespace,
but its "up" attribute isn't -->
<ERROR/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace05.xml
Index: namespace05.xml
===================================================================
<?xml version="1.0" ?>
<doc>
<a>1</a>
<b>2</b>
<c>3</c>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace05.xsl
Index: namespace05.xsl
===================================================================
<?xml version="1.0"?>
<ped:stylesheet xmlns:ped="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<ped:output method="xml"/>
<ped:key name="tk" match="xyz" use="zyx"/>
<ped:variable name="joe">2</ped:variable>
<ped:param name="sam" select="' x 4'"/>
<!-- FileName: NSPC05 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991008 -->
<!-- Section: 2.1 XSLT Namespace. -->
<!-- Purpose: Stylesheets are free to use any prefix, provided there is a
namespace
declaration that binds the prefix to the URI of XSLT namespace. -->
<ped:template match="doc">
<out>
<ped:value-of select="'Testing '"/>
<ped:for-each select="*">
<ped:value-of select="."/><ped:text> </ped:text>
</ped:for-each>
<ped:text>
</ped:text>
<ped:value-of select="$joe"/>
<ped:value-of select="$sam"/>
<ped:text>
</ped:text>
<ped:call-template name="ThatTemp">
<ped:with-param name="sam">quos</ped:with-param>
</ped:call-template>
<ped:text>
</ped:text>
<ped:call-template name="ThatTemp"/>
</out>
</ped:template>
<ped:template name="ThatTemp">
<ped:param name="sam">bo</ped:param>
<ped:copy-of select="$sam"/>
</ped:template>
</ped:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace06.xml
Index: namespace06.xml
===================================================================
<?xml version="1.0"?>
<doc>
<a>
<b/>
</a>
<c/>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace06.xsl
Index: namespace06.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" lotus:foo="baz"
xmlns:lotus="http://www.lotus.com">
<!-- FileName: Nspc06 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.1 XSLT Namespace -->
<!-- Purpose: Testing an attribute not from the XSLT namespace,
which is legal provided that the expanded name of the attribute
has a non-null namespace URI. -->
<xsl:template match="/" lotus:QE="ped">
<out xmlns:foo="http://foo.com">
<xsl:copy-of select="doc" foo:test="0"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace07.xml
Index: namespace07.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc xmlns="http://xsl.lotus.com/ns2" xmlns:ns1="http://xsl.lotus.com/ns1">
<ns1:a attrib1="test" xmlns="http://xsl.lotus.com/ns2"
xmlns:ns1="http://xsl.lotus.com/ns1"/>
<b ns1:attrib2="test"/>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace07.xsl
Index: namespace07.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz1="http://xsl.lotus.com/ns1"
xmlns:baz2="http://xsl.lotus.com/ns2">
<!-- FileName: NSPC07 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.1 Node Set Functions. -->
<!-- Purpose: Test of 'local-name()' function on an element. -->
<xsl:template match="baz2:doc">
<out>
<xsl:value-of select="local-name(baz2:b)"
xmlns:baz1="http://xsl.lotus.com/ns1" xmlns:baz2="http://xsl.lotus.com/ns2"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace09.xml
Index: namespace09.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc xmlns="http://xsl.lotus.com/ns2" xmlns:ns1="http://xsl.lotus.com/ns1">
<ns1:a attrib1="test" xmlns="http://xsl.lotus.com/ns2"
xmlns:ns1="http://xsl.lotus.com/ns1"/>
<b ns1:attrib2="test"/>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace09.xsl
Index: namespace09.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz1="http://xsl.lotus.com/ns1"
xmlns:baz2="http://xsl.lotus.com/ns2">
<!-- FileName: NSPC09 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.1 Node Set Functions. -->
<!-- Purpose: Test of 'local-name()' function on attribute in non-default
namespace. -->
<xsl:template match="baz2:doc">
<out>
<xsl:value-of select="local-name(baz2:b/@baz1:attrib2)"
xmlns:baz1="http://xsl.lotus.com/ns1" xmlns:baz2="http://xsl.lotus.com/ns2"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace10.xml
Index: namespace10.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc xmlns="http://xsl.lotus.com/ns2" xmlns:ns1="http://xsl.lotus.com/ns1">
<ns1:a attrib1="test" xmlns="http://xsl.lotus.com/ns2"
xmlns:ns1="http://xsl.lotus.com/ns1"/>
<b ns1:attrib2="test"/>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace10.xsl
Index: namespace10.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz1="http://xsl.lotus.com/ns1"
xmlns:baz2="http://xsl.lotus.com/ns2">
<!-- FileName: NSPC10 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991008 -->
<!-- Section: 4.1 Node Set Functions. -->
<!-- Purpose: Test of 'namespace-uri' function. -->
<xsl:template match="baz2:doc">
<out>
<xsl:value-of select="namespace-uri(x)"
xmlns:baz1="http://xsl.lotus.com/ns1" xmlns:baz2="http://xsl.lotus.com/ns2"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace11.xml
Index: namespace11.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc-one xmlns="http://xsl.lotus.com/ns2"
xmlns:ns1="http://xsl.lotus.com/ns1">
<ns1:a-two attrib1="Goodbye" xmlns="http://xsl.lotus.com/ns2"
xmlns:ns1="http://xsl.lotus.com/ns1">Hello</ns1:a-two>
<b-three ns1:attrib2="Ciao">
<c-four/>
</b-three>
</doc-one>
1.1 xml-xalan/test/tests/conf/namespace/namespace11.xsl
Index: namespace11.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz1="http://xsl.lotus.com/ns1"
xmlns:baz2="http://xsl.lotus.com/ns2"
exclude-result-prefixes="baz1 baz2">
<!-- FileName: NSPC11 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.1 Node Set Functions. -->
<!-- Purpose: Test of 'namespace-uri()' function, with hyphenated node
name. -->
<xsl:template match="baz2:doc-one">
<out>
0 <xsl:value-of select="namespace-uri()"/>:
1 <xsl:value-of select="namespace-uri(baz1:a-two)"
xmlns:baz1="http://xsl.lotus.com/ns1" xmlns:baz2="http://xsl.lotus.com/ns2"/>:
2 <xsl:value-of select="namespace-uri(baz1:a-two)"/>:
3 <xsl:value-of select="namespace-uri(baz1:a-two/@attrib1)"/>:
4 <xsl:value-of select="namespace-uri(baz2:b-three)"/>:
5 <xsl:value-of select="namespace-uri(baz2:b-three/@baz1:attrib2)"/>:
6 <xsl:value-of select="namespace-uri(baz2:b-three/c-four)"/>:
7 <xsl:value-of select="namespace-uri(bogus)"/>:
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace12.xml
Index: namespace12.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc xmlns="http://xsl.lotus.com/ns2" xmlns:ns1="http://xsl.lotus.com/ns1">
<ns1:a attrib1="test" xmlns="http://xsl.lotus.com/ns2"
xmlns:ns1="http://xsl.lotus.com/ns1"/>
<b ns1:attrib2="test"/>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace12.xsl
Index: namespace12.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz1="http://xsl.lotus.com/ns1"
xmlns:baz2="http://xsl.lotus.com/ns2">
<!-- FileName: NSPC12 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.1 Node Set Functions. -->
<!-- Purpose: Test of 'namespace-uri()' function on an element. -->
<xsl:template match="baz2:doc">
<out>
<xsl:value-of select="namespace-uri(baz2:b)"
xmlns:baz1="http://xsl.lotus.com/ns1" xmlns:baz2="http://xsl.lotus.com/ns2"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace13.xml
Index: namespace13.xml
===================================================================
<?xml version="1.0" ?>
<doc>
<a>1</a>
<b>2</b>
<c>3</c>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace13.xsl
Index: namespace13.xsl
===================================================================
<?xml version="1.0"?>
<ped:transform xmlns:ped="http://www.w3.org/1999/XSL/Transform" version="1.0">
<ped:import href="impnspc13.xsl"/>
<ped:include href="incnspc13.xsl"/>
<ped:output method="xml"/>
<!-- FileName: NSPC13 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991008 -->
<!-- Section: 2.1 XSLT Namespace. -->
<!-- Purpose: Stylesheets are free to use any prefix, provided there is a
namespace
declaration that binds the prefix to the URI of XSLT namespace. -->
<ped:template match="doc">
<out>
<ped:value-of select="'Testing '"/>
<ped:for-each select="*">
<ped:value-of select="."/><ped:text> </ped:text>
</ped:for-each>
<ped:call-template name="ThatTemp">
<ped:with-param name="sam">quos</ped:with-param>
</ped:call-template>
<ped:call-template name="ThatOtherTemp">
<ped:with-param name="sam">quos</ped:with-param>
</ped:call-template>
<ped:call-template name="ThatForthTemp">
<ped:with-param name="sam">quos</ped:with-param>
</ped:call-template>
</out>
</ped:template>
<ped:template name="ThatTemp">
<ped:param name="sam">bo</ped:param>
Orginal xmlns:ped <ped:copy-of select="$sam"/>
</ped:template>
</ped:transform>
1.1 xml-xalan/test/tests/conf/namespace/namespace14.xml
Index: namespace14.xml
===================================================================
<?xml version="1.0" ?>
<doc>
<a>1</a>
<b>2</b>
<c>3</c>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace14.xsl
Index: namespace14.xsl
===================================================================
<?xml version="1.0"?>
<ped:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ped="http://www.w3.org/1999/XSL/Transform" version="1.0">
<ped:output method="xml"/>
<ped:key name="tk" match="xyz" use="zyx"/>
<xsl:variable name="joe">2</xsl:variable>
<ped:param name="sam" select="' x 4'"/>
<!-- FileName: NSPC14 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991008 -->
<!-- Section: 2.1 XSLT Namespace. -->
<!-- Purpose: Have more than one prefix bound to the URI of XSLT namespace.
-->
<ped:template match="doc">
<out>
<ped:value-of select="'Testing '"/>
<xsl:for-each select="*">
<ped:value-of select="."/><ped:text> </ped:text>
</xsl:for-each>
<ped:text>
</ped:text>
<xsl:value-of select="$joe"/>
<ped:value-of select="$sam"/>
<ped:text>
</ped:text>
<ped:call-template name="ThatTemp">
<ped:with-param name="sam">quos</ped:with-param>
</ped:call-template>
<xsl:text>
</xsl:text>
<xsl:call-template name="ThatTemp"/>
</out>
</ped:template>
<xsl:template name="ThatTemp">
<xsl:param name="sam">unchanged</xsl:param>
<ped:copy-of select="$sam"/>
</xsl:template>
</ped:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace15.xml
Index: namespace15.xml
===================================================================
<?xml version="1.0" ?>
<doc>
<a>1</a>
<b>2</b>
<c>3</c>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace15.xsl
Index: namespace15.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:help="xsl.lotus.com/help">
<!-- FileName: nspc15 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.2 Stylesheet Element. -->
<!-- Purpose: Stylesheet elements may contain any element not from the
XSLT namespace, provided that the expanded name of the element has
a non-null namespace URI. -->
<help:Header comment="Header would go here"/>
<help:TOC comment="Table of Contents"/>
<help:Template comment="This is the main template" match="doc"
process="children"/>
<xsl:template match="doc">
<out>
<xsl:text>
</xsl:text>
<xsl:value-of select="'Testing '"/>
<xsl:for-each select="*">
<xsl:value-of select="."/><xsl:text> </xsl:text>
</xsl:for-each>
<xsl:call-template name="ThatTemp">
<xsl:with-param name="sam">quos</xsl:with-param>
</xsl:call-template>
</out>
</xsl:template>
<help:Template comment="Named template" match="*" process="children"/>
<xsl:template name="ThatTemp">
<xsl:param name="sam">bo</xsl:param>
<xsl:copy-of select="$sam"/>
</xsl:template>
<help:Footer comment="Footer would go here"/>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace16.xml
Index: namespace16.xml
===================================================================
<?xml version="1.0" ?>
<doc>
<a>1</a>
<b>2</b>
<c>3</c>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace16.xsl
Index: namespace16.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NSPC16 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991008 -->
<!-- Section: 2.2 Stylesheet Element. -->
<!-- Purpose: XSLT processor must ignore a top-level element without giving
and error if it does not recognize the namespace URI. -->
<help:Header comment="Header would go here"/>
<help:TOC comment="Table of Contents"/>
<help:Template comment="This is the main template" match="doc"
process="children"/>
<xsl:template match="doc">
<out>
<xsl:value-of select="'Testing '"/>
<xsl:for-each select="*">
<xsl:value-of select="."/><xsl:text> </xsl:text>
</xsl:for-each>
<xsl:call-template name="ThatTemp">
<xsl:with-param name="sam">quos</xsl:with-param>
</xsl:call-template>
</out>
</xsl:template>
<help:Template comment="Named template" match="*" process="children"/>
<xsl:template name="ThatTemp">
<xsl:param name="sam">bo</xsl:param>
<xsl:copy-of select="$sam"/>
</xsl:template>
<help:Footer comment="Footer would go here"/>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace17.xml
Index: namespace17.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace17.xsl
Index: namespace17.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:anamespace="foo.com"
exclude-result-prefixes="anamespace">
<xsl:output indent="yes"/>
<!-- FileName: NSPC17 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Purpose: Test xsl:exclude-result-prefixes, stylesheet level -->
<xsl:template match="/">
<out>
<p><xsl:attribute name="test" namespace="foo.com">true</xsl:attribute></p>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace18.xml
Index: namespace18.xml
===================================================================
<?xml version="1.0"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace18.xsl
Index: namespace18.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: nspc18 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Purpose: Test exclude-result-prefixes, attribute level -->
<xsl:template match="/">
<out xmlns:anamespace="foo.com" xsl:exclude-result-prefixes="anamespace">
<p>
<xsl:attribute name="test" namespace="foo2.com">true</xsl:attribute>
</p>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace19.xml
Index: namespace19.xml
===================================================================
<?xml version="1.0"?>
<elements>
<block>h1</block>
</elements>
1.1 xml-xalan/test/tests/conf/namespace/namespace19.xsl
Index: namespace19.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:axsl="http://www.w3.org/1999/XSL/TransAlias">
<xsl:output method="xml" indent="yes"/>
<!-- FileName: nspc19 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.1 Literal Result Elements -->
<!-- Purpose: Test basic functionality of namespace-alias. Where xsl
elements
are created by using Literal Result Elements. nspc24 is very similar,
but
it creates the axsl:stylesheet element via xsl:element. -->
<xsl:namespace-alias stylesheet-prefix="axsl" result-prefix="xsl"/>
<xsl:template match="/">
<axsl:stylesheet version="1.0">
<xsl:apply-templates/>
</axsl:stylesheet>
</xsl:template>
<xsl:template match="block">
<axsl:template match="{.}">
<axsl:apply-templates/>
</axsl:template>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace20.xml
Index: namespace20.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
boo
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace20.xsl
Index: namespace20.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:ped="ped.com"
xmlns:bdd="bdd.com"
xmlns="bubba.com"
exclude-result-prefixes="ped #default">
<!-- FileName: nspc20 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.1 Literal Result Elements -->
<!-- Purpose: Test exclude-result-prefixes. -->
<xsl:template match="doc">
<out><xsl:text>
</xsl:text>
<xsl:for-each
select='document("")//ped:test'><xsl:copy/><xsl:text>
</xsl:text></xsl:for-each>
<xsl:for-each
select='document("")//bdd:test'><xsl:copy/><xsl:text>
</xsl:text></xsl:for-each>
<test>Test5</test>
<test xmlns="missing.com">Test6</test><xsl:text>
</xsl:text>
</out>
</xsl:template>
<ped:test>Test1</ped:test>
<test xmlns="ped.com">Test2</test>
<ped:test xmlns:ped="ped2.com">Test3</ped:test>
<bdd:test>Test4</bdd:test>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace21.xml
Index: namespace21.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc xmlns:xem="http://www.psol.com/xtension/1.0">
<foo>xyz</foo>
<xem:foo>www.psol.com</xem:foo>
<foo>zyx</foo>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace21.xsl
Index: namespace21.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:em="http://www.psol.com/xtension/1.0"
xmlns="http://www.w3.org/TR/REC-html40">
<!-- FileName: nspc21-->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: Namespace Test -->
<!-- Purpose: Match namespace between stylesheet, in a select, and input.
Prefixes differ but the URIs are the same. -->
<xsl:template match = "doc">
<out>
<xsl:for-each select="em:foo">
<xsl:value-of select="."/>
</xsl:for-each>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace22.xml
Index: namespace22.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace22.xsl
Index: namespace22.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:lotus="http://www.lotus.com"
xmlns="http://www.w3.org/TR/REC-html40">
<!-- FileName: nspc22-->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1 Creating Elements (Namespace Node Inhertiance) -->
<!-- Purpose: Determine how namespaces are inherited down to succeeding
elements.
Currently this is not an atomic test. This needs more investagation.
-->
<xsl:template match = "doc">
<root>
<xsl:text>
</xsl:text>
<Out1/>
<xsl:element name="Element1"
namespace="http://www.element1.com"/><xsl:text>
</xsl:text>
<Out2/>
<xsl:element name="Element2"/><xsl:text>
</xsl:text>
<Out3/>
<xsl:element name="Element3"/>
</root>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace23.xml
Index: namespace23.xml
===================================================================
<?xml version="1.0"?>
<doc>
<a>
<b/>
</a>
<c/>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace23.xsl
Index: namespace23.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:bogus="http://www.bogus_ns.com"
xmlns:lotus="http://www.lotus.com"
xmlns:ped="www.ped.com">
<!-- FileName: nspc23 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.1 XSLT Namespace -->
<!-- Purpose: Testing an attribute not from the XSLT namespace, which is
legal provided that the expanded name of the attribute has a non-null
namespace URI. This tests for many xslt elements, apparent code path
are different for numerous elements. Should actually output a "bogus"
stylesheet. -->
<xsl:import href="test1.xsl" ped:a="a"/>
<xsl:include href="test2.xsl" ped:b="b"/>
<xsl:output method="xml" indent="yes" lotus:c="c"/>
<xsl:key name="sprtest" match="TestID" use="Name" lotus:d="d"/>
<xsl:strip-space elements="a" ped:e="e"/>
<xsl:preserve-space elements="b" lotus:f="f"/>
<xsl:variable name="Var1" ped:g="g">
DefaultValueOfVar1
</xsl:variable>
<xsl:param name="Param1" lotus:h="h">
DefaultValueOfParam1
</xsl:param>
<xsl:attribute-set name="my-style" ped:i="i">
<xsl:attribute name="my-size" lotus:j="j">12pt</xsl:attribute>
<xsl:attribute name="my-weight">bold</xsl:attribute>
</xsl:attribute-set>
<xsl:namespace-alias stylesheet-prefix="bogus" result-prefix="xsl" ped:k="k"/>
<xsl:decimal-format decimal-separator="," grouping-separator=" " lotus:l="l"
/>
<xsl:template match="/">
<bogus:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<bogus:template match="/">
<out>
Yeee ha
</out>
</bogus:template>
</bogus:stylesheet>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace24.xml
Index: namespace24.xml
===================================================================
<?xml version="1.0"?>
<elements>
<block>h1</block>
</elements>
1.1 xml-xalan/test/tests/conf/namespace/namespace24.xsl
Index: namespace24.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:axsl="http://www.w3.org/1999/XSL/TransAlias">
<xsl:output method="xml" indent="yes"/>
<!-- FileName: nspc24 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991118 -->
<!-- Section: 7.1.1 Literal Result Elements -->
<!-- Purpose: Test basic functionality of namespace-alias. Where xsl
elements
are created by using xsl:element command. -->
<xsl:namespace-alias stylesheet-prefix="axsl" result-prefix="xsl"/>
<xsl:template match="/">
<xsl:element name="axsl:stylesheet">
<xsl:attribute name="version">1.0</xsl:attribute>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template match="block">
<axsl:template match="{.}">
<axsl:apply-templates/>
</axsl:template>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace25.xml
Index: namespace25.xml
===================================================================
<?xml-stylesheet href="test.xsl" type="text/xsl"?>
<foo/>
1.1 xml-xalan/test/tests/conf/namespace/namespace25.xsl
Index: namespace25.xsl
===================================================================
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:foo="aaa">
<!-- FileName: nspc25 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.1 Literal Result Elements -->
<!-- Purpose: Simple case of creating LRE with nested namespace
declarations. Bugzilla[105]. -->
<xsl:template match="/">
<foo:stuff xmlns:foo="bbb">
<foo:stuff xmlns:foo="ccc"/>
</foo:stuff>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace26.xml
Index: namespace26.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc xmlns="http://xsl.lotus.com/ns2" xmlns:ns1="http://xsl.lotus.com/ns1">
<ns1:a attrib1="test" xmlns="http://xsl.lotus.com/ns2"
xmlns:ns1="http://xsl.lotus.com/ns1"/>
<b ns1:attrib2="test"/>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace26.xsl
Index: namespace26.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz1="http://xsl.lotus.com/ns1"
xmlns:baz2="http://xsl.lotus.com/ns2">
<!-- FileName: NSPC26 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.1 Node Set Functions. -->
<!-- Purpose: Test of 'local-name()' with zero arguments. -->
<xsl:template match="baz2:doc">
<out>
<xsl:value-of select="local-name()"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace27.xml
Index: namespace27.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc xmlns="http://xsl.lotus.com/ns2" xmlns:ns1="http://xsl.lotus.com/ns1">
<ns1:a attrib1="test" xmlns="http://xsl.lotus.com/ns2"
xmlns:ns1="http://xsl.lotus.com/ns1"/>
<b ns1:attrib2="test"/>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace27.xsl
Index: namespace27.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:baz1="http://xsl.lotus.com/ns1"
xmlns:baz2="http://xsl.lotus.com/ns2">
<!-- FileName: NSPC27 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.1 Node Set Functions. -->
<!-- Purpose: Test of 'namespace-uri()' with no arguments. -->
<xsl:template match="baz2:doc">
<out>
<xsl:value-of select="namespace-uri()"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace28.xml
Index: namespace28.xml
===================================================================
<?xml version="1.0"?>
<doc>
<item xmlns:bdd="http://buster.com"/>
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace28.xsl
Index: namespace28.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NSPC28 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.1 -->
<!-- Purpose: Test of local-name on namespace axis. -->
<!-- The local-name() function should work on this axis, returning the same
value as name().
The XML parser has freedom to present namespaces in any order it wants.
The input should have only one namespace if you want consistent results
across parsers. -->
<xsl:template match="doc">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template match="item">
<xsl:value-of select="local-name(namespace::*[1])"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace29.xml
Index: namespace29.xml
===================================================================
<?xml version="1.0"?>
<?a-pi some data?>
<doc>
test
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace29.xsl
Index: namespace29.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NSPC29 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.1 -->
<!-- Purpose: Test name functions on processing instructions. -->
<xsl:template match="/">
<out>
<xsl:apply-templates select="./processing-instruction()"/>
</out>
</xsl:template>
<xsl:template match="processing-instruction()">
<xsl:text>name|</xsl:text><xsl:value-of
select="name()"/><xsl:text>|</xsl:text>
<xsl:text>namespace-uri|</xsl:text><xsl:value-of
select="namespace-uri()"/><xsl:text>|</xsl:text>
<xsl:text>local-name|</xsl:text><xsl:value-of
select="local-name()"/><xsl:text>|</xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace30.xml
Index: namespace30.xml
===================================================================
<?xml version="1.0"?>
<doc>
<!-- This is the 1st comment -->
text-in-doc
<inner>
inner-text
<!-- This is the 2nd comment -->
<sub>subtext</sub>
</inner>
text-in-doc2
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace30.xsl
Index: namespace30.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NSPC30 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.1 -->
<!-- Purpose: Test name functions on comments. -->
<xsl:template match="/">
<out>
<xsl:apply-templates select=".//comment()"/>
</out>
</xsl:template>
<xsl:template match="comment()">
<xsl:text>
name|</xsl:text><xsl:value-of select="name()"/><xsl:text>|</xsl:text>
<xsl:text>namespace-uri|</xsl:text><xsl:value-of
select="namespace-uri()"/><xsl:text>|</xsl:text>
<xsl:text>local-name|</xsl:text><xsl:value-of
select="local-name()"/><xsl:text>|</xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace31.xml
Index: namespace31.xml
===================================================================
<?xml version="1.0"?>
<doc>
text-in-doc
<inner>
inner-text
<sub>subtext</sub>
</inner>
text-in-doc2
</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace31.xsl
Index: namespace31.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: NSPC31 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.1 -->
<!-- Purpose: Test name functions on text nodes. -->
<xsl:template match="/">
<out>
<xsl:apply-templates select=".//text()"/>
</out>
</xsl:template>
<xsl:template match="text()">
<xsl:text>
name|</xsl:text><xsl:value-of select="name()"/><xsl:text>|</xsl:text>
<xsl:text>namespace-uri|</xsl:text><xsl:value-of
select="namespace-uri()"/><xsl:text>|</xsl:text>
<xsl:text>local-name|</xsl:text><xsl:value-of
select="local-name()"/><xsl:text>|</xsl:text>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace32.xml
Index: namespace32.xml
===================================================================
<?xml version="1.0"?>
<a xmlns="test"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
</a>
1.1 xml-xalan/test/tests/conf/namespace/namespace32.xsl
Index: namespace32.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:tst="test"
exclude-result-prefixes="tst">
<!-- FileName: nspc32 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 5.4 -->
<!-- Purpose: Test of local-name() on default namespace declaration. -->
<xsl:template match="/tst:a">
<out>
<xsl:value-of
select="local-name(namespace::*[string()='http://www.w3.org/1999/XMLSchema-instance'])"/>,
<xsl:value-of select="local-name(namespace::*[string()='test'])"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace33.xml
Index: namespace33.xml
===================================================================
<?xml version="1.0"?>
<docs>
<doc xmlns:ext="http://somebody.elses.extension">
<section xmlns:foo="http://foo.com">
<inner xmlns:whiz="http://whiz.com/special/page"/>
</section>
</doc>
</docs>
1.1 xml-xalan/test/tests/conf/namespace/namespace33.xsl
Index: namespace33.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" >
<!-- FileName: NSPC33 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 4.1 -->
<!-- Purpose: Test of namespace-uri() on namespaces. -->
<xsl:template match="/">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template match="*">
<xsl:text>Namespaces for </xsl:text><xsl:value-of
select="name(.)"/><xsl:text>:</xsl:text>
<xsl:for-each select="namespace::*">
<xsl:text>|</xsl:text><xsl:value-of
select="namespace-uri(.)"/><xsl:text>;</xsl:text>
</xsl:for-each>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace34.xml
Index: namespace34.xml
===================================================================
<?xml version="1.0"?>
<a xmlns="test"
xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance">
</a>
1.1 xml-xalan/test/tests/conf/namespace/namespace34.xsl
Index: namespace34.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:tst="test"
exclude-result-prefixes="tst">
<!-- FileName: NSPC34 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 5.4 -->
<!-- Purpose: Test of namespace-uri() on default namespace declaration. -->
<!-- Part 4 of the Namespaces in XML spec says "The prefix xmlns is used
only for
namespace bindings and is not itself bound to any namespace name. -->
<xsl:template match="/tst:a">
<out>
<xsl:value-of
select="namespace-uri(namespace::*[string()='http://www.w3.org/1999/XMLSchema-instance'])"/>,
<xsl:value-of select="namespace-uri(namespace::*[string()='test'])"/>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace35.xml
Index: namespace35.xml
===================================================================
<?xml version="1.0"?>
<thisisroot>
</thisisroot>
1.1 xml-xalan/test/tests/conf/namespace/namespace35.xsl
Index: namespace35.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:axsl="http://www.w3.org/1999/XSL/TransformAlias"
version="1.0">
<xsl:namespace-alias result-prefix="xsl" stylesheet-prefix="axsl" />
<xsl:output method="xml" indent="yes"/>
<!-- FileName: namespace35 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.4 -->
<!-- Purpose: Get xmlns declaration attached to outermost LRE.
Still unclear if prefix "axsl" should also be literal. -->
<xsl:template match="/">
<axsl:template match="/"/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/test1.xsl
Index: test1.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- FileName: test1 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.1 XSLT Namespace -->
<!-- Purpose: Used by nspc23. -->
<xsl:template match="/">
<test1/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/impnspc13.xsl
Index: impnspc13.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml"/>
<!-- FileName: NSPC13imp -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991008 -->
<!-- Section: 2.1 XSLT Namespace. -->
<!-- Purpose: This stylesheet is being imported by nspc13 which has the
namespace
prefix set to 'ped'. Testing that this setup with two different
namespaces
is not evil. -->
<xsl:template match="doc" priority="1.0">
<out>
<xsl:value-of select="'In Import: Testing '"/>
<xsl:for-each select="*">
<xsl:value-of select="."/><xsl:text> </xsl:text>
</xsl:for-each>
<xsl:text>

</xsl:text>
<xsl:call-template name="ThatTemp">
<xsl:with-param name="sam">quos</xsl:with-param>
</xsl:call-template>
</out>
</xsl:template>
<xsl:template name="ThatOtherTemp">
<xsl:param name="sam">bo</xsl:param>
<xsl:copy-of select="$sam"/>
</xsl:template>
<xsl:template name="ThatForthTemp">
<xsl:param name="sam">bo</xsl:param>
Imported xmlns:xsl <xsl:copy-of select="$sam"/>
</xsl:template>
</xsl:stylesheet>