Skip to content

Commit d972d0d

Browse files
Merge pull request #221 from oreillymedia/file_extension_test
ATLAS-27: Update XSL to generate files with .xhtml extension
2 parents 5fca3eb + f3067bf commit d972d0d

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

htmlbook-xsl/chunk.xsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ sect5:s
320320
<xsl:number count="*[local-name() = $node-name and @data-type = $node-data-type]" format="01"/>
321321
<xsl:if test="$original-call = 1">
322322
<!-- ToDo: Parameterize me to allow use of different filename extension? -->
323-
<xsl:text>.html</xsl:text>
323+
<xsl:text>.xhtml</xsl:text>
324324
</xsl:if>
325325
</xsl:for-each>
326326
</xsl:template>
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<x:description xmlns:x="http://www.jenitennison.com/xslt/xspec"
4+
xmlns:functx="http://www.functx.com"
5+
xmlns="http://www.w3.org/1999/xhtml"
6+
xmlns:ncx="http://www.daisy.org/z3986/2005/ncx/"
7+
xmlns:h="http://www.w3.org/1999/xhtml"
8+
xmlns:e="http://github.com/oreillymedia/epubrenderer"
9+
xmlns:htmlbook="https://github.com/oreillymedia/HTMLBook"
10+
stylesheet="../chunk.xsl">
11+
12+
<x:scenario
13+
label="When calling output-filename-for-chunk"
14+
pending="We received an error when trying to run this scenario.
15+
We were using the Saxon JAR file version SAXON HE 9.5.1.2
16+
and the script from https://github.com/xspec/xspec.">
17+
<x:call template="output-filename-for-chunk">
18+
<x:param name="node">
19+
<section data-type="chapter"/>
20+
</x:param>
21+
</x:call>
22+
<x:expect label="the file extension should be .xhtml">ch01.xhtml</x:expect>
23+
</x:scenario>
24+
25+
</x:description>

0 commit comments

Comments
 (0)