Category: XML
-
Abbreviating the descendant axis in XSLT
Say we have the following XML: The question is, what does the XPath expression //para[1] return? I originally expected it to select all the para elements and then return just the first one. In fact, what it returns is This is because what the expression actually means is, “return all the para elements that are…