This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
document() syntax
- To: <XSL-List at mulberrytech dot com>
- Subject: document() syntax
- From: "Martin Algesten" <martin dot algesten at ibfs dot com>
- Date: Mon, 27 Mar 2000 16:19:21 +0100
- Disposition-Notification-To: "Martin Algesten" <martin.algesten@ibfs.com>
- Reply-To: xsl-list at mulberrytech dot com
Hello!
I'm new to this XSL stuff, so bear with me if this is a stupid question.
I have files organised in this structure:
http://localhost/file-list.xml
http://localhost/contents/overview.xml
http://localhost/contents/current/whatever.xml
http://localhost/contents/current/whatever2.xml
http://localhost/stylesheets/overview.xsl
The file-list.xml contains a link to every xml file i've got, something like
<file-list>
<file>/contents/overview.xml</file>
<file>/contents/current/whatever.xml</file>
<file>/contents/current/whatever2.xml</file>
</file-list>
The overview.xml looks like
<overview>
This is an overview of the files on my site.
</overview>
Now in the style sheet for the overview i want to read the file-list.xml and
create a list of links for each element in the list.
<xsl:template match="overview">
<xsl:apply-templates/>
<xsl:for-each select="document(THIS IS THE PROBLEM)">
<-- creating the links is easy -->
</xsl:for-each>
</xsl:template>
Now what am I supposed to write as argument for the document()... the file i
want is as shown not in the same directory as overview.xml or overview.xsl
(if that matters, which i haven't figured out).
Martin
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list