# Elementname: `Include`

## Description

Toplevel element for included layout files.

Allowed attributes: xml:base

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

Parent elements: AtPageCreation, AtPageShipout, Case, Contents, ForAll, Loop, Otherwise, Record, SavePages, Until, While

### Attributes

xml:base (optional)

  (not intended to be used, for error-free validation purpose only)

## Example

The main file:

    <?xml version="1.0" encoding="UTF-8"?>
    <Layout xmlns="urn:speedata.de:2009/publisher/en"
      xmlns:sd="urn:speedata:2009/publisher/functions/en"
      xmlns:xi="http://www.w3.org/2001/XInclude">

      <xi:include href="sublayout.xml" />

      <Record element="data">
        <PlaceObject background="full" backgroundcolor="green">
          <Textblock>
            <Paragraph><Value>Hello world</Value></Paragraph>
          </Textblock>
        </PlaceObject>
      </Record>

    </Layout>

and the file `sublayout.xml`:

    <?xml version="1.0" encoding="UTF-8"?>
    <Include xmlns="urn:speedata.de:2009/publisher/en"
      xmlns:sd="urn:speedata:2009/publisher/functions/en">

      <DefineColor name="green" value="#0f0"/>
      <DefineColor name="gray" value="#ddd"/>

    </Include>

## See also

Layout

# Commands

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

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