Xslt Policy Calling An Ecmascript Function In The Style Sheet - Novell POLICY IN DESIGNER 3.5 - 09-18-2009 Manual

Policies in designer 3.5
Table of Contents

Advertisement

Function:
<static> NodeSet split(<String> inputString, <String> delimiter
Parameters: inputString (the script to split) and
default = ",").
Returns: A NodeSet containing text nodes.
The file
SplitJoin.xsl
sheet. The file
splitjointest.xml
the style sheet in action.
11.3.3 XSLT Policy Calling an ECMAScript Function in the Style
Sheet
The XSLT policy demonstrates embedding ECMAScript function definitions with the XSLT style
sheet. The functions convert a string to uppercase.
<!-- define ecmascript functions -->
<es:script>
function uppercase(input)
{
return String(input).toUpperCase();
}
</es:script>
The file
uppercase.xsl
XSLT style sheet. The file
document that shows the style sheet in action.
delimiter
(../samples/SplitJoin.xsl)
(../samples/splitjointest.xml)
(../samples/uppercase.xsl)
(../samples/uppercasetest.xml)
uppercasetest.xml
(the delimiter to split on. Optional:
calls the join or split functions in an XSLT style
is an input document that shows
defines the ECMAScript function with the
)
is an input
Using ECMAScript in Policies 187

Advertisement

Table of Contents
loading

This manual is also suitable for:

Designer for identity manager 3.5

Table of Contents