This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Match pattern should get child content but gets sib's content also
- From: "Thomas B. Passin" <tpassin at mitretek dot org>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 26 Apr 2002 16:24:26 -0400
- Subject: Re: [xsl] Match pattern should get child content but gets sib's content also
- References: <OKECLGHIOLICDAMGHKDBEEKHCAAA.doug@psiconsultants.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
[Doug Zirbel]
> First, my thanks to all of you who've replied! OK, my understanding has
> advanced by a small step. I read your posts, and section 5.8 and know
that
> there is such a thing as a default template...
>
> I'm just not sure how to override it! Would it be an additional template
> with something like match="not(text())"??
>
It can be as simple as
<xsl:template match='*'/>
This matches anything that has not already been matched by a previous
template (i.e., appearing earlier in the stylesheet), but outputs nothing.
Cheers,
Tom P
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list