This doesn't look like a Saxon error message. I think you've upset something in your classpath and this is causing an XSLT 1.0 processor to be loaded.
Michael Kay

From: [] On Behalf Of Priscilla Walmsley
Sent: 08 August 2007 17:28
Subject: [saxon] Unparsed-text function issue

I recently upgraded from Saxon-B 8.8 to 8.9 and I'm having issues with the unparsed-text function.

My stylesheet looks like this:

<xsl:stylesheet xmlns:xsl=""
<xsl:output method="xml"/>
<xsl:template match="dxmlf:library">
    <xsl:variable name="propFile" select="unparsed-text('../')"/>
       <xsl:for-each select="tokenize($propFile,'\r\n')[not(starts-with(.,'#'))][normalize-space(.) != '']">
         <xsl:element name="dxmlf:{substring-before(.,'=')}">
           <xsl:value-of select="substring-after(.,'=')"/>
    <xsl:copy-of select="node()"/>

And the error I'm getting is:

[xslt] : Error! Error checking type of the expression 'funcall(unparsed-text, [literal-expr(../])'.
[xslt] : Fatal Error! Could not compile stylesheet

It works fine in 8.8.  Any ideas?  I've tried various URL formats and experimented with the "as" attribute but no luck.