|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.lotus.xsl.XMLParserLiaisonDefault | +--com.lotus.xsl.xml4j2tx.XML4JLiaison
A class that handles interfacing IBM's XML4J2 to the Lotus XSL Processor.
Field Summary | |
boolean |
m_shouldExpandEntityRefs
By default expand all entity references in the source and style trees. |
boolean |
m_xml4jprint
Use XML4J's PrintVisitor class instead of LotusXSL's Formatter classes. |
static java.lang.String |
XML4J_VERSION
|
Fields inherited from class com.lotus.xsl.XMLParserLiaisonDefault |
m_attrSpecialChars,
m_formatterListener,
m_processor,
m_use_validation,
S_XMLNAMESPACEURI |
Constructor Summary | |
XML4JLiaison()
Construct an ProcessXSL instance, which implements the XMLProcessorLiaison interface. |
|
XML4JLiaison(com.lotus.xsl.xml4j2tx.ErrorListener listener)
Constructor that takes XML4J ErrorListener as an argument. |
Method Summary | |
static void |
checkXML4JVersion()
Check the XML4J version number |
com.lotus.xsl.xml4j2tx.Document |
createDocument()
Create an empty DOM Document. |
com.lotus.xsl.xml4j2tx.Element |
getElementByID(java.lang.String id,
com.lotus.xsl.xml4j2tx.Document doc)
Given an ID, return the element. |
java.lang.String |
getExpandedAttributeName(com.lotus.xsl.xml4j2tx.Attr attr)
Returns the attribute name with the namespace expanded. |
java.lang.String |
getExpandedElementName(com.lotus.xsl.xml4j2tx.Element elem)
Returns the element name with the namespace expanded. |
java.lang.String |
getLocalNameOfNode(org.w3c.dom.Node n)
Returns the local name of the given node. |
java.lang.String |
getNamespaceForPrefix(java.lang.String prefix,
com.lotus.xsl.xml4j2tx.Element namespaceContext)
Given a prefix and a namespace context, return the expanded namespace. |
org.w3c.dom.Node |
getParentOfNode(org.w3c.dom.Node node)
Get the parent of a node. |
java.lang.String |
getParserDescription()
Return a string suitible for telling the user what parser is being used. |
java.lang.String |
getTreeAsText(com.lotus.xsl.xml4j2tx.Document docTree)
Get a document Tree as a text string suiteable for display in a browser. |
boolean |
isIgnorableWhitespace(com.lotus.xsl.xml4j2tx.Text node)
Tell if the node is ignorable whitespace. |
static void |
main(java.lang.String[] argv)
Command line interfact to transform the XML according to the instructions found in the XSL document. |
com.lotus.xsl.xml4j2tx.Document |
parseXMLStream(java.io.Reader reader,
java.lang.String filename)
Parse the text pointed at by the reader as XML, and return a DOM Document interface. |
com.lotus.xsl.xml4j2tx.Document |
parseXMLStream(java.net.URL url)
Parse the text pointed at by the URL, and return a DOM Document interface. |
void |
toMarkup(com.lotus.xsl.xml4j2tx.Document doc,
java.io.PrintWriter pw,
java.lang.String resultns,
boolean format)
Print the result tree. |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final java.lang.String XML4J_VERSION
public boolean m_shouldExpandEntityRefs
public boolean m_xml4jprint
Constructor Detail |
public XML4JLiaison(com.lotus.xsl.xml4j2tx.ErrorListener listener)
listener
- XML4J ErrorListener instance.public XML4JLiaison()
Method Detail |
public java.lang.String getParserDescription()
public static void checkXML4JVersion() throws WrongXML4JVersionException
public com.lotus.xsl.xml4j2tx.Document parseXMLStream(java.io.Reader reader, java.lang.String filename) throws java.io.IOException, XSLProcessorException
public com.lotus.xsl.xml4j2tx.Document parseXMLStream(java.net.URL url) throws java.io.IOException, XSLProcessorException
public com.lotus.xsl.xml4j2tx.Document createDocument()
public java.lang.String getNamespaceForPrefix(java.lang.String prefix, com.lotus.xsl.xml4j2tx.Element namespaceContext)
public java.lang.String getLocalNameOfNode(org.w3c.dom.Node n)
public java.lang.String getExpandedElementName(com.lotus.xsl.xml4j2tx.Element elem)
public java.lang.String getExpandedAttributeName(com.lotus.xsl.xml4j2tx.Attr attr)
public boolean isIgnorableWhitespace(com.lotus.xsl.xml4j2tx.Text node)
public org.w3c.dom.Node getParentOfNode(org.w3c.dom.Node node) throws java.lang.RuntimeException
public com.lotus.xsl.xml4j2tx.Element getElementByID(java.lang.String id, com.lotus.xsl.xml4j2tx.Document doc)
public void toMarkup(com.lotus.xsl.xml4j2tx.Document doc, java.io.PrintWriter pw, java.lang.String resultns, boolean format) throws java.lang.Exception
doc
- The result tree.pw
- The PrintWriter to print the contents to.resultns
- the value of the resultns attribute.format
- Tells if it should be pretty-printed.public java.lang.String getTreeAsText(com.lotus.xsl.xml4j2tx.Document docTree) throws java.io.IOException
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |