# Elementname: `Include`(deprecated)

## Description

Toplevel element for included layout files.

Allowed attributes: xml:base

Child elements: DefineColor, DefineFontalias, 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>

## Info

This command is obsolete. Use Layout instead.

## See also

Layout

# Commands

- A
- Action
- AddSearchpath
- AtPageCreation
- AtPageShipout
- AttachFile
- 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
- Span
- Stylesheet
- Sub
- Sup
- Switch
- Table
- Tablefoot
- Tablehead
- Tablerule
- Td
- Text
- Textblock
- Tr
- Trace
- Transformation
- U
- URL
- Ul
- Until
- VSpace
- Value
- While

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