| |
---|
| | </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> |
---|
| |
---|
|