Class ElemMessage

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

public class ElemMessage extends ElemTemplateElement
Implement xsl:message.
 invalid input: '<!'ELEMENT xsl:message %template;>
 invalid input: '<!'ATTLIST xsl:message
   %space-att;
   terminate (yes|no) "no"
 >
 
See Also:
  • Constructor Details

    • ElemMessage

      public ElemMessage()
  • Method Details

    • setTerminate

      public void setTerminate(boolean v)
      Set the "terminate" attribute. If the terminate attribute has the value yes, then the XSLT transformer should terminate processing after sending the message. The default value is no.
      Parameters:
      v - Value to set for "terminate" attribute.
    • getTerminate

      public boolean getTerminate()
      Get the "terminate" attribute. If the terminate attribute has the value yes, then the XSLT transformer should terminate processing after sending the message. The default value is no.
      Returns:
      value of "terminate" attribute.
    • getXSLToken

      public int getXSLToken()
      Get an int constant identifying the type of element.
      Overrides:
      getXSLToken in class ElemTemplateElement
      Returns:
      The token ID for this element
      See Also:
    • getNodeName

      public String getNodeName()
      Return the node name.
      Specified by:
      getNodeName in interface Node
      Overrides:
      getNodeName in class ElemTemplateElement
      Returns:
      name of the element
    • execute

      public void execute(TransformerImpl transformer) throws TransformerException
      Send a message to diagnostics. The xsl:message instruction sends a message in a way that is dependent on the XSLT transformer. The content of the xsl:message instruction is a template. The xsl:message is instantiated by instantiating the content to create an XML fragment. This XML fragment is the content of the message.
      Overrides:
      execute in class ElemTemplateElement
      Parameters:
      transformer - non-null reference to the the current transform-time state.
      Throws:
      TransformerException