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


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