Class XSLStringConstructor

  • 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
    Direct Known Subclasses:
    XSLAttribute, XSLComment, XSLProcessingInstruction

    public abstract class XSLStringConstructor
    extends StyleElement
    Common superclass for XSLT elements whose content template produces a text value: xsl:attribute, xsl:comment, and xsl:processing-instruction
    • Constructor Detail

      • XSLStringConstructor

        public XSLStringConstructor()
    • Method Detail

      • isInstruction

        public boolean isInstruction()
        Determine whether this node is an instruction.
        Overrides:
        isInstruction in class StyleElement
        Returns:
        true - it is an instruction
      • 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
      • optimize

        protected void optimize()
                         throws javax.xml.transform.TransformerConfigurationException
        Throws:
        javax.xml.transform.TransformerConfigurationException
      • expandChildren

        public java.lang.String expandChildren​(Context context)
                                        throws javax.xml.transform.TransformerException
        Expand the stylesheet elements subordinate to this one, returning the result as a string. The expansion must not generate any element or attribute nodes.
        Parameters:
        context - The context in the source document
        Throws:
        javax.xml.transform.TransformerException