Return-Path: Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 26467 invoked from network); 5 Feb 2000 08:48:23 -0000 Received: from inet-smtp1.oracle.com (209.246.15.57) by locus.apache.org with SMTP; 5 Feb 2000 08:48:23 -0000 Received: from usmail07 (usmail07.us.oracle.com [144.25.88.190]) by inet-smtp1.oracle.com (8.9.3/8.9.3) with ESMTP id AAA03365; Sat, 5 Feb 2000 00:50:31 -0800 (PST) Received: from us.oracle.com by usmail07 with ESMTP (8.8.8+Sun/37.9) id AAA07092; Sat, 5 Feb 2000 00:44:10 -0800 (PST) Message-ID: <389BE2D8.17185C0D@us.oracle.com> Date: Sat, 05 Feb 2000 00:44:08 -0800 From: K Karun X-Mailer: Mozilla 4.51 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 To: cocoon-dev@xml.apache.org CC: Kay Michael , James Clark , Steve Muench Subject: Re: XSLT API Proposal References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Scott Boag/CAM/Lotus wrote: > Right, and it seems a bit complicated. I like the notion of a > XSLTSourceDocument. How about: > > XSLTProcessor processor = new VendorProcessor(); > XSLTSourceDocument source > = processor.getSourceDocument(new XSLTInputSource(xxx)); > Transform transform = source.getAssociatedStylesheet(); > processor.setParameter(name, value); > transform.process(processor, source, > new XSLTResultTarget(xxx)); > > comments? Hmmm... I don't see any advantage of having XSLTSourceDocument. The function getAssociatedStylesheet() can belong to XSLTInputSource. Both XSLTInputSource and XSLTSourceDocument as classes, and may be they can be combined. XSLTProcessor processor = new VendorProcessor(); XSLTInputSource source = new XSLTInputSource(xxx); XSLTInputSource stylesheet = source.getAssociatedStylesheet(); Transform transform = processor.createTransform(stylesheet); processor.setParameter(name, value); transform.process(processor, source, new XSLTResultTarget(xxx)); Any ideas/comments? Thanks Karun -- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ K. Karun Project Lead, Java XML Components CORE and XML Development Phone: (650) 506 9874 Server Technologies Fax: (650) 506 7203 Oracle Corporation http://technet.oracle.com/tech/xml ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~