LayoutDas Layout-Element ist das Wurzelelement im Regelwerk.
Kindelemente: Compatibility, DefineColor, DefineFontalias, DefineFontfamily, DefineTextformat, Hyphenation, LoadFontfile, Options, PDFOptions, Pageformat, Pagetype, Record, SetGrid, SetVariable, Stylesheet, Switch, Trace
Elternelemente: (keine)
Name des Layouts. Hat keinen Einfluss auf das Layout.
Gibt die minimale Version des Publishers an. Format: 1.6.13. Die letzten Ziffern können weggelassen werden. Falls die erste oder die zweite Ziffer der Versionsangabe unterschiedlich ist, wird eine Warnung ausgegeben.
Nachfolgend ein vollständiges Beispiel für ein Layoutregelwerk.
<Layout xmlns="urn:speedata.de:2009/publisher/en"
xmlns:sd="urn:speedata:2009/publisher/functions/en">
<Options
show-gridallocation="no"
show-grid="yes"
/>
<LoadFontfile name="Helvetica Fett" filename="texgyreheros-bold.otf" />
<DefineFontfamily name="Überschrift" fontsize="12" leading="16">
<Regular fontface="Helvetica Fett" />
</DefineFontfamily>
<Pageformat width="150mm" height="200mm" />
<SetGrid width="4mm" height="14pt" />
<DefineTextformat name="text" alignment="blocksatz" />
<Pagetype name="rechte Seite" test="sd:odd(sd:current-page())">
<Margin left="2cm" right="1cm" top="1cm" bottom="1cm" />
</Pagetype>
<Pagetype name="linke Seite" test="sd:even(sd:current-page())">
<Margin left="1cm" right="2cm" top="1cm" bottom="1cm" />
</Pagetype>
<Record element="Produkt">
<SetVariable variable="spalte" select="2" />
<PlaceObject column="1">
<Textblock width="14" fontface="Überschrift">
<Paragraph>
<Value select="@name"/>
</Paragraph>
</Textblock>
</PlaceObject>
<ProcessNode select="produktbild" />
<NewPage />
</Record>
<Record element="produktbild">
<NeueZeile zeilen="2"/>
<PlaceObject column="1">
<Image width="10" file="{string(.)}"/>
</PlaceObject>
</Record>
</Layout>