EXSLT

Stylus Studio®'s XSLT tools provide integrated authoring support for EXSLT (also known as EXSL) — powerful extensions to XSLT 1.0 enabling you to automate and simplify many tasks including computing dates and times, performing mathematical computations, string manipulations and more.

Selecting an EXSLT Processor

Using EXSLT in Stylus Studio is easy — there is no need to download any additional components because it our stylesheet development tools provide built-in support for all of the industry-standard XSLT processors, many of which natively support EXSLT. To get started, create a new XSL stylesheet by selecting "New" -> "XSLT", then click on the scenario properties dialog box, choose the properties tab, then select from the combo box an EXSLT-enabled processor, for example, Saxon 6 as illustrated here.

Selecting an EXSLT-aware processor

Importing The EXSLT Namespace

Now that you've selected an EXSLT processor to use, you'll need to declare the EXSLT namespaces (http://exslt.org/common and http://exslt.org/functions), to your stylesheet code - do this by simply typing the following code as illustrated here:

EXSLT Namespace

Invoking an EXSLT Function

You have now completed all of the steps needed to develop and execute XSL 1.0 stylesheets that leverage EXSLT extension functions. To invoke the stylesheet, just click on the Run button (the green arrow) or type the F5 key as illustrated here. The results are displayed in the output preview window — in this example, we're invoking a function that counts the number of books. For more information about how to use EXSLT, visit their website and consult the API documentation.

Executing an EXSLT Function

EXSLT Syntax Help

Stylus Studio provides some additional basic-level support for writing extension functions using EXSLT - as you type in the XSLT editor, Stylus Studio will suggest various elements, parameters and provide other intelligent editing and code-completion help on the fly, as illustrated here.

EXSLT Syntax

EXSLT Examples

All of the example files used in this tutorial (the XSL stylesheet and the XML instance document) are available for free download — just unzip the files to a directory, download, Stylus Studio, open the .xsl file then hit the F5 key to run the stylesheet.

EXSLT (or EXSL) provides a great way to get more out of XSLT 1.0 stylesheets, and Stylus Studio is pleased to provide development tools support for this innovative technology. Stylus Studio also supports XSLT 2.0 which also supports a standard mechanism for defining and running stylesheet functions. Get started using by downloading a free trial today.

PURCHASE STYLUS STUDIO ONLINE TODAY!!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Try Stylus ESXLT Tools

It's easy to use EXSLT with Stylus Studio - Download a free trial today.

Learn XQuery in 10 Minutes!

Say goodbye to 10-minute abs, and say Hello to "Learn XQuery in Ten Minutes!", the world's fastest and easiest XQuery primer, now available for free!

Why Pay More for XML Tools?

With Stylus Studio® X16 XML Enterprise Suite, you get the most comprehensive XML tool suite at one incredibly low price. Value: it's just one of many reasons why smart XML developers are choosing Stylus Studio!

Introduction to XSL Development

Watch An Introduction to XSLT development and learn how to simplify your next XSL project.

 
Free Stylus Studio XML Training:
W3C Member