This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Ignore Non-DocBook tags?
- From: Jens Stavnstrup <js at ddre dot dk>
- To: Tristan Fiedler <fiedler at cshl dot edu>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Wed, 24 Nov 2004 11:02:15 +0100 (CET)
- Subject: Re: [docbook-apps] Ignore Non-DocBook tags?
- References: <5B68E17A-3A5E-11D9-A08E-000D933B5D9E@cshl.edu><Pine.LNX.4.58.0411192048390.10120@ares> <6DC3ABD4-3B2E-11D9-9A66-000D933B5D9E@cshl.edu><Pine.LNX.4.58.0411202114420.10120@ares> <31E6B77E-3CD6-11D9-9A66-000D933B5D9E@cshl.edu><Pine.LNX.4.58.0411230905100.10120@ares> <B6F82CA4-3D70-11D9-9A66-000D933B5D9E@cshl.edu>
- Reply-to: Jens Stavnstrup <js at ddre dot dk>
Tristian,
Based on you e-mails and your recent e-mail to me and the docBook-apps
list, I would like to suggest a different approach, instead of making
incremental fixes.
Since you problem is to eleminate all non-docbook element, you could
use a two step process.
Create a template, that eleminates all non-docbook element. DocBook
elements are just copied using the following template.
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
You can then, when using saxon 6.5.3. pipe the result document to the
original docbook stylesheets, using the xsl:output element in your own
stylesheet.
<xsl:output method="xml" indent="no"
saxon:next-in-chain="??/docbook-1.67.0/html/docbook.xsl"/>
Regards,
Jens
On Tue, 23 Nov 2004, Tristan Fiedler wrote:
> Hi Jens,
>
> Did you know about the world famous cyclist "Jens Fiedler" ?
> Anyhow, thanks for the info. I had to adjust your syntax to :
>
> <xsl:template match="gene1|gene2|gene3">
> <xsl:apply-templates/>
> ---- here I removed "*"
> </xsl:template>
>
> Cheers,
>
> Tristan
> ------------------------------
> Tristan J. Fiedler
> Postdoctoral Fellow - Stein Lab
> Cold Spring Harbor Laboratory