|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjd.xml.xslt.parser.Parser
jd.xml.xslt.parser.TemplateParser
A parser for XSLT templates.
Field Summary |
Fields inherited from class jd.xml.xslt.parser.Parser |
context_, patternParser_ |
Constructor Summary | |
TemplateParser(PatternParser patternParser)
Create a new TemplateParser. |
Method Summary | |
protected void |
expectExtensionElement(XPathNode parent,
XPathNode node,
String uri,
String localName)
Test if a node is a extension element |
(package private) Variable[] |
getVariableArray(Vector vars)
|
Template |
parse(XPathNode node)
Parse a template node, its children and siblings. |
(package private) CreateAttribute |
parseAttribute(XPathNode element,
AttributeIterator attributes)
|
(package private) AttributeValue |
parseOutputFormat(AttributeIterator attributes,
OutputFormatTemplate formatTemplate,
boolean isOutputInstruction)
Parse a xsl:output or xsl:document instruction. |
(package private) Variable |
parseVariable(XPathNode element,
int variableType,
AttributeIterator attributes)
|
(package private) Variable |
parseVariable(XPathNode element,
int variableType,
AttributeIterator attributes,
boolean isGlobal)
|
(package private) Vector |
parseVariable(XPathNode element,
int variableType,
Vector vars)
|
void |
setParseListener(ParseListener parseListener)
Set a ParseListener. |
Methods inherited from class jd.xml.xslt.parser.Parser |
getFirstStylesheetChild, getNextStylesheetSibling, getStylesheetNode, isStylesheetElement, isStylesheetElement, isStylesheetNode, parseExcludeResultPrefixes, parseExtensionElementPrefixes, parseNamespacePrefix, reportInvalidChild, reportMissingAttribute, setCurrentElement, setCurrentElement, throwException |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TemplateParser(PatternParser patternParser)
Method Detail |
public void setParseListener(ParseListener parseListener)
public Template parse(XPathNode node) throws XsltParseException
node
- the node
jd.xml.xslt.parse.XsltParseException
- thrown if the parsing fails
XsltParseException
CreateAttribute parseAttribute(XPathNode element, AttributeIterator attributes) throws XsltParseException
XsltParseException
Variable parseVariable(XPathNode element, int variableType, AttributeIterator attributes) throws XsltParseException
XsltParseException
Variable parseVariable(XPathNode element, int variableType, AttributeIterator attributes, boolean isGlobal) throws XsltParseException
XsltParseException
Vector parseVariable(XPathNode element, int variableType, Vector vars) throws XsltParseException
XsltParseException
Variable[] getVariableArray(Vector vars)
AttributeValue parseOutputFormat(AttributeIterator attributes, OutputFormatTemplate formatTemplate, boolean isOutputInstruction) throws XsltParseException
attributes
- an iterator for the attributes of the instructions elementsisOutputInstruction
- is it from a xsl:output instruction (true)
or a xsl:document instruction (false)
XsltParseException
protected void expectExtensionElement(XPathNode parent, XPathNode node, String uri, String localName) throws XsltParseException
XsltParseException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |