Skip to content

Commit

Permalink
[nlb] Use "nlbprod" namespace for sheet-count metadata
Browse files Browse the repository at this point in the history
see #204
  • Loading branch information
bertfrees committed Oct 23, 2018
1 parent 5b4a489 commit 18963d9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:pef="http://www.daisy.org/ns/2008/pef"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:nlb="http://www.nlb.no/ns/pipeline/xproc"
xmlns:nlbprod="http://www.nlb.no/production/"
exclude-result-prefixes="#all"
version="2.0">

Expand All @@ -16,7 +16,7 @@
<xsl:template match="pef:meta">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
<nlb:sheet-count value="{
<nlbprod:sheet-count value="{
sum(
for $volume in //pef:volume return
for $section in $volume/pef:section return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
xmlns="http://www.daisy.org/ns/2008/pef"
xmlns:pef="http://www.daisy.org/ns/2008/pef"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:nlb="http://www.nlb.no/ns/pipeline/xproc"
xmlns:nlbprod="http://www.nlb.no/production/"
stylesheet="../../main/resources/xml/pef-post-processing.xsl">

<x:scenario label="sheet count">
Expand Down Expand Up @@ -37,8 +37,8 @@
</body>
</pef>
</x:context>
<x:expect label="sheet count" test="//pef:meta/nlb:sheet-count">
<nlb:sheet-count value="6"/>
<x:expect label="sheet count" test="//pef:meta/nlbprod:*">
<nlbprod:sheet-count value="6"/>
</x:expect>
</x:scenario>

Expand Down

0 comments on commit 18963d9

Please sign in to comment.