I was playing with this example in the xpath 3.0 spec:
fn:fold-left(function($a, $b) { $a + $b }, 0, 1 to 5)
I tried to substitute the inline function with a function defined by xsl:function.
I'd prefer books. Do you know of any due to be released? Work ongoing?
I ask as I want to get up to speed with the new features in 3.0 (I know its not finalized yet), but I can't seem to find much. I know I could ref the ongoing spec but if that…
What would be the most readable way to parse a URL query string into a { 'param': 'value' } map in XSLT/XPath 3.0?
Note: this is the inverse function of the one described in Building a URL query string from a map of parameters with XPath.
Update: I…
Basically what I would like is something like this that finds all nodes where the ID cannot be lookup'ed up ('broken links') :
But this is not working as…
I need to sort a sequence of elements using plain XPath 3.0, so no XQuery, no XSL-T and no code. I tried following this answer on how to use the sort function, but I'm not an expert in XPath, so I couldn't figure out how to use it.
So, my document…
An XPath expression of / returns the document node.
An XPath expression of /html is equivalent to /child::html and given an HTML document would return the html element. This is of course evaluated by going to the document node (indicated by the /)…
I have a XML code looking like this:
<div style="text-align: justify;">El Casino de Asturias alberga una sala polivalente para cualquier tipo de acto desde conferencias, convenciones o reuniones de trabajo, hasta…
I have some XML data with an inheritance-like semantics, and I'd like to make a query that takes the inheritance into consideration. I know it is not possible in XPath 1.0, but I believe it is possible in XPath 3.0, but I'm not familiar with 3.0.
So…
While answering this question, it occurred to me that I know how to use the XSLT 3.0 (XPath 3.0) serialize() function, but that I do not know how to avoid serialization of namespaces that are in scope. Here is a minimal example:
XML Input
XPath 3.0 defines a new operator called the 'mapping operator'. It is denoted by the exclamation mark --!.
What does A!B mean? How do we use the ! operator? Could someone give me an example?