Class SAXONAssign

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

public class SAXONAssign extends XSLGeneralVariable
saxon:assign element in stylesheet.
The saxon:assign element has mandatory attribute name and optional attribute expr. It also allows xsl:extension-element-prefixes etc.
  • Constructor Details

    • SAXONAssign

      public SAXONAssign()
  • Method Details

    • isInstruction

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

      public boolean isAssignable()
      Description copied from class: XSLGeneralVariable
      Test whether it is permitted to assign to the variable using the saxon:assign extension element. This will only be true if the extra attribute saxon:assignable="yes" is present.
      Overrides:
      isAssignable in class XSLGeneralVariable
    • 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