[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] How to transform multiple XML docs with XSLT 2.0 into single doc
Subject: [xsl] How to transform multiple XML docs with XSLT 2.0 into single doc From: Jack Bush <netbeansfan@xxxxxxxxxxxx> Date: Tue, 22 Jun 2010 06:41:04 -0700 (PDT) |
Hi All, I would like to find out how to use XSLT to transform multiple XML documents into a single one, each document would have their own stylesheets. My current working solution below is capable of transforming can only handle one XML document at a time and transforming to separation files using Java, JDOM and XSLT 2.0 from Saxon 9.1 on Windows XP platform: FileInputStream styleSheetFIS1 = new FileInputStream(C:\\styleSheet1.xsl); BufferedInputStream styleSheetBIS1 = new BufferedInputStream(styleSheetFIS1); TransformerFactory transformerFactory = new net.sf.saxon.TransformerFactoryImpl(); Templates templates = transformerFactory.newTemplates(new StreamSource(styleSheetBIS1)); Transformer transformer = templates.newTransformer(); JDOMSource source = new JDOMSource(originaljdomDocument1); JDOMResult result = new JDOMResult(); Transformer.transform(source, result); transformedjdomDocument1 = result.getDocument(); ....... Thanks a lot, Jack
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Latebreaking Sessions added t, B Tommie Usdin | Thread | Re: [xsl] How to transform multiple, Martin Honnen |
[xsl] Latebreaking Sessions added t, B Tommie Usdin | Date | Re: [xsl] How to transform multiple, Martin Honnen |
Month |