xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Firestar" <the...@magix.com.sg>
Subject Problem using document() in Xalan-J 1.2
Date Wed, 08 Nov 2000 06:02:05 GMT
Hi, in my xsl stylesheets i use a lot of 'document()' functions to load in external xml documents
for transformation. i did not hardcode the path and filename of the xml files; instead i put
them in variables like this (globally):
<xsl:param name="content" select="default-value" /> 
<xsl:variable name="content" select="document($content)" /> 
This used to work fine previously in Xalan-J version 1.1. But with version 1.2, the document()
function complained of 'out of context or no definition' error; instead it will only work
if i put the full pathname of the xml file in the document function, like this:
select="document('d:\xml\something.xml')". It seems that document() no longer do variable
Has anyone encountered the same problem? TIA.

View raw message