3109 lines
125 KiB
JSON
3109 lines
125 KiB
JSON
[
|
|
{
|
|
"entries": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"type": "item()*",
|
|
"description": "sequence of arguments"
|
|
}
|
|
],
|
|
"description": "Computes the effective boolean value of the sequence $arg.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-boolean",
|
|
"examples": [
|
|
{
|
|
"command": "boolean(\"true\")",
|
|
"output": "true"
|
|
}
|
|
],
|
|
"name": "boolean()",
|
|
"output": "boolean"
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"description": "Returns the xs:boolean value false.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-false",
|
|
"examples": [
|
|
{
|
|
"output": "false",
|
|
"command": "false()"
|
|
}
|
|
],
|
|
"name": "false()",
|
|
"output": "boolean"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"type": "item()*",
|
|
"description": "sequence of arguments"
|
|
}
|
|
],
|
|
"description": "Returns true if the effective boolean value of $arg is false, or false if it is true",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-not",
|
|
"examples": [
|
|
{
|
|
"output": "false",
|
|
"command": "not(\"true\")"
|
|
}
|
|
],
|
|
"name": "not()",
|
|
"output": "boolean"
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"description": "Returns the xs:boolean value true.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-true",
|
|
"examples": [
|
|
{
|
|
"output": "true",
|
|
"command": "true()"
|
|
}
|
|
],
|
|
"name": "true()",
|
|
"output": "boolean"
|
|
}
|
|
],
|
|
"name": "Boolean"
|
|
},
|
|
{
|
|
"entries": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"type": "any()*",
|
|
"description": "sequence"
|
|
}
|
|
],
|
|
"description": "Returns the average of the values in the input sequence $arg, that is, the sum of the values divided by the number of values.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-avg",
|
|
"examples": [
|
|
{
|
|
"output": "10",
|
|
"command": "avg( (5,10,15) )"
|
|
}
|
|
],
|
|
"name": "avg()",
|
|
"output": "any?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"type": "item()*",
|
|
"description": "sequence"
|
|
}
|
|
],
|
|
"description": "Returns the number of items in a sequence.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-count",
|
|
"examples": [
|
|
{
|
|
"output": "2",
|
|
"command": "count( ('release','11') )"
|
|
}
|
|
],
|
|
"name": "count()",
|
|
"output": "integer"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$collation",
|
|
"description": "collation",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$parameter1",
|
|
"description": "first sequence",
|
|
"type": "item()*"
|
|
},
|
|
{
|
|
"name": "$parameter2",
|
|
"type": "item()*",
|
|
"description": "second sequence"
|
|
}
|
|
],
|
|
"description": "This function assesses whether two sequences are deep-equal to each other. To be deep-equal, they must contain items that are pairwise deep-equal",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-deep-equal",
|
|
"examples": [
|
|
{
|
|
"command": "deep-equal( ('release','11') , ('release','11') )",
|
|
"output": "true"
|
|
}
|
|
],
|
|
"name": "deep-equal()",
|
|
"output": "boolean"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"type": "any()*",
|
|
"description": "base sequence"
|
|
},
|
|
{
|
|
"name": "$collation",
|
|
"description": "collation",
|
|
"type": "string?"
|
|
}
|
|
],
|
|
"description": "Returns the values that appear in a sequence, with duplicates eliminated.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-distinct-values",
|
|
"examples": [
|
|
{
|
|
"output": "('release','11','tools')",
|
|
"command": "distinct-values(('release','release','11','tools'))"
|
|
}
|
|
],
|
|
"name": "distinct-values()",
|
|
"output": "any()*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "input items",
|
|
"type": "item()*"
|
|
}
|
|
],
|
|
"description": "Returns true if the argument is the empty sequence.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-empty",
|
|
"examples": [
|
|
{
|
|
"command": "empty(//u:UserList[1]/u:User[1111])",
|
|
"output": "true"
|
|
}
|
|
],
|
|
"name": "empty()",
|
|
"output": "boolean"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"type": "item()*",
|
|
"description": "sequence"
|
|
}
|
|
],
|
|
"description": "Returns $arg if it contains exactly one item. Otherwise, raises an error.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-exactly-one",
|
|
"examples": [
|
|
{
|
|
"command": "exactly-one( ('release','11') )",
|
|
"output": "Raises an error"
|
|
}
|
|
],
|
|
"name": "exactly-one()",
|
|
"output": "item"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "input items",
|
|
"type": "item()*"
|
|
}
|
|
],
|
|
"description": "Returns true if the argument is a non-empty sequence.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-empty",
|
|
"examples": [
|
|
{
|
|
"command": "exists(//u:UserList[1]/u:User[1111])",
|
|
"output": "false"
|
|
}
|
|
],
|
|
"name": "exists()",
|
|
"output": "boolean"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "input items",
|
|
"type": "item()*"
|
|
}
|
|
],
|
|
"description": "Returns the first item in a sequence.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-head",
|
|
"examples": [
|
|
{
|
|
"output": "First item in UserList with childrens",
|
|
"command": "head(//u:UserList)"
|
|
}
|
|
],
|
|
"name": "head()",
|
|
"output": "item()?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$collation",
|
|
"description": "collation",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$search",
|
|
"type": "any",
|
|
"description": "item to find"
|
|
},
|
|
{
|
|
"name": "$seq",
|
|
"type": "any()*",
|
|
"description": "base sequence"
|
|
}
|
|
],
|
|
"description": "Returns a sequence of positive integers giving the positions within the sequence $seq of items that are equal to $search.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-index-of",
|
|
"examples": [
|
|
{
|
|
"output": "(1,2)",
|
|
"command": "index-of(('release','release','11','tools'),'release')"
|
|
}
|
|
],
|
|
"name": "index-of()",
|
|
"output": "integer*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$nodes",
|
|
"description": "input nodes",
|
|
"type": "node()*"
|
|
}
|
|
],
|
|
"description": "Returns every node within the input sequence that is not an ancestor of another member of the input sequence; the nodes are returned in document order with duplicates eliminated.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-innermost",
|
|
"examples": [
|
|
{
|
|
"command": "innermost(//u:UserList[1])",
|
|
"output": "node with childrens"
|
|
}
|
|
],
|
|
"name": "innermost()",
|
|
"output": "node()*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$inserts",
|
|
"type": "item()*",
|
|
"description": "itemst to insert"
|
|
},
|
|
{
|
|
"name": "$position",
|
|
"type": "integer",
|
|
"description": "position where insert data"
|
|
},
|
|
{
|
|
"name": "$target",
|
|
"description": "base sequence",
|
|
"type": "item()*"
|
|
}
|
|
],
|
|
"description": "Returns a sequence constructed by inserting an item or a sequence of items at a given position within an existing sequence.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-insert-before",
|
|
"examples": [
|
|
{
|
|
"output": "First UserList with 'hello' on the start",
|
|
"command": "insert-before(//u:UserList[1],1,\"hello\")"
|
|
}
|
|
],
|
|
"name": "insert-before()",
|
|
"output": "item()*"
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"description": "Returns the context size from the dynamic context",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-last",
|
|
"examples": [
|
|
{
|
|
"command": "//u:UserList[last()]",
|
|
"output": "Last UserList"
|
|
}
|
|
],
|
|
"name": "last()",
|
|
"output": "integer"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"type": "any()*",
|
|
"description": "sequence"
|
|
},
|
|
{
|
|
"name": "$collation",
|
|
"description": "collation",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Returns a value that is equal to the highest value appearing in the input sequence.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-max",
|
|
"examples": [
|
|
{
|
|
"output": "15",
|
|
"command": "max( (5,10,15) )"
|
|
}
|
|
],
|
|
"name": "max()",
|
|
"output": "any?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"type": "any()*",
|
|
"description": "sequence"
|
|
},
|
|
{
|
|
"name": "$collation",
|
|
"description": "collation",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Returns a value that is equal to the lowest value appearing in the input sequence.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-min",
|
|
"examples": [
|
|
{
|
|
"output": "5",
|
|
"command": "min( (5,10,15) )"
|
|
}
|
|
],
|
|
"name": "min()",
|
|
"output": "any?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"type": "item()*",
|
|
"description": "sequence"
|
|
}
|
|
],
|
|
"description": "Returns $arg if it contains one or more items. Otherwise, raises an error.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-one-or-more",
|
|
"examples": [
|
|
{
|
|
"output": "('release','11')",
|
|
"command": "one-or-more( ('release','11') )"
|
|
}
|
|
],
|
|
"name": "one-or-more()",
|
|
"output": "item+"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$nodes",
|
|
"description": "input nodes",
|
|
"type": "node()*"
|
|
}
|
|
],
|
|
"description": "Returns every node within the input sequence that has no ancestor that is itself a member of the input sequence; the nodes are returned in document order with duplicates eliminated.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-outermost",
|
|
"examples": [
|
|
{
|
|
"output": "node with childrens",
|
|
"command": "outermost(//u:UserList[1]/u:User[1])"
|
|
}
|
|
],
|
|
"name": "outermost()",
|
|
"output": "node()*"
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"description": "Returns the context position from the dynamic context.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-position",
|
|
"examples": [
|
|
{
|
|
"command": "//u:UserList[position() = 2]",
|
|
"output": "UserList with index 2"
|
|
}
|
|
],
|
|
"name": "position()",
|
|
"output": "integer"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$position",
|
|
"type": "integer",
|
|
"description": "position where insert data"
|
|
},
|
|
{
|
|
"name": "$target",
|
|
"description": "base sequence",
|
|
"type": "item()*"
|
|
}
|
|
],
|
|
"description": "Returns a new sequence containing all the items of $target except the item at position $position.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-remove",
|
|
"examples": [
|
|
{
|
|
"output": "First UserList witout second User",
|
|
"command": "remove(//u:UserList[1]/*,2)"
|
|
}
|
|
],
|
|
"name": "remove()",
|
|
"output": "item()*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "base sequence",
|
|
"type": "item()*"
|
|
}
|
|
],
|
|
"description": "Reverses the order of items in a sequence.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-reverse",
|
|
"examples": [
|
|
{
|
|
"command": "reverse(//u:UserList[1]/*)",
|
|
"output": "Users from first UserList, but in reversed order(from Id=4 to Id=1)"
|
|
}
|
|
],
|
|
"name": "reverse()",
|
|
"output": "item()*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$length",
|
|
"type": "double",
|
|
"description": "lenght to subsequence"
|
|
},
|
|
{
|
|
"name": "$startingLoc",
|
|
"type": "double",
|
|
"description": "starting location"
|
|
},
|
|
{
|
|
"name": "$surceSeq",
|
|
"description": "base sequence",
|
|
"type": "item()*"
|
|
}
|
|
],
|
|
"description": "Returns the contiguous sequence of items in the value of $sourceSeq beginning at the position indicated by the value of $startingLoc and continuing for the number of items indicated by the value of $length.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-subsequence",
|
|
"examples": [
|
|
{
|
|
"command": "subsequence(//u:UserList[1]/*,3,1)",
|
|
"output": "User on position 3"
|
|
}
|
|
],
|
|
"name": "subsequence()",
|
|
"output": "item()*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"type": "any()*",
|
|
"description": "sequence"
|
|
},
|
|
{
|
|
"name": "$zero",
|
|
"type": "any?",
|
|
"description": "value to return when sum is 0"
|
|
}
|
|
],
|
|
"description": "Returns a value obtained by adding together the values in $arg.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-sum",
|
|
"examples": [
|
|
{
|
|
"output": "30",
|
|
"command": "sum( (5,10,15) )"
|
|
}
|
|
],
|
|
"name": "sum()",
|
|
"output": "any?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "input items",
|
|
"type": "item()*"
|
|
}
|
|
],
|
|
"description": "Returns all but the first item in a sequence",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-tail",
|
|
"examples": [
|
|
{
|
|
"command": "tail(//u:UserList)",
|
|
"output": "UserList items without first element"
|
|
}
|
|
],
|
|
"name": "tail()",
|
|
"output": "item()*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$surceSeq",
|
|
"description": "base sequence",
|
|
"type": "item()*"
|
|
}
|
|
],
|
|
"description": "Returns the items of $sourceSeq in an implementation dependent order.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-unordered",
|
|
"examples": [
|
|
{
|
|
"command": "unordered(//u:UserList[1]/*)",
|
|
"output": "Users from UserList"
|
|
}
|
|
],
|
|
"name": "unordered()",
|
|
"output": "item()*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"type": "item()*",
|
|
"description": "sequence"
|
|
}
|
|
],
|
|
"description": "Returns $arg if it contains zero or one items. Otherwise, raises an error.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-zero-or-one",
|
|
"examples": [
|
|
{
|
|
"output": "raises an error",
|
|
"command": "zero-or-one( ('release','11') )"
|
|
}
|
|
],
|
|
"name": "zero-or-one()",
|
|
"output": "item?"
|
|
}
|
|
],
|
|
"name": "Collections"
|
|
},
|
|
{
|
|
"entries": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "date",
|
|
"type": "date?"
|
|
},
|
|
{
|
|
"name": "$timezone",
|
|
"type": "dayTimeDuration?",
|
|
"description": "timezone"
|
|
}
|
|
],
|
|
"description": "Adjusts an xs:date value to a specific timezone, or to no timezone at all; the result is the date in the target timezone that contains the starting instant of the supplied date.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-adjust-date-to-timezone",
|
|
"examples": [
|
|
{
|
|
"output": "2002-03-07-10:00",
|
|
"command": "adjust-date-to-timezone(xs:date(\"2002-03-07\"), $tz-10)"
|
|
}
|
|
],
|
|
"name": "adjust-date-to-timezone()",
|
|
"output": "date?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "datetime",
|
|
"type": "datetime?"
|
|
},
|
|
{
|
|
"name": "$timezone",
|
|
"type": "dayTimeDuration?",
|
|
"description": "timezone"
|
|
}
|
|
],
|
|
"description": "Adjusts an xs:dateTime value to a specific timezone, or to no timezone at all.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-adjust-dateTime-to-timezone",
|
|
"examples": [
|
|
{
|
|
"command": "adjust-dateTime-to-timezone(xs:dateTime('2002-03-07T10:00:00'), $tz-10)",
|
|
"output": "dateTime('2002-03-07T10:00:00-10:00')"
|
|
}
|
|
],
|
|
"name": "adjust-dateTime-to-timezone()",
|
|
"output": "dateTime?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "time",
|
|
"type": "time?"
|
|
},
|
|
{
|
|
"name": "$timezone",
|
|
"type": "dayTimeDuration?",
|
|
"description": "timezone"
|
|
}
|
|
],
|
|
"description": "Adjusts an xs:time value to a specific timezone, or to no timezone at all.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-adjust-time-to-timezone",
|
|
"examples": [
|
|
{
|
|
"output": "10:00:00-10:00",
|
|
"command": "adjust-time-to-timezone(xs:time(\"10:00:00\"), $tz-10)"
|
|
}
|
|
],
|
|
"name": "adjust-time-to-timezone()",
|
|
"output": "time?"
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"description": "Returns the current date.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-current-date",
|
|
"examples": [
|
|
{
|
|
"output": "2023-08-17Z",
|
|
"command": "current-date()"
|
|
}
|
|
],
|
|
"name": "current-date()",
|
|
"output": "date"
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"description": "Returns the current date and time (with timezone).",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-current-dateTime",
|
|
"examples": [
|
|
{
|
|
"output": "2023-08-17T10:34:53.526001419Z",
|
|
"command": "current-dateTime()"
|
|
}
|
|
],
|
|
"name": "current-dateTime()",
|
|
"output": "dateTimeStamp"
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"description": "Returns the current time.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-current-time",
|
|
"examples": [
|
|
{
|
|
"output": "10:36:53.154103936Z",
|
|
"command": "current-time()"
|
|
}
|
|
],
|
|
"name": "current-time()",
|
|
"output": "time"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "date",
|
|
"type": "date?"
|
|
},
|
|
{
|
|
"name": "$arg2",
|
|
"description": "time",
|
|
"type": "time?"
|
|
}
|
|
],
|
|
"description": "Returns an xs:dateTime value created by combining an xs:date and an xs:time.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-dateTime",
|
|
"examples": [
|
|
{
|
|
"output": "1999-12-31T12:00:00",
|
|
"command": "dateTime(xs:date(\"1999-12-31\"), xs:time(\"12:00:00\"))"
|
|
}
|
|
],
|
|
"name": "dateTime()",
|
|
"output": "dateTime"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "date",
|
|
"type": "date?"
|
|
}
|
|
],
|
|
"description": "Returns the day component of an xs:date.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-day-from-date",
|
|
"examples": [
|
|
{
|
|
"output": "31",
|
|
"command": "day-from-date(xs:date(\"1999-05-31\"))"
|
|
}
|
|
],
|
|
"name": "day-from-date()",
|
|
"output": "integer?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "date",
|
|
"type": "dateTime?"
|
|
}
|
|
],
|
|
"description": "Returns the day component of an xs:dateTime.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-day-from-dateTime",
|
|
"examples": [
|
|
{
|
|
"output": "31",
|
|
"command": "day-from-dateTime(xs:dateTime(\"1999-05-31T13:20:00-05:00\"))"
|
|
}
|
|
],
|
|
"name": "day-from-dateTime()",
|
|
"output": "integer?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "duration",
|
|
"type": "duration()"
|
|
}
|
|
],
|
|
"description": "Returns the number of days in a duration.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-days-from-duration",
|
|
"examples": [
|
|
{
|
|
"output": "3",
|
|
"command": "days-from-duration(xs:yearMonthDuration(\"P3DT10H\"))"
|
|
}
|
|
],
|
|
"name": "days-from-duration()",
|
|
"output": "integer"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$calendar",
|
|
"description": "calendar",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$language",
|
|
"description": "language",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$picture",
|
|
"description": "picture",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$place",
|
|
"description": "place",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$value",
|
|
"description": "date",
|
|
"type": "date?"
|
|
}
|
|
],
|
|
"description": "Returns a string containing an xs:date value formatted for display.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-format-date",
|
|
"examples": [],
|
|
"name": "format-date()",
|
|
"output": "string?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$calendar",
|
|
"description": "calendar",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$language",
|
|
"description": "language",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$picture",
|
|
"description": "picture",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$place",
|
|
"description": "place",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$value",
|
|
"description": "datetime",
|
|
"type": "dateTime?"
|
|
}
|
|
],
|
|
"description": "Returns a string containing an xs:dateTime value formatted for display.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-format-dateTime",
|
|
"examples": [],
|
|
"name": "format-dateTime()",
|
|
"output": "string?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$calendar",
|
|
"description": "calendar",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$language",
|
|
"description": "language",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$picture",
|
|
"description": "picture",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$place",
|
|
"description": "place",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$value",
|
|
"description": "time",
|
|
"type": "time?"
|
|
}
|
|
],
|
|
"description": "RReturns a string containing an xs:time value formatted for display.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-format-time",
|
|
"examples": [],
|
|
"name": "format-time()",
|
|
"output": "string?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "date",
|
|
"type": "dateTime?"
|
|
}
|
|
],
|
|
"description": "Returns the hours component of an xs:dateTime.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-hours-from-dateTime",
|
|
"examples": [
|
|
{
|
|
"output": "13",
|
|
"command": "hours-from-dateTime(xs:dateTime(\"1999-05-31T13:20:00-05:00\"))"
|
|
}
|
|
],
|
|
"name": "hours-from-dateTime()",
|
|
"output": "integer?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "duration",
|
|
"type": "duration()"
|
|
}
|
|
],
|
|
"description": "Returns the number of hours in a duration.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-days-from-duration",
|
|
"examples": [
|
|
{
|
|
"output": "10",
|
|
"command": "days-from-duration(xs:yearMonthDuration(\"P3DT10H\"))"
|
|
}
|
|
],
|
|
"name": "hours-from-duration()",
|
|
"output": "integer"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "time",
|
|
"type": "time?"
|
|
}
|
|
],
|
|
"description": "Returns the hours component of an xs:time.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-hours-from-time",
|
|
"examples": [
|
|
{
|
|
"output": "21",
|
|
"command": "hours-from-time(xs:time(\"21:37:37\"))"
|
|
}
|
|
],
|
|
"name": "hours-from-time()",
|
|
"output": "integer?"
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"description": "Returns the value of the implicit timezone property from the dynamic context.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-implicit-timezone",
|
|
"examples": [
|
|
{
|
|
"command": "implicit-timezone()",
|
|
"output": "PT0S"
|
|
}
|
|
],
|
|
"name": "implicit-timezone()",
|
|
"output": "dayTimeDuration"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "date",
|
|
"type": "dateTime?"
|
|
}
|
|
],
|
|
"description": "Returns the minutes component of an xs:dateTime.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-minutes-from-dateTime",
|
|
"examples": [
|
|
{
|
|
"output": "20",
|
|
"command": "minutes-from-dateTime(xs:dateTime(\"1999-05-31T13:20:00-05:00\"))"
|
|
}
|
|
],
|
|
"name": "minutes-from-dateTime()",
|
|
"output": "integer?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "duration",
|
|
"type": "duration()"
|
|
}
|
|
],
|
|
"description": "Returns the number of minutes in a duration.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-minutes-from-duration",
|
|
"examples": [
|
|
{
|
|
"output": "0",
|
|
"command": "minutes-from-duration(xs:yearMonthDuration(\"P3DT10H\"))"
|
|
}
|
|
],
|
|
"name": "minutes-from-duration()",
|
|
"output": "integer"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "time",
|
|
"type": "time?"
|
|
}
|
|
],
|
|
"description": "Returns the minutes component of an xs:time.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-minutes-from-time",
|
|
"examples": [
|
|
{
|
|
"output": "37",
|
|
"command": "minutes-from-time(xs:time(\"21:37:37\"))"
|
|
}
|
|
],
|
|
"name": "minutes-from-time()",
|
|
"output": "integer?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "date",
|
|
"type": "date?"
|
|
}
|
|
],
|
|
"description": "Returns the month component of an xs:date.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-month-from-date",
|
|
"examples": [
|
|
{
|
|
"output": "5",
|
|
"command": "month-from-date(xs:date(\"1999-05-31\"))"
|
|
}
|
|
],
|
|
"name": "month-from-date()",
|
|
"output": "integer?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "date",
|
|
"type": "dateTime?"
|
|
}
|
|
],
|
|
"description": "Returns the month component of an xs:dateTime.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-month-from-dateTime",
|
|
"examples": [
|
|
{
|
|
"output": "5",
|
|
"command": "month-from-dateTime(xs:dateTime(\"1999-05-31T13:20:00-05:00\"))"
|
|
}
|
|
],
|
|
"name": "month-from-dateTime()",
|
|
"output": "integer?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "duration",
|
|
"type": "duration()"
|
|
}
|
|
],
|
|
"description": "Returns the number of months in a duration.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-months-from-duration",
|
|
"examples": [
|
|
{
|
|
"output": "3",
|
|
"command": "months-from-duration(xs:yearMonthDuration(\"P20Y15M\"))"
|
|
}
|
|
],
|
|
"name": "months-from-duration()",
|
|
"output": "integer"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "date",
|
|
"type": "dateTime?"
|
|
}
|
|
],
|
|
"description": "Returns the seconds component of an xs:dateTime.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-seconds-from-dateTime",
|
|
"examples": [
|
|
{
|
|
"output": "1",
|
|
"command": "seconds-from-dateTime(xs:dateTime(\"1999-05-31T13:20:01-05:00\"))"
|
|
}
|
|
],
|
|
"name": "seconds-from-dateTime()",
|
|
"output": "integer?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "duration",
|
|
"type": "duration()"
|
|
}
|
|
],
|
|
"description": "Returns the number of seconds in a duration.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-seconds-from-duration",
|
|
"examples": [
|
|
{
|
|
"output": "12.5",
|
|
"command": "seconds-from-duration(xs:yearMonthDuration(\"P3DT10H12.5S\"))"
|
|
}
|
|
],
|
|
"name": "seconds-from-duration()",
|
|
"output": "integer"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "time",
|
|
"type": "time?"
|
|
}
|
|
],
|
|
"description": "Returns the seconds component of an xs:time.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-seconds-from-time",
|
|
"examples": [
|
|
{
|
|
"output": "37",
|
|
"command": "seconds-from-time(xs:time(\"21:37:37\"))"
|
|
}
|
|
],
|
|
"name": "seconds-from-time()",
|
|
"output": "integer?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "date",
|
|
"type": "date?"
|
|
}
|
|
],
|
|
"description": "Returns the timezone component of an xs:date.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-timezone-from-date",
|
|
"examples": [
|
|
{
|
|
"output": "-PT5H",
|
|
"command": "timezone-from-date(xs:date(\"1999-05-31-05:00\"))"
|
|
}
|
|
],
|
|
"name": "timezone-from-date()",
|
|
"output": "dayTimeDuration?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "date",
|
|
"type": "dateTime?"
|
|
}
|
|
],
|
|
"description": "Returns the timezone component of an xs:dateTime.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-timezone-from-dateTime",
|
|
"examples": [
|
|
{
|
|
"output": "-PT5H",
|
|
"command": "timezone-from-dateTime(xs:dateTime(\"1999-05-31T13:20:01-05:00\"))"
|
|
}
|
|
],
|
|
"name": "timezone-from-dateTime()",
|
|
"output": "integer?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "time",
|
|
"type": "time?"
|
|
}
|
|
],
|
|
"description": "Returns the timezone component of an xs:time.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-timezone-from-time",
|
|
"examples": [
|
|
{
|
|
"output": "-PT5H",
|
|
"command": "timezone-from-time(xs:time(\"21:37:37-05:00\"))"
|
|
}
|
|
],
|
|
"name": "timezone-from-time()",
|
|
"output": "dayTimeDuration?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "date",
|
|
"type": "date?"
|
|
}
|
|
],
|
|
"description": "Returns the year component of an xs:date.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-year-from-date",
|
|
"examples": [
|
|
{
|
|
"output": "1999",
|
|
"command": "year-from-date(xs:date(\"1999-05-31\"))"
|
|
}
|
|
],
|
|
"name": "year-from-date()",
|
|
"output": "integer?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "date",
|
|
"type": "dateTime?"
|
|
}
|
|
],
|
|
"description": "Returns the year component of an xs:dateTime.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-year-from-dateTime",
|
|
"examples": [
|
|
{
|
|
"output": "1999",
|
|
"command": "year-from-dateTime(xs:dateTime(\"1999-05-31T13:20:00-05:00\"))"
|
|
}
|
|
],
|
|
"name": "year-from-dateTime()",
|
|
"output": "integer?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "duration",
|
|
"type": "duration()"
|
|
}
|
|
],
|
|
"description": "Returns the number of years in a duration.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-years-from-duration",
|
|
"examples": [
|
|
{
|
|
"output": "21",
|
|
"command": "years-from-duration(xs:yearMonthDuration(\"P20Y15M\"))"
|
|
}
|
|
],
|
|
"name": "years-from-duration()",
|
|
"output": "integer"
|
|
}
|
|
],
|
|
"name": "Date/Time"
|
|
},
|
|
{
|
|
"entries": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$code",
|
|
"description": "Error code",
|
|
"type": "QName"
|
|
},
|
|
{
|
|
"name": "$description",
|
|
"description": "Error description",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "$eror-object",
|
|
"description": "Arbitrary value used to convey additional information about the error",
|
|
"type": "item()*"
|
|
}
|
|
],
|
|
"description": "Calling the error function raises an application-defined error.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-error",
|
|
"examples": [
|
|
{
|
|
"output": "Error signalled by application call on error()",
|
|
"command": "error()"
|
|
}
|
|
],
|
|
"name": "error()",
|
|
"output": "Throws an error"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$label",
|
|
"type": "string",
|
|
"description": "The label to put in tracing data"
|
|
},
|
|
{
|
|
"name": "$value",
|
|
"type": "item()*",
|
|
"description": "The value to returns unchanged"
|
|
}
|
|
],
|
|
"description": "Provides an execution trace intended to be used in debugging queries.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-trace",
|
|
"examples": [
|
|
{
|
|
"output": "Returns data, if something changes returns label with value",
|
|
"command": "trace(//u:UserList[1]/u:User[last()]/u:DateOfDeath, 'the value is:')"
|
|
}
|
|
],
|
|
"name": "trace()",
|
|
"output": "item()*"
|
|
}
|
|
],
|
|
"name": "Error"
|
|
},
|
|
{
|
|
"entries": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$f",
|
|
"description": "function to apply on every item in source collection",
|
|
"type": "function(item()*)"
|
|
},
|
|
{
|
|
"name": "$seq",
|
|
"type": "item()*",
|
|
"description": "source collection"
|
|
}
|
|
],
|
|
"description": "Returns those items from the sequence $seq for which the supplied function $f returns true.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-filter",
|
|
"examples": [
|
|
{
|
|
"output": "(2, 4, 6, 8, 10)",
|
|
"command": "filter(1 to 10, function($a) {$a mod 2 = 0})"
|
|
}
|
|
],
|
|
"name": "filter()",
|
|
"output": "item()*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$f",
|
|
"description": "function to apply on item in squence",
|
|
"type": "function(item()*)"
|
|
},
|
|
{
|
|
"name": "$seq",
|
|
"type": "item()*",
|
|
"description": "source collection"
|
|
},
|
|
{
|
|
"name": "$zero",
|
|
"description": "if source collection is empty",
|
|
"type": "item()*"
|
|
}
|
|
],
|
|
"description": "Processes the supplied sequence from left to right, applying the supplied function repeatedly to each item in turn, together with an accumulated result value.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-fold-left",
|
|
"examples": [
|
|
{
|
|
"output": "210",
|
|
"command": "fold-left((2,3,5,7), 1, function($a, $b) { $a * $b })"
|
|
}
|
|
],
|
|
"name": "fold-left()",
|
|
"output": "item()*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$f",
|
|
"description": "function to apply on item in squence",
|
|
"type": "function(item()*)"
|
|
},
|
|
{
|
|
"name": "$seq",
|
|
"type": "item()*",
|
|
"description": "source collection"
|
|
},
|
|
{
|
|
"name": "$zero",
|
|
"description": "if source collection is empty",
|
|
"type": "item()*"
|
|
}
|
|
],
|
|
"description": "Processes the supplied sequence from right to left, applying the supplied function repeatedly to each item in turn, together with an accumulated result value.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-fold-right",
|
|
"examples": [
|
|
{
|
|
"output": "210",
|
|
"command": "fold-right((2,3,5,7), 1, function($a, $b) { $a * $b })"
|
|
}
|
|
],
|
|
"name": "fold-right()",
|
|
"output": "item()*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$f",
|
|
"description": "function to apply on every item in source collection",
|
|
"type": "function(item()*)"
|
|
},
|
|
{
|
|
"name": "$seq",
|
|
"type": "item()*",
|
|
"description": "source collection"
|
|
}
|
|
],
|
|
"description": "Applies the function item $f to every item from the sequence $seq in turn, returning the concatenation of the resulting sequences in order.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-for-each",
|
|
"examples": [
|
|
{
|
|
"output": "(1, 4, 9, 16, 25)",
|
|
"command": "for-each(1 to 5, function($a) { $a * $a })"
|
|
}
|
|
],
|
|
"name": "for-each()",
|
|
"output": "item()*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$f",
|
|
"description": "function to apply on items in squence",
|
|
"type": "function(item()*)"
|
|
},
|
|
{
|
|
"name": "$seq1",
|
|
"description": "first sequence",
|
|
"type": "item()*"
|
|
},
|
|
{
|
|
"name": "$seq2",
|
|
"type": "item()*",
|
|
"description": "second sequence"
|
|
}
|
|
],
|
|
"description": "Applies the function item $f to successive pairs of items taken one from $seq1 and one from $seq2, returning the concatenation of the resulting sequences in order.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-for-each-pair",
|
|
"examples": [
|
|
{
|
|
"output": "(\"ax\", \"by\", \"cz\")",
|
|
"command": "for-each-pair((\"a\", \"b\", \"c\"), (\"x\", \"y\", \"z\"), concat#2)"
|
|
}
|
|
],
|
|
"name": "for-each-pair()",
|
|
"output": "item()*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$func",
|
|
"description": "function",
|
|
"type": "function(*)"
|
|
}
|
|
],
|
|
"description": "Returns the arity of the function identified by a function item.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-function-arity",
|
|
"examples": [
|
|
{
|
|
"output": "2",
|
|
"command": "function-arity(substring#2)"
|
|
}
|
|
],
|
|
"name": "function-arity()",
|
|
"output": "integer"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arity",
|
|
"type": "integer",
|
|
"description": "number of arguments"
|
|
},
|
|
{
|
|
"name": "$name",
|
|
"description": "function Name",
|
|
"type": "QName"
|
|
}
|
|
],
|
|
"description": "Returns the function having a given name and arity, if there is one.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-function-lookup",
|
|
"examples": [],
|
|
"name": "function-lookup()",
|
|
"output": "function(*)?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$func",
|
|
"description": "function",
|
|
"type": "function(*)"
|
|
}
|
|
],
|
|
"description": "Returns the name of the function identified by a function item.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-function-name",
|
|
"examples": [
|
|
{
|
|
"output": "fn:substring",
|
|
"command": "function-name(substring#2)"
|
|
}
|
|
],
|
|
"name": "function-name()",
|
|
"output": "QName?"
|
|
}
|
|
],
|
|
"name": "Loop/Conditional"
|
|
},
|
|
{
|
|
"entries": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$paramQName",
|
|
"type": "QName parameter"
|
|
},
|
|
{
|
|
"name": "$paramURI",
|
|
"type": "string?",
|
|
"description": "URI Parameter"
|
|
}
|
|
],
|
|
"description": "Constructs an xs:QName value given a namespace URI and a lexical QName.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-QName",
|
|
"examples": [
|
|
{
|
|
"command": "QName(\"http://www.release11.com/schemas/Sample.xsd\", \"u:User\")",
|
|
"output": "u:User"
|
|
}
|
|
],
|
|
"name": "QName()",
|
|
"output": "QName"
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"description": "Returns a list of environment variable names that are suitable for passing to environment-variable()",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-available-environment-variables",
|
|
"examples": [
|
|
{
|
|
"output": "('PATH','HOSTNAME','JAVA_HOME','PWD','JAVA_VERSION','LANG','HOME')",
|
|
"command": "available-environment-variables()"
|
|
}
|
|
],
|
|
"name": "available-environment-variables()",
|
|
"output": "string()*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "collection uri",
|
|
"type": "string()?"
|
|
}
|
|
],
|
|
"description": "Returns a sequence of nodes representing a collection of documents indentified by a collection URI; or a default collection if no URI is supplied.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-collection",
|
|
"examples": [
|
|
{
|
|
"command": "collection()",
|
|
"output": "No default collection has been defined"
|
|
}
|
|
],
|
|
"name": "collection()",
|
|
"output": "boolean"
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"description": "Returns the value of the default collation property from the static context.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-default-collation",
|
|
"examples": [
|
|
{
|
|
"command": "default-collation()",
|
|
"output": "http://www.w3.org/2005/xpath-functions/collation/codepoint"
|
|
}
|
|
],
|
|
"name": "default-collation()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$uri",
|
|
"type": "string()?",
|
|
"description": "URI"
|
|
}
|
|
],
|
|
"description": "Retrieves a document using a URI supplied as an xs:string, and returns the corresponding document node.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-doc",
|
|
"examples": [
|
|
{
|
|
"command": "doc(\"\")",
|
|
"output": "xml source"
|
|
}
|
|
],
|
|
"name": "doc()",
|
|
"output": "document-node?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$uri",
|
|
"type": "string()?",
|
|
"description": "URI"
|
|
}
|
|
],
|
|
"description": "The function returns true if and only if the function call fn:doc($uri) would return a document node.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-doc-available",
|
|
"examples": [
|
|
{
|
|
"command": "doc-available(\"http://api.nbp.pl/api/cenyzlota/today\")",
|
|
"output": "false"
|
|
}
|
|
],
|
|
"name": "doc-available()",
|
|
"output": "boolean"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$uri-part",
|
|
"type": "string?",
|
|
"description": "uri part"
|
|
}
|
|
],
|
|
"description": "Encodes reserved characters in a string that is intended to be used in the path segment of a URI.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-encode-for-uri",
|
|
"examples": [
|
|
{
|
|
"command": "encode-for-uri(\"release 11 tools\")",
|
|
"output": "release%2011%20tools"
|
|
}
|
|
],
|
|
"name": "encode-for-uri()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$name",
|
|
"description": "enviroment variable name",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Returns the value of a system environment variable, if it exists.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-environment-variable",
|
|
"examples": [
|
|
{
|
|
"output": "C.UTF-8",
|
|
"command": "environment-variable(\"LANG\")"
|
|
}
|
|
],
|
|
"name": "environment-variable()",
|
|
"output": "string()?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$uri",
|
|
"type": "string?",
|
|
"description": "uri"
|
|
}
|
|
],
|
|
"description": "Escapes a URI in the same way that HTML user agents handle attribute values expected to contain URIs.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-escape-html-uri",
|
|
"examples": [
|
|
{
|
|
"command": "escape-html-uri (\"http://www.example.com/00/Weather/CA/Los Angeles#ocean\")",
|
|
"output": "http://www.example.com/00/Weather/CA/Los Angeles#ocean"
|
|
}
|
|
],
|
|
"name": "escape-html-uri()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$element",
|
|
"type": "element()",
|
|
"description": "scope to get prefix from"
|
|
}
|
|
],
|
|
"description": "Returns the prefixes of the in-scope namespaces for an element node.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-in-scope-prefixes",
|
|
"examples": [
|
|
{
|
|
"output": "('u','xsi','xml')",
|
|
"command": "in-scope-prefixes(//u:UserList[1])"
|
|
}
|
|
],
|
|
"name": "in-scope-prefixes()",
|
|
"output": "string*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$iri",
|
|
"description": "iri",
|
|
"type": "string?"
|
|
}
|
|
],
|
|
"description": "Converts a string containing an IRI into a URI",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-iri-to-uri",
|
|
"examples": [
|
|
{
|
|
"output": "http://tools.release11.com/?xpath&%20some%20additional%20data",
|
|
"command": "iri-to-uri(\"http://tools.release11.com/?xpath& some additional data\")"
|
|
}
|
|
],
|
|
"name": "iri-to-uri()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$node",
|
|
"description": "node to test",
|
|
"type": "node()?"
|
|
},
|
|
{
|
|
"name": "$testlang",
|
|
"description": "language",
|
|
"type": "string()?"
|
|
}
|
|
],
|
|
"description": "This function tests whether the language of $node, or the context item if the second argument is omitted, as specified by xml:lang attributes is the same as, or is a sublanguage of, the language specified by $testlang.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-lang",
|
|
"examples": [
|
|
{
|
|
"output": "false",
|
|
"command": "lang('pl',//u:UserList[1])"
|
|
}
|
|
],
|
|
"name": "lang()",
|
|
"output": "boolean"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "QName",
|
|
"type": "QName?"
|
|
}
|
|
],
|
|
"description": "Returns the local part of the supplied QName.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-local-name-from-QName",
|
|
"examples": [
|
|
{
|
|
"command": "local-name-from-QName(xs:QName(\"u:User\"))",
|
|
"output": "User"
|
|
}
|
|
],
|
|
"name": "local-name-from-QName()",
|
|
"output": "NCName"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$element",
|
|
"description": "element where namespace exist",
|
|
"type": "element()"
|
|
},
|
|
{
|
|
"name": "$prefix",
|
|
"description": "namespace prefix",
|
|
"type": "string?"
|
|
}
|
|
],
|
|
"description": "Returns the namespace URI of one of the in-scope namespaces for $element, identified by its namespace prefix.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-namespace-uri-for-prefix",
|
|
"examples": [
|
|
{
|
|
"output": "http://www.release11.com/schemas/Sample.xsd",
|
|
"command": "namespace-uri-for-prefix(\"u\",//u:UserList[1])"
|
|
}
|
|
],
|
|
"name": "namespace-uri-for-prefix()",
|
|
"output": "URI?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "QName",
|
|
"type": "QName?"
|
|
}
|
|
],
|
|
"description": "Returns the namespace URI part of the supplied QName.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-namespace-uri-from-QName",
|
|
"examples": [
|
|
{
|
|
"output": "http://www.release11.com/schemas/Sample.xsd",
|
|
"command": "namespace-uri-from-QName(xs:QName(\"u:User\"))"
|
|
}
|
|
],
|
|
"name": "namespace-uri-from-QName()",
|
|
"output": "URI?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"type": "string?",
|
|
"description": "XML String"
|
|
}
|
|
],
|
|
"description": "This function takes as input an XML document represented as a string, and returns the document node at the root of an XDM tree representing the parsed document.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-parse-xml",
|
|
"examples": [
|
|
{
|
|
"command": "parse-xml(unparsed-text('http://api.nbp.pl/api/cenyzlota/today?format=xml'))",
|
|
"output": "Parsed as XML data from NBP Api"
|
|
}
|
|
],
|
|
"name": "parse-xml()",
|
|
"output": "document-node(element(*))?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"type": "string?",
|
|
"description": "XML Fragment String"
|
|
}
|
|
],
|
|
"description": "This function takes as input an XML external entity represented as a string, and returns the document node at the root of an XDM tree representing the parsed document fragment.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-parse-xml-fragment",
|
|
"examples": [
|
|
{
|
|
"output": "data XML, but as XML Document",
|
|
"command": "parse-xml-fragment('<data>hello</data>')"
|
|
}
|
|
],
|
|
"name": "parse-xml-fragment()",
|
|
"output": "document-node()?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "QName",
|
|
"type": "QName?"
|
|
}
|
|
],
|
|
"description": "Returns the prefix component of the supplied QName.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-prefix-from-QName",
|
|
"examples": [
|
|
{
|
|
"command": "prefix-from-QName(xs:QName(\"u:User\"))",
|
|
"output": "u"
|
|
}
|
|
],
|
|
"name": "prefix-from-QName()",
|
|
"output": "NCName"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$element",
|
|
"type": "element"
|
|
},
|
|
{
|
|
"name": "$qname",
|
|
"description": "qname",
|
|
"type": "string?"
|
|
}
|
|
],
|
|
"description": "Returns an xs:QName value (that is, an expanded-QName) by taking an xs:string that has the lexical form of an xs:QName",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-resolve-QName",
|
|
"examples": [
|
|
{
|
|
"output": "hello",
|
|
"command": "resolve-QName(\"hello\", //u:UserList[1]/u:User[1]/u:Name)"
|
|
}
|
|
],
|
|
"name": "resolve-QName()",
|
|
"output": "QName"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$relative",
|
|
"description": "Source string",
|
|
"type": "string?"
|
|
}
|
|
],
|
|
"description": "Resolves a relative IRI reference against an absolute IRI.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-resolve-uri",
|
|
"examples": [
|
|
{
|
|
"command": " resolve-uri(\"u:User/u:Name\") ",
|
|
"output": "u:User/u:Name"
|
|
}
|
|
],
|
|
"name": "resolve-uri()",
|
|
"output": "URI"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "input sequence",
|
|
"type": "item()*"
|
|
},
|
|
{
|
|
"name": "$params",
|
|
"type": "element()?",
|
|
"description": "parameters"
|
|
}
|
|
],
|
|
"description": "This function serializes the supplied input sequence $arg, returning the serialized representation of the sequence as a string.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-serialize",
|
|
"examples": [
|
|
{
|
|
"output": "first users serialized to String",
|
|
"command": "serialize(//u:User[1])"
|
|
}
|
|
],
|
|
"name": "serialize()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [],
|
|
"description": "This function returns the value of the Static Base URI property from the static context.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-static-base-uri",
|
|
"examples": [
|
|
{
|
|
"output": "",
|
|
"command": "static-base-uri()"
|
|
}
|
|
],
|
|
"name": "static-base-uri()",
|
|
"output": "URI"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$encoding",
|
|
"description": "resource encoding",
|
|
"type": "string()?"
|
|
},
|
|
{
|
|
"name": "$href",
|
|
"description": "external resource href",
|
|
"type": "string()?"
|
|
}
|
|
],
|
|
"description": "Reads an external resource (for example, a file) and returns a string representation of the resource.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-unparsed-text",
|
|
"examples": [
|
|
{
|
|
"command": "unparsed-text(\"https://api.nbp.pl/api/cenyzlota/today?format=xml\")",
|
|
"output": "XML data from nbp API"
|
|
}
|
|
],
|
|
"name": "unparsed-text()",
|
|
"output": "string()?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$encoding",
|
|
"description": "resource encoding",
|
|
"type": "string()?"
|
|
},
|
|
{
|
|
"name": "$href",
|
|
"description": "external resource href",
|
|
"type": "string()?"
|
|
}
|
|
],
|
|
"description": "Because errors in evaluating the unparsed-text() function are non-recoverable, these two functions are provided to allow an application to determine whether a call with particular arguments would succeed",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-available",
|
|
"examples": [
|
|
{
|
|
"output": "true",
|
|
"command": "unparsed-text-available(\"https://api.nbp.pl/api/cenyzlota/today?format=xml\")"
|
|
}
|
|
],
|
|
"name": "unparsed-text-available()",
|
|
"output": "boolean"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$encoding",
|
|
"description": "resource encoding",
|
|
"type": "string()?"
|
|
},
|
|
{
|
|
"name": "$href",
|
|
"description": "external resource href",
|
|
"type": "string()?"
|
|
}
|
|
],
|
|
"description": "reads an external resource (for example, a file) and returns its contents as a sequence of strings, one for each line of text in the string representation of the resource.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-unparsed-text-lines",
|
|
"examples": [
|
|
{
|
|
"command": "unparsed-text-lines(\"https://api.nbp.pl/api/cenyzlota/today?format=xml\")",
|
|
"output": "XML data from nbp API"
|
|
}
|
|
],
|
|
"name": "unparsed-text-lines()",
|
|
"output": "string()*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "collection uri",
|
|
"type": "string()?"
|
|
}
|
|
],
|
|
"description": "Returns a sequence of xs:anyURI values representing the URIs in a resource collection.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-uri-collection",
|
|
"examples": [
|
|
{
|
|
"output": "No default collection has been defined",
|
|
"command": "uri-collection()"
|
|
}
|
|
],
|
|
"name": "uri-collection()",
|
|
"output": "URI*"
|
|
}
|
|
],
|
|
"name": "Misc"
|
|
},
|
|
{
|
|
"entries": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "node to read base URI",
|
|
"type": "node()?"
|
|
}
|
|
],
|
|
"description": "Returns the base URI of a node.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-base-uri",
|
|
"examples": [
|
|
{
|
|
"output": "",
|
|
"command": "base-uri()"
|
|
}
|
|
],
|
|
"name": "base-uri()",
|
|
"output": "URI"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"type": "item()*",
|
|
"description": "items to get data from"
|
|
}
|
|
],
|
|
"description": "Returns the result of atomizing a sequence, that is, replacing all nodes in the sequence by their typed values.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-data",
|
|
"examples": [
|
|
{
|
|
"command": "data(//u:UserList[last()]/*[1])",
|
|
"output": "New \n \t Folder \n \t 2023-11-10"
|
|
}
|
|
],
|
|
"name": "data()",
|
|
"output": "any"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "node to read base URI",
|
|
"type": "node()?"
|
|
}
|
|
],
|
|
"description": "Returns the URI of a resource where a document can be found, if available.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-document-uri",
|
|
"examples": [
|
|
{
|
|
"output": "",
|
|
"command": "document-uri()"
|
|
}
|
|
],
|
|
"name": "document-uri()",
|
|
"output": "URI"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "ID Value",
|
|
"type": "string*"
|
|
},
|
|
{
|
|
"name": "$node",
|
|
"description": "node",
|
|
"type": "node?"
|
|
}
|
|
],
|
|
"description": "Returns the sequence of element nodes that have an ID value matching the value of one or more of the IDREF values supplied in $arg.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-element-with-id",
|
|
"examples": [],
|
|
"name": "element-with-id()",
|
|
"output": "element*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "Node to generate id",
|
|
"type": "node?"
|
|
}
|
|
],
|
|
"description": "This function returns a string that uniquely identifies a given node.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-generate-id",
|
|
"examples": [
|
|
{
|
|
"output": "d0e3",
|
|
"command": "generate-id(//u:UserList[1])"
|
|
}
|
|
],
|
|
"name": "generate-id()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$node",
|
|
"description": "node to check children",
|
|
"type": "node()?"
|
|
}
|
|
],
|
|
"description": "Returns true if the supplied node has one or more child nodes (of any kind).",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-has-children",
|
|
"examples": [
|
|
{
|
|
"command": "has-children(//u:UserList[1])",
|
|
"output": "true"
|
|
}
|
|
],
|
|
"name": "has-children()",
|
|
"output": "boolean"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "ID Value",
|
|
"type": "string*"
|
|
},
|
|
{
|
|
"name": "$node",
|
|
"description": "node",
|
|
"type": "node?"
|
|
}
|
|
],
|
|
"description": "Returns the sequence of element nodes that have an ID value matching the value of one or more of the IDREF values supplied in $arg.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-id",
|
|
"examples": [],
|
|
"name": "id()",
|
|
"output": "element*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "ID Value",
|
|
"type": "string*"
|
|
},
|
|
{
|
|
"name": "$node",
|
|
"description": "node",
|
|
"type": "node?"
|
|
}
|
|
],
|
|
"description": "Returns the sequence of element or attribute nodes with an IDREF value matching the value of one or more of the ID values supplied in $arg",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-idref",
|
|
"examples": [],
|
|
"name": "idref()",
|
|
"output": "node*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "node to read local name from",
|
|
"type": "node()?"
|
|
}
|
|
],
|
|
"description": "Returns the local part of the name of $arg as an xs:string that is either the zero-length string, or has the lexical form of an xs:NCName.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-local-name",
|
|
"examples": [
|
|
{
|
|
"command": "local-name(//u:UserList[1])",
|
|
"output": "UserList"
|
|
}
|
|
],
|
|
"name": "local-name()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "node to read name from",
|
|
"type": "node()?"
|
|
}
|
|
],
|
|
"description": "Returns the name of a node, as an xs:string that is either the zero-length string, or has the lexical form of an xs:QName.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-name",
|
|
"examples": [
|
|
{
|
|
"command": "name(//u:UserList[1])",
|
|
"output": "u:UserList"
|
|
}
|
|
],
|
|
"name": "name()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "node to read namespace uri from",
|
|
"type": "node()?"
|
|
}
|
|
],
|
|
"description": "Returns the namespace URI part of the name of $arg, as an xs:anyURI value.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-namespace-uri",
|
|
"examples": [
|
|
{
|
|
"output": "http://www.release11.com/schemas/Sample.xsd",
|
|
"command": "namespace-uri(//u:UserList[1])"
|
|
}
|
|
],
|
|
"name": "namespace-uri()",
|
|
"output": "URI"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"type": "node",
|
|
"description": "Node to check if nilled"
|
|
}
|
|
],
|
|
"description": "Returns true for an element that is nilled",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-nilled",
|
|
"examples": [
|
|
{
|
|
"output": "false",
|
|
"command": "nilled(/u:root)"
|
|
}
|
|
],
|
|
"name": "nilled()",
|
|
"output": "boolean"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"type": "node",
|
|
"description": "Node to getName from"
|
|
}
|
|
],
|
|
"description": "Returns the name of a node",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-node-name",
|
|
"examples": [
|
|
{
|
|
"command": "node-name(/u:root)",
|
|
"output": "u:root"
|
|
}
|
|
],
|
|
"name": "node-name()",
|
|
"output": "QNname"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "node to read path from",
|
|
"type": "node()?"
|
|
}
|
|
],
|
|
"description": "Returns a path expression that can be used to select the supplied node relative to the root of its containing document.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-path",
|
|
"examples": [
|
|
{
|
|
"output": "/Q{http://www.release11.com/schemas/Sample.xsd}root[1]/Q{http://www.release11.com/schemas/Sample.xsd}UserList[1]",
|
|
"command": "path(//u:UserList[1])"
|
|
}
|
|
],
|
|
"name": "path()",
|
|
"output": "string()?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "node to read namespace uri from",
|
|
"type": "node()?"
|
|
}
|
|
],
|
|
"description": "Returns the root of the tree to which $arg belongs. This will usually, but not necessarily, be a document node.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-root",
|
|
"examples": [],
|
|
"name": "root()",
|
|
"output": "node()?"
|
|
}
|
|
],
|
|
"name": "Node-Set"
|
|
},
|
|
{
|
|
"entries": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "Number to get absolute value from",
|
|
"type": "numeric?"
|
|
}
|
|
],
|
|
"description": "Returns the absolute value of argument",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-abs",
|
|
"examples": [
|
|
{
|
|
"output": "10.5",
|
|
"command": "abs(-10.5)"
|
|
}
|
|
],
|
|
"name": "abs()",
|
|
"output": "numeric?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "Number to round upwards",
|
|
"type": "numeric?"
|
|
}
|
|
],
|
|
"description": "Rounds argument upwards to a whole number.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-ceiling",
|
|
"examples": [
|
|
{
|
|
"output": "11",
|
|
"command": "ceiling(10.5)"
|
|
}
|
|
],
|
|
"name": "ceiling()",
|
|
"output": "numeric?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "Number to round downwards",
|
|
"type": "numeric?"
|
|
}
|
|
],
|
|
"description": "Rounds argument downwards to a whole number.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-floor",
|
|
"examples": [
|
|
{
|
|
"output": "10",
|
|
"command": "floor(10.5)"
|
|
}
|
|
],
|
|
"name": "floor()",
|
|
"output": "numeric?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"type": "any?",
|
|
"description": "Data to parse as number"
|
|
}
|
|
],
|
|
"description": "Returns the value indicated by argument or, if argument is not specified, the context item after atomization, converted to an double.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-number",
|
|
"examples": [
|
|
{
|
|
"output": "NaN",
|
|
"command": "number(//u:UserList[1]/u:User[1]/u:Name)"
|
|
},
|
|
{
|
|
"output": "2137",
|
|
"command": "number(\"2137\")"
|
|
}
|
|
],
|
|
"name": "number()",
|
|
"output": "double"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "Number to round",
|
|
"type": "numeric?"
|
|
},
|
|
{
|
|
"name": "$precision",
|
|
"type": "integer?",
|
|
"description": "precision for rounding"
|
|
}
|
|
],
|
|
"description": "Rounds a value to a specified number of decimal places, rounding upwards if two such values are equally near.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-round",
|
|
"examples": [
|
|
{
|
|
"output": "2",
|
|
"command": "round(2.49999)"
|
|
},
|
|
{
|
|
"output": "1.13",
|
|
"command": "round(1.125,2)"
|
|
}
|
|
],
|
|
"name": "round()",
|
|
"output": "numeric?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "Number to round",
|
|
"type": "numeric?"
|
|
},
|
|
{
|
|
"name": "$precision",
|
|
"type": "integer?",
|
|
"description": "precision for rounding"
|
|
}
|
|
],
|
|
"description": "Rounds a value to a specified number of decimal places, rounding to make the last digit even if two such values are equally near.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-round-half-to-even",
|
|
"examples": [
|
|
{
|
|
"output": "0",
|
|
"command": "round-half-to-even(0.5)"
|
|
},
|
|
{
|
|
"output": "35600",
|
|
"command": "round-half-to-even(35612.25, -2)"
|
|
}
|
|
],
|
|
"name": "round-half-to-even()",
|
|
"output": "numeric?"
|
|
}
|
|
],
|
|
"name": "Numeric"
|
|
},
|
|
{
|
|
"entries": [
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$flags",
|
|
"type": "string",
|
|
"description": "string to replace searched fragment with"
|
|
},
|
|
{
|
|
"name": "$input",
|
|
"description": "Source string",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$pattern",
|
|
"description": "regex",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Analyzes a string using a regular expression, returning an XML structure that identifies which parts of the input string matched or failed to match the regular expression, and in the case of matched substrings, which substrings matched each capturing group in the regular expression.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-analyze-string",
|
|
"examples": [
|
|
{
|
|
"command": " analyze-string(\"A1,C15,,D24, X50,\", \"([A-Z])([0-9]+)\") ",
|
|
"output": "<analyze-string-result xmlns=\"http://www.w3.org/2005/xpath-functions\"><match><group nr=\"1\">A</group><group nr=\"2\">1</group></match><non-match>,</non-match><match><group nr=\"1\">C</group><group nr=\"2\">15</group></match><non-match>,,</non-match><match><group nr=\"1\">D</group><group nr=\"2\">24</group></match><non-match>, </non-match><match><group nr=\"1\">X</group><group nr=\"2\">50</group></match><non-match>,</non-match></analyze-string-result>"
|
|
}
|
|
],
|
|
"name": "analyze-string()",
|
|
"output": "element"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$comparand1",
|
|
"description": "First comparand",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$comparand2",
|
|
"description": "Second comparand",
|
|
"type": "string?"
|
|
}
|
|
],
|
|
"description": "Returns true if two strings are equal, considered codepoint-by-codepoint.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-codepoint-equal",
|
|
"examples": [
|
|
{
|
|
"command": "codepoint-equal(\"abcd\", \"abcd\")",
|
|
"output": "true"
|
|
},
|
|
{
|
|
"command": "codepoint-equal(\"abcd\", \"abcd \")",
|
|
"output": "false"
|
|
}
|
|
],
|
|
"name": "codepoint-equal()",
|
|
"output": "boolean"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "Codepoints",
|
|
"type": "integer*"
|
|
}
|
|
],
|
|
"description": "Creates an String from a sequence of codepoints.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-codepoints-to-string",
|
|
"examples": [
|
|
{
|
|
"command": "codepoints-to-string(0)",
|
|
"output": "FOCH0001"
|
|
},
|
|
{
|
|
"output": "( ͡° ͜ʖ ͡°)",
|
|
"command": "codepoints-to-string((40, 32, 865, 176, 32, 860, 662, 32, 865, 176, 41))"
|
|
}
|
|
],
|
|
"name": "codepoints-to-string()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$collation",
|
|
"description": "Rules of collation",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$comparand1",
|
|
"description": "First comparand",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$comparand2",
|
|
"description": "Second comparand",
|
|
"type": "string?"
|
|
}
|
|
],
|
|
"description": "Returns -1, 0, or 1, depending on whether $comparand1 collates before, equal to, or after $comparand2 according to the rules of a selected collation.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-compare",
|
|
"examples": [
|
|
{
|
|
"output": "0",
|
|
"command": "compare('abc', 'abc')"
|
|
},
|
|
{
|
|
"output": "1",
|
|
"command": "compare('Strassen', 'Straße')"
|
|
}
|
|
],
|
|
"name": "compare()",
|
|
"output": "integer?"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg1",
|
|
"type": "any?",
|
|
"description": "First element to concat"
|
|
},
|
|
{
|
|
"name": "$arg1",
|
|
"type": "any?",
|
|
"description": "Second element to concat"
|
|
},
|
|
{
|
|
"name": "...",
|
|
"type": "any*",
|
|
"description": "Other elements to concat"
|
|
}
|
|
],
|
|
"description": "Returns the concatenation of the string values of the arguments.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-concat",
|
|
"examples": [
|
|
{
|
|
"command": "concat('un', 'grateful')",
|
|
"output": "ungrateful"
|
|
},
|
|
{
|
|
"command": "concat('release11',' web',' tools')",
|
|
"output": "release11 web tools"
|
|
}
|
|
],
|
|
"name": "concat()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg1",
|
|
"description": "Source string",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$arg2",
|
|
"description": "searched string",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$collation",
|
|
"description": "collation",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Returns true if the string $arg1 contains $arg2 as a substring, taking collations into account.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-contains",
|
|
"examples": [
|
|
{
|
|
"command": "contains(\"release11Tools\",\"Tools\")",
|
|
"output": "true"
|
|
}
|
|
],
|
|
"name": "contains()",
|
|
"output": "boolean"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg1",
|
|
"description": "Source string",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$arg2",
|
|
"description": "searched string",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$collation",
|
|
"description": "collation",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Returns true if the string $arg1 contains $arg2 as a trailing substring, taking collations into account.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-ends-with",
|
|
"examples": [
|
|
{
|
|
"command": "ends-with(\"release11Tools\",\"ols\")",
|
|
"output": "true"
|
|
}
|
|
],
|
|
"name": "ends-with()",
|
|
"output": "boolean"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$lang",
|
|
"description": "language to represent number",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$picture",
|
|
"description": "format to represent number",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "$value",
|
|
"description": "integer value to format",
|
|
"type": "integer?"
|
|
}
|
|
],
|
|
"description": "Formats an integer according to a given picture string, using the conventions of a given natural language if specified.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-format-integer",
|
|
"examples": [
|
|
{
|
|
"command": "format-integer(123, 'w')",
|
|
"output": "one hundred and twenty-three"
|
|
},
|
|
{
|
|
"output": "21st",
|
|
"command": "format-integer(21, '1;o', 'en')"
|
|
}
|
|
],
|
|
"name": "format-integer()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$decimal-format-name",
|
|
"description": "language to represent number",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$picture",
|
|
"description": "format to represent number",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "$value",
|
|
"description": "numeric value to format",
|
|
"type": "numeric?"
|
|
}
|
|
],
|
|
"description": "Returns a string containing a number formatted according to a given picture string, taking account of decimal formats specified in the static context.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-format-number",
|
|
"examples": [
|
|
{
|
|
"output": "12,345.60",
|
|
"command": "format-number(12345.6, '#,###.00')"
|
|
},
|
|
{
|
|
"output": "-006",
|
|
"command": "format-number(-6, '000')"
|
|
}
|
|
],
|
|
"name": "format-integer()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "Source string",
|
|
"type": "string?"
|
|
}
|
|
],
|
|
"description": "Converts a string to lower case.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-lower-case",
|
|
"examples": [
|
|
{
|
|
"command": "lower-case(\"RELEASE11 TOOLS\")",
|
|
"output": "release11 tools"
|
|
}
|
|
],
|
|
"name": "lower-case()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$flags",
|
|
"description": "regex flags",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "$input",
|
|
"description": "Source string",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$pattern",
|
|
"description": "regex",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Returns true if the supplied string matches a given regular expression.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-matches",
|
|
"examples": [
|
|
{
|
|
"command": "matches(\"release11Tools\",\"^.*11T.*$\")",
|
|
"output": "true"
|
|
}
|
|
],
|
|
"name": "matches()",
|
|
"output": "boolean"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "Source string",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$normalizationForm",
|
|
"description": "Normalization form",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Returns the value of $arg after applying Unicode normalization.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-normalize-unicode",
|
|
"examples": [
|
|
{
|
|
"command": "normalize-unicode(\"release11Tools\",\"NFC\")",
|
|
"output": "release11Tools"
|
|
}
|
|
],
|
|
"name": "normalize-unicode()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$input",
|
|
"description": "Source string",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$pattern",
|
|
"description": "fragment to replace",
|
|
"type": "string"
|
|
},
|
|
{
|
|
"name": "$replacement",
|
|
"type": "string",
|
|
"description": "string to replace searched fragment with"
|
|
}
|
|
],
|
|
"description": "Returns a string produced from the input string by replacing any substrings that match a given regular expression with a supplied replacement string.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-replace",
|
|
"examples": [
|
|
{
|
|
"output": "release 11 WebTools",
|
|
"command": "replace(\"release11Tools\",\"11T.*\",\" 11 WebTools\")"
|
|
}
|
|
],
|
|
"name": "replace()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg1",
|
|
"description": "Source string",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$arg2",
|
|
"description": "searched string",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$collation",
|
|
"description": "collation",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Returns true if the string $arg1 contains $arg2 as a leading substring, taking collations into account.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-starts-with",
|
|
"examples": [
|
|
{
|
|
"command": "starts-with(\"release11Tools\",\"rel\")",
|
|
"output": "true"
|
|
}
|
|
],
|
|
"name": "starts-with()",
|
|
"output": "boolean"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"type": "item",
|
|
"description": "Item to represent as String"
|
|
}
|
|
],
|
|
"description": "Returns the string value of an item",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-string",
|
|
"examples": [
|
|
{
|
|
"output": "\"23\"",
|
|
"command": "string(23)"
|
|
},
|
|
{
|
|
"output": "John",
|
|
"command": "string(/u:root/u:UserList[1]/u:User[last()]/u:Name)"
|
|
}
|
|
],
|
|
"name": "string()",
|
|
"output": "String"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg1",
|
|
"description": "Stings to join",
|
|
"type": "string*"
|
|
},
|
|
{
|
|
"name": "$arg2",
|
|
"description": "Separator",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Returns a string created by concatenating the items in a sequence, with a defined separator between adjacent items.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-concat",
|
|
"examples": [
|
|
{
|
|
"output": "Now is the time ...",
|
|
"command": "string-join(('Now', 'is', 'the', 'time', '...'), ' ')"
|
|
},
|
|
{
|
|
"output": "release11%%web%%tools",
|
|
"command": "string-join(('release11','web','tools'),'%%')"
|
|
}
|
|
],
|
|
"name": "string-join()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "Source string",
|
|
"type": "string?"
|
|
}
|
|
],
|
|
"description": "Returns the number of characters in a string.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-string-length",
|
|
"examples": [
|
|
{
|
|
"output": "45",
|
|
"command": "string-length(\"Harp not on that string, madam; that is past.\")"
|
|
},
|
|
{
|
|
"output": "16",
|
|
"command": "string-length(\"Release 11 tools\")"
|
|
}
|
|
],
|
|
"name": "string-length()",
|
|
"output": "integer"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "String value",
|
|
"type": "string?"
|
|
}
|
|
],
|
|
"description": "Returns the sequence of codepoints that constitute an string value.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-string-to-codepoints",
|
|
"examples": [
|
|
{
|
|
"output": "(72, 101, 108, 108, 111)",
|
|
"command": "string-to-codepoints('Hello')"
|
|
},
|
|
{
|
|
"output": "(40, 32, 865, 176, 32, 860, 662, 32, 865, 176, 41)",
|
|
"command": "string-to-codepoints('( ͡° ͜ʖ ͡°)')"
|
|
}
|
|
],
|
|
"name": "string-to-codepoints()",
|
|
"output": "integer*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$length",
|
|
"type": "double",
|
|
"description": "length to substring"
|
|
},
|
|
{
|
|
"name": "$sourceString",
|
|
"description": "Source string",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$start",
|
|
"type": "double",
|
|
"description": "start index"
|
|
}
|
|
],
|
|
"description": "Returns the portion of the value of $sourceString beginning at the position indicated by the value of $start and continuing for the number of ·characters· indicated by the value of $length.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-substring",
|
|
"examples": [
|
|
{
|
|
"output": "car",
|
|
"command": "substring(\"motor car\", 6)"
|
|
},
|
|
{
|
|
"output": "Release 11 tools <3",
|
|
"command": "substring(\"Release 11 tools <3 unnecesary words\",1,19)"
|
|
}
|
|
],
|
|
"name": "substring()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg1",
|
|
"description": "Source string",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$arg2",
|
|
"description": "searched string",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$collation",
|
|
"description": "collation",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Returns the part of $arg1 that follows the first occurrence of $arg2, taking collations into account.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-substring-after",
|
|
"examples": [
|
|
{
|
|
"output": "ease11Tools",
|
|
"command": "substring-after(\"release11Tools\",\"rel\")"
|
|
}
|
|
],
|
|
"name": "substring-after()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg1",
|
|
"description": "Source string",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$arg2",
|
|
"description": "searched string",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$collation",
|
|
"description": "collation",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Returns the part of $arg1 that precedes the first occurrence of $arg2, taking collations into account.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-substring-before",
|
|
"examples": [
|
|
{
|
|
"output": "release11To",
|
|
"command": "substring-before(\"release11Tools\",\"ols\")"
|
|
}
|
|
],
|
|
"name": "substring-before()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$flags",
|
|
"type": "string",
|
|
"description": "string to replace searched fragment with"
|
|
},
|
|
{
|
|
"name": "$input",
|
|
"description": "Source string",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$pattern",
|
|
"description": "fragment to replace",
|
|
"type": "string"
|
|
}
|
|
],
|
|
"description": "Returns a sequence of strings constructed by splitting the input wherever a separator is found; the separator is any substring that matches a given regular expression.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-tokenize",
|
|
"examples": [
|
|
{
|
|
"output": "release\nTools",
|
|
"command": "tokenize(\"release11Tools\",\"11\")"
|
|
}
|
|
],
|
|
"name": "tokenize()",
|
|
"output": "string*"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "Source string",
|
|
"type": "string?"
|
|
},
|
|
{
|
|
"name": "$mapString",
|
|
"type": "string",
|
|
"description": "string to map"
|
|
},
|
|
{
|
|
"name": "$transString",
|
|
"type": "string",
|
|
"description": "transition string"
|
|
}
|
|
],
|
|
"description": "Returns the value of $arg modified by replacing or removing individual characters.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-translate",
|
|
"examples": [
|
|
{
|
|
"output": "BAr",
|
|
"command": "translate(\"bar\",\"abc\",\"ABC\")"
|
|
}
|
|
],
|
|
"name": "translate()",
|
|
"output": "string"
|
|
},
|
|
{
|
|
"arguments": [
|
|
{
|
|
"name": "$arg",
|
|
"description": "Source string",
|
|
"type": "string?"
|
|
}
|
|
],
|
|
"description": "Converts a string to upper case.",
|
|
"documentationReferenceURL": "https://www.w3.org/TR/xpath-functions-30/#func-upper-case",
|
|
"examples": [
|
|
{
|
|
"output": "RELEASE11 TOOLS",
|
|
"command": "upper-case(\"release11 tools\")"
|
|
}
|
|
],
|
|
"name": "upper-case()",
|
|
"output": "string"
|
|
}
|
|
],
|
|
"name": "String"
|
|
}
|
|
] |