This is the mail archive of the xsl-list@mulberrytech.com 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: need only one node to be processed


> 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


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