GitBucket
4.21.2
Toggle navigation
Snippets
Sign in
Files
Branches
1
Releases
1
Issues
Pull requests
Labels
Priorities
Milestones
Wiki
Forks
nigel.stanger
/
XML
Browse code
- Fixed <quote> template for HTML.
- Fixed <copyright-sign> for LaTeX. - Fixed <PaperCode> for HTML.
master
OLD_GRAPHICS_HANDLING
1 parent
1bc6c8c
commit
05a3c9a6cbeff9c800a4b6b0958e166cea8b24f6
nstanger
authored
on 10 Dec 2003
Patch
Showing
1 changed file
format-master.xml
Ignore Space
Show notes
View
format-master.xml
<?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"> <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:text>{\PaperCode}</xsl:text></latex> <html>INFO 321</html> </template> <template name="OracleServer" match="OracleServer"> <latex><xsl:text>{\OracleServer}</xsl:text></latex> <html>Oracle9<I>i</I></html></template> <template name="paragraph" match="paragraph"> <latex><xsl:text> </xsl:text><xsl:apply-templates/><xsl:text> </xsl:text></latex> <!-- HTML is weird about what things you cannot include inside paragraphs (e.g. lists of any kind). However, the end P tag is optional, so one option might simply be not to output it. --> <html><P><xsl:apply-templates/></P></html> </template> <alias source="para" target="paragraph"/> <alias source="p" target="paragraph"/> <!-- Special characters (should maybe all be named, in case they need to be called explicitly with xsl:call-template) --> <!-- I'd like to use the Unicode names for these; will look them up some time! --> <template name="newline" match="newline"><latex> </latex><html><BR/></html></template> <template name="non-breaking-space" match="non-breaking-space"><latex>~</latex><html> </html></template> <alias source="nbsp" target="non-breaking-space"/> <template name="ellipsis-sign" match="ellipsis-sign"> <latex><xsl:text>{\ldots}</xsl:text></latex> <html><xsl:text>…</xsl:text></html></template> <alias source="etc" target="ellipsis-sign"/> <alias source="ellipsis" target="ellipsis-sign"/> <!-- Misc typographic symbols --> <template name="endash" match="endash"> <latex><xsl:text>--</xsl:text></latex> <html><xsl:text>–</xsl:text></html></template> <alias source="en-dash" target="endash"/> <template name="emdash" match="emdash"> <latex><xsl:text>---</xsl:text></latex> <html><xsl:text>—</xsl:text></html></template> <alias source="em-dash" target="emdash"/> <template name="apostrophe" match="apostrophe"> <latex><xsl:text>'</xsl:text></latex> <html><xsl:text>’</xsl:text></html></template> <template name="dollar" match="dollar"> <latex><xsl:text>\$</xsl:text></latex> <html><xsl:text>$</xsl:text></html></template> <template name="percent-sign" match="percent-sign"> <latex><xsl:text>\%</xsl:text></latex> <html><xsl:text>%</xsl:text></html></template> <template name="ampersand" match="ampersand"> <latex><xsl:text>\&</xsl:text></latex> <html><xsl:text>&</xsl:text></html></template> <template name="trademark-sign" match="trademark-sign"> <latex><xsl:text>(TM)</xsl:text></latex> <html><xsl:text>™</xsl:text></html></template> <alias source="trademark" target="trademark-sign"/> <template name="copyright-sign" match="copyright-sign"> <latex><xsl:text>\copyright</xsl:text></latex> <html><xsl:text>©</xsl:text></html></template> <!-- <alias source="copyright" target="copyright-sign"/> --> <template name="degree-sign" match="degree-sign"> <latex><xsl:text>deg</xsl:text></latex> <html><xsl:text>°</xsl:text></html></template> <template name="section-sign" match="section-sign"> <latex><xsl:text>{\S}</xsl:text></latex> <html><xsl:text>§</xsl:text></html></template> <template name="paragraph-sign" match="paragraph-sign"> <latex><xsl:text>{\P}</xsl:text></latex> <html><xsl:text>¶</xsl:text></html></template> <template name="pi" match="pi"> <latex><xsl:text>{\pi}</xsl:text></latex> <html><xsl:text>π</xsl:text></html></template> <template name="LaTeX" match="LaTeX"> <latex><xsl:text>{\latex}</xsl:text></latex> <html><xsl:text>LaTeX</xsl:text></html></template> <alias source="latex" target="LaTeX"/> <!-- Special styles --> <template name="emph" match="emph"><latex><xsl:text>\emph{</xsl:text><xsl:apply-templates/><xsl:text>}</xsl:text></latex><html><EM><xsl:apply-templates/></EM></html></template> <template name="italic" match="italic"><latex><xsl:text>\textit{</xsl:text><xsl:apply-templates/><xsl:text>}</xsl:text></latex><html><I><xsl:apply-templates/></I></html></template> <template name="quote" match="quote"><latex><xsl:text>``{</xsl:text><xsl:apply-templates/><xsl:text>}''</xsl:text></latex><html><xsl:text>“</xsl:text><xsl:apply-templates/><xsl:text>”</xsl:text></html></template> <template name="term" match="term"><latex>\term<xsl:apply-templates/>}</latex><html><I CLASS="term"><xsl:apply-templates/></I></html></template> <template name="foreign" match="foreign"><latex><xsl:text>\foreign{</xsl:text><xsl:apply-templates/><xsl:text>}</xsl:text></latex><html><I CLASS="foreign"><xsl:apply-templates/></I></html></template> <template name="code" match="code"> <latex><xsl:text>\code{</xsl:text><xsl:apply-templates/><xsl:text>}</xsl:text></latex> <html><CODE><xsl:apply-templates/></CODE></html> </template> <template name="code-block" match="code-block"> <latex> <xsl:text>\begin{verbatim}</xsl:text> <xsl:apply-templates/> <xsl:text>\end{verbatim}</xsl:text> </latex> <html> <PRE CLASS="code"><xsl:apply-templates/></PRE> </html> </template> <!-- Environments (in the LaTeX terminology): enumerated, ordered, and numbered lists. --> <!-- Unordered lists --> <template name="itemised-list" match="itemised-list"> <latex> \begin{itemize} <xsl:apply-templates/> \end{itemize} </latex> <html> <UL> <xsl:apply-templates/> </UL> </html> </template> <alias source="itemize" target="itemised-list"/> <alias source="unordered-list" target="itemised-list"/> <alias source="bulleted-list" target="itemised-list"/> <alias source="bullet-list" target="itemised-list"/> <alias source="bullet-points" target="itemised-list"/> <!-- Ordered lists --> <template name="enumerated-list" match="enumerated-list"> <latex><xsl:text> \begin{enumerate} <xsl:apply-templates/> \end{enumerate} </xsl:text></latex> <html> <OL> <xsl:apply-templates/> </OL> </html> </template> <alias source="enumerate" target="enumerated-list"/> <alias source="ordered-list" target="enumerated-list"/> <alias source="numbered-list" target="enumerated-list"/> <!-- List elements --> <template name="item" match="item"> <latex><xsl:text>\item </xsl:text><xsl:apply-templates/></latex> <html><LI><xsl:apply-templates/></LI></html> </template> <!-- Sections, subsections, subsubsections, ... --> <template name="section" match="section"> <!-- Need to figure out depth of section! --> <latex><xsl:text> \section{</xsl:text><xsl:apply-templates select="title"/><xsl:text>} </xsl:text><xsl:apply-templates select="section|paragraph|figure|itemised-list|enumerated-list"/></latex> <html><H1><xsl:apply-templates select="title"/></H1><xsl:apply-templates select="section|paragraph|figure|itemised-list|enumerated-list"/></html> </template> </stylesheet>
<?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"> <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:text>{\PaperCode}</xsl:text></latex> <html><![CDATA[INFO 321]]></html> </template> <template name="OracleServer" match="OracleServer"> <latex><xsl:text>{\OracleServer}</xsl:text></latex> <html>Oracle9<I>i</I></html></template> <template name="paragraph" match="paragraph"> <latex><xsl:text> </xsl:text><xsl:apply-templates/><xsl:text> </xsl:text></latex> <!-- HTML is weird about what things you cannot include inside paragraphs (e.g. lists of any kind). However, the end P tag is optional, so one option might simply be not to output it. --> <html><P><xsl:apply-templates/></P></html> </template> <alias source="para" target="paragraph"/> <alias source="p" target="paragraph"/> <!-- Special characters (should maybe all be named, in case they need to be called explicitly with xsl:call-template) --> <!-- I'd like to use the Unicode names for these; will look them up some time! --> <template name="newline" match="newline"><latex> </latex><html><BR/></html></template> <template name="non-breaking-space" match="non-breaking-space"><latex>~</latex><html> </html></template> <alias source="nbsp" target="non-breaking-space"/> <template name="ellipsis-sign" match="ellipsis-sign"> <latex><xsl:text>{\ldots}</xsl:text></latex> <html><xsl:text>…</xsl:text></html></template> <alias source="etc" target="ellipsis-sign"/> <alias source="ellipsis" target="ellipsis-sign"/> <!-- Misc typographic symbols --> <template name="endash" match="endash"> <latex><xsl:text>--</xsl:text></latex> <html><xsl:text>–</xsl:text></html></template> <alias source="en-dash" target="endash"/> <template name="emdash" match="emdash"> <latex><xsl:text>---</xsl:text></latex> <html><xsl:text>—</xsl:text></html></template> <alias source="em-dash" target="emdash"/> <template name="apostrophe" match="apostrophe"> <latex><xsl:text>'</xsl:text></latex> <html><xsl:text>’</xsl:text></html></template> <template name="dollar" match="dollar"> <latex><xsl:text>\$</xsl:text></latex> <html><xsl:text>$</xsl:text></html></template> <template name="percent-sign" match="percent-sign"> <latex><xsl:text>\%</xsl:text></latex> <html><xsl:text>%</xsl:text></html></template> <template name="ampersand" match="ampersand"> <latex><xsl:text>\&</xsl:text></latex> <html><xsl:text>&</xsl:text></html></template> <template name="trademark-sign" match="trademark-sign"> <latex><xsl:text>(TM)</xsl:text></latex> <html><xsl:text>™</xsl:text></html></template> <alias source="trademark" target="trademark-sign"/> <template name="copyright-sign" match="copyright-sign"> <latex><xsl:text>(C)</xsl:text></latex> <html><xsl:text>©</xsl:text></html></template> <!-- <alias source="copyright" target="copyright-sign"/> --> <template name="degree-sign" match="degree-sign"> <latex><xsl:text>deg</xsl:text></latex> <html><xsl:text>°</xsl:text></html></template> <template name="section-sign" match="section-sign"> <latex><xsl:text>{\S}</xsl:text></latex> <html><xsl:text>§</xsl:text></html></template> <template name="paragraph-sign" match="paragraph-sign"> <latex><xsl:text>{\P}</xsl:text></latex> <html><xsl:text>¶</xsl:text></html></template> <template name="pi" match="pi"> <latex><xsl:text>{\pi}</xsl:text></latex> <html><xsl:text>π</xsl:text></html></template> <template name="LaTeX" match="LaTeX"> <latex><xsl:text>{\latex}</xsl:text></latex> <html><xsl:text>LaTeX</xsl:text></html></template> <alias source="latex" target="LaTeX"/> <!-- Special styles --> <template name="emph" match="emph"><latex><xsl:text>\emph{</xsl:text><xsl:apply-templates/><xsl:text>}</xsl:text></latex><html><EM><xsl:apply-templates/></EM></html></template> <template name="italic" match="italic"><latex><xsl:text>\textit{</xsl:text><xsl:apply-templates/><xsl:text>}</xsl:text></latex><html><I><xsl:apply-templates/></I></html></template> <template name="quote" match="quote"><latex><xsl:text>``{</xsl:text><xsl:apply-templates/><xsl:text>}''</xsl:text></latex><html><![CDATA[“]]><xsl:apply-templates/><![CDATA[”]]></html></template> <template name="term" match="term"><latex>\term<xsl:apply-templates/>}</latex><html><I CLASS="term"><xsl:apply-templates/></I></html></template> <template name="foreign" match="foreign"><latex><xsl:text>\foreign{</xsl:text><xsl:apply-templates/><xsl:text>}</xsl:text></latex><html><I CLASS="foreign"><xsl:apply-templates/></I></html></template> <template name="code" match="code"> <latex><xsl:text>\code{</xsl:text><xsl:apply-templates/><xsl:text>}</xsl:text></latex> <html><CODE><xsl:apply-templates/></CODE></html> </template> <template name="code-block" match="code-block"> <latex> <xsl:text>\begin{verbatim}</xsl:text> <xsl:apply-templates/> <xsl:text>\end{verbatim}</xsl:text> </latex> <html> <PRE CLASS="code"><xsl:apply-templates/></PRE> </html> </template> <!-- Environments (in the LaTeX terminology): enumerated, ordered, and numbered lists. --> <!-- Unordered lists --> <template name="itemised-list" match="itemised-list"> <latex> \begin{itemize} <xsl:apply-templates/> \end{itemize} </latex> <html> <UL> <xsl:apply-templates/> </UL> </html> </template> <alias source="itemize" target="itemised-list"/> <alias source="unordered-list" target="itemised-list"/> <alias source="bulleted-list" target="itemised-list"/> <alias source="bullet-list" target="itemised-list"/> <alias source="bullet-points" target="itemised-list"/> <!-- Ordered lists --> <template name="enumerated-list" match="enumerated-list"> <latex><xsl:text> \begin{enumerate} <xsl:apply-templates/> \end{enumerate} </xsl:text></latex> <html> <OL> <xsl:apply-templates/> </OL> </html> </template> <alias source="enumerate" target="enumerated-list"/> <alias source="ordered-list" target="enumerated-list"/> <alias source="numbered-list" target="enumerated-list"/> <!-- List elements --> <template name="item" match="item"> <latex><xsl:text>\item </xsl:text><xsl:apply-templates/></latex> <html><LI><xsl:apply-templates/></LI></html> </template> <!-- Sections, subsections, subsubsections, ... --> <template name="section" match="section"> <!-- Need to figure out depth of section! --> <latex><xsl:text> \section{</xsl:text><xsl:apply-templates select="title"/><xsl:text>} </xsl:text><xsl:apply-templates select="section|paragraph|figure|itemised-list|enumerated-list"/></latex> <html><H1><xsl:apply-templates select="title"/></H1><xsl:apply-templates select="section|paragraph|figure|itemised-list|enumerated-list"/></html> </template> </stylesheet>
Show line notes below