The escape-uri() function applies the URI escaping conventions defined in RFC 2396 to an input string. For example, «escape-uri("my document.xml", true()) » returns the string «my%20document.xml ».
|
Argument |
Data Type |
Meaning |
|---|---|---|
|
value |
xs:string |
The input string, to which URI escaping is to be applied |
|
escape-reserved |
xs:boolean |
Set to
true
if
|
|
Result |
xs:string |
The URI in its escaped form, as a string. |
The
exactly-one()
function returns its argument
unchanged, provided that it is a sequence containing exactly one
item. In other cases, it
|
Argument |
Data Type |
Meaning |
|---|---|---|
|
Value |
item()* |
The input value. Although the function signature says that any sequence of items is allowed, a runtime error will occur if the number of items is not exactly one |
|
Result |
item() |
The same as the supplied value, after checking to ensure that it contains a single item |
The exists() function returns true if and only if a supplied sequence contains at least one item.
|
Argument |
Data Type |
Meaning |
|---|---|---|
|
sequence |
item()* |
The input sequence |
|
Result |
xs:boolean |
true
if the input sequence is non-empty,
|
The
expanded-QName()
function returns a value of
type
xs:QName,
given a namespace URI and a local
|
Argument |
Data Type |
Meaning |
|---|---|---|
|
namespace |
xs:string |
The namespace URI part of the
xs:QName,
or a
|
|
local-name |
xs:string |
The local part of the xs:QName. This must conform to the XML rules for an NCName |
|
Result |
xs:QName |
The newly
|
This function returns the boolean value false. There are no arguments.
|
Data Type |
Meaning |
|
|---|---|---|
|
Result |
xs:boolean |
The xs:boolean value false |
The floor() function returns the largest integer value that is less than or equal to the numeric value of the argument. The result has the same data type as the supplied value, for example if the supplied value is an xs:double then the result is returned as an xs:double .
For example, the expression «floor(11.3) » returns the decimal value 11 , while «floor(-11.3) » returns -12 .
|
Argument |
Data Type |
Meaning |
|---|---|---|
|
value |
Numeric |
The supplied number |
|
Result |
Numeric |
The result of rounding down the supplied number to the integer below. The result has the same primitive data type as the supplied value |
This function
|
Argument |
Data Type |
Meaning |
|---|---|---|
|
input |
xdt:yearMonthDuration |
The value from which the hours component is to be extracted |
|
Result |
xs:integer |
The number of hours in the duration, after normalizing it so that 60 minutes is represented as one
|
This entry covers two
These functions extract the
|
Argument |
Data Type |
Meaning |
|---|---|---|
|
input |
xs:dateTime? or xs:time? |
The value from which the hours component is to be extracted. The
data type of the supplied argument must
|
|
Result |
xs: intege r |
The hours component of the time |