This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: two DOMs, one stylesheet


> > Is it possible to process two files, foo.xml and bar.xml, 
> > using blort.xsl, and have blort.xsl build and use a DOM for both foo.xml
> and bar.xml.
> > 
> > Does that make sense? How would one accomplish this?
> 
> Just use the document() function.

Implementations of document() can only use a URI that points to a file o'
bytes that need to be run through a parser, right? She'll have to
serialize the DOM for one of her XML docs to disk and then read it back
in, unless she wants to code a custom URI scheme and resolver for whatever
XSLT processor she is using, to access in-memory objects.

I'm not sure letting people use DOM objects rather than files as input to
XSLT processors was the best idea.

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at         My XML/XSL resources:
webb.net in Denver, Colorado, USA           http://www.skew.org/xml/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]