Re: [docbook-apps] Ignore Non-DocBook tags?

From
Jens Stavnstrup <>
Date
2004-11-19T19:52:01+00:00
ID
Pine.LNX.4.58.0411192048390.10120@ares
Thread
Re: [docbook-apps] Ignore Non-DocBook tags?
Tristan,

In your customized stylesheet add this template

<xsl:template match="gene">
  <xsl:value-off select="."/>
</xsl:template>

Regards,

Jens

On Fri, 19 Nov 2004, Tristan Fiedler wrote:

> Hi All,
>
> Thank you for the help!  It makes the DocBook community a very nice
> place to work!
>
> I have a set of tags which are not DocBook, but are XML, and I want
> DocBook to ignore them.  For example, below should ignore <gene> and
> </gene>, but keep the CLK-1 hot text.   Whats the best way to do this?
>
> <para> The name
> 	      <ulink url="http://www.weblink.org/db/gene/gene?name=clk-1">
>                      <gene grammar ='NNS' reference='direct'> CLK-1
> </gene>
>                 </ulink>
> 	    should link to the proper page in wormbase.
> </para>
>
> should be "interpreted" as
>
> <para> The name
> 	      <ulink url="http://www.weblink.org/db/gene/gene?name=clk-1">
>                    CLK-1
>                 </ulink>
> 	    should link to the proper page in wormbase.
> </para>
>
>
> Cheers,
>
> Tristan
> ------------------------------
> Tristan J. Fiedler
> Postdoctoral Fellow - Stein Lab
> Cold Spring Harbor Laboratory
>
>
>