xml-xalan-c-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Roelof Naudé <roelof.na...@epiuse.com>
Subject document function
Date Tue, 16 Oct 2001 10:30:01 GMT
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.

Mime
View raw message