Mirasol Q&A: The XML structure
Q: How is the XML feed structured?
A: The rendering engine uses an XML feed to transform the XSLT layouts to the content to be displayed in a web browser. The XML feed contains the title of the page and the fields defined in the corresponding template.
This is how the XML feed is structured:
<page>
<title>My page title</title>
<fields>
<field_name>Hello, world!</some_field_name>
<yet_another_field_name><p>Hi again.</p></yet_another_field_name>
</fields>
</page>
You can output the values from the XML feed in the XSLT layouts like this:
<xsl:stylesheet ...>
...
<xsl:template match="/page">
<xsl:value-of select="title" disable-output-escaping="yes" />
<xsl:value-of select="fields/field_name" disable-output-escaping="yes" />
<xsl:value-of select="fields/yet_another_field_name" disable-output-escaping="yes" />
</xsl:template>
</xsl:stylesheet>
