Tera fn: XSLT extensions

Build 1501 on 14/Nov/2017  This topic last edited on: 28/Sep/2016, at 10:45

As there are some operations not supported by the Stylesheet version 1.0 we developed a set of Extra functions that can be used in XSL transformations.

They all start with the fn: prefix and they require the namespace

    xmlns:fn="http://www.teradp.com/schemas/GN4/1/Xslt"

to be declared in the stylesheet definition. The extra function are fully documented here.

Since the extra functions are built-in the GN4 core, they need a GN4 environment in order to be used/tested. This means that the rendering method that we had being used so far is no longer enough.

For this purpose we can use the command srv4 XSL.

Srv4 XSL XSL_fullpathname –in XML_fullpathname –out output_fullpathname

The command also has an extra parameter -pars serverName:xxx that can be used to read the $pars from the system.

Most commonly used extensions

Click to toggle expandParagraph
Click to toggle expandtrimText
Click to toggle expandreplace
Click to toggle expandcreateGuid
Click to toggle expandapplyRegExp

Conversion in T rendering mode

Click to toggle expandxmlMode
Click to toggle expandrenders attribute

See also

http://forum.teradp.com/topic.asp?TOPIC_ID=709

How to test it http://forum.teradp.com/topic.asp?TOPIC_ID=647