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