RE: [xsl] need only one node to be processed

Subject: RE: [xsl] need only one node to be processed
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 7 Jan 2002 16:42:41 -0000
> I have something like docbook.xml and want
> a stylesheet which gives me only sect2/title:
>
> <xsl:template match="sect2/title">
>   <H1>
>     <xsl:apply-templates/>
>   </H1>
> </xsl:template>
>
> gives everything from the xml source.
> I want only sect2/title...
>
Add
<xsl:template match="*"/>
to disable the default template rule which is kicking in for other elements.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread