diff options
author | Vivien Kraus <vivien@planete-kraus.eu> | 2022-10-07 00:39:10 +0200 |
---|---|---|
committer | Vivien Kraus <vivien@planete-kraus.eu> | 2022-10-07 00:39:10 +0200 |
commit | f2c8deb2803da90d2902f34e8df7c64e744188cc (patch) | |
tree | a558af5a1dc85ac1b3feee1a47778e96c26f7497 | |
parent | ff2fd244155ee462ea07199507c7a2c21ce46013 (diff) |
Convert the final example to a shell listing
-rw-r--r-- | mped.xml | 14 |
1 files changed, 11 insertions, 3 deletions
@@ -410,10 +410,18 @@ Starting from this file, <filename>mped.xml</filename>, and the bootstrap tangling stylesheet, <filename>tangle-bootstrap.xsl</filename>, you would obtain a - mped-less docbook file with: + mped-less docbook file with <xref linkend="convert-process" + />. </para> - <example>xsltproc tangle-bootstrap.xsl mped.xml | bash -xsltproc apply-mped.xsl mped.xml | xmllint --format -</example> + <figure xml:id="convert-process"> + <title>How to convert this document</title> + <programlisting language="sh" mped:tangle-to="build.sh"> + <![CDATA[ +xsltproc tangle-bootstrap.xsl mped.xml | bash +xsltproc apply-mped.xsl mped.xml | xmllint --format - + ]]> + </programlisting> + </figure> </section> </chapter> <chapter> |