EXSLT Functions

Mar 26, 2010 at 4: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.

Mar 26, 2010 at 2: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"

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 12:24 PM