[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: The XSL-List Digest V2 #497
Paul, Thank you for the response. These instructions served me very well. Mike.... > Date: Thu, 03 Feb 2000 13:27:20 -0500 > From: Paul Levin <plevin@xxxxxxx> > Subject: Re: Feeding DOMs to XSLT Processors > > Mike, > Using Xerces (XML DOM implementation and parser) and Xalan (XSLT) > you > do the following: > > 1) build your DOM using methods in org.apache.xerces.dom.DocumentImpl. > 2) compile your XSL stylesheet, from a file, into a > org.apache.xalan.xslt.StylesheetRoot, using > org.apache.xalan.xslt.XSLTEngineImpl.processStylesheet(). Be sure to > construct the XSLTEngineImpl with an > org.apache.xalan.xpath.xdom.XercesLiaison. > 3) apply the StylesheetRoot to the DOM using > org.apache.xalan.xslt.StylesheetRoot.process(). > 4) the result of process() is another DOM. If your stylesheet generated > HTML then this DOM has HTML nodes. process() has the ability to render > this DOM, or you use some other xalan class to render this DOM to text. (I > do not know the name of this class off-hand, because I needed to write my > own renderer, since I output something other than XML, HTML and TEXT.) > > Paul > __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|