RE: [xsl] Multiple source documents

Subject: RE: [xsl] Multiple source documents
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 7 Sep 2005 14:19:03 +0100
> If my XML documents were stored as files on the disk I know I 
> could work with
> the document() function in my XSL transform document.
> But they are not on disck ad will be passed to my XSLT 
> processor as strings. No
> does it mean I have to concatenate both of them in a meta XML 
> document or is
> there a way to process both of them in the same transform?

The strings need to be parsed as XML to turn them into document nodes. You
can do this from your application code before passing the document nodes to
the XSLT processor; you could do it in a URI resolver invoked in response to
the document() call; or you could invoke an extension function such as

Michael Kay

Current Thread