RE: Match pattern should get child content but gets si
Tom, Joerg, Dimitre - THANKS -- it worked -- YAHOOOO. I was able to override the default with an empty tag: <xsl:template match='constraint/aValue'/> which got rid of the <constraint><aValue>'s unwanted content. -----Original Message----- From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Thomas B. Passin Sent: Friday, April 26, 2002 3:24 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: Match pattern should get child content but gets sib's content also [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 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format