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
http://www.saxonica.com/


From: saxon-help-bounces@lists.sourceforge.net [mailto:saxon-help-bounces@lists.sourceforge.net] On Behalf Of Priscilla Walmsley
Sent: 08 August 2007 17:28
To: saxon-help@lists.sourceforge.net
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="http://www.w3.org/1999/XSL/Transform"
                xmlns:dxmlf="http://www.datypic.com/xmlf"
                version="2.0">
<xsl:output method="xml"/>
<xsl:template match="dxmlf:library">
  <xsl:copy>
    <xsl:variable name="propFile" select="unparsed-text('../build.properties')"/>
    <dxmlf:settings>
       <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:element>
       </xsl:for-each>
    </dxmlf:settings>
    <xsl:copy-of select="node()"/>
  </xsl:copy>
</xsl:template>
</xsl:stylesheet>


And the error I'm getting is:

[xslt] : Error! Error checking type of the expression 'funcall(unparsed-text, [literal-expr(../build.properties)])'.
[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.

Thanks,
Priscilla