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]
Other format: [Raw text]

RE: Command Line XSLT programs


>
> Does anyone know if it is possible to apply an XSLT to
> multiple XML docs at
> the same time. My company has a "document-base" in XML that they want
> converted into HTML. So instead of me doing them one by one
> with MSXSL and
> MSXML 4.0.
>
Sure. It's probably best in this scenario to script it yourself: for MSXML
this would probably be JavaScript, for other processors it would be Java.
Look up the API documentation for your processor. Compile the stylesheet
once, then use it repeatedly to process a list of source documents.

You can process multiple source documents from within a single stylesheet
execution, by using the document() function, but that's probably not the
right approach here.

Doing it as a command-line script, processing the stylesheet from scratch
each time, would be a lot less efficient. MSXML does have a command-line
interface, but you don't really want it here.

Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com


 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]