|
XDC - v. 0.6.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.xdc.util.XslUtils
This is a utility class containg various method related to XSLT transformations.
| Method Summary | |
static org.w3c.dom.Document |
transform(org.w3c.dom.Document xml,
java.lang.String xslResourceName,
java.util.Map tables)
This method attempts to transform an XML structure contained in a DOM Document using an XSLT stylesheet contained in a resource
(which can be loaded by the Classloader of this class)
into a DOM Document. |
static org.w3c.dom.Document |
transform(java.lang.String xmlFileName,
java.nio.charset.Charset charset,
java.lang.String xslResourceName,
java.util.Map tables)
This method attempts to transform an XML structure contained in a file using an XSLT stylesheet contained in a resource (which can be loaded by the Classloader of this class) into a DOM
Document. |
static java.lang.String |
transformToString(java.lang.String xmlFileName,
java.lang.String xslResourceName,
java.util.Map tables)
This method attempts to transform an XML structure contained in a file using an XSLT stylesheet contained in a resource (which can be loaded by the Classloader of this class) into a String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static org.w3c.dom.Document transform(java.lang.String xmlFileName,
java.nio.charset.Charset charset,
java.lang.String xslResourceName,
java.util.Map tables)
throws XmlException
Classloader of this class) into a DOM
Document.
xmlFileName - The path (in the file system) of the XML input filecharset - The file encoding charsetxslResourceName - The name of the XSLT stylesheet resource; either
the name by which the resource is accessed by the
Classloader or any valid URLtables - Optional key-value pairs passed as stylesheet parameters
to the transformer
XmlException
public static org.w3c.dom.Document transform(org.w3c.dom.Document xml,
java.lang.String xslResourceName,
java.util.Map tables)
throws XmlException
Document using an XSLT stylesheet contained in a resource
(which can be loaded by the Classloader of this class)
into a DOM Document.
xml - The DOM document used as XML inputxslResourceName - The name of the XSLT stylesheet resource; either
the name by which the resource is accessed by the
Classloader or any valid URLtables - Optional key-value pairs passed as stylesheet parameters
to the transformer
XmlException
public static java.lang.String transformToString(java.lang.String xmlFileName,
java.lang.String xslResourceName,
java.util.Map tables)
throws XmlException
Classloader of this class) into a String.
xmlFileName - The path (in the file system) of the XML input filexslResourceName - The name of the XSLT stylesheet resource; either
the name by which the resource is accessed by the
Classloader or any valid URLtables - Optional key-value pairs passed as stylesheet parameters
to the transformer
XmlException
|
XDC - v. 0.6.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||