[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
XPointer question
- From: "Hunter, David" <dhunter@...>
- To: "'XML-dev'" <xml-dev@...>
- Date: Fri, 18 Feb 2000 17:25:06 -0500
I'm having trouble getting my head around the XPointer spec, so I'm hoping
someone on the list can help. If I have the following people.xml:
<people>
<person name="John">
<phone>(555)555-1212</phone>
<phone>(555)555-1212</phone>
</person>
<person name="David">
<phone>(555)555-1212</phone>
</person>
<person name="Andrea">
<phone>(555)555-1212</phone>
<phone>(555)555-1212</phone>
<phone>(555)555-1212</phone>
</person>
<person name="Ify">
<phone>(555)555-1212</phone>
<phone>(555)555-1212</phone>
</person>
<!--more people could follow-->
</people>
What will the following XPointer return:
people.xml#xpointer(//person to phone[1])
?
I'm thinking, from my reading of the spec, that it will return
<person name="John">
<phone>(555)555-1212</phone>
<person name="David">
<phone>(555)555-1212</phone>
<!--etc.-->
Or, if I'm wrong, it might return
<person name="John">
<phone>(555)555-1212</phone>
</person>
<person name="David">
<phone>(555)555-1212</phone>
</person>
<!--etc.-->
Or, I could be way out to lunch. Can anyone shed some light on this?
David Hunter
MobileQ
david.hunter@...
http://www.MobileQ.com
***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/threads.html
***************************************************************************
|