<?xml version="1.0"?> <sxg xmlns:xi="http://www.w3.org/2003/XInclude"> <picture id="checkerboard"> <type>pixmap</type> <size> <type>mmrounded</type> <factor>.25</factor> </size> <width>2</width> <height>2</height> </picture> <!-- --> <xi:include href="radio1.sxg" xpointer="xpointer(/sxg/*)" /> </sxg>
SXG files can use XInclude to assemble the XML document. The SXG file gets processed only after the entire document gets created. The order in which individual elements in the document get processed:
The
location and
dimension elements.
The
width,
height,
widthfactor,
heightfactor,
widthmm and
heightmm elements.
The
font,
pixmap, and
picture
elements.
The
gc, and
render
elements.
Even though the above example includes the
radio1.sxg document after its
own
picture, this
document's
render and
gc elements
can reference pictures and fonts from
radio1.sxg.