|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








