org.vizzini.util.xml
Class TransformUtilities

java.lang.Object
  extended by org.vizzini.util.xml.TransformUtilities

public class TransformUtilities
extends Object

Provides convenience methods for XML transformation using XSLT.

Since:
v0.3
Version:
v0.3
Author:
Jeffrey M. Thompson

Method Summary
static TransformUtilities getInstance()
          Return the singleton instance.
 DOMResult transform(Document xmlDoc, Document xsltDoc)
          Transform the given XML using the given XSLT.
 DOMResult transform(Source xmlSource, Source xsltSource)
          Transform the given XML using the given XSLT.
 DOMResult transform(String xml, String xslt)
          Transform the given XML using the given XSLT.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static TransformUtilities getInstance()
Return the singleton instance.

Since:
v0.3

transform

public DOMResult transform(Document xmlDoc,
                           Document xsltDoc)
Transform the given XML using the given XSLT.

Parameters:
xmlDoc - XML document.
xsltDoc - XSLT document.
Returns:
the DOMResult of the transformation.
Since:
v0.3

transform

public DOMResult transform(String xml,
                           String xslt)
Transform the given XML using the given XSLT.

Parameters:
xml - XML string.
xslt - XSLT string.
Returns:
the DOMResult of the transformation.
Since:
v0.3

transform

public DOMResult transform(Source xmlSource,
                           Source xsltSource)
Transform the given XML using the given XSLT.

Parameters:
xmlSource - XML source.
xsltSource - XSLT source.
Returns:
the DOMResult of the transformation.
Since:
v0.3


Copyright © 2007 Vizzini.org. All Rights Reserved. 2007.12.25.03.00.02