[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: text() and not()

Subject: RE: text() and not()
From: "Andrew Welch" <andrew@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 8 Jan 2002 13:42:22 -0000
RE:  text() and not()
David Carlisle:

> >//text()[not(parent::title)]
>> This is close :) however it fails to match the trailing close bracket ')'
>> for some reason.
>that matches any text node  whose parent is not title.
>There are three text nodes in your example.
>the first has parent title
>the second has parent xref
>the third (which is just white space)
>All the text nodes in your example have parent title, so it
>does not match any of them.

  Renew LP Piston Seal (Fig 5.5.1
  <xref xrefid="F5.5.1" xidtype="FIGURE">) </xref>

Actually the trailing bracket has a parent <xref>, so Im now using


(subpara1 distinguishes this title from several other <title>'s in the xml)

is this right?

Also, you are right this works fine

<xsl:template match="xref">

<xsl:template match="title">
  <p class="title">

Thanks for all the help



This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.