This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]