|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.framework.xml.XMLFragment
org.deegree.framework.xml.XSLTDocument
public class XSLTDocument
Encapsulates the DOM representation of an XSLT stylesheet.
| Field Summary |
|---|
| Fields inherited from class org.deegree.framework.xml.XMLFragment |
|---|
DEFAULT_URL, nsContext, XLNNS |
| Constructor Summary | |
|---|---|
XSLTDocument()
An empty xslt document. |
|
XSLTDocument(URL url)
|
|
| Method Summary | |
|---|---|
void |
transform(InputStream input,
OutputStream target)
Transforms an input XML stream to an output stream using this XSLTDocument. |
XMLFragment |
transform(InputStream instream,
String systemId,
Properties outputProperties,
Map<String,?> params)
Transforms the XML from the given InputStream. |
XMLFragment |
transform(Reader reader,
String systemId,
Properties outputProperties,
Map<String,?> params)
Transforms the XML from the given Reader. |
static Result |
transform(Source xmlSource,
Source xslSource,
Result result,
Properties outputProperties,
Map<String,?> params)
Transforms the given XML Source instance using the also submitted XSLT stylesheet
Source. |
XMLFragment |
transform(XMLFragment xmlDocument)
Transforms the given XMLFragment instance. |
void |
transform(XMLFragment xmlDocument,
OutputStream target)
Transforms the given XMLFragment instance. |
XMLFragment |
transform(XMLFragment xmlDocument,
String systemId,
Properties outputProperties,
Map<String,?> params)
Transforms the given XMLFragment instance. |
| Methods inherited from class org.deegree.framework.xml.XMLFragment |
|---|
getAsPrettyString, getAsString, getAttachedSchemas, getQualifiedName, getRootElement, getSystemId, hasSchema, load, load, load, parseQualifiedName, parseSimpleLink, prettyPrint, prettyPrint, resolve, setRootElement, setSystemId, setSystemId, toString, write, write, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XSLTDocument()
public XSLTDocument(URL url)
throws IOException,
SAXException
url -
IOException
SAXException| Method Detail |
|---|
public XMLFragment transform(XMLFragment xmlDocument,
String systemId,
Properties outputProperties,
Map<String,?> params)
throws TransformerException,
MalformedURLException
XMLFragment instance.
xmlDocument - can not be nullsystemId - SystemID for the resulting XMLFragment, may be nulloutputProperties - transformation properties, may be nullparams - transformation parameters, may be null
TransformerException
MalformedURLException - if systemId is no valid URL
public XMLFragment transform(XMLFragment xmlDocument)
throws TransformerException
XMLFragment instance.
xmlDocument - can not be null
TransformerException
public void transform(XMLFragment xmlDocument,
OutputStream target)
throws TransformerException
XMLFragment instance.
xmlDocument - can not be nulltarget - output stream where the result of the transformation will be written to
TransformerException
public void transform(InputStream input,
OutputStream target)
throws TransformerException
XSLTDocument.
input - provides the input xml as a streamtarget - output stream where the result of the transformation will be written to
TransformerException
public XMLFragment transform(InputStream instream,
String systemId,
Properties outputProperties,
Map<String,?> params)
throws TransformerException,
MalformedURLException
InputStream.
NOTE: You have to make sure that the InputStream provides a valid XML document.
instream - systemId - SystemID for the resulting XMLFragmentoutputProperties - transformation properties, may be nullparams - transformation parameters, may be null
TransformerException - if transformation fails
MalformedURLException - if given systemId is no valid URL
public XMLFragment transform(Reader reader,
String systemId,
Properties outputProperties,
Map<String,?> params)
throws TransformerException,
MalformedURLException
Reader.
NOTE: You have to make sure that the Reader provides a valid XML document.
reader - systemId - SystemID for the resulting XMLFragmentoutputProperties - transformation properties, may be nullparams - transformation parameters, may be null
TransformerException - if transformation fails
MalformedURLException - if given systemId is no valid URL
public static Result transform(Source xmlSource,
Source xslSource,
Result result,
Properties outputProperties,
Map<String,?> params)
throws TransformerException
Source instance using the also submitted XSLT stylesheet
Source.
xmlSource - xslSource - result - outputProperties - may be nullparams - may be null
TransformerException
TransformerException
|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org