add-attribute

In a regexp parser, add an attribute to the XML output when entering the containing state/match

Description

The value of the attribute is determined in the following order:

  • the value of the value attribute if specified
  • the string value of its sub-nodes, if any
  • or else the current "active" string

Attributes

  • async (Boolean default: true) - Asynchronous processing. For parse tags, should the request be enqueued (false) or processed before its next sibling. For other elements, this attribute only makes a difference when they contain asynchronous requests which need to be processed before the element is processed. In this case, when false the element's next sibling will only be processed after the current element, when true Watson™ Explorer won't wait for the current element to be processed before processing its next sibling.
  • elt-id (Integer) - Usage: Internal
  • max-elt-id (Integer) - Usage: Internal
  • execute-acl (Text)
  • process (Text) - An XPath determining which of the attributes and/or children will be processed. Currently only "", "*", "@*" and "*|@*" are supported.
  • name (NMToken) - The name of the attribute. Usage: Must be specified once all the child elements have been processed
  • value (NMToken) - The value of the attribute.
  • to ( Where to add the resulting XML element. Any of: document, scope default: document) - Where to add the resulting schema.x.element.attribute element.