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...@locus.apache.org on 2000/11/27 19:57:33 UTC
cvs commit: xml-xalan/test/tests/conf/numbering/err numberingerr07.xsl numberingerr01.xsl numberingerr02.xml numberingerr02.xsl numberingerr03.xml numberingerr03.xsl numberingerr04.xml numberingerr04.xsl numberingerr05.xml numberingerr05.xsl numberingerr06.xml numberingerr06.xsl numberingerr07.xml numberingerr01.xml
dmarston 00/11/27 10:57:30
Added: test/tests/conf/numbering/err numberingerr07.xsl
numberingerr01.xsl numberingerr02.xml
numberingerr02.xsl numberingerr03.xml
numberingerr03.xsl numberingerr04.xml
numberingerr04.xsl numberingerr05.xml
numberingerr05.xsl numberingerr06.xml
numberingerr06.xsl numberingerr07.xml
numberingerr01.xml
Log:
Conformance test group for xsl:number (error cases), first batch
Revision Changes Path
1.1 xml-xalan/test/tests/conf/numbering/err/numberingerr07.xsl
Index: numberingerr07.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- CaseName: numberingerr07 -->
<!-- Author: David Marston -->
<!-- Purpose: Put xsl:number at top level, which is illegal. -->
<!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(stylesheet-element)/p[3]/text()[1]" -->
<!-- Scenario: operation="message" StandardError="xsl:number not allowed inside a stylesheet" -->
<xsl:number count="item" from="ol"/>
<xsl:template match="doc">
<out>This should fail</out>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numbering/err/numberingerr01.xsl
Index: numberingerr01.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- CaseName: numberingerr01 -->
<!-- Author: David Marston -->
<!-- Purpose: Test of excessive size of grouping-separator. -->
<!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(convert)/p[6]/text()[1]" -->
<!-- Scenario: operation="message" StandardError="grouping-separator must be one character long." -->
<xsl:template match="doc">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template match="note">
<xsl:number level="any" from="chapter" format="(1) " grouping-size="2" grouping-separator="toobig" />
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numbering/err/numberingerr02.xml
Index: numberingerr02.xml
===================================================================
<?xml version="1.0"?>
<doc>
<chapter>
<note>aaa</note>
<note>bbb</note>
<note>ccc</note>
</chapter>
<chapter>
<note>ddd</note>
<note>eee</note>
<note>fff</note>
</chapter>
</doc>
1.1 xml-xalan/test/tests/conf/numbering/err/numberingerr02.xsl
Index: numberingerr02.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- CaseName: numberingerr02 -->
<!-- Author: David Marston -->
<!-- Purpose: Test of bad value for level attribute. -->
<!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(number)/ulist[1]/item[1]/p[1]/text()[1]" -->
<!-- Scenario: operation="message" StandardError="Bad value on level attribute: sides" -->
<xsl:template match="doc">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template match="note">
<xsl:number level="sides" from="chapter" format="(1) "/>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numbering/err/numberingerr03.xml
Index: numberingerr03.xml
===================================================================
<?xml version="1.0"?>
<doc>
<chapter>
<note>aaa</note>
<note>bbb</note>
<note>ccc</note>
<note>ddd</note>
<note>eee</note>
<note>fff</note>
<note>ggg</note>
<note>hhh</note>
<note>iii</note>
<note>jjj</note>
<note>kkk</note>
<note>lll</note>
<note>mmm</note>
<note>nnn</note>
<note>ooo</note>
<note>ppp</note>
<note>qqq</note>
<note>rrr</note>
<note>sss</note>
<note>ttt</note>
<note>uuu</note>
</chapter>
<chapter>
<note>ddd</note>
<note>eee</note>
<note>fff</note>
</chapter>
</doc>
1.1 xml-xalan/test/tests/conf/numbering/err/numberingerr03.xsl
Index: numberingerr03.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- CaseName: numberingerr03 -->
<!-- Author: David Marston -->
<!-- Purpose: Test of bad specification for letter-value. -->
<!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(convert)/p[5]/text()[1]" -->
<!-- Scenario: operation="message" StandardError="Bad value on letter-value attribute" -->
<xsl:template match="doc">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template match="note">
<xsl:number level="any" from="chapter" format="α" letter-value="invalid"/>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numbering/err/numberingerr04.xml
Index: numberingerr04.xml
===================================================================
<?xml version="1.0"?>
<doc>
<note>aaa</note>
<note>bbb</note>
<note>ccc</note>
<chapter>
<note>ddd</note>
<note>eee</note>
<note>fff</note>
</chapter>
<note>ggg</note>
<note>hhh</note>
<note>iii</note>
<chapter>
<note>jjj</note>
<note>kkk</note>
<note>lll</note>
</chapter>
<note>mmm</note>
<note>nnn</note>
<note>ooo</note>
</doc>
1.1 xml-xalan/test/tests/conf/numbering/err/numberingerr04.xsl
Index: numberingerr04.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- CaseName: numberingerr04 -->
<!-- Author: David Marston -->
<!-- Purpose: Test invalid path specified in from. -->
<!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(number)/ulist[1]/item[3]/p[1]/text()[1]" -->
<!-- Scenario: operation="message" StandardError="from attribute must be a node-set" -->
<xsl:template match="doc">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template match="note">
<xsl:number level="single" from="true()" format="(1) "/>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numbering/err/numberingerr05.xml
Index: numberingerr05.xml
===================================================================
<?xml version="1.0"?>
<doc>
<title>Test for source tree numbering</title>
<a>
<title>Level A</title>
<b>
<title>Level B</title>
</b>
<b>
<title>Level B</title>
<c>
<title>Level C</title>
</c>
</b>
<b>
<title>Level B</title>
<c>
<title>Level C</title>
<d>
<title>Level D</title>
</d>
</c>
</b>
</a>
<a>
<title>Level A</title>
<b>
<title>Level B</title>
<c>
<title>Level C</title>
<d>
<title>Level D</title>
<e>
<title>Level E</title>
</e>
</d>
</c>
</b>
</a>
<a>
<title>Level A</title>
<b>
<title>Level B</title>
<c>
<title>Level C</title>
<d>
<title>Level D</title>
<e>
<title>Level E</title>
</e>
</d>
<d>
<title>Level D</title>
<e>
<title>Level E</title>
</e>
</d>
</c>
<c>
<title>Level C</title>
<d>
<title>Level D</title>
</d>
</c>
</b>
<b>
<title>Level B</title>
</b>
</a>
</doc>
1.1 xml-xalan/test/tests/conf/numbering/err/numberingerr05.xsl
Index: numberingerr05.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- CaseName: numberingerr05 -->
<!-- Author: David Marston -->
<!-- Purpose: Test invalid path specified in count. -->
<!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(number)/ulist[1]/item[2]/p[1]/text()[1]" -->
<!-- Scenario: operation="message" StandardError="count attribute must be a node-set" -->
<xsl:template match="doc">
<out><xsl:apply-templates/></out>
</xsl:template>
<xsl:template match="title">
<xsl:number level="any" count="true()" format="1"/><xsl:text>: </xsl:text><xsl:value-of select="."/><xsl:text>
</xsl:text>
</xsl:template>
<xsl:template match="text()"><!-- To suppress empty lines --><xsl:apply-templates/></xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numbering/err/numberingerr06.xml
Index: numberingerr06.xml
===================================================================
<?xml version="1.0"?>
<doc>
<chapter>
<note>aaa</note>
<note>bbb</note>
<note>ccc</note>
<note>ddd</note>
<note>eee</note>
<note>fff</note>
<note>ggg</note>
<note>hhh</note>
<note>iii</note>
<note>jjj</note>
<note>kkk</note>
<note>lll</note>
<note>mmm</note>
<note>nnn</note>
<note>ooo</note>
<note>ppp</note>
<note>qqq</note>
<note>rrr</note>
<note>sss</note>
<note>ttt</note>
<note>uuu</note>
<note>vvv</note>
<note>www</note>
<note>xxx</note>
<note>yyy</note>
</chapter>
</doc>
1.1 xml-xalan/test/tests/conf/numbering/err/numberingerr06.xsl
Index: numberingerr06.xsl
===================================================================
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- CaseName: numberingerr06 -->
<!-- Author: David Marston -->
<!-- Purpose: Test of attempt to express negative numbers in Roman numerals. -->
<!-- SpecCitation: Rec="XSLT" Version="1.0" type="OASISptr1" place="id(convert)/ulist[1]/item[5]/p[1]/text()[1]" -->
<!-- Scenario: operation="message" StandardError="I and i can only format positive numbers" -->
<xsl:template match="doc">
<out>
<xsl:apply-templates/>
</out>
</xsl:template>
<xsl:template match="chapter">
<xsl:for-each select="note">
<xsl:number format="(I) " value="position() -10" />
<xsl:value-of select="."/><xsl:text> </xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
1.1 xml-xalan/test/tests/conf/numbering/err/numberingerr07.xml
Index: numberingerr07.xml
===================================================================
<?xml version="1.0"?>
<doc>
<ol>
<item>aaa</item>
<item>bbb</item>
<item>ccc</item>
<item>ddd</item>
</ol>
</doc>
1.1 xml-xalan/test/tests/conf/numbering/err/numberingerr01.xml
Index: numberingerr01.xml
===================================================================
<?xml version="1.0"?>
<doc>
<chapter>
<note>aaa</note>
<note>bbb</note>
<note>ccc</note>
</chapter>
<chapter>
<note>aaa</note>
<note>bbb</note>
<note>ccc</note>
<note>ddd</note>
<note>eee</note>
<note>fff</note>
<note>ggg</note>
<note>hhh</note>
<note>iii</note>
<note>jjj</note>
<note>kkk</note>
<note>lll</note>
<note>mmm</note>
<note>nnn</note>
<note>ooo</note>
<note>ppp</note>
<note>qqq</note>
<note>rrr</note>
<note>sss</note>
<note>ttt</note>
<note>uuu</note>
<note>vvv</note>
<note>www</note>
<note>xxx</note>
<note>yyy</note>
<note>aab</note>
<note>bbb</note>
<note>ccb</note>
<note>ddb</note>
<note>eeb</note>
<note>ffb</note>
<note>ggb</note>
<note>hhb</note>
<note>iib</note>
<note>jjb</note>
<note>kkb</note>
<note>llb</note>
<note>mmb</note>
<note>nnb</note>
<note>oob</note>
<note>ppb</note>
<note>qqb</note>
<note>rrb</note>
<note>ssb</note>
<note>ttb</note>
<note>uub</note>
<note>vvb</note>
<note>wwb</note>
<note>xxb</note>
<note>yyb</note>
<note>aac</note>
<note>bbc</note>
<note>ccc</note>
<note>ddc</note>
<note>eec</note>
<note>ffc</note>
<note>ggc</note>
<note>hhc</note>
<note>iic</note>
<note>jjc</note>
<note>kkc</note>
<note>llc</note>
<note>mmc</note>
<note>nnc</note>
<note>ooc</note>
<note>ppc</note>
<note>qqc</note>
<note>rrc</note>
<note>ssc</note>
<note>ttc</note>
<note>uuc</note>
<note>vvc</note>
<note>wwc</note>
<note>xxc</note>
<note>yyc</note>
<note>aad</note>
<note>bbd</note>
<note>ccd</note>
<note>ddd</note>
<note>eed</note>
<note>ffd</note>
<note>ggd</note>
<note>hhd</note>
<note>iid</note>
<note>jjd</note>
<note>kkd</note>
<note>lld</note>
<note>mmd</note>
<note>nnd</note>
<note>ood</note>
<note>ppd</note>
<note>qqd</note>
<note>rrd</note>
<note>ssd</note>
<note>ttd</note>
<note>uud</note>
<note>vvd</note>
<note>wwd</note>
<note>xxd</note>
<note>yyd</note>
<note>aae</note>
<note>bbe</note>
<note>cce</note>
<note>dde</note>
<note>eee</note>
<note>ffe</note>
<note>gge</note>
<note>hhe</note>
<note>iie</note>
<note>jje</note>
<note>kke</note>
<note>lle</note>
<note>mme</note>
<note>nne</note>
<note>ooe</note>
<note>ppe</note>
<note>qqe</note>
<note>rre</note>
<note>sse</note>
<note>tte</note>
<note>uue</note>
<note>vve</note>
<note>wwe</note>
<note>xxe</note>
<note>yye</note>
<note>aaf</note>
<note>bbf</note>
<note>ccf</note>
<note>ddf</note>
<note>eef</note>
<note>fff</note>
<note>ggf</note>
<note>hhf</note>
<note>iif</note>
<note>jjf</note>
<note>kkf</note>
<note>llf</note>
<note>mmf</note>
<note>nnf</note>
<note>oof</note>
<note>ppf</note>
<note>qqf</note>
<note>rrf</note>
<note>ssf</note>
<note>ttf</note>
<note>uuf</note>
<note>vvf</note>
<note>wwf</note>
<note>xxf</note>
<note>yyf</note>
<note>aag</note>
<note>bbg</note>
<note>ccg</note>
<note>ddg</note>
<note>eeg</note>
<note>ffg</note>
<note>ggg</note>
<note>hhg</note>
<note>iig</note>
<note>jjg</note>
<note>kkg</note>
<note>llg</note>
<note>mmg</note>
<note>nng</note>
<note>oog</note>
<note>ppg</note>
<note>qqg</note>
<note>rrg</note>
<note>ssg</note>
<note>ttg</note>
<note>uug</note>
<note>vvg</note>
<note>wwg</note>
<note>xxg</note>
<note>yyg</note>
<note>aah</note>
<note>bbh</note>
<note>cch</note>
<note>ddh</note>
<note>eeh</note>
<note>ffh</note>
<note>ggh</note>
<note>hhh</note>
<note>iih</note>
<note>jjh</note>
<note>kkh</note>
<note>llh</note>
<note>mmh</note>
<note>nnh</note>
<note>ooh</note>
<note>pph</note>
<note>qqh</note>
<note>rrh</note>
<note>ssh</note>
<note>tth</note>
<note>uuh</note>
<note>vvh</note>
<note>wwh</note>
<note>xxh</note>
<note>yyh</note>
<note>aai</note>
<note>bbi</note>
<note>cci</note>
<note>ddi</note>
<note>eei</note>
<note>ffi</note>
<note>ggi</note>
<note>hhi</note>
<note>iii</note>
<note>jji</note>
<note>kki</note>
<note>lli</note>
<note>mmi</note>
<note>nni</note>
<note>ooi</note>
<note>ppi</note>
<note>qqi</note>
<note>rri</note>
<note>ssi</note>
<note>tti</note>
<note>uui</note>
<note>vvi</note>
<note>wwi</note>
<note>xxi</note>
<note>yyi</note>
<note>aaj</note>
<note>bbj</note>
<note>ccj</note>
<note>ddj</note>
<note>eej</note>
<note>ffj</note>
<note>ggj</note>
<note>hhj</note>
<note>iij</note>
<note>jjj</note>
<note>kkj</note>
<note>llj</note>
<note>mmj</note>
<note>nnj</note>
<note>ooj</note>
<note>ppj</note>
<note>qqj</note>
<note>rrj</note>
<note>ssj</note>
<note>ttj</note>
<note>uuj</note>
<note>vvj</note>
<note>wwj</note>
<note>xxj</note>
<note>yyj</note>
<note>aak</note>
<note>bbk</note>
<note>cck</note>
<note>ddk</note>
<note>eek</note>
<note>ffk</note>
<note>ggk</note>
<note>hhk</note>
<note>iik</note>
<note>jjk</note>
<note>kkk</note>
<note>llk</note>
<note>mmk</note>
<note>nnk</note>
<note>ook</note>
<note>ppk</note>
<note>qqk</note>
<note>rrk</note>
<note>ssk</note>
<note>ttk</note>
<note>uuk</note>
<note>vvk</note>
<note>wwk</note>
<note>xxk</note>
<note>yyk</note>
<note>aal</note>
<note>bbl</note>
<note>ccl</note>
<note>ddl</note>
<note>eel</note>
<note>ffl</note>
<note>ggl</note>
<note>hhl</note>
<note>iil</note>
<note>jjl</note>
<note>kkl</note>
<note>lll</note>
<note>mml</note>
<note>nnl</note>
<note>ool</note>
<note>ppl</note>
<note>qql</note>
<note>rrl</note>
<note>ssl</note>
<note>ttl</note>
<note>uul</note>
<note>vvl</note>
<note>wwl</note>
<note>xxl</note>
<note>yyl</note>
<note>aam</note>
<note>bbm</note>
<note>ccm</note>
<note>ddm</note>
<note>eem</note>
<note>ffm</note>
<note>ggm</note>
<note>hhm</note>
<note>iim</note>
<note>jjm</note>
<note>kkm</note>
<note>llm</note>
<note>mmm</note>
<note>nnm</note>
<note>oom</note>
<note>ppm</note>
<note>qqm</note>
<note>rrm</note>
<note>ssm</note>
<note>ttm</note>
<note>uum</note>
<note>vvm</note>
<note>wwm</note>
<note>xxm</note>
<note>yym</note>
</chapter>
</doc>