RE: [xsl] text() and not()

Subject: RE: [xsl] text() and not()
From: "Andrew Welch" <andrew@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 8 Jan 2002 12:36:58 -0000
>//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


Current Thread