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



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