This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: xpath problem
- From: Greg Faron <gfaron at integretechpub dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 02 May 2002 10:30:03 -0600
- Subject: Re: [xsl] xpath problem
- Reply-to: xsl-list at lists dot mulberrytech dot com
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