This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: need only one node to be processed
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 7 Jan 2002 16:42:41 -0000
- Subject: RE: [xsl] need only one node to be processed
- Reply-to: xsl-list at lists dot mulberrytech dot com
> 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