Skip to content

Commit 7013bed

Browse files
committed
trimming pending labels and adding line breaks
1 parent c4f7df5 commit 7013bed

File tree

9 files changed

+402
-134
lines changed

9 files changed

+402
-134
lines changed

htmlbook-xsl/xspec/chunk.xspec

Lines changed: 69 additions & 23 deletions
Large diffs are not rendered by default.

htmlbook-xsl/xspec/common.xspec

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1314,7 +1314,9 @@ sect5:none
13141314
</x:expect>
13151315
</x:scenario>
13161316

1317-
<x:scenario label="When process-headings is run on a section heading with $autogenerate.labels turned on" pending="We received the following error when trying to run this scenario: XTDE1425: Cannot find a matching 1-argument function named node-set(). There is no Saxon extension function with the local. We were using the Saxon JAR file version SAXON HE 9.5.1.2 and the script from https://github.com/xspec/xspec.">
1317+
<x:scenario label="When process-headings is run on a section heading with $autogenerate.labels turned on" pending="We received an error when trying to run this scenario.
1318+
We were using the Saxon JAR file version SAXON HE 9.5.1.2
1319+
and the script from https://github.com/xspec/xspec.">
13181320
<x:context mode="process-heading" select="/h:section/h:h1">
13191321
<x:param name="autogenerate.labels" select="1"/>
13201322
<section data-type="chapter">
@@ -1338,7 +1340,9 @@ sect5:none
13381340
</x:expect>
13391341
</x:scenario>
13401342

1341-
<x:scenario label="When process-headings is run on a div heading with $autogenerate.labels turned on" pending="We received the following error when trying to run this scenario: XTDE1425: Cannot find a matching 1-argument function named node-set(). There is no Saxon extension function with the local. We were using the Saxon JAR file version SAXON HE 9.5.1.2 and the script from https://github.com/xspec/xspec.">
1343+
<x:scenario label="When process-headings is run on a div heading with $autogenerate.labels turned on" pending="We received an error when trying to run this scenario.
1344+
We were using the Saxon JAR file version SAXON HE 9.5.1.2
1345+
and the script from https://github.com/xspec/xspec.">
13421346
<x:context mode="process-heading" select="/h:section/h:div/h:h1">
13431347
<x:param name="autogenerate.labels" select="1"/>
13441348
<section data-type="chapter">
@@ -1370,7 +1374,9 @@ sect5:none
13701374
</x:expect>
13711375
</x:scenario>
13721376

1373-
<x:scenario label="When process-headings is run on a table caption with $autogenerate.labels turned on" pending="We received the following error when trying to run this scenario: XTDE1425: Cannot find a matching 1-argument function named node-set(). There is no Saxon extension function with the local. We were using the Saxon JAR file version SAXON HE 9.5.1.2 and the script from https://github.com/xspec/xspec.">
1377+
<x:scenario label="When process-headings is run on a table caption with $autogenerate.labels turned on" pending="We received an error when trying to run this scenario.
1378+
We were using the Saxon JAR file version SAXON HE 9.5.1.2
1379+
and the script from https://github.com/xspec/xspec.">
13741380
<x:context mode="process-heading" select="/h:section/h:table/h:caption">
13751381
<x:param name="autogenerate.labels" select="1"/>
13761382
<x:param name="labeled-element-semantic-name" select="'table'"/>
@@ -1418,7 +1424,9 @@ sect5:none
14181424
</x:expect>
14191425
</x:scenario>
14201426

1421-
<x:scenario label="When process-headings is run on a figure caption with $autogenerate.labels turned on" pending="We received the following error when trying to run this scenario: XTDE1425: Cannot find a matching 1-argument function named node-set(). There is no Saxon extension function with the local. We were using the Saxon JAR file version SAXON HE 9.5.1.2 and the script from https://github.com/xspec/xspec.">
1427+
<x:scenario label="When process-headings is run on a figure caption with $autogenerate.labels turned on" pending="We received an error when trying to run this scenario.
1428+
We were using the Saxon JAR file version SAXON HE 9.5.1.2
1429+
and the script from https://github.com/xspec/xspec.">
14221430
<x:context mode="process-heading" select="/h:section/h:figure/h:figcaption">
14231431
<x:param name="autogenerate.labels" select="1"/>
14241432
<x:param name="labeled-element-semantic-name" select="'figure'"/>

