[xslt] document(filename, nodeset) supported?



The following template fragment gives me an error (and the message is
not printed)... here's the message:
Error xpath.c:6686: Invalid expression
document($remotexmldoc, /)
Heer is the xslt input:

    <xsl:variable name="remotexmldoc">
      <xsl:value-of select="$linkdir"/>
      <xsl:text>/</xsl:text>
      <xsl:call-template name="system-identifier">
	<xsl:with-param name="input" select="$thelink/@targetSysId"/>
      </xsl:call-template>
    </xsl:variable>
    <xsl:message>remotexmldoc is <xsl:value-of select="$remotexmldoc"/></xsl:message>
    <xsl:variable name="target" select="document($remotexmldoc, /)"/>


But / is a valid XPath expression, no?  this works in xt.

Lee


-- 
Liam Quin - Barefoot in Toronto - liam@holoweb.net - http://www.holoweb.net/
Ankh: irc.sorcery.net www.valinor.sorcery.net irc.gnome.org www.advogato.org
Author, Open Source XML Database Toolkit, Wiley August 2000
Co-author: The XML Specification Guide, Wiley 1999; Mastering XML, Sybex 2001




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]