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: text() and not()



>//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


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