|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.StandardURIResolver
net.sf.saxon.xom.XomUriResolver
public class XomUriResolver
This class is a URI resolver that loads an XML document found at the relevant URI and builds a XOM tree from it; the XOM tree is then returned as a source object. The main purpose of this class is for testing: any application that works with a Saxon tinytree can be tested against XOM merely by selecting this URIResolver.
Field Summary |
---|
Fields inherited from class net.sf.saxon.StandardURIResolver |
---|
recognizeQueryParameters |
Constructor Summary | |
---|---|
XomUriResolver(Configuration config)
|
Method Summary | |
---|---|
javax.xml.transform.Source |
resolve(java.lang.String href,
java.lang.String base)
Resolve a URI |
Methods inherited from class net.sf.saxon.StandardURIResolver |
---|
getConfiguration, getPlatform, getPTreeSource, queryParametersAreRecognized, setConfiguration, setRecognizeQueryParameters, setSAXInputSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XomUriResolver(Configuration config)
Method Detail |
---|
public javax.xml.transform.Source resolve(java.lang.String href, java.lang.String base) throws XPathException
resolve
in interface javax.xml.transform.URIResolver
resolve
in class StandardURIResolver
href
- The relative or absolute URI. May be an empty string. May contain
a fragment identifier starting with "#", which must be the value of an ID attribute
in the referenced XML document.base
- The base URI that should be used. May be null if uri is absolute.
XPathException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |