| | <?xml version="1.0"?> |
---|
| | <!-- This will mostly be a list of element names to match, along with the corresponding HTML and LaTeX handling XSLT code. --> |
---|
| | <stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
---|
| | <stylesheet |
---|
| | xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
---|
| | > |
---|
| | |
---|
| | |
---|
| | <hyperlink> |
---|
| | <element>OraAdmin</element> |
---|
| | <url>http://info-nts-05.otago.ac.nz/docs/oracle9i/server.920/a96521/toc.htm</url> |
---|
| | <label>test<!--<xsl:call-template name="OracleServer"/> Database Administrator<xsl:call-template name="apostrophe"/>s Guide--></label> |
---|
| | </hyperlink> |
---|
| | |
---|
| | |
---|
| | <template name="PaperCode" match="PaperCode"> |
---|
| | <latex><xsl:value-of select="$department"/>~<xsl:value-of select="$paper"/></latex> |
---|
| | <html> |
---|
| | <xsl:value-of select="$department"/> |
---|
| |
---|
| | |
---|
| | <template name="hyperlink-url" match="hyperlink[@url and node()]"> |
---|
| | <latex>\href{<xsl:value-of select="@url"/>}{<xsl:apply-templates/>}</latex> |
---|
| | <html><A HREF="{@url}"><xsl:apply-templates/></A></html> |
---|
| | </template> |
---|
| | |
---|
| | <!-- Internal parameterised hyperlink template to be called by the likes of the empty Oracle documentation elements. --> |
---|
| | <template name="hyperlink-internal" match="hyperlink" mode="hyperlink-internal"> |
---|
| | <common> |
---|
| | <xsl:param xmlns:xsl-out="http://www.w3.org/1999/XSL/Transform" name="url"/> |
---|
| | <xsl:param xmlns:xsl-out="http://www.w3.org/1999/XSL/Transform" name="label"/> |
---|
| | </common> |
---|
| | <latex>\href{<xsl:value-of select="$url"/>}{<xsl:apply-templates select="exsl:node-set($label)"/>}</latex> |
---|
| | <html><A HREF="{$url}"><xsl:apply-templates select="exsl:node-set($label)"/></A></html> |
---|
| | </template> |
---|
| | |
---|
| | <template name="empty-hyperlink-url" match="hyperlink[@url and not(node())]"> |
---|
| | <!-- Maybe we should be using the url package and \url{...}? --> |
---|
| |
---|
|