|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] XPointer question
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@m...
http://www.MobileQ.com
***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@x...&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/threads.html
***************************************************************************
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








