ErrorObserver
public class RuleProcessor extends ErrorObserverAdapter
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
XSL_VENDOR |
The XSL vendor property name
|
static java.lang.String |
XSL_VENDOR_URL |
The XSL vendor-url property name
|
static java.lang.String |
XSL_VERSION |
The XSL version property name
|
FATAL, NORMAL, WARNING
Constructor | Description |
---|---|
RuleProcessor(XSLTStylesheet xsl) |
Create a RuleProcessor for the given XSL stylesheet
|
Modifier and Type | Method | Description |
---|---|---|
void |
addFunctionResolver(FunctionResolver fnResolver) |
Adds the given FunctionResolver used for resovling
extension functions.
|
void |
addMessageObserver(MessageObserver msgObserver) |
Adds the given MessageObserver to this processors list
of MessageObservers
|
java.lang.String |
getParameter(java.lang.String name) |
Returns the parameter value associated with the given name.
|
java.lang.String |
getProperty(java.lang.String name) |
Returns the property value that is associated with the given name.
|
URIResolver |
getURIResolver() |
Returns the URIResolver for resolving all URIs.
|
void |
process(XPathNode source,
ResultHandler handler) |
Processes the given XML Document using this processors stylesheet.
|
MessageObserver |
removeMessageObserver(MessageObserver msgObserver) |
Removes the given MessageObserver from this processors list
of MessageObservers
|
void |
setParameter(java.lang.String name,
java.lang.String value) |
Sets a property which may be accessed from the XSLT
stylesheet via a call to the xslp:param extension function
|
void |
setURIResolver(URIResolver resolver) |
Sets the URIResolver for resolving all URIs.
|
addErrorObserver, receiveError, receiveError, receiveError, receiveError, receiveError, receiveError, removeAllErrorObservers, removeErrorObserver
public static final java.lang.String XSL_VERSION
public static final java.lang.String XSL_VENDOR
public static final java.lang.String XSL_VENDOR_URL
public RuleProcessor(XSLTStylesheet xsl)
xsl
- the XSLStylesheet to processdomParser
- the DOMParser to use when creating
the result treepublic void addFunctionResolver(FunctionResolver fnResolver)
fnResolver
- the FunctionResolver to addorg.exolab.adaptx.xpath.FunctionResolver
public void addMessageObserver(MessageObserver msgObserver)
msgObserver
- the MessageObserver to add to this processors
list of MessageObserverspublic java.lang.String getParameter(java.lang.String name)
name
- the name of the parameter to retrieve the value ofpublic java.lang.String getProperty(java.lang.String name)
name
- the name of the property to retrieve the value ofpublic URIResolver getURIResolver()
public void process(XPathNode source, ResultHandler handler)
source
- the XPathNode to processhandler
- the ResultHandler for the result treepublic MessageObserver removeMessageObserver(MessageObserver msgObserver)
msgObserver
- the MessageObserver to remove from this processors
list of MessageObserverspublic void setParameter(java.lang.String name, java.lang.String value)
name
- the name of the parametervalue
- the value of the parameterpublic void setURIResolver(URIResolver resolver)
resolver
- the URIResolver to use