XSLT document function

B

bubbabudge

Hi,

I'm new to XSLT, so excuse my ignorance. How do I do something like
this:
<xsl:copy-of select="document('*.xml')"/>

That is, I want to use the document function to merge all xml files in
the current working directory.

Thanks for any hints,
Bubba
 
R

Richard Tobin

I'm new to XSLT, so excuse my ignorance. How do I do something like
this:
<xsl:copy-of select="document('*.xml')"/>

That is, I want to use the document function to merge all xml files in
the current working directory.

XSLT doesn't know anything about directories.

You could use some other program to generate an XML file listing
all the files in the directory, and then use the document function
to read that file.

-- Richard
 
M

Martin Honnen

How do I do something like
this:
<xsl:copy-of select="document('*.xml')"/>

That is, I want to use the document function to merge all xml files in
the current working directory.

XSLT does not support that but you can of course pass a URL to a
server-side processing page like PHP or ASP to it that creates the
directly listing on the fly e.g.
document('createDirectoryListing.asp?dir=path')
That doesn't help of course if all you are interested in are some local
files without having some server and ASP or PHP installed.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,013
Latest member
KatriceSwa

Latest Threads

Top