Include
(deprecated)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
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>
This command is obsolete. Use Layout instead.