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
- Improved handling of empty todo elements.
master
1 parent
e6d01b6
commit
afd003b0f46ee7c34a4cd462eab16665f0ea5683
nstanger
authored
on 19 Jun 2012
Patch
Showing
1 changed file
modules/meta-elements.xml
Ignore Space
Show notes
View
modules/meta-elements.xml
<?xml version="1.0" encoding="utf-8"?> <!-- Meta-elements that affect how embedded markup is interpreted/processed. --> <stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- Completely ignore the markup, i.e., treat it as if it doesn't even exist. --> <template name="omit" match="omit" /> <!-- Process the markup, but embed it inside a comment in the output document. (Note: "It is an error if instantiating the content of xsl:comment creates nodes other than text nodes.") --> <template name="comment" match="comment"> <common formats="/latex/xelatex/"> <xsl:call-template name="newline-internal" /> <xsl:text>\begin{comment}</xsl:text> <xsl:apply-templates /> <xsl:text>\end{comment}</xsl:text> <xsl:call-template name="newline-internal" /> </common> <common formats="/html/xhtml/"> <xsl:comment> <xsl:apply-templates /> </xsl:comment> </common> </template> <!-- Identify and highlight to-do items that are not yet completed. --> <template name="todo" match="todo|to-do|incomplete|check"> <common formats="/latex/xelatex/"> <xsl:text>\textbf{[!!TODO!!</xsl:text> <xsl:if test="node()"> <xsl:text> </xsl:text> <xsl:apply-templates /> <xsl:text> !!</xsl:text> </xsl:if> <xsl:text>]}</xsl:text> </common> <common formats="/html/xhtml/"> <strong> <xsl:text>[!!TODO</xsl:text> <xsl:if test="node()"> <xsl:text> </xsl:text> <xsl:apply-templates /> <xsl:text> !!</xsl:text> </xsl:if> <xsl:text>]</xsl:text> </strong> </common> </template> </stylesheet>
<?xml version="1.0" encoding="utf-8"?> <!-- Meta-elements that affect how embedded markup is interpreted/processed. --> <stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <!-- Completely ignore the markup, i.e., treat it as if it doesn't even exist. --> <template name="omit" match="omit" /> <!-- Process the markup, but embed it inside a comment in the output document. (Note: "It is an error if instantiating the content of xsl:comment creates nodes other than text nodes.") --> <template name="comment" match="comment"> <common formats="/latex/xelatex/"> <xsl:call-template name="newline-internal" /> <xsl:text>\begin{comment}</xsl:text> <xsl:apply-templates /> <xsl:text>\end{comment}</xsl:text> <xsl:call-template name="newline-internal" /> </common> <common formats="/html/xhtml/"> <xsl:comment> <xsl:apply-templates /> </xsl:comment> </common> </template> <!-- Identify and highlight to-do items that are not yet completed. --> <template name="todo" match="todo|to-do|incomplete|check"> <common formats="/latex/xelatex/"> <xsl:text>\textbf{[!!TODO!! </xsl:text> <xsl:apply-templates /> <xsl:text> !!]}</xsl:text> </common> <common formats="/html/xhtml/"> <strong>[!!TODO <xsl:apply-templates /> !!]</strong> </common> </template> </stylesheet>
Show line notes below