'abs()' is an unknown XSLT function

ithequixotic

New Member
I have XSLT like:\[code\]<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions">.......<xsl:value-of select="format-number(abs(QUANTITY), '#')"/>....\[/code\]which works perfectly with tools like Altova XMLSpy, but when I am trying to do transformation from .Net:\[code\]XslTransform myXslTransform = new XslTransform();myXslTransform.Load("some.xls");myXslTransform.Transform(@"inputxml", @"c:\out.csv");\[/code\]It throws exception\[code\]System.Xml.Xsl.XsltException was unhandled Message='abs()' is an unknown XSLT function. Source=System.Data.SqlXml\[/code\]I know ABS is a simple-enough function to implement, but question is why it happens with .Net?Does anybody have any thoughts?
 
Back
Top