• Added exercises to item-page-reference template.
1 parent 2e1ddcf commit df9dd7c150f31125da0ea5dbdae103c7c4817e9a
Nigel Stanger authored on 16 Sep 2014
Showing 1 changed file
View
5
modules/cross-references.xml
</xsl:if>
</common>
</template>
<!-- ERROR: reference element with no label. -->
<template name="broken-reference" match="reference[not( @label )]">
<common>
<xsl:message terminate="yes">Reference elements must include a label attribute.</xsl:message>
</template>
<!--
Common template for item page references, as they're identical for all items. Standalone page references (i.e., not to a specific item) are dealt with below.
Common template for item page references, as they're identical for all items. Standalone page references (i.e., not to a specific item) are dealt with below. Only relevant to (Xe)LaTeX as (X)HTML doesn't have pages.
-->
<template name="item-page-reference" match="section|figure|table" mode="page-reference">
<template name="item-page-reference" match="section|figure|table|exercise" mode="page-reference">
<common formats="/latex/xelatex/">
<xsl:text> on page~\pageref{</xsl:text>
<xsl:value-of select="@label" />
<xsl:text>}</xsl:text>