Microsoft extension to XSLT? Or Error?
Added by Anonymous almost 20 years ago
Legacy ID: #2972339 Legacy Poster: TKD (tdevoe)
I have a problem with the statement: <xsl:stylesheet version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"xmlns:msxsl="urn:schemas-microsoft-com:xslt"> I'm using the Saxon 6.5.2 processor that is used by Arbortext in their Epic Editor product to handle XSL-FO transformations. I get an error of: "org.xml.sax.SAXException: The URI urn:schemas-microsoft-com:xslt does not identify an external Java class" Since this is not an error in other processors, is it because it is another Microsoft extension to XSLT? I use it for the "node-set" function included. I've searched the archives and have seen other posts of items that aren't part of the standard and usually followed by the phrase: "Saxon has no support for running JavaScript code as part of the transformation" Is this what is happening here?? I'd like to know before I try and find something to replace the node-set function since it's already working in other processors... Thanks, Tracie
Replies (2)
RE: Microsoft extension to XSLT? Or Error? - Added by Anonymous almost 20 years ago
Legacy ID: #2972409 Legacy Poster: Michael Kay (mhkay)
Your stylesheet is probably calling msxsl:node-set(). This is a Microsoft extension. You can't use Microsoft extensions with the Saxon XSLT processor (or Saxon XSLT extensions with the Microsoft processor). If you want to write portable code, you can achieve it with logic such as: <xsl:when test="function-available('msxsl:node-set')" -- microsoft specific code </xsl:when> <xsl:when test="function-available(saxon:node-set')" -- Saxon-specific code </xsl:when Alternatively, many vendors offer the node-set extension under an EXSLT namespace - see www.exslt.org. I believe someone has produced a plusg-in for MSXML that recognizes this namespace, and Saxon does so natively. Michael Kay
RE: Microsoft extension to XSLT? Or Error? - Added by Anonymous almost 20 years ago
Legacy ID: #2972675 Legacy Poster: TKD (tdevoe)
Thanks Michael, It's makes sense, I just didn't want to hear it. Thanks for the input on how to handle it - I hate being tied to a specific processor... Tracie
Please register to reply