Hi, I'm seeing similar problem. When the document function opens an XML file, we found that ( in using TestXSLT ) the program is trying to locate the XML file relative to the program's current directory, instead of the XSL script's URI. How's that?
Peter. -----Original Message----- From: Roelof Naud� [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 16, 2001 6:30 AM To: '[email protected]' Cc: '[email protected]' Subject: document function hi the following is from a stylesheet i use: <xsl:variable name="rchrg" select="//@AIRTIME_RECHARGE div 100"/> <xsl:variable name="sfee" select="//@SFEE_RECHARGE"/> <xsl:variable name="doc" select="document('file:///path/to/lookup.xml')"/> <xsl:value-of select="$doc"/> <xsl:choose> <xsl:when test="$doc/lookup/[EMAIL PROTECTED] and @SFEE=$sfee]"> <xsl:value-of select="$doc/lookup/[EMAIL PROTECTED] and @SFEE=$sfee]"/> </xsl:when> <xsl:otherwise> <xsl:value-of select="//@VOUCHER_TYPE"/> </xsl:otherwise> </xsl:choose> when running the xalan sample app, testXSLT, the stylesheet works. the document lookup.xml is opened etc... when running the exact same stylesheet from within tuxedo an empty nodeset is return. does anyone know why that would happened? i specified an absolute path and the permissions are fine. (running sample app and tuxedo server under same uid). also xalan doesn't return any error messages or warnings that it cannot open the file. any suggestions would be welcome. regards roelof naude.
