This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: text() and not()
- From: "Andrew Welch" <andrew at thebristoldirectory dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 8 Jan 2002 12:36:58 -0000
- Subject: RE: [xsl] text() and not()
- Reply-to: xsl-list at lists dot mulberrytech dot com
>//text()[not(parent::title)]
This is close :) however it fails to match the trailing close bracket ')'
for some reason.
Here is the XML again:
<title>
Renew LP Piston Seal (Fig 5.5.1
<xref xrefid="F5.5.1" xidtype="FIGURE">) </xref>
</title>
David Carlisle wrote:
>> I am overriding the default template using
>>
>> <xsl:template match=text()/>
>
>It is actually very rare to declare any template for text nodes, you
>certainly don't need to do so here.
If I dont use this a load of info gets output that isnt necessary in this
instance (but it useful to someone somewhere :)
Thanks once again
andrew
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list