Project

Profile

Help

XML to XSL transform via VBScript

Added by Anonymous about 20 years ago

Legacy ID: #2781773 Legacy Poster: Pinelopi (pkouleri)

Hi there, probably a stupid question. I have a simple VBScript script that loads an XML and XSL file, transforms and saves the output. In the XSLT file I want/need to use the saxon:evaluate extension function. This is how it looks like: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:saxon="http://saxon.sf.net/" xmlns:msxsl="urn:schemas-microsoft-com:xslt" extension-element-prefixes="saxon" version="2.0"> .... <xsl:variable name="temp" select="../@Moved"/> <xsl:variable name="MovedFrom" select="saxon:evaluate($temp)"/> .... When I run my script I get this error message: "msxml3.dll: Namespace 'http://saxon.sf.net/' does not contain any functions." Is there anything else I need to do in order to be able to use Saxon extension functions? Can I use them this way, by just specifying the namespace in the XSLT? thanks! Pinelopi


Replies (1)

RE: XML to XSL transform via VBScript - Added by Anonymous about 20 years ago

Legacy ID: #2781921 Legacy Poster: Michael Kay (mhkay)

You can't use Saxon extension functions unless you are running the Saxon XSLT processor. They won't work with other XSLT processors, such as Microsoft's MSXML3. Michael Kay

    (1-1/1)

    Please register to reply