Subject: document() syntax From: "Martin Algesten" <martin.algesten@xxxxxxxx> Date: Mon, 27 Mar 2000 16:19:21 +0100 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: Guidance requested : Simple XSL, Ben Robb | Thread | Microsoft or W3C?, Medina, Edward |
Guidance requested : Simple XSL mar, ECKHART.CURT | Date | Re: xalan following relative urls, Scott_Boag |
Month |