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

Re: xpath problem

Subject: Re: xpath problem
From: Greg Faron <gfaron@xxxxxxxxxxxxxxxxxx>
Date: Thu, 02 May 2002 10:30:03 -0600
Re:  xpath problem
At 09:15 AM 5/2/2002, you wrote:
hi, prehaps is the way i wrote the xpath, but i was wondering why will it not work when i tried to use the wildcard(*) in this particular predicate:
parent[child/grandchild=*]

The other post explained why the first worked and the second did not. My post is to ask what you're trying to accomplish using the =* at all? If you are trying to select all parent nodes that have a child/grandchild subtree, simply say
parent[child/grandchild]


The equals sign, I believe, is going to initiate a string() call on the grandchild node. Is that what you want? If I were to read this as a conventional programming language (java, Perl, etc), it looks like you're saying that the grandchild can be equal to any string. Well, that's already taken care of in the predicate above.


Greg Faron Integre Technical Publishing Co.



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.