Re: [docbook-apps] Ignoring NonDocBook tags, take 2

From
Bob Stayton <>
Date
2004-11-24T09:22:13+00:00
ID
032301c4d207$044596d0$6600a8c0@toshiro
Thread
Re: [docbook-apps] Ignoring NonDocBook tags, take 2
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



----- Original Message ----- 
From: "Tristan Fiedler" <>
To: <>
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
>
>
>