This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: writing a condensed form of docbook
- From: Markus Spath <mspath at arcor dot de>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 17 Feb 2003 18:17:51 +0100
- Subject: Re: DOCBOOK-APPS: writing a condensed form of docbook
- References: <Pine.LNX.4.44.0302171007070.1741-100000@dell>
Robert P. J. Day wrote:
i like to write my documents and manuals in condensed
form, and it would be nice to quickly to go from that to
final docbook.
Since you stay with the xml-syntax anyway I'd say XSLT would be a convenient
way; all you need is a styl3sheet containing an identity template and templates
matching your abbreviations
(
<xsl:template match="@* | node()">
<xsl:copy><xsl:apply-templates select="@* | node()" /></xsl:copy>
</xsl:template>
<xsl:template match="li">
<listitem><para><xsl:apply-templates /></para></listitem>
</xsl:template>
...
)
markus