More bugfixing for MPA in Foundry
git-svn-id: https://svn.libreccm.org/ccm/trunk@3068 8810af33-2d31-482b-a856-94f89814c4dfmaster
parent
d4ac6e70af
commit
619f4f1b79
|
|
@ -77,12 +77,12 @@
|
|||
select="$contentitem-tree/cms:mpadata/numberOfPages"/>
|
||||
|
||||
<xsl:for-each select="$contentitem-tree/sections">
|
||||
<xsl:sort select="./rank"/>
|
||||
<xsl:sort select="./rank" data-type="number"/>
|
||||
|
||||
<xsl:variable name="current-rank" select="./rank"/>
|
||||
<xsl:variable name="page-number"
|
||||
select="count($contentitem-tree/sections[./pageBreak = 'true'
|
||||
and ./rank < $current-rank]) + 1"/>
|
||||
and ./rank < ($current-rank + 1)])"/>
|
||||
|
||||
<xsl:apply-templates select="$section-layout-tree/*">
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue