[Xpath-ng] Re: Xpath-ng Digest, Vol 1, Issue 44
bry at itnisk.com
bry at itnisk.com
Wed Aug 4 14:36:09 MDT 2004
this was the wrong list to ask the question, it is pretty much defunct, and it
was used to discuss a new version of xpath, in preference to xpath 2.0
you should probably look for the xsl list xsl-list at lists.mulberrytech.com if you
have further questions, without knowing any more about your situation i can't
answer better than the following xpath:
//tagname[@nameofattribute='attributevalue']/parent::*
this would get the parents of all tags named tagname which have an attribute
named nameofattribute which has a value equal to attributevalue, if you know
specifically what your parent tag name is change the * at the end of your xpath
to that tagname.
Quoting xpath-ng-request at lists.fourthought.com:
> Send Xpath-ng mailing list submissions to
> xpath-ng at lists.fourthought.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.fourthought.com/mailman/listinfo/xpath-ng
> or, via email, send a message with subject or body 'help' to
> xpath-ng-request at lists.fourthought.com
>
> You can reach the person managing the list at
> xpath-ng-owner at lists.fourthought.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Xpath-ng digest..."
>
>
> Today's Topics:
>
> 1. selecting parent name...or node (Craig Girard)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 4 Aug 2004 10:18:30 -0700 (PDT)
> From: Craig Girard <cag2y at virginia.edu>
> Subject: [Xpath-ng] selecting parent name...or node
> To: xpath-ng at lists.fourthought.com
> Message-ID: <20040804171830.38738.qmail at web50301.mail.yahoo.com>
> Content-Type: text/plain; charset=us-ascii
>
> HELP!
>
> I am in the middle of an xml project and I need to
> select the parent of a tag with a certain attribute
> value.
>
> I cannot, for the life of me, find the xpath to do
> this. t doesn't seen like it would be that difficult
> to me.
>
> Anyone out there know?
>
> Thanks in advance.
>
> Craig
>
>
> ------------------------------
>
> _______________________________________________
> Xpath-ng mailing list
> Xpath-ng at lists.fourthought.com
> http://lists.fourthought.com/mailman/listinfo/xpath-ng
>
>
> End of Xpath-ng Digest, Vol 1, Issue 44
> ***************************************
>
More information about the Xpath-ng
mailing list