I'm trying to use the simple mapping operator (!) as below
(1,7,2,4,5)!(.)
The above would return 1,7,2,4,5 as a sequence.But I need the values to be sorted in ascending order.
Is it possible to use order by with this mapping operator?If so,please…
I am new to XPath so do not know much. I have been googling for a bit and cannot find anything, maybe I am just searching the wrong thing but I thought I would ask on here.
I am currently trying to divide a set of numbers, (100, 200, 300), all by…
What is the simplest and correct way to round the time and dateTime in XPath?
For example, how to define a function local:round-time-to-minutes in such way that the following test-case:
let $t1 := xs:time( "12:58:37" )
let $t2 :=…
I have a sequence of strings that I need to parse as XML using XSLT. For example:
<span>Foo</span> & <span>bar</span> have been tagged.
When I try to parse this using fn:parse-xml-fragment (using Saxon-PE 9.6.0.5), two…
I would like to parse almost free format String to DateTime in XSL-T 3.0 as one can do it in Java using java.text.SimpleDateFormat. Is it possible?
I am using the latest Saxon HE 9.7.0.1 for Java and consulting it with the W3C CR 3.1 "XPath and…
Following @DimitreNovatchev's article Programming in XPath 3.0, and using BaseX GUI as the test environment, I tried some of the examples that define functions that accept functions as parameters. E.g. with
let $compose :=
function($f as…
Ich versuche mit einer Funktion sämtliche Zahlen aus einem Element oder String zu ermitteln. Dabei soll die Anzahl der Zahlen und ihre Stelligkeit egal sein.
Folgende Funktion habe ich bislang geschrieben:
In an xquery expression, I have obtained a set of values within a for-expression, and one value is in a separate variable.
Now, I want to subtract the single value from first value of the list, and then subtract consecutive members of the list from…
I have extracted successfully one value in one variable, and a list of values in another variable (as part of my XQuery expression).
Now, suppose the single-value variable is
x=1
and the list variable is named y with values
2,4,7,11,16
I want…
Using the below XML example, what's the best way to write the Xpath3 expression
If fruit is apple and quantity is less than 12 or if fruit is watermelon and quantity is less than 2) then return "in-store shopping" otherwise "online"`
First time I'm posting here myself instead of searching for existing answers. Wanted to try it out in case my demand for more specific questions increases.
So I want to write an XPath 3.0 query to extract all the names from each , but if there…