Class ProcessorExsltFunction

All Implemented Interfaces:
Serializable, SourceLocator, XSLTVisitable, PrefixResolver, ExpressionNode, WhitespaceStrippingElementMatcher, Document, Element, Node, NodeList

public class ProcessorExsltFunction extends ProcessorTemplateElem
This class processes parse events for an exslt func:function element.
See Also:
  • Constructor Details

    • ProcessorExsltFunction

      public ProcessorExsltFunction()
  • Method Details

    • startElement

      public void startElement(StylesheetHandler handler, String uri, String localName, String rawName, Attributes attributes) throws SAXException
      Start an ElemExsltFunction. Verify that it is top level and that it has a name attribute with a namespace.
      Overrides:
      startElement in class ProcessorTemplateElem
      Parameters:
      handler - non-null reference to current StylesheetHandler that is constructing the Templates.
      uri - The Namespace URI, or an empty string.
      localName - The local name (without prefix), or empty string if not namespace processing.
      rawName - The qualified name (with prefix).
      attributes - The specified or defaulted attributes.
      Throws:
      SAXException
    • endElement

      public void endElement(StylesheetHandler handler, String uri, String localName, String rawName) throws SAXException
      End an ElemExsltFunction, and verify its validity.
      Overrides:
      endElement in class ProcessorTemplateElem
      Parameters:
      handler - non-null reference to current StylesheetHandler that is constructing the Templates.
      uri - The Namespace URI, or an empty string.
      localName - The local name (without prefix), or empty string if not namespace processing.
      rawName - The qualified name (with prefix).
      Throws:
      SAXException
    • validate

      public void validate(ElemTemplateElement elem, StylesheetHandler handler) throws SAXException
      Non-recursive traversal of FunctionElement tree based on TreeWalker to verify that there are no literal result elements except within a func:result element and that the func:result element does not contain any following siblings except xsl:fallback.
      Throws:
      SAXException