diff options
author | Rob Austein <sra@hactrn.net> | 2010-04-14 19:10:52 +0000 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2010-04-14 19:10:52 +0000 |
commit | 299af4b55a40a1c5ded19da129f80df4feaf1c1d (patch) | |
tree | 40e23a6c7f544bf08b699dbb285031ccb6985291 /rpkid/doc/tweak-doc.xsl | |
parent | dbc55c697025a0dd6125249f29cac5cc39c08a28 (diff) |
Checkpoint
svn path=/myrpki/examples/myrpki.conf; revision=3200
Diffstat (limited to 'rpkid/doc/tweak-doc.xsl')
-rw-r--r-- | rpkid/doc/tweak-doc.xsl | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/rpkid/doc/tweak-doc.xsl b/rpkid/doc/tweak-doc.xsl index dcabf1db..a168e25b 100644 --- a/rpkid/doc/tweak-doc.xsl +++ b/rpkid/doc/tweak-doc.xsl @@ -41,18 +41,32 @@ <!-- - Add null p element after p element immediately followed by ul - - element. This is sick, but fakes lynx into producing more - - reasonable output, which is all we really care about here. + - element, or p element immediately followed by div element + - containing verbatim fragment. This is sick, but fakes lynx + - into producing more reasonable output, which is all we really + - care about here. --> - <xsl:template match="p[name(following-sibling::*[1]) = 'ul']"> + <xsl:template match="p[(name(following-sibling::*[1]) = 'ul') or + (name(following-sibling::*[1]) = 'div' and + following-sibling::*[1]/@class = 'fragment')]"> <p><xsl:apply-templates/></p> <p/> </xsl:template> <!-- + - Add delimiters around code examples. + --> + <xsl:template match="div[@class = 'fragment']" mode="disabled"> + <p>================================================================</p> + <p/> + <xsl:call-template name="identity"/> + <p>================================================================</p> + </xsl:template> + + <!-- - Copy everything else unmodified (XSL "identity" template). --> - <xsl:template match="node() | @*"> + <xsl:template match="node() | @*" name="identity"> <xsl:copy> <xsl:apply-templates select="node() | @*"/> </xsl:copy> |