<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"  
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"  
	xmlns="http://www.w3.org/1999/XSL/Format" 
	xmlns:ibex="http://www.xmlpdf.com/2003/ibex/Format"
  xmlns:date="http://exslt.org/dates-and-times">

<xsl:strip-space elements="*"/>

<xsl:template match="forecast">
  
    <root>
	  
	  <layout-master-set>
	    <simple-page-master master-name="page-layout">
	      <region-body margin="2.5cm" region-name="body"/>
	    </simple-page-master>
	  </layout-master-set>

	  <page-sequence master-reference="page-layout">
		  <flow flow-name="body">
        <block>
          Printed on <xsl:value-of select="date:date()"/>
        </block>
			  <xsl:apply-templates select="city"/>
		  </flow>
	  </page-sequence>
  	
    </root>
    
</xsl:template>

<xsl:template match="city">
  <block>
	  <xsl:value-of select="@name"/>
	</block>
</xsl:template>	  


</xsl:stylesheet>
