| |
---|
| | </common> |
---|
| | </template> |
---|
| | |
---|
| | |
---|
| | <!-- |
---|
| | Generate a link. |
---|
| | --> |
---|
| | <template match="link|assessment//link"> |
---|
| | <common formats="/latex/xelatex/"> |
---|
| | <!-- |
---|
| | TODO: Links in (Xe)LaTeX are ... complicated, due to the possible presence of line breaks (\\) embedded within the cell. For now we'll just ignore them. |
---|
| | --> |
---|
| | <xsl:apply-templates /> |
---|
| | </common> |
---|
| | <common formats="/html/xhtml/"> |
---|
| | <a href="{@href}"><xsl:apply-templates /></a> |
---|
| | </common> |
---|
| | </template> |
---|
| | |
---|
| | |
---|
| | <!-- |
---|
| | Generate a cell containing a single, dynamically-generated number, centered within the cell. We can't just use generate-content-cell for these cells, because the number doesn't exist until the point where the template is called. Generate-content-cell does have the @nodes attribute, but that expects a node list, not a scalar value. The (X)eLaTeX version of this template also uses \makebox rather than a tabular to reduce the amount of horizontal space generated (we can do this because numbers don't include line breaks), and omits the @style and @align attributes, as they're pretty much irrelevant (for now, at least). |
---|
| | |
---|
| | TODO: Is it possible to refactor both templates so that there's less code duplication? |
---|
| |
---|
|