summaryrefslogtreecommitdiff
path: root/docs/examples-to-end.xsl
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2011-10-03 14:08:04 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2011-10-03 14:08:04 +0100
commit587e3cf8aa4c4308662b957b1a374a468402f70c (patch)
treee7f97f77dfe68fda3985dc53e6498029bc085b0e /docs/examples-to-end.xsl
parent8d4b3262130d7ebe02aed4428dbcc75bb86d00f6 (diff)
parent88a9a3402a628c7e8061105746b1a380503095d8 (diff)
downloadrabbitmq-server-git-587e3cf8aa4c4308662b957b1a374a468402f70c.tar.gz
merge bug24323 into default
Diffstat (limited to 'docs/examples-to-end.xsl')
-rw-r--r--docs/examples-to-end.xsl7
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/examples-to-end.xsl b/docs/examples-to-end.xsl
index a0a741785f..4db1d5c479 100644
--- a/docs/examples-to-end.xsl
+++ b/docs/examples-to-end.xsl
@@ -2,7 +2,10 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version='1.0'>
-<xsl:output doctype-public="-//OASIS//DTD DocBook XML V4.5//EN" doctype-system="http://www.docbook.org/xml/4.5/docbookx.dtd" />
+<xsl:output doctype-public="-//OASIS//DTD DocBook XML V4.5//EN"
+ doctype-system="http://www.docbook.org/xml/4.5/docbookx.dtd"
+ indent="yes"
+/>
<!-- Don't copy examples through in place -->
<xsl:template match="*[@role='example-prefix']"/>
@@ -27,7 +30,7 @@
<varlistentry>
<term><command><xsl:copy-of select="text()"/></command></term>
<listitem>
- <xsl:copy-of select="following-sibling::para[@role='example']"/>
+ <xsl:copy-of select="following-sibling::para[@role='example' and preceding-sibling::screen[1] = current()]"/>
</listitem>
</varlistentry>
</xsl:for-each>