So at 11:42 of "Advanced Digital Editing: Introduction to XPath II", it says ./descendent::head is the same as //head which I do find to be the case. But in the book XQuery for Humanists (p.62) it says A double slash (//) stands for /descendant-or-self::node()/.
I know from having debugged a problematic query that /descendant-or-self::node()/head is not the same as /descendent-or-self::head (particularly when it comes to looking for attributes within /head which I think are technically siblings, not descendents), but I don't know why, especially since functionally it seems to just make // equivalent to, as mentioned in the video, ./descendent::head.
Can you possibly explain the difference between the two definitions (yours and XQH's) for // ?
So at 11:42 of "Advanced Digital Editing: Introduction to XPath II", it says
./descendent::headis the same as//headwhich I do find to be the case. But in the book XQuery for Humanists (p.62) it saysA double slash (//) stands for /descendant-or-self::node()/.I know from having debugged a problematic query that
/descendant-or-self::node()/headis not the same as/descendent-or-self::head(particularly when it comes to looking for attributes within/headwhich I think are technically siblings, not descendents), but I don't know why, especially since functionally it seems to just make // equivalent to, as mentioned in the video,./descendent::head.Can you possibly explain the difference between the two definitions (yours and XQH's) for // ?