eu.etaxonomy.cdm.print
Class Transformator

java.lang.Object
  extended by eu.etaxonomy.cdm.print.Transformator

public class Transformator
extends Object

Perform XSL transformations. Note: This class provides access to the JAXP XSL transformer currently active.

Version:
1.0
Author:
n.hoffmann

Constructor Summary
Transformator(InputStream stylesheet)
           
Transformator(URL stylesheet)
           
 
Method Summary
 org.jdom.Document transform(org.jdom.Document inputDocument)
          Transforms the given document to an output document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transformator

public Transformator(InputStream stylesheet)
              throws org.jdom.transform.XSLTransformException
Throws:
org.jdom.transform.XSLTransformException

Transformator

public Transformator(URL stylesheet)
              throws org.jdom.transform.XSLTransformException,
                     IOException
Throws:
org.jdom.transform.XSLTransformException
IOException
Method Detail

transform

public org.jdom.Document transform(org.jdom.Document inputDocument)
                            throws org.jdom.transform.XSLTransformException
Transforms the given document to an output document.

Parameters:
inputDoc - input document
resolver - entity resolver for the input document
Returns:
transformed output document
Throws:
org.jdom.transform.XSLTransformException - if there's a problem in the transformation


Copyright © 2007-2013 EDIT. All Rights Reserved.