Getting absolute xpath in XdmAtomicValue
For cases, when giving xpath expression, we get XdmItem in 2 forms, XdmNode and XdmAtomicValue. We can get xpath if it is XdmNode but not in case of XdmAtomicValue. I made changes in FilterIterator, FirstItemExpression, Atomizer for this. Can this change be incorporated by your end. If no, can I pass on the change.
Updated by Michael Kay over 2 years ago
No sorry, that's totally against the XDM data model. Atomic values like "3" and "London" do not have any identity or location, the "London" that you get by concatenating "Lon" and "don" is exactly the same "London" that you get by taking the first six characters of "Londonderry". A string has no information about the provenance whence it came.
If you want this kind of location information, retrieve a text node, not an atomic value.
Please register to edit this issue