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 2002/06/11 20:25:01 UTC
cvs commit: xml-xalan/test/tests/conf/numbering numbering93.xsl numbering92.xsl numbering93.xml numbering92.xml
dmarston 2002/06/11 11:25:01
Added: test/tests/conf/numbering numbering93.xsl numbering92.xsl
numbering93.xml numbering92.xml
Log:
Atomic tests for bugzilla #6798
Revision Changes Path
1.1 xml-xalan/test/tests/conf/numbering/numbering93.xsl
Index: numbering93.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:b="z.test.com" exclude-result-prefixes="b">
<!-- CaseName: numbering93 -->
<!-- Creator: Ilene Seelemann -->
<!-- Purpose: Namespaced elements should work just like non-namespaced ones even when prefixes in source document and stylesheet are different. -->
<!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(number)/ulist[2]/item[1]/p[1]/text()[5]" -->
<!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(number)/ulist[1]/item[2]/p[1]/text()[3]" -->
<!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(number)/ulist[1]/item[3]/p[1]/text()[1]" -->
<!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(convert)/p[2]/text()[3]" -->
<!-- Scenario: operation="standard-XML" -->
<xsl:output method="xml" indent="no" encoding="UTF-8"/>
<xsl:template match="b:doc">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template match="b:note">
<xsl:element name="bnote">
<xsl:attribute name="number">
<xsl:number level="single" from="b:chapter"/>
</xsl:attribute>
<xsl:value-of select="."/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numbering/numbering92.xsl
Index: numbering92.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
xmlns:z="z.test.com" exclude-result-prefixes="z">
<!-- CaseName: numbering92 -->
<!-- Creator: Ilene Seelemann -->
<!-- Purpose: If the source document has a named default namespace, the counting (on xsl:number) should still work. -->
<!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(number)/ulist[2]/item[1]/p[1]/text()[5]" -->
<!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(number)/ulist[1]/item[2]/p[1]/text()[3]" -->
<!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(number)/ulist[1]/item[3]/p[1]/text()[1]" -->
<!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(convert)/p[2]/text()[3]" -->
<!-- Scenario: operation="standard-XML" -->
<xsl:output method="xml" indent="no" encoding="UTF-8"/>
<xsl:template match="z:doc">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template match="z:note">
<xsl:element name="znote">
<xsl:attribute name="number">
<xsl:number level="single" from="z:chapter"/>
</xsl:attribute>
<xsl:value-of select="."/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numbering/numbering93.xml
Index: numbering93.xml
===================================================================
<?xml version="1.0"?>
<z:doc xmlns:z="z.test.com">
<z:chapter>
<z:note>aaa</z:note>
<z:note>bbb</z:note>
<z:note>ccc</z:note>
</z:chapter>
<z:chapter>
<z:note>ddd</z:note>
<z:note>eee</z:note>
<z:note>fff</z:note>
</z:chapter>
</z:doc>
1.1 xml-xalan/test/tests/conf/numbering/numbering92.xml
Index: numbering92.xml
===================================================================
<?xml version="1.0"?>
<doc xmlns="z.test.com">
<chapter>
<note>aaa</note>
<note>bbb</note>
<note>ccc</note>
</chapter>
<chapter>
<note>ddd</note>
<note>eee</note>
<note>fff</note>
</chapter>
</doc>
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org