]> git.stg.codes - stg.git/blobdiff - doc/help/xslt/fo/highlight.xsl
DocBook documentation stub added
[stg.git] / doc / help / xslt / fo / highlight.xsl
diff --git a/doc/help/xslt/fo/highlight.xsl b/doc/help/xslt/fo/highlight.xsl
new file mode 100644 (file)
index 0000000..7843ad2
--- /dev/null
@@ -0,0 +1,77 @@
+<?xml version='1.0'?>\r
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"\r
+               xmlns:fo="http://www.w3.org/1999/XSL/Format"\r
+               xmlns:xslthl="http://xslthl.sf.net"\r
+                exclude-result-prefixes="xslthl"\r
+                version='1.0'>\r
+\r
+<!-- ********************************************************************\r
+     $Id: highlight.xsl 8419 2009-04-29 20:37:52Z kosek $\r
+     ********************************************************************\r
+\r
+     This file is part of the XSL DocBook Stylesheet distribution.\r
+     See ../README or http://docbook.sf.net/release/xsl/current/ for\r
+     and other information.\r
+\r
+     ******************************************************************** -->\r
+\r
+<xsl:import href="../highlighting/common.xsl"/>\r
+\r
+<xsl:template match='xslthl:keyword' mode="xslthl">\r
+  <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
+</xsl:template>\r
+\r
+<xsl:template match='xslthl:string' mode="xslthl">\r
+  <fo:inline font-weight="bold" font-style="italic"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
+</xsl:template>\r
+\r
+<xsl:template match='xslthl:comment' mode="xslthl">\r
+  <fo:inline font-style="italic"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
+</xsl:template>\r
+\r
+<xsl:template match='xslthl:tag' mode="xslthl">\r
+  <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
+</xsl:template>\r
+\r
+<xsl:template match='xslthl:attribute' mode="xslthl">\r
+  <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
+</xsl:template>\r
+\r
+<xsl:template match='xslthl:value' mode="xslthl">\r
+  <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
+</xsl:template>\r
+\r
+<!--\r
+<xsl:template match='xslthl:html'>\r
+  <span style='background:#AFF'><font color='blue'><xsl:apply-templates/></font></span>\r
+</xsl:template>\r
+\r
+<xsl:template match='xslthl:xslt'>\r
+  <span style='background:#AAA'><font color='blue'><xsl:apply-templates/></font></span>\r
+</xsl:template>\r
+\r
+<xsl:template match='xslthl:section'>\r
+  <span style='background:yellow'><xsl:apply-templates/></span>\r
+</xsl:template>\r
+-->\r
+\r
+<xsl:template match='xslthl:number' mode="xslthl">\r
+  <xsl:apply-templates mode="xslthl"/>\r
+</xsl:template>\r
+\r
+<xsl:template match='xslthl:annotation' mode="xslthl">\r
+  <fo:inline color="gray"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
+</xsl:template>\r
+\r
+<xsl:template match='xslthl:directive' mode="xslthl">\r
+  <xsl:apply-templates mode="xslthl"/>\r
+</xsl:template>\r
+\r
+<!-- Not sure which element will be in final XSLTHL 2.0 -->\r
+<xsl:template match='xslthl:doccomment|xslthl:doctype' mode="xslthl">\r
+  <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
+</xsl:template>\r
+\r
+\r
+</xsl:stylesheet>\r
+\r