/** * 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 { ElemVariable v = (ElemVariable) handler.getElemTemplateElement(); handler.getStylesheet().appendChild(v); handler.getStylesheet().setVariable(v); super.endElement(handler, uri, localName, rawName); } }
/** * 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); } }
/** * 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 { ElemVariable v = (ElemVariable) handler.getElemTemplateElement(); handler.getStylesheet().appendChild(v); handler.getStylesheet().setVariable(v); super.endElement(handler, uri, localName, rawName); } }
/** * 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); } }
/** * 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); }
/** * 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); }
&& ((null == getStylesheet() || Double.valueOf(getStylesheet().getVersion()).doubleValue() > Constants.XSLTVERSUPPORTED) ||(!uri.equals(Constants.S_XSLNAMESPACEURL) &&
&& ((null == getStylesheet() || Double.valueOf(getStylesheet().getVersion()).doubleValue() > Constants.XSLTVERSUPPORTED) ||(!uri.equals(Constants.S_XSLNAMESPACEURL) &&
/** * 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); } }
/** * 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); } }
/** * Receive notification of the start of an xsl:key element. * * @param handler The calling StylesheetHandler/TemplatesBuilder. * @param uri The Namespace URI, or the empty string if the * element has no Namespace URI or if Namespace * processing is not being performed. * @param localName The local name (without prefix), or the * empty string if Namespace processing is not being * performed. * @param rawName The raw XML 1.0 name (with prefix), or the * empty string if raw names are not available. * @param attributes The attributes attached to the element. If * there are no attributes, it shall be an empty * Attributes object. */ public void startElement( StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes) throws org.xml.sax.SAXException { KeyDeclaration kd = new KeyDeclaration(handler.getStylesheet(), handler.nextUid()); kd.setDOMBackPointer(handler.getOriginatingNode()); kd.setLocaterInfo(handler.getLocator()); setPropertiesFromAttributes(handler, rawName, attributes, kd); handler.getStylesheet().setKey(kd); }
/** * Receive notification of the start of an xsl:key element. * * @param handler The calling StylesheetHandler/TemplatesBuilder. * @param uri The Namespace URI, or the empty string if the * element has no Namespace URI or if Namespace * processing is not being performed. * @param localName The local name (without prefix), or the * empty string if Namespace processing is not being * performed. * @param rawName The raw XML 1.0 name (with prefix), or the * empty string if raw names are not available. * @param attributes The attributes attached to the element. If * there are no attributes, it shall be an empty * Attributes object. */ public void startElement( StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes) throws org.xml.sax.SAXException { KeyDeclaration kd = new KeyDeclaration(handler.getStylesheet(), handler.nextUid()); kd.setDOMBackPointer(handler.getOriginatingNode()); kd.setLocaterInfo(handler.getLocator()); setPropertiesFromAttributes(handler, rawName, attributes, kd); handler.getStylesheet().setKey(kd); }
throws org.xml.sax.SAXException Stylesheet thisSheet = handler.getStylesheet(); WhitespaceInfoPaths paths = new WhitespaceInfoPaths(thisSheet); setPropertiesFromAttributes(handler, rawName, attributes, paths);
handler.getStylesheet().setDecimalFormat(dfp); handler.getStylesheet().appendChild(dfp);
throws org.xml.sax.SAXException Stylesheet thisSheet = handler.getStylesheet(); WhitespaceInfoPaths paths = new WhitespaceInfoPaths(thisSheet); setPropertiesFromAttributes(handler, rawName, attributes, paths);
throws org.xml.sax.SAXException Stylesheet thisSheet = handler.getStylesheet(); WhitespaceInfoPaths paths = new WhitespaceInfoPaths(thisSheet); setPropertiesFromAttributes(handler, rawName, attributes, paths);
handler.getStylesheet().setDecimalFormat(dfp); handler.getStylesheet().appendChild(dfp);
throws org.xml.sax.SAXException Stylesheet thisSheet = handler.getStylesheet(); WhitespaceInfoPaths paths = new WhitespaceInfoPaths(thisSheet); setPropertiesFromAttributes(handler, rawName, attributes, paths);
handler.getStylesheet().setOutput(m_outputProperties);
handler.getStylesheet().setAttributeSet(eat);