Package edu.ucsb.nceas.metacat.spatial
Class XSLTransform
java.lang.Object
edu.ucsb.nceas.metacat.spatial.XSLTransform
A Class that transforms XML documents utitlizing XSL style sheets. This is
a convenience class that makes it easier to handle the location of
stylesheets and the mapping between a request and a particular stylesheet.
-
Constructor Summary
ConstructorDescriptionPrivate constructor because all methids are static and do not need an instance. -
Method Summary
Modifier and TypeMethodDescriptionstatic void
the main routine used to test the transform utility.static void
transform
(Reader doc, String xslSystemId, PrintWriter pw, Hashtable param) Transform an XML document using an XSLT stylesheet to another format, probably HTML or another XML document format.static void
transform
(String docString, String xslSystemId, PrintWriter pw, Hashtable param) Transform an XML document using an XSLT stylesheet to another format, probably HTML or another XML document format.
-
Constructor Details
-
XSLTransform
public XSLTransform()Private constructor because all methids are static and do not need an instance.
-
-
Method Details
-
transform
Transform an XML document using an XSLT stylesheet to another format, probably HTML or another XML document format.- Parameters:
docString
- the document to be transformedxslSystemId
- the system location of the stylesheetpw
- the PrintWriter to which output is printedparams
- some parameters for inclusion to the transformation
-
transform
Transform an XML document using an XSLT stylesheet to another format, probably HTML or another XML document format.- Parameters:
doc
- the document to be transformedxslSystemId
- the system location of the stylesheetpw
- the PrintWriter to which output is printedparams
- some parameters for inclusion to the transformation
-
main
the main routine used to test the transform utility. Usage: java DBTransform
-