|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xslt.parser.Parser
A base class for XSLT related parsers.
Field Summary | |
protected XsltParseContext |
context_
|
protected PatternParser |
patternParser_
|
Constructor Summary | |
protected |
Parser(PatternParser patternParser)
Create a Parser. |
Method Summary | |
protected XPathNode |
getFirstStylesheetChild(XPathNode node)
Get the first child that is a stylesheet node. |
protected XPathNode |
getNextStylesheetSibling(XPathNode node)
Get the next sibling that is a stylesheet node. |
protected XPathNode |
getStylesheetNode(XPathNode node)
Skip comments and processing instructions which are ignored in a stylesheet. |
protected boolean |
isStylesheetElement(XPathNode node)
Test if the node is a stylesheet element, i.e. |
boolean |
isStylesheetElement(XPathNode node,
String localName)
Test if the node is a stylesheet element with the given local name. |
boolean |
isStylesheetNode(XPathNode node)
Test if the node is a stylesheet node, i.e. |
protected void |
parseExcludeResultPrefixes(XPathNode attribute)
|
protected void |
parseExtensionElementPrefixes(XPathNode attribute)
|
protected String |
parseNamespacePrefix(String prefix)
|
protected void |
reportInvalidChild(XPathNode child,
boolean ignoreWhitespaceText)
|
protected void |
reportMissingAttribute(String name)
|
protected AttributeIterator |
setCurrentElement(XPathNode element)
Calls setCurrentElement(element, true). |
protected AttributeIterator |
setCurrentElement(XPathNode element,
boolean isStylesheetElem)
Set the current parsed element (either a stylesheet or a literal element) and return an iterator for all relevant attributes of the element. |
protected void |
throwException(String message)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected XsltParseContext context_
protected PatternParser patternParser_
Constructor Detail |
protected Parser(PatternParser patternParser)
Method Detail |
protected AttributeIterator setCurrentElement(XPathNode element, boolean isStylesheetElem) throws XsltParseException
element
- the new current parsed elementisStylesheetElem
- true if it is a stylesheet element,
false for a literal element.
XsltParseException
protected AttributeIterator setCurrentElement(XPathNode element) throws XsltParseException
XsltParseException
public boolean isStylesheetNode(XPathNode node)
protected boolean isStylesheetElement(XPathNode node)
public boolean isStylesheetElement(XPathNode node, String localName)
protected XPathNode getStylesheetNode(XPathNode node)
protected XPathNode getFirstStylesheetChild(XPathNode node)
protected XPathNode getNextStylesheetSibling(XPathNode node)
protected void parseExcludeResultPrefixes(XPathNode attribute) throws XsltParseException
XsltParseException
protected void parseExtensionElementPrefixes(XPathNode attribute) throws XsltParseException
XsltParseException
protected String parseNamespacePrefix(String prefix)
protected void throwException(String message) throws XsltParseException
XsltParseException
protected void reportMissingAttribute(String name) throws XsltParseException
XsltParseException
protected void reportInvalidChild(XPathNode child, boolean ignoreWhitespaceText) throws XsltParseException
XsltParseException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |