rendered paste body<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" indent="no" encoding="UTF-8" />
<xsl:template match="/">
<xsl:text disable-output-escaping="yes"><![CDATA[<?php]]></xsl:text>
$weather = array(
<xsl:apply-templates select="@*" />
<xsl:apply-templates select="*" />
);
<xsl:text disable-output-escaping="yes"><![CDATA[?>]]></xsl:text>
</xsl:template>
<xsl:template match="*">
'<xsl:value-of select="name()" />_<xsl:value-of select="position()" />' => array(
<xsl:apply-templates select="@*" />
<xsl:apply-templates select="*" />
),
</xsl:template>
<xsl:template match="@*">
'<xsl:value-of select="name()" />' => '<xsl:value-of select="." disable-output-escaping="yes" />',
</xsl:template>
</xsl:stylesheet>