This project is read-only.

XmlTask and XSLT 2.0 functions

Feb 8, 2012 at 6:10 PM
Edited Feb 8, 2012 at 6:13 PM

I have been trying to use some of the functions in XSLT 2.0 to replace text when doing a transformation, however I it just doesn't seem to like it.

Is the XmlTasks only able to handle XSLT 1.0 functionality?

Specifically I am calling <csl:value-of select="replace(value,'-','_')"/>

Feb 9, 2012 at 4:03 PM
Edited Feb 9, 2012 at 4:04 PM

After some investigation it looks like .NET uses a XSLT 1.0 processor which cannot handle a lot of the additional functionality on offer with XPath 2.0.

Has anyone performed any kind of work around, Maybe we should be looking at a building out a ExtensionPack task that uses Saxon.NET or QXSharp, especially as MSBuild 4.0 now has a built in  XSL Transformer (<XslTransformation>) which functions in much the same way as XslTask.

Feb 13, 2012 at 9:41 PM

Feel free to add a WI describing exactly what you are after.


Feb 19, 2012 at 7:24 PM

logged here