This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] Ignoring NonDocBook tags, take 2
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: <docbook-apps at lists dot oasis-open dot org>, "Tristan Fiedler" <fiedler at cshl dot edu>
- Date: Wed, 24 Nov 2004 01:21:44 -0800
- Subject: Re: [docbook-apps] Ignoring NonDocBook tags, take 2
- References: <0C65757E-3CDF-11D9-9A66-000D933B5D9E@cshl.edu>
Well, you can use a template such as the following:
<xsl:template match="a | b">
<xsl:apply-templates/>
</xsl:template>
This matches on either element <a> or element <b>, does nothing special for
them, and then applies templates to all of their children.
This will cover the situations where apply-templates is used on all
children. But as my other mail inlinemediaobject mentioned, some templates
don't use apply-templates on all children.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net
----- Original Message -----
From: "Tristan Fiedler" <fiedler@cshl.edu>
To: <docbook-apps@lists.oasis-open.org>
Sent: Monday, November 22, 2004 3:34 PM
Subject: [docbook-apps] Ignoring NonDocBook tags, take 2
> A set of non-DocBook XML tags are nested in my DocBook article.
>
> I am trying to modify the stylesheet with no success.
>
> What is the proper method to completely ignore a set of tags such as
> <a attrib=test1>, </a>
> <b attrib=test2>, </b>
>
> but keep any text & valid DocBook tags with may be interspersed among
> these nonDocBook tags?
>
> Cheers,
>
> Tristan
> ------------------------------
> Tristan J. Fiedler
> Postdoctoral Fellow - Stein Lab
> Cold Spring Harbor Laboratory
>
>
>