Probably the cleanest way to do a "logical concatenation" of several XML
documents is with a SAX application. You can do it fewer lines of code with
XSLT (using the document() function), provided you have enough memory, but
one could argue that that's overkill.
> -----Original Message-----
> From: saxon-help-admin@...
> [mailto:saxon-help-admin@... Behalf Of Hornsby
> Sent: 31 October 2001 17:34
> To: 'saxon-help@...'
> Subject: [saxon] Design advice
> Dear all,
> I'm currently writing an application that will effectively
> treat a set of XML files as a database. At the moment, I
> read in a large number of small XML files, strip off the
> outer tags and concatenate them into a single large XML file.
> In order to speed things up, I do this not using any XML
> processing, just using Java's stream classes. I then receive
> SQL queries from the user, and depending on the form of the
> query, I modify an XSL file and apply it to the large index
> file, writing the output to a file.
> I have been learning about XML, SAX and Saxon as I have been
> working on this, and feel that there should be a cleaner way
> of doing what I want to do than my current approach. For
> example, I would like to be able to process any SQL query,
> rather than just those which conform to a particular format.
> Also, I would like to be able to process multiple small XML
> files with Saxon against an XSL file, outputting to a single
> XML file.
> Could anyone offer some advice about how to do what I want to
> do? Any pointers to tutorials / sample code would be much
> Many thanks for any help,
> The Information contained in this E-Mail and any subsequent
> is private and is intended solely for the intended recipient(s).
> For those other than the recipient any disclosure, copying,
> or any action taken or omitted to be taken in reliance on
> such information is
> prohibited and may be unlawful.
> saxon-help mailing list