You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Roelof Naudé <ro...@epiuse.com> on 2001/10/16 12:30:01 UTC

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/*[@AIRTIME=$rchrg and @SFEE=$sfee]">
						<xsl:value-of
select="$doc/lookup/*[@AIRTIME=$rchrg 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.