dmarston 01/10/04 15:24:08
Added: test/tests/conf/namespace namespace113a.xsl namespace106.xsl
namespace110.xml namespace110.xsl namespace113.xml
namespace113.xsl namespace106.xml
Log:
A miscellany of namespace testing.
Revision Changes Path
1.1 xml-xalan/test/tests/conf/namespace/namespace113a.xsl
Index: namespace113a.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:ixsl="http://www.w3.org/1999/XSL/TransformAlias"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- FileName: namespace113a -->
<!-- Purpose: Included stylesheet for test case namespace113. -->
<xsl:template match="gen_a">
<ixsl:template>
<xsl:attribute name="match"><xsl:value-of select="@name"/></xsl:attribute>
<ixsl:text>Recognized <xsl:value-of select="@name"/></ixsl:text>
</ixsl:template>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace106.xsl
Index: namespace106.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: namespace106 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test recovery when assigned name begins with : (has null
namespace) -->
<xsl:template match = "doc">
<out>
<xsl:element name=":foo">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace110.xml
Index: namespace110.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace110.xsl
Index: namespace110.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: namespace110 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 -->
<!-- Creator: David Marston -->
<!-- Purpose: Test for invalid namespace URI; spec says "not syntactically
legal URI" is NOT error. -->
<xsl:template match = "doc">
<out>
<xsl:element name="ouch:foo" xmlns:ouch=""">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace113.xml
Index: namespace113.xml
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<source>
<gen_a name="foo"/>
<gen_b name="bar"/>
</source>
1.1 xml-xalan/test/tests/conf/namespace/namespace113.xsl
Index: namespace113.xsl
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:ixsl="http://www.w3.org/1999/XSL/TransformAlias"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- FileName: namespace113 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.1 Literal Result Elements -->
<!-- Creator: Gary L Peskin, based on test case from Jens Lautenbacher -->
<!-- Purpose: Verify that namespace-alias is honored in included stylesheets.
-->
<xsl:include href="namespace113a.xsl"/>
<xsl:namespace-alias stylesheet-prefix="ixsl" result-prefix="xsl"/>
<xsl:template match="/">
<ixsl:stylesheet version="1.0">
<xsl:apply-templates/>
</ixsl:stylesheet>
</xsl:template>
<xsl:template match="gen_b">
<ixsl:template>
<xsl:attribute name="match"><xsl:value-of select="@name"/></xsl:attribute>
<ixsl:text>Recognized <xsl:value-of select="@name"/></ixsl:text>
</ixsl:template>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace106.xml
Index: namespace106.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>x</doc>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]