Skip to content

Commit 937a139

Browse files
committed
fix: add xspec for roman numeral function
1 parent f31282d commit 937a139

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/frus-ids-xsl.xspec

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<x:description stylesheet="../schema/frus-ids.xsl" xmlns:ckbk="http://www.oreilly.com/XSLTCookbook"
3+
xmlns:fn="http://www.w3.org/2005/xpath-functions"
4+
xmlns:map="http://www.w3.org/2005/xpath-functions/map" xmlns:tei="http://www.tei-c.org/ns/1.0"
5+
xmlns:x="http://www.jenitennison.com/xslt/xspec" xmlns:xs="http://www.w3.org/2001/XMLSchema">
6+
<x:scenario label="roman-to-number">
7+
<x:call function="ckbk:roman-to-number">
8+
<x:param select="'XX'"/>
9+
</x:call>
10+
<x:expect label="XX correctly transformed to 20" test="xs:integer(.)" select="20"/>
11+
</x:scenario>
12+
</x:description>

0 commit comments

Comments
 (0)