Newbie quick question
<cost>
<time value="Season">
<openingtype>1</openingtype>
<price>£3</price>
</time>
<time value="OffSeason">
<openingtype>2</openingtype>
<price>£1</price>
</time>
</cost>
Hi, I need to access the variables in side this chunk of XML code and am unsure of how to go about it. I need the xslt to specify 'Season' or 'OffSeason' and get the according 'openingtype' and 'price'. At the moment when I try <xsl:value-of select="cost/time/openingtype"/> and <xsl:value-of select="cost/time/price"/> the xslt returns the code as that for the 'Season' time value.
Any help would be greatly appreciated.
Andy
|