|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An implementation of this interface acts as a liaison between the XSLT processor and the XML parser. It is needed in order to support features like included files, and to cover for deficiencies in the DOM. An implementation of this interface is a requirement for the XSL processor. While the XPathSupport methods are intended to just support XPath, the methods in this class are intended to support XSLT.
Fields inherited from class org.apache.xalan.xpath.XPathSupport |
DATASOURCE,
ERROR,
WARNING,
XMLPARSER,
XPATHPARSER,
XPATHPROCESSOR,
XSLTPROCESSOR |
Method Summary | |
void |
checkNode(org.w3c.dom.Node node)
**For internal use only** Check node to see if it matches this liaison. |
void |
copyFromOtherLiaison(XMLParserLiaisonDefault from)
Copy attributes from another liaison. |
org.w3c.dom.Document |
createDocument()
Create an empty DOM Document. |
java.lang.String |
getAcceptLanguage()
Get language variant that should be used, passed from servlet HTTP header. |
XPathFactory |
getDefaultXPathFactory()
Get a factory to create XPaths. |
org.w3c.dom.Document |
getDocument()
Returns the document just parsed. |
java.lang.String |
getExpandedAttributeName(org.w3c.dom.Attr attr)
Returns the attribute name with the namespace expanded. |
java.lang.String |
getExpandedElementName(org.w3c.dom.Element elem)
Return the expanded element name. |
int |
getIndent()
Get the amount to indent when indent-result="yes". |
java.lang.String |
getParserDescription()
Return a string suitible for telling the user what parser is being used. |
ProblemListener |
getProblemListener()
Get the current problem listener. |
boolean |
getShouldExpandEntityRefs()
Get whether or not to expand all entity references in the source and style trees. |
java.lang.String |
getSpecialCharacters()
Deprecated. |
java.net.URL |
getURLFromString(java.lang.String urlString,
java.lang.String base)
Take a user string and try and parse XML, and also return the url. |
boolean |
getUseValidation()
Get whether or not validation will be performed. |
void |
reset()
Reset for new run. |
void |
setAcceptLanguage(java.lang.String acceptLanguage)
Set language variant that should be used, passed from servlet HTTP header. |
void |
setEnvSupport(XPathEnvSupport envSupport)
**For advanced use only** XPath environment support, which the liaison may aggregate back to in order to implement the XPathEnvSupport interface. |
void |
setIndent(int i)
Set the amount to indent when indent-result="yes". |
void |
setProblemListener(ProblemListener listener)
Set the current problem listener. |
void |
setShouldExpandEntityRefs(boolean b)
Set whether or not to expand all entity references in the source and style trees. |
void |
setSpecialCharacters(java.lang.String str)
Deprecated. |
void |
setUseValidation(boolean b)
If set to true, validation will be performed. |
boolean |
supportsSAX()
Returns true if the liaison supports the SAX DocumentHandler interface. |
Methods inherited from interface org.xml.sax.Parser |
parse,
parse,
setDocumentHandler,
setDTDHandler,
setEntityResolver,
setErrorHandler,
setLocale |
Methods inherited from interface org.apache.xalan.xpath.XPathEnvSupport |
associateXLocatorToNode,
elementAvailable,
extFunction,
findURIFromDoc,
functionAvailable,
getDOMFactory,
getNodeSetByKey,
getSourceDocsTable,
getVariable,
getXLocatorFromNode,
setDOMFactory,
shouldStripSourceNode |
Method Detail |
public void checkNode(org.w3c.dom.Node node) throws org.xml.sax.SAXException
public void reset()
public void setEnvSupport(XPathEnvSupport envSupport)
public boolean supportsSAX()
public org.w3c.dom.Document getDocument()
public org.w3c.dom.Document createDocument()
public java.lang.String getExpandedElementName(org.w3c.dom.Element elem)
public java.lang.String getExpandedAttributeName(org.w3c.dom.Attr attr)
public void setSpecialCharacters(java.lang.String str)
public java.lang.String getSpecialCharacters()
public int getIndent()
public void setIndent(int i)
public boolean getShouldExpandEntityRefs()
public void setShouldExpandEntityRefs(boolean b)
public boolean getUseValidation()
public void setUseValidation(boolean b)
public java.lang.String getParserDescription()
public XPathFactory getDefaultXPathFactory()
public java.net.URL getURLFromString(java.lang.String urlString, java.lang.String base) throws org.xml.sax.SAXException
public void setAcceptLanguage(java.lang.String acceptLanguage)
public java.lang.String getAcceptLanguage()
public void setProblemListener(ProblemListener listener)
public ProblemListener getProblemListener()
public void copyFromOtherLiaison(XMLParserLiaisonDefault from) throws org.xml.sax.SAXException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |