Hi Tim,
The epub3 stylesheets require care when using xsl:import because there
are several layers of import precedence already in the stock epub3
stylesheets (they import the xhtml5 stylesheet which in turn imports the
xhtml stylesheet). The epub3/README file in 1.79.1 has some guidelines
for customizing epub3. Did you use those guidelines to set up your files?
Bob Stayton
Sagehill Enterprises
[email protected]
On 2/10/2016 10:43 AM, Tim Arnold wrote:
<xsl:template match="d:section[@remap='Example']"
mode="object.title.markup" priority="1"> <xsl:variable
name="chapternode"
select="(ancestor::d:chapter|ancestor::d:appendix)[1]" />
<xsl:text>Example </xsl:text> <xsl:choose> <xsl:when
test="count($chapternode) > 0"> <xsl:apply-templates
select="$chapternode" mode="label.markup" /> <xsl:apply-templates
select="$chapternode" mode="intralabel.punctuation" /> <xsl:choose>
<xsl:when test="local-name($chapternode) = 'chapter'"> <xsl:number
level="any" format="1" count="d:section[@remap='Example']"
from="d:chapter" /> </xsl:when> <xsl:when test="local-name($chapternode)
= 'appendix'"> <xsl:number level="any" format="1"
count="d:section[@remap='Example']" from="d:appendix" /> </xsl:when>
</xsl:choose> </xsl:when> <xsl:otherwise> <xsl:number format="1"
from="d:book|d:article" level="any" /> </xsl:otherwise> </xsl:choose>
<xsl:text> </xsl:text> <xsl:apply-imports/> </xsl:template>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]