This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: writing a condensed form of docbook
- From: "Robert P. J. Day" <rpjday at mindspring dot com>
- To: Markus Spath <mspath at arcor dot de>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Mon, 17 Feb 2003 13:12:00 -0500 (EST)
- Subject: Re: DOCBOOK-APPS: writing a condensed form of docbook
On Mon, 17 Feb 2003, Markus Spath wrote:
> 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>
> ...
> )
dang. why didn't *i* think of that? thanks.
rday