|
deegree 2.2 (2008/12/22 11:33 build-3038-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()
|
|
XSLTDocument(URL url)
|
Method Summary | |
---|---|
XMLFragment |
transform(InputStream instream,
String systemId,
Properties outputProperties,
Map params)
Transforms the XML from the given InputStream . |
XMLFragment |
transform(Reader reader,
String systemId,
Properties outputProperties,
Map params)
Transforms the XML from the given Reader . |
static Result |
transform(Source xmlSource,
Source xslSource,
Result result,
Properties outputProperties,
Map 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 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 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 XMLFragment transform(InputStream instream, String systemId, Properties outputProperties, Map 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 XMLFragment
outputProperties
- 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 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 XMLFragment
outputProperties
- 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 params) throws TransformerException
Source
instance using the also submitted XSLT
stylesheet Source
.
xslSource
- result
- outputProperties
- may be nullparams
- may be null
TransformerException
TransformerException
|
deegree 2.2 (2008/12/22 11:33 build-3038-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://deegree.sourceforge.net