# Elementname: `Layout`

## Description

This command is the root element in the Layout instructions.

Allowed attributes: name, version

Child elements: Compatibility, DefineColor, DefineFontalias, DefineFontfamily, DefineTextformat, Hyphenation, LoadFontfile, Options, PDFOptions, Pageformat, Pagetype, Record, SetGrid, SetVariable, Stylesheet, Switch, Trace

Parent elements: (none)

### Attributes

name (text, optional)

  A name for the layout. Optional, without any influence on the layout itself.

version (number, optional)

  Minimum publisher version required. If major or minor version differ, give a warning. Format: 1.6.12 (revision number can be left out).

## Example

This is a complete example for a layout rule set. The first part is the data file (save as `data.xml`) and the second the layout instructions (`layout.xml`).

    <root>
      <elt greeting="Hello world!" />
    </root>

    <Layout xmlns="urn:speedata.de:2009/publisher/en"
      xmlns:sd="urn:speedata:2009/publisher/functions/en">

      <Options mainlanguage="English (USA)"/>

      <Record element="root">
        <ProcessNode select="elt"/>
      </Record>

      <Record element="elt">
        <PlaceObject>
          <Textblock>
            <Paragraph>
              <Value select="@greeting"></Value>
            </Paragraph>
          </Textblock>
        </PlaceObject>
      </Record>
    </Layout>

## See also

Include

# Commands

- A
- Action
- AtPageCreation
- AtPageShipout
- Attribute
- B
- Barcode
- Bold
- BoldItalic
- Bookmark
- Box
- Br
- Case
- Circle
- Color
- Column
- Columns
- Compatibility
- Contents
- Copy-of
- DefineColor
- DefineFontalias
- DefineFontfamily
- DefineTextformat
- Element
- Fontface
- ForAll
- Frame
- Grid
- Group
- Groupcontents
- HSpace
- Hyphenation
- I
- Image
- Include
- Initial
- InsertPages
- Italic
- Layout
- Li
- LoadDataset
- LoadFontfile
- Loop
- Makeindex
- Margin
- Mark
- Message
- NewPage
- NextFrame
- NextRow
- NoBreak
- Ol
- Options
- Otherwise
- Output
- Overlay
- PDFOptions
- Pageformat
- Pagetype
- Paragraph
- PlaceObject
- Position
- PositioningArea
- PositioningFrame
- ProcessNode
- Record
- Regular
- Rule
- SaveDataset
- SavePages
- SetGrid
- SetVariable
- SortSequence
- Stylesheet
- Sub
- Sup
- Switch
- Table
- Tablefoot
- Tablehead
- Tablerule
- Td
- Text
- Textblock
- Tr
- Trace
- Transformation
- U
- URL
- Ul
- Until
- VSpace
- Value
- While

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