EXSLT Functions

Mar 26, 2010 at 5:18 AM

Do you have any sort of sample for how we can include the EXSLT functions?  I'm new to XSL and would appreciate any help you can provide.

Coordinator
Mar 26, 2010 at 3:46 PM

Inlcude a namespace declaration of any particular EXSLT package (full list here: http://www.exslt.org/). Assuming you want strings, insert xmlns:str=http://exslt.org/strings into your xsl:stylesheet element similar to the below:

<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:str="http://exslt.org/strings">

Once declared, you may refer to any funciton from the Strings package using the following syntax:

<xsl:value-of select="str:replace(MyStringNode, 'str1', 'replace with str2')" />

The RollupDataFormWebpart provides only the following EXSLT packages:

* Dates & Times

* Math

* Regular Expressions

* Sets

* Strings

Mar 29, 2010 at 1:24 PM

Thanks!