This chapter describes an overview of the platform extended functions.
This chapter explains the platform extended functions.
function:base-name Function
function:document Function
function:document-uri Function
function:file-extension Function
function:file-name Function
function:generate-url Function
function:mime-type Function
function:parent-directory Function
function:relative-url Function
function:resource-exist Function
function:synchronous-document Function
function:url-decode Function
function:url-encode Function
function:abs Function
function:acos Function
function:acosh Function
function:asin Function
function:asinh Function
function:atan Function
function:atan2 Function
function:atanh Function
function:cos Function
function:cosh Function
function:degrees Function
function:even Function
function:exp Function
function:fact Function
function:fact-double Function
function:int Function
function:is-nan Function
function:ln Function
function:log Function
function:log10 Function
function:long-subtract Function
function:odd Function
function:pi Function
function:power Function
function:product Function
function:radians Function
function:rand Function
function:rand-between Function
function:sin Function
function:sinh Function
function:sqrt Function
function:tan Function
function:tanh Function
This chapter describes an overview of the platform extended functions.
Appended to the XPath functions on the platform running VC. Used to describe a condition to apply VC template rule, an attribute value template, etc., like as in the XPath functions.
The namespace URI reference for the platform extended function is http://xmlns.xfytec.com/function. In the descriptions below, we use function: as the namespace prefix to describe every platform extended function.
Also, we use the following namespaces and their prefixes in the descriptions below.
xvcd: as the namespace prefix. For more information, see the VC Core Reference.
This section explains the features, arguments, and return value of each platform extended function by its functionality. Types of argument and return value are represented with the types described in specifications on XPath functions.
The input/output functions are listed below.
function:base-name FunctionReturns file name which excludes extension of the specified file by URL.
string function:base-name( url )
string url
Specify the encoded URL of file name without extension you want to get.
string
function:base-name() function returns file name without extension. The file name should be URL encoded.
If the file represented by the URL that is specified with the argument does not have an extension, the file name is returned. If the URL that is specified with the argument is a directory, the directory name is returned.
function:document Functionloads the specified document and returns it as a node set. The loading of a document is executed asynchronously.
Use function:synchronous-document() function if you want to load a document synchronously.
node-set function:document( url, reserved?, mimeType? )
string url
Specify encoded URL for document to load.
string reserved
Now, unavailable. Reserved for possible compatibility with future XSLT document() function.
Optional, if you don't specify mimeType argument.
string mimeType
Specify the MIME type of the loading document. If this argument is specified, the document is forcibly loaded in specified MIME type. To specify this argument, you need to specify reserved.
If omitted, the document is loaded according to the MIME type specified to the document.
node-set
The function returns the read document as a node set. If a return value is taken during loading a document, a null node set will be returned.
function:document-uri FunctionReturns the URL of the specified node.
string function:document-uri( node-expression? )
node-set node-expression
Specify the node whose URL you want to get.
If omitted, a context node is assumed to be specified.
string
The function returns the encoded URL of the specified node. If an argument is not specified, the URL of the context node will be returned. If the specified node does not have a URL, a null string will be returned.
function:file-extension FunctionReturns the extension of the file specified by URL.
string function:file-extension( url, option? )
string url
Specify the encoded URL of extension you want to get.
boolean option
Using a true/false value, specify whether a period ( . ) is added to the extension you want to get. If true is specified, an extension with a period is returned. If false is specified, an extension without a period is returned.
If omitted, true is assumed to be specified.
string
Returns a file extension.
function:file-name FunctionReturns file name which includes the extension of the specified file by URL.
string function:file-name( url? )
string url
Specify the encoded URL of file name you want to get.
If omitted, the file name of the document currently being edited is returned.
string
function:base-name() function returns file name including extension. The file name should be URL encoded. If an argument is omitted and document being edited is not saved as a new document, a null string is returned.
function:generate-url FunctionGenerates an absolute URL from a reference URL and a relative path to a file.
string function:generate-url( baseUrl?, relativePath )
string baseUrl
Specify the absolute URL for the reference URL of the URL to generate. Specify it by encoded URL.
If omitted, the URL of the document node including the context node is used.
string relativePath
Specify the file URL relative to reference URL. Specify it by encoded URL.
string
Returns an absolute URL to a file. The URL is encoded.
function:mime-type FunctionReturns the MIME type of a file.
string function:mime-type( url )
string url
Specify the encoded URL of MIME type you want to get.
string
Returns a MIME type string specified in url.
function:parent-directory FunctionReturns the URL of the parent directory of the file specified by URL.
string function:parent-directory( url, option? )
string url
Specify the encoded URL of parent directory you want to get.
boolean option
Using a true/false value, specify whether /(slash) is added to the end of the URL of the directory returned by this function. If true is specified, a URL with a slash is returned. If false is specified, a URL without a slash is returned.
If omitted, true is assumed to be specified.
string
Returns the encoded URL of the parent directory of the file specified by url.
function:relative-url FunctionCompares the reference URL represented by an absolute URL and another absolute URL, and returns the URL relative to reference URL.
string function:relative-url( baseUrl, url )
string baseUrl
Specify the absolute URL to which the URL is relative. Specify it by encoded URL.
string url
Specify the absolute URL which you want to make relative to the reference URL. Specify it by encoded URL.
string
Returns the relative URL to url which baseUrl is the reference. If relative URL cannot be converted to because of a different URL scheme, etc. or because URL may be specified incorrectly, a null string will be returned.
function:resource-exist FunctionChecks whether the resource specified by URL exists.
boolean function:resource-exist( url )
string url
Specify the absolute URL to the resource whose existence you want to check. Specify it by encoded URL.
boolean
Returns whether the resource specified by url exists using a true/false value. If true is returned, the resource specified by URL exists. If false is returned, the specified resource does not exist.
function:synchronous-document Functionloads the specified document and returns it as a node set. The loading of a document is executed synchronously.
If the loading does need synchronizing, function:document() function is available.
node-set function:synchronous-document( url, reserved?, mimeType? )
string url
Specify encoded URL for document to load.
string reserved
Reserved for possible compatibility with future XSLT document() function. Now, unavailable.
Optional, if you don't specify mimeType argument.
string mimeType
Specify the MIME type of the loading document. If this argument is specified, the document is forcibly loaded in specified MIME type. To specify this argument, you need to specify reserved.
If omitted, the document is loaded according to the MIME type specified to the document.
node-set
The function returns the read document as a node set. Unlike the function:document() function, the loading is completed when function exits. If an error occurs during loading, a null node set will be returned.
function:url-decode Function
Converts the URL string with escape characters (for example: %20) in % hh format (h is a-f, A-F, 0-9) to URL string without escape characters. The text conversion is done based on UTF-8 coding scheme.
string function:url-decode( url )
string url
Specify the URL string that may contain an escape character.
string
Returns the URL string without escape characters.
function:url-encode FunctionConverts the URL that may contain characters, such as whitespace characters, which need to be converted to escape characters to the URL string (encoded URL) which contains them converted to escape characters. The text conversion is done based on UTF-8 coding scheme.
The characters to be converted to escape characters are all characters except the following:
a-z, A-Z)
0-9)
If the second argument is omitted, the URL will be converted according to the following rules:
a-z, A-Z)and numbers (0-9) are not converted.
-_.*/:;!?$#&+=~@[]) are not converted.
'%' is treated as follows:
%20) and in % hh format (h is either a-f, A-F, or 0-9).
%25.
string function:url-encode( url, char? )
string url
Specify the URL string that may contain characters which need to be converted to escape characters.
string char
Specify characters not converted to escape characters.
If omitted, the specification mentioned above determines.
string
Returns the URL string in which required characters are converted to escape characters.
The numeric functions are listed below.
function:abs FunctionReturns an absolute value.
number function:abs( number )
number number
Specify the real number of the numeric whose absolute value you want.
number
Returns an absolute value of the numeric value specified by the argument.
function:acos FunctionReturns an arccosine.
number function:acos( number )
number number
Specify the numeric expressed by a real number which is greater than or equal to -1 and less than or equal to 1.
number
Returns arccosine angle in radians derived from the argument numeric. If an argument value is not a real number greater than or equal to -1 and less than or equal to 1, positive infinity (Infinity) or negative infinity (-Infinity) defined in XPath is returned.
function:acosh FunctionReturns a hyperbolic arccosine.
number function:acosh( number )
number number
This can be a real number value greater than 1.
number
Returns a hyperbolic arccosine value derived from the argument numeric. If the argument value is a real number less than 1, NaN (Not a Number) defined in XPath is returned.
function:asin FunctionReturns an arcsine.
number function:asin( number )
number number
Specify the numeric expressed by a real number which is greater than or equal to -1 and less than or equal to 1.
number
Returns arcsine angle value in radians derived from the argument numeric. If an argument value is not a real number greater than or equal to -1 and less than or equal to 1, positive infinity (Infinity) or negative infinity (-Infinity) defined in XPath is returned.
function:asinh FunctionReturns a hyperbolic arcsine.
number function:asinh( number )
number number
It can be a real number.
number
Returns a hyperbolic arcsine value derived from the argument numeric.
function:atan FunctionReturns an arctangent.
number function:atan( number )
number number
It can be a real number.
number
Returns the arctangent value derived from the argument numeric. An arctangent value can be an angle value in radians greater than or equal to -pi/2 and less than or equal to pi/2. If the argument is 0, NaN (Not a Number) defined in XPath is returned.
function:atan2 FunctionReturns the arctangent derived from the difference between two coordinate values.
number function:atan2( number1, number2 )
number number1
Specifies the real number for the first coordinate value.
number number2
Specifies the real number for the second coordinate value.
number
Returns the arctangent derived from the difference between coordinate1 and coordinate2. An arctangent value can be an angle value in radians greater than or equal to -pi/2 and less than or equal to pi/2. If the difference between coordinate1 and coordinate2 is 0, NaN (Not a Number) defined in XPath is returned.
function:atanh FunctionReturns a hyperbolic arctangent.
number function:atanh( number )
number number
Specify the numeric expressed by a real number which is greater than or equal to -1 and less than or equal to 1.
number
Returns the hyperbolic arctangent value derived from the argument numeric. If an argument value is not a real number greater than or equal to -1 and less than or equal to 1, positive infinity (Infinity) or negative infinity (-Infinity) defined in XPath is returned.
function:cos FunctionReturns a cosine.
number function:cos( number )
number number
Specify the angle in radians.
number
Returns the cosine value derived from the angle specified by the argument.
function:cosh FunctionReturns a hyperbolic cosine.
number function:cosh( number )
number number
It can be a real number.
number
Returns a hyperbolic cosine value derived from the argument numeric.
function:degrees FunctionConverts the angle in radians to the angle in degrees.
number function:degrees( radian )
number radian
Specify the angle in radians.
number
Returns the angle value in degrees converted from specified value in radians.
function:even FunctionReturns a minimum even integer greater than or equal to the specified number.
number function:even( number )
number number
Specify any real number.
number
Returns a minimum even integer, with original sign appended to it, greater than or equal to the absolute value of the specified number.
function:exp FunctionReturns the power of the base of natural logarithm.
number function:exp( number )
number number
Specify any real number.
number
Returns the base of natural logarithm e raised to the power of the power number.
function:fact FunctionReturns a factorial value.
number function:fact( number )
number number
Specify any real number.
number
Returns the factorial value derived from the integer to which the specified argument is rounded down. If the specified number in the argument is greater than 170, NaN (Not a Number) defined in XPath is returned.
function:fact-double FunctionReturns a double factorial value.
number function:fact-double( number )
number number
Specify any real number.
number
Returns the factorial value derived from the integer to which the specified argument is rounded down. If the specified number in the argument is greater than 300, NaN (Not a Number) defined in XPath is returned.
function:int FunctionReturns the integer part of a real number rounded toward zero.
integer function:int( number )
number number
Specify any real number.
integer
Returns the integer to which the specified argument is rounded down.
function:is-nan FunctionReturns whether the specified value is NaN(Not a Number) or not.
boolean function:is-nan( number )
number number
It can be any number.
boolean
Returns whether the specified argument is NaN(Not a Number) or not by using a true/false value. Returns true if the argument is NaN. Otherwise , false is returned.
function:ln FunctionReturns a natural logarithm.
number function:ln( number )
number number
Specify any positive real number.
number
Returns a natural logarithm value of the value specified by the argument. If the argument is inappropriate, the following value is returned respectively:
NaN (Not a Number) or a negative number,
NaN is returned.
0,
NaN (Not a Number), positive infinity (Infinity), and negative infinity (-Infinity) are special values defined in XPath.
function:log FunctionReturns a logarithm to the specified base.
number function:log( number1, number2? )
number number1
Specify any real number to compute a logarithm.
number number2
Specify the number for the base of logarithm. For the number, specify a positive real number other than 1.
If omitted, 10 is assumed to be specified.
number
Returns the logarithm value of number1 with the base specified by number2. If either number1 or number2 is inappropriate, NaN (Not a Number) defined in XPath is returned.
function:log10 FunctionReturns a common logarithm.
number function:log10( number )
number number
Set any positive real number.
number
Returns a common logarithm value of the value specified by the argument. If the argument is inappropriate, the following value is returned respectively:
NaN (Not a Number) or a negative number,
NaN is returned.
0,
NaN (Not a Number), positive infinity (Infinity), and negative infinity (-Infinity) are special values defined in XPath.
function:long-subtract FunctionReturns the difference between the specified integer strings.
string function:long-subtract( string1, string2 )
string string1
Specify the string for the subtracted integer.
string string2
Specify the string for the subtracting integer.
string
Returns the result in integer string of subtracting integer string2 from integer string1. If the argument is not an integer string, an error occurs.
function:odd FunctionReturns a minimum odd integer greater than or equal to the specified number.
number function:odd( number )
number number
Specify any real number.
number
Returns a minimum odd integer, with original sign appended to it, greater than or equal to the absolute value of the specified number.
function:pi FunctionReturns the pi in number.
number function:pi( )
No argument.
number
Returns the pi value in number (3.1415926535898).
function:power FunctionReturns the power value.
number function:power( number1, number2 )
number number1
Specify any real number for the base of the power.
number number2
Specify any real number for the number of the power.
number
Returns the base number of the power calculation raised to the power of the power number. If both arguments are 0, NaN (Not a Number) defined in XPath is returned.
function:product FunctionReturns the product of numbers included in the specified node set.
number function:product( node-set )
node-set node-set
Specify the node set to calculate the product.
number
Returns the product within a node set. For example, returns 162 if the product within a node set is 3, 6, 9. If there exists a node within the node set which cannot be converted to a number, NaN(Not a Number) will be returned.
function:radians FunctionConverts the angle in degrees to the value in radians.
number function:radians( angle )
number angle
Sets the angle in degrees.
number
Returns the value in radians converted from specified angle value in degrees.
function:rand FunctionReturns a random number.
number function:rand( )
No argument.
number
Returns a random value greater than or equal to 0 and less than or equal to 1.
function:rand-between FunctionReturns the random number within the specified range.
number function:rand-between( min, max )
number min
Specify the lower limit integer of int type for the random numbers' range.
number max
Specify the upper limit integer of int type for the random numbers' range.
number
Returns a random number greater than or equal to the beginning of the range (min) and less than or equal to the ending of the range (max). If the beginning value of the range is less than the ending value of the range, or if the argument is not an integer of int type, NaN (Not a Number) defined in XPath is returned.
function:sin FunctionReturns a sine.
number function:sin( number )
number number
Specify the angle in radians.
number
Returns the sine value derived from the angle specified by the argument.
function:sinh FunctionReturns a hyperbolic sine.
number function:sinh( number )
number number
It can be a real number.
number
Returns a hyperbolic value derived from the argument numeric.
function:sqrt FunctionReturns a square root.
number function:sqrt( number )
number number
It can be any number.
number
Returns the square root derived from the argument number. If the argument is inappropriate, the following value is returned respectively:
NaN (Not a Number) or a negative number,
NaN is returned.
0,
0 is returned.
NaN (Not a Number), positive infinity (Infinity), and negative infinity (-Infinity) are special values defined in XPath.
function:tan FunctionReturns a tangent.
number function:tan( number )
number number
Specify the angle in radians.
number
Returns the tangent value derived from the angle specified by the argument. If the argument is either -pi/2 or pi/2, NaN (Not a Number) defined in XPath is returned.
function:tanh FunctionReturns a hyperbolic tangent.
number function:tanh( number )
number number
It can be a real number.
number
Returns the hyperbolic tangent value derived from the argument numeric.
The statistics functions are listed below.
function:average FunctionReturns the mathematical average value of the numeric value converted from the string included in each node within the node set.
number function:average( node-set )
node-set node-set
Specify the node set to calculate the average value.
number
Returns the average value of the numeric value converted from the string included in each node within the node set. If there exists a node within the node set which cannot be converted to a number, NaN (Not a Number) defined in XPath will be returned.
function:max FunctionReturns the maximum value of the numeric value converted from the string included in each node within the node set.
number function:max( node-set )
node-set node-set
Specify the node set to calculate the maximum value.
number
Returns the maximum value of the numeric value converted from the string included in each node within the node set. If there exists a node within the node set which cannot be converted to a number, NaN (Not a Number) defined in XPath will be returned.
function:min FunctionReturns the minimum value of the numeric value converted from the string included in each node within the node set.
number function:min( node-set )
node-set node-set
Specify the node set to calculate the minimum value.
number
Returns the minimum value of the numeric value converted from the string included in each node within the node set. If there exists a node within the node set which cannot be converted to a number, NaN (Not a Number) defined in XPath will be returned.
The date functions are listed below.
function:add-day FunctionReturns the string which represents the integer string representing UTC time plus some number of days.
string function:add-day( utc, days )
string utc
Specify the integer string representing UTC time.
string days
Specify the number of days to add.
string
Returns the integer string in UTC time which represents the original time plus the number of specified days.
function:add-month FunctionReturns the string which represents the integer string representing UTC time plus some number of months.
string function:add-month( utc, months )
string utc
Specify the integer string representing UTC time.
string months
Specify the number of months to add.
string
Returns the integer string in UTC time which represents the original time plus the number of specified months.
function:add-year FunctionReturns the string which represents the integer string representing UTC time plus some number of years.
string function:add-year( utc, years )
string utc
Specify the integer string representing UTC time.
string years
Specify the number of years to add.
string
Returns the integer string in UTC time which represents the original time plus the number of specified years.
function:current-time-millis FunctionReturns the current time in milliseconds.
number function:current-time-millis( )
No argument.
number
Returns UTC time from A.M. 0:00, January 1, 1970 to the current time in milliseconds.
function:date-value FunctionConverts the specified date string to the integer string representing UTC time and returns it.
string function:date-value( date-string, format )
string date-string
Specify the date string created in accordance with the date format of the second argument.
string format
Specify the date format used in the date string of the first argument. The date format conforms to Java's java.text.SimpleDateFormat.
string
Analyzes the date string specified by date-string using the date format specified by format, and converts it to the integer string representing UTC time and returns it.
function:days-of-month FunctionReturns the number of days of the month specified by the month and year.
number function:days-of-month( year, month )
number year
Specify the year.
number month
Specify a number from 1 to 12 for the month.
number
Returns the number of days of the month specified by the month and year.
function:format-datetime FunctionConverts the integer string representing UTC time to the date string in the specified date format and returns it.
string function:format-datetime( utc, format )
string utc
Specify the integer string representing UTC time.
string format
Specify the date format of the date string to convert. The date format conforms to Java's java.text.SimpleDateFormat.
string
Converts the UTC time specified by the integer string utc to the date string using the date format specified by format and returns it.
function:now FunctionReturns the current date string.
string function:now( format )
string format
Set the string specifying a date format. The date format conforms to Java's java.text.SimpleDateFormat.
string
Returns the date string conforming to the specified format.
function:weekday FunctionReturns the day of the week specified by the date.
number function:weekday( year, month, day )
number year
Specify the year of the date.
number month
Specify a number from 1 to 12 for the month of the date.
number day
Specify a number from 1 to the number of the last day of the month for the day of the date.
number
Returns the day of the week of the specified date using the following value:
| 1 | Sunday |
| 2 | Monday |
| 3 | Tuesday |
| 4 | Wednesday |
| 5 | Thursday |
| 6 | Friday |
| 7 | Saturday |
The string manipulation functions are listed below.
function:ends-with FunctionChecks whether a string ends in some combination of characters.
boolean function:ends-with( string1, string2 )
string string1
Specify the string to check.
string string2
Specify the string for the combination of characters to check.
boolean
Using a true/false value, returns whether string1 ends in the combination of characters specified by string2. If string1 ends the combination of characters specified by string2, true is returned. Otherwise, false is returned.
function:format-message FunctionProvides subset of Java MessageFormat class features.
string function:format-message( pattern, arguments... )
string pattern
Specify message format pattern string. The format conforms to Java's java.text.MessageFormat specification.
However, format type and format style settings are not supported. Use format-datetime function for date format, function:format-number function for numerical format respectively.
string arguments...
Specify the string to insert into format elements described in the pattern.
The number of arguments is variable. Each value of arguments is evaluated as a string, and is replaced by corresponding format elements described in the pattern.
function:format-message('A{2}{1}{0}E', 'D', 'C', 'B')
=> Vowels
The number of format elements in the pattern and the number of string specified by arguments should match.
string
Each value of arguments is evaluated as a string, and returns a string replaced by corresponding format elements described in the pattern.
function:format-number FunctionFormats values according to the specified format, and then returns it as a string.
string function:format-number( number, format )
number number
Specify the number for the base of formatting.
string format
String specifying the format The format conforms to Java's java.text.DecimalFormat.
string
Returns the formatted numeric string.
function:generate-id FunctionAssigns ID automatically to the node specified by the argument.
string function:generate-id( node-expression? )
node-set node-expression
It can be any node.
If omitted, returns the ID of the context node.
string
Returns the ID string assigned to the node specified by the argument.
function:lower FunctionConverts all alphabetic letters within a string to lowercase letters.
string function:lower( string )
string string
This can be any string.
string
Converts all alphabetic letters within the string specified by the argument to lowercase letters and returns the string. Letters other than alphabetic letters will not be changed. If the letter is a single-byte alphabetic letter, it is converted to a single-byte lowercase alphabetic letter. If the letter is also a double-byte alphabetic letter, it is converted to a double-byte lowercase alphabetic letter.
function:regexp-match FunctionChecks whether a string contains the part conforming to the pattern specified by regular expression.
boolean function:regexp-match( string, pattern )
string string
Specify the string to check.
string pattern
Specify the string for regular expression pattern.
boolean
Using a true/false value, returns whether string contains the part conforming to the pattern specified by string2. true is returned, if string contains the part conforming to the pattern specified by pattern. Otherwise, false is returned.
function:substring-before-last FunctionReturns the sub-strings from some string to the string before the last appeared delimiter.
string function:substring-before-last( string, delimiter )
string string
Specify the string from which sub-strings are retrieved.
string delimiter
Specify the delimiter string.
string
delimiter returns string's sub-strings before the last appeared delimiter string specified. When retrieving sub-strings from string, only the string part which exactly matches delimiter is treated as the delimiter string. If string's part that exactly matches the delimiter string does not exists, a null string will be returned.
function:substring-after-last FunctionReturns the sub-strings from some string to the string after the last appeared delimiter.
string function:substring-after-last( string, delimiter )
string string
Specify the string from which sub-strings are retrieved.
string delimiter
Specify the delimiter string.
string
delimiter returns string's sub-strings after the last appeared delimiter string specified. When retrieving sub-strings from string, only the string part which exactly matches delimiter is treated as the delimiter string. If string's part that exactly matches the delimiter string does not exists, a null string will be returned.
function:upper FunctionConverts all alphabetic letters within a string to capital letters.
string function:upper( string )
string string
This can be any string.
string
Converts all alphabetic letters within the string specified by the argument to capital letters and returns the string. Letters other than alphabetic letters will not be changed. If the letter is a single-byte alphabetic letter, it is converted to a single-byte capital alphabetic letter. If the letter is also a double-byte alphabetic letter, it is converted to a double-byte capital alphabetic letter.
The logical functions are listed below.
function:if FunctionEvaluates the specified condition and returns one of the two nodes according to the result's true/false value.
node-set function:if( condition, node-expression1, node-expression2 )
boolean condition
Specify the condition to evaluate. The condition evaluates to a true/false value.
node-set node-expression1
Specify the node to return when the condition specified in the first argument evaluates to true.
node-set node-expression2
Specify the node to return when the condition specified in the first argument evaluates to false.
node-set
Returns a node according to condition's evaluation. If the result of condition evaluation is true, node-expression1 will be returned. If the condition evaluates to false, the node specified by node-expression2 is returned.
The tool functions are listed below.
function:current FunctionReturns the current node as a node set. That is, it returns the context node at the beginning of evaluation to XPath expression.
node-set function:current( )
No argument.
node-set
Returns the current node as a node set.
function:declare-namespace FunctionReturns the list of the namespace declared by the specified node.
node-set function:declare-namespace( node-expression? )
node-set node-expression
Specifies the nodes you want to get the list of the declared namespace node.
If omitted, a context node is assumed to be specified.
node-set
Returns the list of the namespace node declared by the specified node.
function:document-property FunctionRetrieves the property's value.
string function:document-property( key, node-expression? )
string key
Specify the key name of document property. Specify one of the following key names:
overwrite
true is specified, but if it cannot, false is specified.
encode
file name
load url
function:document-uri() function is returned.
mime type
save url
node-set node-expression
Specify the node within a document. It can be a document node.
If omitted, a context node is assumed to be specified.
string
If the system property specified by a key name does not exist, a null string will be returned.
function:is-dirty FunctionEvaluates whether the document is edited or not.
boolean function:is-dirty( node-expression? )
node-set node-expression
Specify the node within the document for checking whether it is edited or not.
A context node is assumed to be specified.
boolean
Returns whether the document is edited or not. It can be true if the document is edited, or false if not.
function:media-type FunctionReturns the media type to which the current canvas outputs.
string function:media-type( )
No argument.
string
Returns the media type to which the current canvas outputs. Returns the following media type.
screen
print
function:message FunctionEvaluates Xpath expression given by the argument and outputs the result. Used for development and debugging.
node-set function:message( node-expression )
node-set node-expression
Specify the XPath expression to evaluate.
node-set
Returns the evaluated node set.
function:system-property FunctionRetrieves the property's value.
string function:system-property( key )
string key
Specify the key name of system property.
string
Returns the system property's value corresponding to the key name specified by an argument. If the system property specified by a key name does not exist, a null string will be returned.