parser

Написать ответ на текущее сообщение

 

 
   команды управления поиском

Ответ

shurgalin 29.06.2005 18:59

Для каждой даты всегда есть и tod=0 и tod=2?
Если да, то всё просто.
<xsl:template match="forecast[@tod=0]">
<xsl:variable name="date" select="@day"/>
<xsl:variable name="tod0" select="concat(temperature/@min),'-',temperature/@max)"/>
<xsl:variable name="tod2" select="concat(../forecast[@date='$date' and @tod=2]/temperature/@min),'-',../forecast[@date='$date' and @tod=2]/temperature/@max)"/>
</xsl:template>