|
Subject: [xsl] Passing an already parsed document into an xalan processor From: "Deirdre O'Brien" <ddo@xxxxxxx> Date: Mon, 12 Mar 2001 09:51:23 +0000 |
Hello All,
I am using the xalan processor to transform my xml. I want to pass an xml
document that is already parsed into the processor. I do this using the
following code. (PROCESSOR: xalan 2_0_D07)
TransformerFactory tFactory;
Transformer transformer;
DOMSource xmlSource;
xmlSource = new DOMSource(<<xml Document of type Document>>);
tFactory = TransformerFactory.newInstance();
transformer = tFactory.newTransformer(new StreamSource(<<xslt
filename>>));
transformer.transform(xmlSource,new StreamResult(<<output
stream>>));
This code works fine, but when I put a timestamp around the transformation
it takes twice as long to process then when I pass in an inputstream .
Should this be the case? I thought that because the xml data was already
parsed it would be quicker to process.
I am using XSLT to dynamically create html pages on the fly from xml data.
This is for a pre-existing application, so performance is very important.
Thanks a million,
Deirdre O'Brien
___________________________________________________________________________
_____
Deirdre O'Brien
QAD Ireland,
Hamilton House,
National Technological Park,
Limerick,
Ireland.
PHONE: ++ 353 61 213638 EMAIL: ddo@xxxxxxx
FAX: ++ 353 61 213990 WEB: www.qad.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] How to test a given node , David Carlisle | Thread | [xsl] Create an XML output from 2 o, Borca, Olivier |
| [xsl] How to test a given node ?, Borca, Olivier | Date | RE: [xsl] How to specify a path to , Michael Kay |
| Month |