[jdom-interest] AW: Question on your XalanTransform

Jakob Schwendner jschwendner at picturesafe.de
Thu Jul 13 00:22:40 PDT 2000


> -----Ursprüngliche Nachricht-----
> Von: Kartheek Hirode [mailto:kartheek_hirode at centegy.com]
> Gesendet: Mittwoch, 12. Juli 2000 23:22
> An: jschwendner at picturesafe.de
> Betreff: Question on your XalanTransform
>
>
>
> Hello Jakob,
> First of all, thanks much for sharing your XalanTransform code
> with the JDOM mailing list. Appreciate it. It is very useful
> 'coz it brings together JDOM and XSLT.
>
> Have a quick question, if you don't mind:
>
> i) Where is "XSLTransform" interface coming from? Is it something
>     you defined?
>
> Thanks for the info,
> Best regards,
> Kartheek
>

package org.jdom.transform;

import java.io.*;
import org.jdom.*;
import org.apache.xalan.xslt.*;

/**
* public interface for XSLTransformations on org.jdom.Documents
*/

public interface XSLTransform {
	/**
	* transform an org.jdom.Document object via a precompiled stylesheet (xsl)
into another org.jdom.Document object.
	* @param doc Document to be transformed
	* @param ssr precompiled StylesheetRoot
	* @return the Transformed Document
	*/
	public Document process( Document doc, StylesheetRoot ssr ) throws
JDOMException, IOException;

	/**
	* transform an org.jdom.Document object via a stylesheet (xsl) into another
org.jdom.Document object.
	* @param doc Document to be transformed
	* @param xsl InputStream which holds the xsl data
	* @return the Transformed Document
	*/
	public Document process( Document doc, InputStream xsl) throws
JDOMException, IOException;
}




More information about the jdom-interest mailing list