<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:template match="Record">
        <image height="176" width="264" colors="true">
            <field x="0" y="0" width="200" height="150" align="left" border="1" background-color="green">
                <text>
                    field1
                </text>
                <text>
                    field1
                </text>
                <field x="0" y="40" width="180" height="110" border="2" align="center" background-color="red">
                    <text>
                        field2
                    </text>
                    <field x="50" y="20" width="120" height="90" border="1" align="center" valign="bottom"
                           background-color="blue">
                        <text>
                            field3
                        </text>
                        <field x="0" width="100" max-height="30" border="2" align="center" background-color="yellow">
                            <text>
                                field4
                            </text>
                        </field>
                    </field>
                </field>
            </field>
        </image>
    </xsl:template>
</xsl:stylesheet>