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/09/08 00:22:20 UTC
cvs commit: xml-xalan/test/tests/conf/namespace namespace96.xsl namespace120.xsl namespace121.xml namespace121.xsl namespace122.xml namespace122.xsl namespace123.xml namespace123.xsl namespace124.xml namespace124.xsl namespace48.xml namespace48.xsl namespace55.xml namespace55.xsl namespace96.xml namespace120.xml
dmarston 01/09/07 15:22:20
Added: test/tests/conf/namespace namespace96.xsl namespace120.xsl
namespace121.xml namespace121.xsl namespace122.xml
namespace122.xsl namespace123.xml namespace123.xsl
namespace124.xml namespace124.xsl namespace48.xml
namespace48.xsl namespace55.xml namespace55.xsl
namespace96.xml namespace120.xml
Log:
New cases: namespace48 shows recovery from a bad name,
others deal with combination of name="p1:whatever" and
namespace="URI" with various other URIs in the way.
Revision Changes Path
1.1 xml-xalan/test/tests/conf/namespace/namespace96.xsl
Index: namespace96.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:p1="testguys.com">
<!-- FileName: namespace96 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Issue prefixed name in current default namespace, rather than the one assigned to tha prefix at outer level -->
<!-- NOTE: Processor developers could legitimately disagree about where the default name
has to be set in 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="p1:foo" namespace="other.com" xmlns="other.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace120.xsl
Index: namespace120.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="base.test">
<!-- FileName: namespace120 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Set a prefixed name to an NS not among those in scope; prefix was in use. -->
<xsl:template match = "/">
<out xmlns:p1="xyz">
<xsl:element namespace="new" name="p1:foo">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace121.xml
Index: namespace121.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace121.xsl
Index: namespace121.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="base.test">
<!-- FileName: namespace121 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Reset prefix from innermost URI to outer (default) one. -->
<xsl:template match = "/">
<out xmlns:p1="xyz">
<xsl:element namespace="base.test" name="p1:foo">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace122.xml
Index: namespace122.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace122.xsl
Index: namespace122.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="base.test">
<!-- FileName: namespace122 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Request prefix that is already mapped to requested NS, default set globally. -->
<xsl:template match = "/">
<out xmlns:p1="xyz">
<xsl:element namespace="xyz" name="p1:foo">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace123.xml
Index: namespace123.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace123.xsl
Index: namespace123.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="base.test">
<!-- FileName: namespace123 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Set a prefixed name to same NS as outer default, prefix is new. -->
<xsl:template match = "/">
<out xmlns:p1="xyz">
<xsl:element namespace="base.test" name="baz:foo">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace124.xml
Index: namespace124.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace124.xsl
Index: namespace124.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns="base.test">
<!-- FileName: namespace124 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.2 Creating Elements -->
<!-- Creator: David Marston -->
<!-- Purpose: Set a prefixed name to same NS as other prefix already had, prefix is new. -->
<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/namespace48.xml
Index: namespace48.xml
===================================================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace48.xsl
Index: namespace48.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:err="www.error.com">
<!-- FileName: namespace48 -->
<!-- Document: http://www.w3.org/TR/xpath -->
<!-- DocVersion: 19991116 -->
<!-- Section: 2.3 -->
<!-- Creator: David Marston -->
<!-- Discretionary: name="element-name-not-QName" choice="pass-through" -->
<!-- Purpose: Test for error recovery when assigned name ends with : (has null local-part) -->
<xsl:template match = "doc">
<out>
<xsl:element name="err:">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace55.xml
Index: namespace55.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace55.xsl
Index: namespace55.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- FileName: namespace55 -->
<!-- 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; namespace matches default set locally. -->
<!-- NOTE: Processor developers could legitimately disagree about where the default name
has to be reset in the result. It must be in effect for yyy, but could be for foo
as well. The spec doesn't address this point.
On the other hand, p2 must be set to "barz.com" for the yyy element. -->
<xsl:template match = "/">
<out>
<xsl:element name="p2:foo" namespace="other.com" xmlns="other.com" xmlns:p2="barz.com">
<yyy/>
</xsl:element>
</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace96.xml
Index: namespace96.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
1.1 xml-xalan/test/tests/conf/namespace/namespace120.xml
Index: namespace120.xml
===================================================================
<?xml version="1.0"?>
<doc>x</doc>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org