|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.util.XSLTransformer
public class XSLTransformer
Make XSL Transformations
| Field Summary | |
|---|---|
static String |
NS_AWARE
|
| Constructor Summary | |
|---|---|
XSLTransformer()
|
|
| Method Summary | |
|---|---|
static Result |
getResult(String[] argv)
|
static void |
main(String[] argv)
Invocation of the class from the commandline for testing/building |
static void |
transform(File xmlDir,
File xslFile,
File resultDir,
boolean recurse,
Map<String,Object> params,
boolean considerDir)
Can be used to transform a directory of XML-files. |
static void |
transform(File xmlFile,
File xslFile,
Result result,
Map<String,Object> params,
boolean considerDir)
Perfoms XSL Transformation on XML-file which is parsed MMBase specificly (useing MMBasse EntityResolver and Errorhandler). |
static void |
transform(Source xml,
File xslFile,
Result result,
Map<String,Object> params)
This is the base function which calls the actual XSL transformations. |
static void |
transform(Source xml,
File xslFile,
Result result,
Map<String,Object> params,
boolean considerDir)
This is the base function which calls the actual XSL transformations. |
static void |
transform(Source xml,
URL xslFile,
Result result,
Map<String,Object> params)
|
static void |
transform(Source xml,
URL xslFile,
Result result,
Map<String,Object> params,
boolean considerDir)
|
static String |
transform(String xmlPath,
String xslPath)
Transform an XML document using a certain XSL document. |
static String |
transform(String xmlPath,
String xslPath,
boolean cutXML)
Transform an XML document using a certain XSL document, on MMBase specic way (error handling, entitity resolving, uri resolving, logging), and write it to string, which optionally can be 'cut'. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NS_AWARE
| Constructor Detail |
|---|
public XSLTransformer()
| Method Detail |
|---|
public static String transform(String xmlPath,
String xslPath)
xmlPath - Path to XML filexslPath - Path to XSL file
public static String transform(String xmlPath,
String xslPath,
boolean cutXML)
xmlPath - Path to XML filexslPath - Path to XSL filecutXML - if true, cuts the <?xml> line that normally starts an
xml document
public static void transform(Source xml,
File xslFile,
Result result,
Map<String,Object> params)
throws TransformerException
TransformerException
public static void transform(Source xml,
File xslFile,
Result result,
Map<String,Object> params,
boolean considerDir)
throws TransformerException
xml - The source XMLxslFile - The XSL which must be used for the transformationresult - The XSL out will be written to thisparams - null or a Map to XSL transformations parametersconsiderDir - If true, an URIResolver will be instantiated which can resolve entities relative to the XSL file.
TransformerException
public static void transform(Source xml,
URL xslFile,
Result result,
Map<String,Object> params)
throws TransformerException
TransformerException
public static void transform(Source xml,
URL xslFile,
Result result,
Map<String,Object> params,
boolean considerDir)
throws TransformerException
TransformerException
public static void transform(File xmlFile,
File xslFile,
Result result,
Map<String,Object> params,
boolean considerDir)
throws TransformerException,
ParserConfigurationException,
IOException,
SAXException
TransformerException
ParserConfigurationException
IOException
SAXException
public static void transform(File xmlDir,
File xslFile,
File resultDir,
boolean recurse,
Map<String,Object> params,
boolean considerDir)
throws TransformerException,
ParserConfigurationException,
IOException,
SAXException
TransformerException
ParserConfigurationException
IOException
SAXException
public static Result getResult(String[] argv)
throws Exception
Exceptionpublic static void main(String[] argv)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||