Subject:XSL does not work with Saxon 7 Author:Manikandan Surendranath Date:22 Apr 2005 01:53 AM
Hi,
I have written an xslt that work well with MSXML processor, but if i choose "Saxon 7" the templates are not getting applied. What could be the problem?
Subject:XSL does not work with Saxon 7 Author:(Deleted User) Date:22 Apr 2005 03:33 AM
Hi Mani,
are you sure you are not using some MSXML-specific instructions (like msxml:script) or even an old WD-XSL namespace in the xmlns:xsl attribute?
Subject:XSL does not work with Saxon 7 Author:(Deleted User) Date:22 Apr 2005 08:20 AM
Hi Mani,
XSLT 1.0 didn't specify a node-set() function, so every vendor implemented their own version. In the case of Saxon, it's called saxon:node-set.
If you need to have a single XSLT that is processable by both engines you will need to use function-available() to test which function is supported by the engine before invoking it.
Subject:XSL does not work with Saxon 7 Author:Manikandan Surendranath Date:25 Apr 2005 06:57 AM
I have remove this dependancy on msxsl and changed the node transformation using xpath condition. Now it works fine for both msxsl and saxon. BTW, is there a way to sniff the processor, can I write an XSLT like ,
if processor is saxon
do saxon:function
else if processor is msxsl
do msxsl:function
otherwise
do xsl:message
fi