From what I've read, the MSXML components that IE uses for XML processing don't support XPath 2.0, thus they are missing some functions I would like to make use of (like lower-case() ). It appears from various Google searches that custom functions can be written in an XSLT file, would be nice to duplicate some XPath 2.0 functionality, but I've yet been able to get this to work. Are extension functions just not possible with the MSXML dll's or can someone point me in a different direction? Here is my current code:
When trying to do a transform that has com:something() in it, I will get an error saying Namespace http://www.some.domain/XSLT/Common does not contain any functions.Code:<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:com="http://www.some.domain/XSLT/Common" xmlns:func="http://exslt.org/functions" extension-element-prefixes="func com" version="1.0"> <func:function name="com:something"> <func:result select="'blahblah'" /> </func:function>
Some references:
http://www.exslt.org/
http://www.w3.org/TR/xslt#section-Extension-Functions


Reply With Quote


Bookmarks