new XSLTAttributeDef[]{ selectAttrRequired, disableOutputEscapingAttr }, new ProcessorTemplateElem(), ElemValueOf.class /* class object */, 20, true); XSLTElementDef xslCopyOf = new XSLTElementDef(this, null /*alias */, null /* elements */, new XSLTAttributeDef[]{ selectAttrRequired }, new ProcessorTemplateElem(), ElemCopyOf.class /* class object */, 20, true); XSLTElementDef xslNumber = new XSLTElementDef(this, groupingSeparatorAVT, groupingSizeAttr }, new ProcessorTemplateElem(), ElemNumber.class /* class object */, 20, true); orderAttr, caseOrderAttr }, new ProcessorTemplateElem(), ElemSort.class/* class object */, 19, true ); XSLTElementDef xslWithParam = new XSLTElementDef(this, templateElements /* elements */, // %template;> new XSLTAttributeDef[]{ nameAttrRequired, selectAttrOpt }, new ProcessorTemplateElem(), ElemWithParam.class /* class object */, 19, true); XSLTElementDef xslApplyTemplates = new XSLTElementDef(this,
XSLTElementDef def = getElemDef(); Class classObject = def.getClassObject(); ElemTemplateElement elem = null; setPropertiesFromAttributes(handler, rawName, attributes, elem); appendAndPush(handler, elem);
/** * End an ElemExsltFunction, and verify its validity. */ public void endElement( StylesheetHandler handler, String uri, String localName, String rawName) throws SAXException { ElemTemplateElement function = handler.getElemTemplateElement(); validate(function, handler); // may throw exception super.endElement(handler, uri, localName, rawName); }
/** * Must include; super doesn't suffice! */ protected void appendAndPush( StylesheetHandler handler, ElemTemplateElement elem) throws SAXException { //System.out.println("ProcessorFunction appendAndPush()" + elem); super.appendAndPush(handler, elem); //System.out.println("originating node " + handler.getOriginatingNode()); elem.setDOMBackPointer(handler.getOriginatingNode()); handler.getStylesheet().setTemplate((ElemTemplate) elem); }
handler.error(msg, new SAXException(msg)); super.startElement(handler, uri, localName, rawName, attributes);
/** * Must include; super doesn't suffice! */ protected void appendAndPush( StylesheetHandler handler, ElemTemplateElement elem) throws SAXException { //System.out.println("ProcessorFunction appendAndPush()" + elem); super.appendAndPush(handler, elem); //System.out.println("originating node " + handler.getOriginatingNode()); elem.setDOMBackPointer(handler.getOriginatingNode()); handler.getStylesheet().setTemplate((ElemTemplate) elem); }
handler.error(msg, new SAXException(msg)); super.startElement(handler, uri, localName, rawName, attributes);
XSLTElementDef def = getElemDef(); Class classObject = def.getClassObject(); ElemTemplateElement elem = null; setPropertiesFromAttributes(handler, rawName, attributes, elem); appendAndPush(handler, elem);
/** * End an ElemExsltFunction, and verify its validity. */ public void endElement( StylesheetHandler handler, String uri, String localName, String rawName) throws SAXException { ElemTemplateElement function = handler.getElemTemplateElement(); validate(function, handler); // may throw exception super.endElement(handler, uri, localName, rawName); }
/** * Append the current template element to the current * template element, and then push it onto the current template * element stack. * * @param handler non-null reference to current StylesheetHandler that is constructing the Templates. * @param elem Must be a non-null reference to a {@link org.apache.xalan.templates.ElemTemplate} object. * * @throws org.xml.sax.SAXException Any SAX exception, possibly * wrapping another exception. */ protected void appendAndPush( StylesheetHandler handler, ElemTemplateElement elem) throws org.xml.sax.SAXException { super.appendAndPush(handler, elem); elem.setDOMBackPointer(handler.getOriginatingNode()); handler.getStylesheet().setTemplate((ElemTemplate) elem); } }
super.startElement(handler, uri, localName, rawName, attributes); ElemTemplateElement ancestor = handler.getElemTemplateElement().getParentElem(); while (ancestor != null && !(ancestor instanceof ElemExsltFunction))
new XSLTAttributeDef[]{ selectAttrRequired, disableOutputEscapingAttr }, new ProcessorTemplateElem(), ElemValueOf.class /* class object */, 20, true); XSLTElementDef xslCopyOf = new XSLTElementDef(this, null /*alias */, null /* elements */, new XSLTAttributeDef[]{ selectAttrRequired }, new ProcessorTemplateElem(), ElemCopyOf.class /* class object */, 20, true); XSLTElementDef xslNumber = new XSLTElementDef(this, groupingSeparatorAVT, groupingSizeAttr }, new ProcessorTemplateElem(), ElemNumber.class /* class object */, 20, true); orderAttr, caseOrderAttr }, new ProcessorTemplateElem(), ElemSort.class/* class object */, 19, true ); XSLTElementDef xslWithParam = new XSLTElementDef(this, templateElements /* elements */, // %template;> new XSLTAttributeDef[]{ nameAttrRequired, selectAttrOpt }, new ProcessorTemplateElem(), ElemWithParam.class /* class object */, 19, true); XSLTElementDef xslApplyTemplates = new XSLTElementDef(this,
XSLTElementDef def = getElemDef(); Class classObject = def.getClassObject(); ElemTemplateElement elem = null; setPropertiesFromAttributes(handler, rawName, attributes, elem); appendAndPush(handler, elem);
/** * Receive notification of the end of an element. * * @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 { ElemTemplateElement elem = handler.getElemTemplateElement(); if (elem instanceof ElemLiteralResult) { if (((ElemLiteralResult) elem).getIsLiteralResultAsStylesheet()) { handler.popStylesheet(); } } super.endElement(handler, uri, localName, rawName); }
/** * Append the current template element to the current * template element, and then push it onto the current template * element stack. * * @param handler non-null reference to current StylesheetHandler that is constructing the Templates. * @param elem Must be a non-null reference to a {@link org.apache.xalan.templates.ElemTemplate} object. * * @throws org.xml.sax.SAXException Any SAX exception, possibly * wrapping another exception. */ protected void appendAndPush( StylesheetHandler handler, ElemTemplateElement elem) throws org.xml.sax.SAXException { super.appendAndPush(handler, elem); elem.setDOMBackPointer(handler.getOriginatingNode()); handler.getStylesheet().setTemplate((ElemTemplate) elem); } }
super.startElement(handler, uri, localName, rawName, attributes); ElemTemplateElement ancestor = handler.getElemTemplateElement().getParentElem(); while (ancestor != null && !(ancestor instanceof ElemExsltFunction))
new XSLTAttributeDef[]{ selectAttrRequired, disableOutputEscapingAttr }, new ProcessorTemplateElem(), ElemValueOf.class /* class object */, 20, true); XSLTElementDef xslCopyOf = new XSLTElementDef(this, null /*alias */, null /* elements */, new XSLTAttributeDef[]{ selectAttrRequired }, new ProcessorTemplateElem(), ElemCopyOf.class /* class object */, 20, true); XSLTElementDef xslNumber = new XSLTElementDef(this, groupingSeparatorAVT, groupingSizeAttr }, new ProcessorTemplateElem(), ElemNumber.class /* class object */, 20, true); orderAttr, caseOrderAttr }, new ProcessorTemplateElem(), ElemSort.class/* class object */, 19, true ); XSLTElementDef xslWithParam = new XSLTElementDef(this, templateElements /* elements */, // %template;> new XSLTAttributeDef[]{ nameAttrRequired, selectAttrOpt }, new ProcessorTemplateElem(), ElemWithParam.class /* class object */, 19, true); XSLTElementDef xslApplyTemplates = new XSLTElementDef(this,
XSLTElementDef def = getElemDef(); Class classObject = def.getClassObject(); ElemTemplateElement elem = null; setPropertiesFromAttributes(handler, rawName, attributes, elem); appendAndPush(handler, elem);
/** * Receive notification of the end of an element. * * @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 { ElemTemplateElement elem = handler.getElemTemplateElement(); if (elem instanceof ElemLiteralResult) { if (((ElemLiteralResult) elem).getIsLiteralResultAsStylesheet()) { handler.popStylesheet(); } } super.endElement(handler, uri, localName, rawName); }
/** * Must include; super doesn't suffice! */ protected void appendAndPush( StylesheetHandler handler, ElemTemplateElement elem) throws SAXException { //System.out.println("ProcessorFunction appendAndPush()" + elem); super.appendAndPush(handler, elem); //System.out.println("originating node " + handler.getOriginatingNode()); elem.setDOMBackPointer(handler.getOriginatingNode()); handler.getStylesheet().setTemplate((ElemTemplate) elem); }