pauldick 01/02/12 12:19:05
Added: test/tests/conf/namespace namespace44.xml namespace44.xsl
namespace45.xml namespace45.xsl namespace46.xml
namespace46.xsl
Log:
Namespace creation on attributes
Revision Changes Path
1.1 xml-xalan/test/tests/conf/namespace/namespace44.xml
Index: namespace44.xml
===================================================================
<?xml version='1.0' encoding="ISO-8859-1"?>
<one>
<two>
<three>drei</three>
</two>
</one>
1.1 xml-xalan/test/tests/conf/namespace/namespace44.xsl
Index: namespace44.xsl
===================================================================
<?xml version='1.0' encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
version='1.0'
xmlns:fiscus="http://www.fiscus.de">
<!-- FileName: namespace44 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.3 Creating Attributes -->
<!-- Creator: Philip Strube -->
<!-- Purpose: Test for resetting of a specified default namespace. -->
<xsl:output method="xml"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="*">
<xsl:copy>
<xsl:attribute name="fiscus:objectID" namespace="http://www.fiscus.de">
<!-- <xsl:attribute name="fiscus:objectID"> -->
<!-- <xsl:attribute name="objectID" namespace="http://www.fiscus.de"> -->
<xsl:number level="any" count="*"/>
</xsl:attribute>
<xsl:apply-templates
select="@*|node()|comment()|processing-instruction()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace45.xml
Index: namespace45.xml
===================================================================
<?xml version='1.0' encoding="ISO-8859-1"?>
<one>
<two>
<three>drei</three>
</two>
</one>
1.1 xml-xalan/test/tests/conf/namespace/namespace45.xsl
Index: namespace45.xsl
===================================================================
<?xml version='1.0' encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
version='1.0'
xmlns:fiscus="http://www.fiscus.de">
<!-- FileName: namespace45 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.3 Creating Attributes -->
<!-- Creator: Philip Strube -->
<!-- Purpose: Test for resetting of a specified default namespace. -->
<xsl:output method="xml"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="*">
<xsl:copy>
<xsl:attribute name="fiscus:objectID">
<xsl:number level="any" count="*"/>
</xsl:attribute>
<xsl:apply-templates
select="@*|node()|comment()|processing-instruction()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/namespace/namespace46.xml
Index: namespace46.xml
===================================================================
<?xml version='1.0' encoding="ISO-8859-1"?>
<one>
<two>
<three>drei</three>
</two>
</one>
1.1 xml-xalan/test/tests/conf/namespace/namespace46.xsl
Index: namespace46.xsl
===================================================================
<?xml version='1.0' encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
version='1.0'>
<!-- FileName: namespace46 -->
<!-- Document: http://www.w3.org/TR/xslt -->
<!-- DocVersion: 19991116 -->
<!-- Section: 7.1.3 Creating Attributes -->
<!-- Creator: Philip Strube -->
<!-- Purpose: Test for resetting of a specified default namespace. -->
<xsl:output method="xml"/>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="*">
<xsl:copy>
<xsl:attribute name="objectID" namespace="http://www.fiscus.de">
<xsl:number level="any" count="*"/>
</xsl:attribute>
<xsl:apply-templates
select="@*|node()|comment()|processing-instruction()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>