Select the value of the attribute orig-obj-ref from the root node named article-doc if (1) the value of orig-obj-ref begins with the letters 'http' or (2) the value of orig-obj-ref begins with the character '/'.
substring(@orig-obj-ref,1,4) is selecting characters beginning at character 1 for 4 characters.
substring(@orig-obj-ref,1,1) is selecting characters beginning at character 1 for 1 character.
The square brackets are specifying a predicate (constraint) on the node.
.
<article-doc orig-obj-ref="/blahblah">...</article-doc> would be selected. The value returned would be /blahblah.
<article-doc orig-obj-ref="blahblah">...</article-doc> would not be selected.
The '|' character is an operator in the expression.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.