This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: document() revisited
- To: <xsl-list at mulberrytech dot com>
- Subject: RE: document() revisited
- From: "Didier PH Martin" <martind at netfolder dot com>
- Date: Wed, 16 Feb 2000 08:14:28 -0500
- Reply-To: xsl-list at mulberrytech dot com
Hi,
XML.com should be published today. Take a look at the Style Matters article,
you may have in this column some answers to your problem.
Cheers
Didier PH Martin
----------------------------------------------
Email: martind@netfolder.com
Conferences: Web New York (http://www.mfweb.com)
Book: XML Pro published by Wrox Press
Products: http://www.netfolder.com
-----Original Message-----
From: owner-xsl-list@mulberrytech.com
[mailto:owner-xsl-list@mulberrytech.com]On Behalf Of Linda van den Brink
Sent: Wednesday, February 16, 2000 7:15 AM
To: 'xsl-list@mulberrytech.com'
Subject: RE: document() revisited
To enter each listed file, do something like
<xsl:for-each select="file">
<xsl:param name="current_file_root" select="."/>
<xsl:for-each select="document($current_file_root)">
<!-- do your stuff here -->
</xsl:for-each>
</xsl:for-each>
I don't know what you mean by copying the result onto itself. Do you want
the result to be available for further processing? Then you need to store it
in a variable as a result tree fragment using copy-of and access the
variable with an extension function such as XT and Saxon have. It's not
possible in standard XSLT.
Linda
> -----Original Message-----
> From: Beckers, Marc [mailto:Marc.Beckers@softwareag.com]
> Sent: Wednesday, February 16, 2000 11:49 AM
> To: 'xsl-list@mulberrytech.com'
> Subject: document() revisited
>
>
> I've asked this before and got no replies,
> so I'll ask again and try and put the question more simply:
>
> I have an xml document containing a list of xhtml files, e.g.:
>
> <mother>
> <file>files\overview.html</file>
> <file>files\book1\page1.html</file>
> <file>files\book1\chap1\page2.html</file>
> <file>files\book2\page1.html</file>
> <file>files\book2\chap1\page2.html</file>
> </mother>
>
> How can I use XSL to enter each listed file,
> manipulate it and copy the result onto itself,
> thus retaining the file names and directory structure?
>
> Grateful for any tips or hints
>
> Dr. Marc Beckers
> Documentation Consultant
> Software AG
> Uhlandstraße 12
> D-64297 Darmstadt
> Phone +49-6151-92-1322
> Fax -1612
> mailto:Marc.Beckers@softwareag.com
> http://www.softwareag.com
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list