<
xsl:stylesheet xmlns:xsl=
"http://www.w3.org/1999/XSL/Transform" xmlns:dtb=
"http://www.daisy.org/z3986/2005/dtbook/" version=
"2.0">
<
xsl:include href=
"recursive-copy2.xsl"/>
<
xsl:include href=
"output2.xsl"/>
<
xsl:include href=
"localization.xsl"/>
<
xsl:template match=
"dtb:pagenum[@page='front' and matches(.,'^\s*\d+\s*$','s')]">
<
xsl:message>changing page="front" to page="normal"</
xsl:message>
<
xsl:copy>
<
xsl:attribute name=
"page">normal</
xsl:attribute>
<
xsl:copy-of select=
"@*[local-name()!='page']"/>
<
xsl:apply-templates/>
</
xsl:copy>
</
xsl:template>
<
xsl:template match=
"dtb:pagenum[@page='special'][not(normalize-space())]">
<
xsl:message>adding dummy content to empty "special" pagenum</
xsl:message>
<
xsl:copy>
<
xsl:copy-of select=
"@*"/>
<
xsl:apply-templates select=
"." mode=
"localizedPageBreak"/>
</
xsl:copy>
</
xsl:template>
</
xsl:stylesheet>