Class XSLValueOf

All Implemented Interfaces:
NodeInfo, DOMLocator, Source, SourceLocator, Element, NamedNodeMap, Node, Locator

public final class XSLValueOf extends StyleElement
An xsl:value-of element in the stylesheet.
The xsl:value-of element takes attributes:
  • an mandatory attribute select="expression". This must be a valid String expression
  • an optional disable-output-escaping attribute, value "yes" or "no"
  • Constructor Details

    • XSLValueOf

      public XSLValueOf()
  • Method Details

    • isInstruction

      public boolean isInstruction()
      Determine whether this node is an instruction.
      Overrides:
      isInstruction in class StyleElement
      Returns:
      true - it is an instruction
    • getSelectExpression

      public Expression getSelectExpression()
    • getDisableOutputEscaping

      public boolean getDisableOutputEscaping()
    • prepareAttributes

      public void prepareAttributes() throws TransformerConfigurationException
      Description copied from class: StyleElement
      Set the attribute list for the element. This is called to process the attributes (note the distinction from processAttributes in the superclass). Must be supplied in a subclass
      Specified by:
      prepareAttributes in class StyleElement
      Throws:
      TransformerConfigurationException
    • validate

      public void validate() throws TransformerConfigurationException
      Description copied from class: StyleElement
      Check that the element is valid. This is called once for each element, after the entire tree has been built. As well as validation, it can perform first-time initialisation. The default implementation does nothing; it is normally overriden in subclasses.
      Overrides:
      validate in class StyleElement
      Throws:
      TransformerConfigurationException
    • process

      public void process(Context context) throws TransformerException
      Description copied from class: StyleElement
      Process: called to do the real work of this stylesheet element. This method must be implemented in each subclass.
      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:
      TransformerException