relative and base URIs when using document() function

Subject: relative and base URIs when using document() function
From: Linda van den Brink <lvdbrink@xxxxxxx>
Date: Wed, 5 Apr 2000 15:19:18 +0200
Hi all, 

I'm getting some behaviour I can't explain when I use the document()
function multiple times. Maybe I'm just staring at my code to hard... 

I've a source document that lists URLs, which I read with the document
function to go to a second source document, of which a code fragment is
included below. What I'm trying to do is go to yet another series of source
documents, of which the URL is in the second source document. The first time
this succeeds (when I read content/path), the second time it fails (when I
read modules/module/path). (I hope I'm making myself clear...)

Code fragment [of second source doc]: 

<?xml version="1.0"?>
		<name>Configuration Control</name>

Stylesheet fragment: 

<xsl:template match="module">
<xsl:variable name="path" select="substring-after(path, concat($package,
	<xsl:message terminate="no"><xsl:value-of
	<xsl:for-each select="document($path, .)">

Where the base URL is the URL of the source file, in this case

I get the following messages: 
xt message output: module_cfg\module_cfg.xml

Where does the repeatal of 'package_ts\module_cfg\' come from??

I've tried lots of variants but to no avail. Who knows what's wrong? 

Linda vdB

 XSL-List info and archive:

Current Thread