|
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Ah, that's trickier.
let $strings = $anchors/preceding-sibling::text()
Her is a brute force way to get what you want.
Wayne
Thanks. That is close to what I want, but I also want to get the preceding sibling text() node. For the first matching anchor in this example it should be "Newburyport, Merrimack River 420 48.7' 700 51.9' 7.8 9.0 4.2 ".
<-----Original Message-----> From: Wayne Loofbourrow Sent: 2/16/2004 9:04:11 PM To: email@hidden Cc: email@hidden Subject: Re: sherlock-channel-development digest, Vol 1 #180 - 1 msg
Try:
let $nodes := document("http://www.co-ops.nos.noaa.gov/tides04/tab2ec1b.html")/ A[text()="Predictions"]/@HREF
This says to first extract those A tags whose text content is "Predictions" and then grab the HREF attribute from each of them.
Wayne
_______________________________________________ sherlock-channel-development mailing list | email@hidden Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/sherlock-channel-development Do not post admin requests to the list. They will be ignored.
| Home | Archives | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2011 Apple Inc. All rights reserved.