[Home] [By Thread] [By Date] [Recent Entries]
Colin Paul Adams wrote:
"Abel" == Abel Braaksma <abel.online@xxxxxxxxx> writes: Indeed. I tried it once with AltovaXML for instance, and couldn't find a way to make it work (and there's no documentation at all). But both Gestalt and Saxon have a well-documented way of collecting a directory. One more thing I can think of: in XSLT 2.0, the meaning of the fn:document() function was expanded to accept a sequence of more than one value as its first argument, each being a URI. Of course, this won't help you when you do not know the names of the files up front, unless you can somehow give them as a parameter on the commandline: document( ('one.xml', 'two.xml') ) will give you a sequence of two document nodes, one for 'one.xml' and one for 'two.xml'. Suppose you'd have a space separated list of files from your directory in a parameter (you can do so with some trickery on the commandline of course), this should work to 'concatenate' all files in one output document: <xsl:copy-of select="document( tokenize($filelist, ' ') )" /> Cheers, -- Abel Braaksma
|

Cart