htmlbook-xsl/xspec/elements.xspec

Lines changed: 117 additions & 39 deletions
Large diffs are not rendered by default.

htmlbook-xsl/xspec/epub.xspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414

1515
<!-- Test suite for epub.xsl -->
1616

17-
<x:scenario label="When a data-type attribute is matched" pending="We received the following error when trying to run this scenario: XTDE1425: XTDE1425 Cannot find a matching 1-argument function named is-chunk(). We were using the Saxon JAR file version SAXON HE 9.5.1.2 and the script from https://github.com/xspec/xspec.">
17+
<x:scenario label="When a data-type attribute is matched" pending="We received an error when trying to run this scenario.
18+
We were using the Saxon JAR file version SAXON HE 9.5.1.2
19+
and the script from https://github.com/xspec/xspec.">
1820
<x:context select="(/h:aside)[1]">
1921
<aside data-type="sidebar">
2022
<h5>Sidebar title</h5>

htmlbook-xsl/xspec/indexgen.xspec

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,27 @@
2121
</section>
2222
</x:context>
2323

24-
<x:scenario label="With autogenerate.xref.pagenum.style turned off" pending="We received the following error when trying to run this scenario: XTDE1425: Cannot find a matching 1-argument function named node-set(). There is no Saxon extension function with the local name node-set. We were using the Saxon JAR file version SAXON HE 9.5.1.2 and the script from https://github.com/xspec/xspec.">
24+
<x:scenario label="With autogenerate.xref.pagenum.style turned off" pending="We received an error when trying to run this scenario.
25+
We were using the Saxon JAR file version SAXON HE 9.5.1.2
26+
and the script from https://github.com/xspec/xspec.">
2527
<x:context select="(//h:a[@data-type='indexterm'])[1]" mode="reference">
2628
<x:param name="autogenerate.xref.pagenum.style" select="0"/>
2729
</x:context>
2830
<x:expect label="No indexentry XREFs should have data-xref-pagenum-style attributes" test="not(exists($x:result[@data-xref-pagenum-style]))"/>
2931
</x:scenario>
3032

31-
<x:scenario label="With autogenerate.xref.pagenum.style turned on" pending="We received the following error when trying to run this scenario: XTDE1425: Cannot find a matching 1-argument function named node-set(). There is no Saxon extension function with the local name node-set. We were using the Saxon JAR file version SAXON HE 9.5.1.2 and the script from https://github.com/xspec/xspec.">
33+
<x:scenario label="With autogenerate.xref.pagenum.style turned on" pending="We received an error when trying to run this scenario.
34+
We were using the Saxon JAR file version SAXON HE 9.5.1.2
35+
and the script from https://github.com/xspec/xspec.">
3236
<x:context>
3337
<x:param name="autogenerate.xref.pagenum.style" select="1"/>
3438
</x:context>
3539
<x:expect label="All indexentry XREFs should have data-xref-pagenum-style attributes" test="count(//h:a) &gt; 0 and not(exists(//h:a[not(@data-xref-pagenum-style)]))"/>
3640
</x:scenario>
3741

38-
<x:scenario label="With html4.structural.elements turned off" pending="We received the following error when trying to run this scenario: XTDE1425: Cannot find a matching 1-argument function named node-set(). There is no Saxon extension function with the local name node-set. We were using the Saxon JAR file version SAXON HE 9.5.1.2 and the script from https://github.com/xspec/xspec.">
42+
<x:scenario label="With html4.structural.elements turned off" pending="We received an error when trying to run this scenario.
43+
We were using the Saxon JAR file version SAXON HE 9.5.1.2
44+
and the script from https://github.com/xspec/xspec.">
3945
<x:context>
4046
<x:param name="html4.structural.elements" select="0"/>
4147
</x:context>
@@ -45,7 +51,9 @@
4551
<x:expect label="There should be no div for backward compatibility in the output" test="not(exists($x:result[.//h:div[@class='index']]))"/>
4652
</x:scenario>
4753

