Search in sources :

Example 6 with ElemParam

use of org.apache.xalan.templates.ElemParam in project robovm by robovm.

the class ProcessorGlobalParamDecl method endElement.

/**
   * Receive notification of the end of an element.
   *
   * @param name The element type name.
   * @param attributes The specified or defaulted attributes.
   *
   * @param handler non-null reference to current StylesheetHandler that is constructing the Templates.
   * @param uri The Namespace URI, or an empty string.
   * @param localName The local name (without prefix), or empty string if not namespace processing.
   * @param rawName The qualified name (with prefix).
   */
public void endElement(StylesheetHandler handler, String uri, String localName, String rawName) throws org.xml.sax.SAXException {
    ElemParam v = (ElemParam) handler.getElemTemplateElement();
    handler.getStylesheet().appendChild(v);
    handler.getStylesheet().setParam(v);
    super.endElement(handler, uri, localName, rawName);
}
Also used : ElemParam(org.apache.xalan.templates.ElemParam)

Example 7 with ElemParam

use of org.apache.xalan.templates.ElemParam in project robovm by robovm.

the class ProcessorExsltFunction method ancestorIsOk.

/**
   * Verify that a literal result belongs to a result element, a variable, 
   * or a parameter.
   */
boolean ancestorIsOk(ElemTemplateElement child) {
    while (child.getParentElem() != null && !(child.getParentElem() instanceof ElemExsltFunction)) {
        ElemTemplateElement parent = child.getParentElem();
        if (parent instanceof ElemExsltFuncResult || parent instanceof ElemVariable || parent instanceof ElemParam || parent instanceof ElemMessage)
            return true;
        child = parent;
    }
    return false;
}
Also used : ElemVariable(org.apache.xalan.templates.ElemVariable) ElemExsltFuncResult(org.apache.xalan.templates.ElemExsltFuncResult) ElemParam(org.apache.xalan.templates.ElemParam) ElemMessage(org.apache.xalan.templates.ElemMessage) ElemExsltFunction(org.apache.xalan.templates.ElemExsltFunction) ElemTemplateElement(org.apache.xalan.templates.ElemTemplateElement)

Aggregations

ElemParam (org.apache.xalan.templates.ElemParam)7 ElemVariable (org.apache.xalan.templates.ElemVariable)5 ElemExsltFuncResult (org.apache.xalan.templates.ElemExsltFuncResult)4 ElemExsltFunction (org.apache.xalan.templates.ElemExsltFunction)4 ElemTemplateElement (org.apache.xalan.templates.ElemTemplateElement)4 ElemMessage (org.apache.xalan.templates.ElemMessage)2 SAXException (org.xml.sax.SAXException)2 TransformerException (javax.xml.transform.TransformerException)1 Debugger (org.intellij.plugins.xsltDebugger.rt.engine.Debugger)1 Value (org.intellij.plugins.xsltDebugger.rt.engine.Value)1 VariableImpl (org.intellij.plugins.xsltDebugger.rt.engine.local.VariableImpl)1