Elementname: Attribute

Description

Create an attribute for the Element data structure that can be saved to the hard drive with SaveDataset.

Allowed attributes: name, select

Child elements: (none)

Parent elements: Case, Element, ForAll, Loop, Otherwise, SetVariable, Until, While

Attributes

name (text)

Name of the attribute that is created.

select (XPath Expression)

The contents of the attribute

Example

<Element name="Entry">
  <Attribute name="chapter" select="@name"/>
  <Attribute name="page" select="sd:current-page()"/>
</Element>

creates the following structure:

<Entry name="(contents of @name)" page="(the current page number)" />

See also

Element, SaveDataset, How to generate a table of contents and other directories

Commands

Version: 3.5.9 | Start page | Command reference | Other language: German