[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

document() syntax

Subject: document() syntax
From: "Martin Algesten" <martin.algesten@xxxxxxxx>
Date: Mon, 27 Mar 2000 16:19:21 +0100
document syntax
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.