Core function library
Within the integrated core functions, you will find the fundamental tools for object oriented templating. In contrast to all other extensions, all functions can be called in every namespace context. The functions of the Utility Functions Library are located below the core functions. The functions of this library and the namespace are listed on the following page.
Namespace: http://www.w3.org/1999/XSL/Transform
Name | Parameter | Return type | Description |
---|---|---|---|
b.write | target:xlink | void | Used to write binary data of a data source directly to the binary output channel. |
b.writeText | text:string [encoding:string] |
void | Writes the given text into the binary output channel. |
c.applyMethodCascade | target:xlink suffixes:string |
string | Prepares an xlink to perform a specific template lookup order |
c.asNode | target:xml | nodeset | Decodes a given string as a nodeset. |
c.asProgressive | source:nodeset | nodeset | Wraps a nodeset with a progessive navigator |
c.asString | target:any | string | Creates a string representation for any input. |
c.binaryCall | [target:xlink] method:string [name:string, value:string]* |
nodeset | Calls a binary method and returns its' metadata output as a nodeset |
c.binaryMethodExists | [target:xlink] view:string |
boolean | Checks the existence of a given binary method |
c.binaryUri | [target:xlink] method:string [name:string, value:string]* |
nodeset | Returns a url compliant link to a binary method |
c.cacheFor | [minutes:int] seconds:int |
void | Requests an invalidation of the current rendering after the given time period. |
c.cacheUntil | until:datetime | void | Requests an invalidation of the current rendering at the given point in time. |
c.choose | [condition:boolean] trueValue:any falseValue:any |
any | Returns an output based on a given condition |
c.dataCall | [target:xlink] dataView:string |
nodeset | Returns data for a given xlink and dataview |
c.dataCallInProcess | [target:xlink] dataView:string |
nodeset | Returns data for a given xlink and dataview without utilizing the content cache |
c.dateCompare | [currentDate:datetime] compareTo:datetime |
int | Compares the current or given date with another date. |
c.dateWithin | [currentDate:datetime] dateFrom:datetime dateUntil:string |
boolean | Compares the current date with a given range |
c.generateId | [current:nodeset] [root:nodeset] |
string | Creates a unique identity for a given xml node within a document |
c.instanceOf | [target:xlink] schemaLocation:string |
boolean | Used to check, if a given data object is compatible with a given type. |
c.literalCall | [target:xlink] method:string [name:string, value:string]* |
string | Calls a literal method and returns its' textual output |
c.literalMethodExists | [target:xlink] method:string |
boolean | Checks the existence of a given literal method |
c.literalUri | [target:xlink] method:string [name:string, value:string]* |
string | Returns a url compliant link to a literal method |
c.newGuid | string | Generates a Guid. | |
c.now | datetime | Returns the current date and time formatted as an xml schema datetime. | |
c.resolveNode | id:string | nodeset | Resolves a node from the unique identifier generated by c.generateId. |
c.throwException | message:string | void | Verursacht einen Ausnahmefehler mit der angegebenen Fehlermeldung. |
c.typeOf | [schemaLocationA:string] schemaLocationB:string |
boolean | Checks if the first schema location either fits under the second schema loction or is the second schema location |
c.urlDecode | text:string [encoding:string] |
string | Decodes the given string from a parameter value of a query string. |
c.urlEncode | text:string [encoding:string] |
string | Encodes the given string to fit as an parameter value in an query string |
c.xlink | [target:xlink] method:string [name:string, value:string]* |
xlink | Returns a method link with the passed parameters |
c.xmlCall | [target:xlink] method:string [name:string, value:string]* |
nodeset | Calls an XML-method and return a Nodeset as the result |
c.xmlMethodExists | [target:xlink] method:string |
boolean | Checks, if an XML-method with a given name and a given location exists |