The following list shows the functions that have been implemented in the SAP-XSLT enhancement
http://www.sap.com/sapxsl.
sap:if() |
|
The function sap:if( x,e1,e2 ) returns e1 if x=true; otherwise, e2. |
|
sap:let() |
|
The function sap:let( x,e1,e2 ) binds $x to e1 in e2.Example : sap:let( x,4,$x+$x ) returns the value 8.sap:let( ) displays the syntax of an extension function, but it is used as a construct for a variable bind. |
|
sap:node-set() |
|
sap:node-set(e) converts a fragment of the result tree into a node set. The resulting node set contains its own node, which is the fragment root. |
|
sap:intersection() |
|
sap:intersection( node-set1,node-set2 ) gives the intersection of the two node sets node-set1 and node-set2 zurück. |
|
sap:otr-string() |
|
This function returns OTR (Online Text Repository) strings. An alias name is used to identify a string. A distinction can be made between the following variants: sap:otr-string(alias) returns OTR strings for an alias in the current language.sap:otr-string(alias, language) returns OTR strings for an alias in the specified language.sap:otr-string(alias, id_1, value_1, ...id_n, value_n [,language]) returns OTR strings for an alias in the specified/current language; however, the corresponding placeholder id_i is replaced by the appropriate value value_i. A placeholder is specified either as a string (reference through name) or as a number (reference through the position). |
|
sap:otr-text() |
|
The function sap:otr-text(alias, ...) returns short texts from the OTR. An alias name is used to identify a short text. As for sap:otr-string(), the language and placeholder can be specified as further function arguments. |
|
sap:otr-line() |
|
sap:otr-line(node-set) returns the line number of the first node of the node set in the source document.sap:otr-line() returns the line number of the node from the current context. |
|
sap:otr-column() |
|
sap:otr-column(node-set) returns the column number of the first node of the node set in the source document.sap:otr-column() returns the column number of the node from the current context. |