|
|||||||||
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 XSL 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.
Method Summary | |
com.lotus.xsl.Document |
createDocument()
Create an empty DOM Document. |
com.lotus.xsl.Element |
getElementByID(java.lang.String id,
com.lotus.xsl.Document doc)
Given an ID, return the element. |
java.lang.String |
getExpandedAttributeName(com.lotus.xsl.Attr attr)
Returns the attribute name with the namespace expanded. |
java.lang.String |
getExpandedElementName(com.lotus.xsl.Element elem)
Return the expanded element name. |
int |
getIndent()
Get the amount to indent when indent-result="yes". |
java.lang.String |
getLocalNameOfNode(com.lotus.xsl.Node n)
Returns the local name of the given node. |
java.lang.String |
getNamespaceForPrefix(java.lang.String prefix,
com.lotus.xsl.Element namespaceContext)
Given a prefix and a namespace context, return the expanded namespace. |
java.lang.String |
getNamespaceOfNode(com.lotus.xsl.Node n)
Returns the namespace of the given node. |
com.lotus.xsl.Node |
getParentOfNode(com.lotus.xsl.Node node)
This function has to be implemented, because the DOM WG decided that attributes don't have parents. |
java.lang.String |
getParserDescription()
Return a string suitible for telling the user what parser is being used. |
boolean |
getShouldExpandEntityRefs()
Get whether or not to expand all entity references in the source and style trees. |
java.lang.String |
getSpecialCharacters()
Get special characters for attributes that will be escaped. |
boolean |
getUseValidation()
Get whether or not validation will be performed. |
boolean |
isIgnorableWhitespace(com.lotus.xsl.Text node)
Tell if the node is ignorable whitespace. |
com.lotus.xsl.Document |
parseXMLStream(java.io.Reader reader)
Parse the text pointed at by the reader as XML, and return a DOM Document interface. |
com.lotus.xsl.Document |
parseXMLStream(java.io.Reader reader,
java.lang.String identifier)
Parse the text pointed at by the reader as XML, and return a DOM Document interface. |
com.lotus.xsl.Document |
parseXMLStream(java.net.URL url)
Parse the text pointed at by the URL as XML, and return a DOM Document interface. |
void |
setIndent(int i)
Set the amount to indent when indent-result="yes". |
void |
setProcessorOwner(XSLProcessor processor)
Set which processor this instance is associated with. |
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)
Set special characters for attributes that will be escaped. |
void |
setUseValidation(boolean b)
If set to true, validation will be performed. |
Method Detail |
public void setProcessorOwner(XSLProcessor processor)
public com.lotus.xsl.Document parseXMLStream(java.io.Reader reader) throws java.io.IOException, XSLProcessorException
reader
- A stream that should hold valid XML.public com.lotus.xsl.Document parseXMLStream(java.io.Reader reader, java.lang.String identifier) throws java.io.IOException, XSLProcessorException
reader
- A stream that should hold valid XML.identifier
- Used for diagnostic purposes only,
some sort of identification for error reporting, may be
null or empty string.public com.lotus.xsl.Document parseXMLStream(java.net.URL url) throws java.io.IOException, XSLProcessorException
url
- A URI to a valid XML document.public com.lotus.xsl.Document createDocument()
public java.lang.String getExpandedElementName(com.lotus.xsl.Element elem)
public java.lang.String getExpandedAttributeName(com.lotus.xsl.Attr attr)
public java.lang.String getNamespaceForPrefix(java.lang.String prefix, com.lotus.xsl.Element namespaceContext)
public java.lang.String getNamespaceOfNode(com.lotus.xsl.Node n)
public java.lang.String getLocalNameOfNode(com.lotus.xsl.Node n)
public boolean isIgnorableWhitespace(com.lotus.xsl.Text node)
public com.lotus.xsl.Node getParentOfNode(com.lotus.xsl.Node node)
public com.lotus.xsl.Element getElementByID(java.lang.String id, com.lotus.xsl.Document doc)
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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |