Class LiteralResultElement

  • All Implemented Interfaces:
    NodeInfo, javax.xml.transform.dom.DOMLocator, javax.xml.transform.Source, javax.xml.transform.SourceLocator, org.w3c.dom.Element, org.w3c.dom.NamedNodeMap, org.w3c.dom.Node, org.xml.sax.Locator

    public class LiteralResultElement
    extends StyleElement
    This class represents a literal result element in the style sheet (typically an HTML element to be output).
    It is also used to represent unknown top-level elements, which are ignored.
    • Constructor Detail

      • LiteralResultElement

        public LiteralResultElement()
    • Method Detail

      • mayContainTemplateBody

        public boolean mayContainTemplateBody()
        Determine whether this type of element is allowed to contain a template-body
        Overrides:
        mayContainTemplateBody in class StyleElement
        Returns:
        true: yes, it may contain a template-body
      • prepareAttributes

        public void prepareAttributes()
                               throws javax.xml.transform.TransformerConfigurationException
        Process the attribute list
        Specified by:
        prepareAttributes in class StyleElement
        Throws:
        javax.xml.transform.TransformerConfigurationException
      • validate

        public void validate()
                      throws javax.xml.transform.TransformerConfigurationException
        Validate that this node is OK
        Overrides:
        validate in class StyleElement
        Throws:
        javax.xml.transform.TransformerConfigurationException
      • validateChildren

        protected void validateChildren()
                                 throws javax.xml.transform.TransformerConfigurationException
        Overrides:
        validateChildren in class StyleElement
        Throws:
        javax.xml.transform.TransformerConfigurationException
      • process

        public void process​(Context context)
                     throws javax.xml.transform.TransformerException
        Process the literal result element by copying it to the result tree
        Specified by:
        process in class StyleElement
        Parameters:
        context - The context in the source XML document, giving access to the current node, the current variables, etc.
        Throws:
        javax.xml.transform.TransformerException
      • makeStyleSheet

        public DocumentImpl makeStyleSheet​(PreparedStyleSheet pss)
                                    throws javax.xml.transform.TransformerConfigurationException
        Make a top-level literal result element into a stylesheet. This implements the "Literal Result Element As Stylesheet" facility.
        Throws:
        javax.xml.transform.TransformerConfigurationException