stefan at objectfarm.org
Tue Mar 2 11:45:24 GMT 1999
given the following XML-snippet:
can I use th following XPointer to get the customer ID of Bart Simpson:
root().child(all, customer).child(1,name).string(1, "Bart
I guess this sould work since the XPointer grammar allows to place
OtherTerm after a StringTerm, but I'm not sure if I understood the spec
Since string() might return portions of multiple nodes (see 3.7 of
WD-xptr-19980202) applying ancestor() seems a little problematic.
BTW is there a typo in the XPtr-spec? In grammar rule  it says:
 OtherTerms ::= OhterTerm | OtherTerm . OtherTerm
shouldn't that be:
 OtherTerms ::= OhterTerm | OtherTerm . OtherTerms
this would allow XPointers of any length not just one or two OtherTerms.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 1026 bytes
Desc: not available
Url : http://mailman.ic.ac.uk/pipermail/xml-dev/attachments/19990302/b5d13faa/attachment.bin
More information about the Xml-dev