48-
<x:scenario label="With html4.structural.elements turned on" pending="We received the following error when trying to run this scenario: XTDE1425: Cannot find a matching 1-argument function named node-set(). There is no Saxon extension function with the local name node-set. We were using the Saxon JAR file version SAXON HE 9.5.1.2 and the script from https://github.com/xspec/xspec.">
54+
<x:scenario label="With html4.structural.elements turned on" pending="We received an error when trying to run this scenario.
55+
We were using the Saxon JAR file version SAXON HE 9.5.1.2
56+
and the script from https://github.com/xspec/xspec.">
4957
<x:context>
5058
<x:param name="html4.structural.elements" select="1"/>
5159
</x:context>

htmlbook-xsl/xspec/ncx.xspec

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ sect5:none
2929

3030
<x:param name="ncx.toc.section.depth" select="2"/>
3131

32-
<x:scenario label="When generating full NCX TOC content" pending="We received the following error when trying to run this scenario: XTDE1425 Cannot find a matching 1-argument function named node-set(). There is no Saxon extension function with the local name node-set. We were using the Saxon JAR file version SAXON HE 9.5.1.2 and the script from https://github.com/xspec/xspec.">
32+
<x:scenario label="When generating full NCX TOC content" pending="We received an error when trying to run this scenario.
33+
We were using the Saxon JAR file version SAXON HE 9.5.1.2
34+
and the script from https://github.com/xspec/xspec.">
3335
<x:call template="generate.ncx.toc.content">
3436
<!-- Test XSL is output to a subdir of the .xspec dir, which also contains skeleton, so relative path contains .. to go up a directory level -->
3537
<x:param name="toc.node" select="document('../skeleton.html')/*"/>
@@ -73,7 +75,9 @@ sect5:none
7375

7476
</x:scenario>
7577

76-
<x:scenario label="When a book section/div is matched in ncx.toc.gen mode" pending="We received the following error when trying to run this scenario: XTDE1425 Cannot find a matching 1-argument function named section-depth(). We were using the Saxon JAR file version SAXON HE 9.5.1.2 and the script from https://github.com/xspec/xspec.">
78+
<x:scenario label="When a book section/div is matched in ncx.toc.gen mode" pending="We received an error when trying to run this scenario.
79+
We were using the Saxon JAR file version SAXON HE 9.5.1.2
80+
and the script from https://github.com/xspec/xspec.">
7781
<x:context mode="ncx.toc.gen">
7882
<section data-type="chapter">
7983
<h1>Test Chapter</h1>
@@ -170,7 +174,9 @@ sect5:none
170174
<nav data-type="toc"/>
171175
</x:context>
172176

173-
<x:scenario label="...with $nav.in.ncx enabled" pending="We received the following error when trying to run this scenario: XTDE1425 Cannot find a matching 2-argument function named chunk-for-node(). We were using the Saxon JAR file version SAXON HE 9.5.1.2 and the script from https://github.com/xspec/xspec.">
177+
<x:scenario label="...with $nav.in.ncx enabled" pending="We received an error when trying to run this scenario.
178+
We were using the Saxon JAR file version SAXON HE 9.5.1.2
179+
and the script from https://github.com/xspec/xspec.">
174180
<x:context>
175181
<x:param name="nav.in.ncx" select="1"/>
176182
</x:context>
@@ -188,7 +194,9 @@ sect5:none
188194
</x:scenario>
189195
</x:scenario>
190196

191-
<x:scenario label="When generate.navpoint is called" pending="We received the following error when trying to run this scenario: XTDE1425 Cannot find a matching 2-argument function named chunk-for-node(). We were using the Saxon JAR file version SAXON HE 9.5.1.2 and the script from https://github.com/xspec/xspec.">
197+
<x:scenario label="When generate.navpoint is called" pending="We received an error when trying to run this scenario.
198+
We were using the Saxon JAR file version SAXON HE 9.5.1.2
199+
and the script from https://github.com/xspec/xspec.">
192200
<x:call template="generate.navpoint">
193201
<x:param name="node">
194202
<section data-type="appendix">

0 commit comments

Comments
 (0)