Hi,
I'm attempting to get at certain values from an XML file. I'm not getting any values back and certainly would certainly apprecitate some feedback. The XML structure is as below:
<?xml version="1.0"?>
<output xmlns:ac=" <ado symbol="C0.1000005493" description="EURKWD Spot" template="C0_I_T006_LSA">
<static>
<rms_code time-stamp="-2208988800000" status="1">
<string>EURKWD</string>
</rms_code>
<ccy time-stamp="1151675243000" status="1">
<enumeration>KWD</enumeration>
</ccy>
<xccy time-stamp="-2208988800000" status="1">
<enumeration>EUR</enumeration>
</xccy>
</static>
<time-series id="GOLDEN_COPY">
<record>
<date status="63">
<integer>20061121</integer>
</date>
<time status="63">
<integer>235959</integer>
</time>
<rate status="1">
<double>0.37088944199999996</double>
</rate>
</record>
</time-series>
</ado>
The value I'm trying to get is the double element. The XSL file I'm using is as below:
<?xml version="1.0"?>
<xsl:stylesheet version = "1.0" xmlns:xsl = "<xslutput method="text" encoding="utf-8"/>
<xsl:template match="node()">
<xsl:if test="name()='ado'">
<xsl:text>
</xsl:text>
</xsl:if>
<xsl:for-each select="output/ado">
<xsl:value-of select="time-series/record/rate/double"/>
<xsl:text>	</xsl:text>
</xsl:for-each>
<xsl:apply-templates />
</xsl:template>
</xsl:stylesheet>
Unfortunately I'm not getting anything back. I would be very grateful for any and all advice.
Thanks and regards,
Tom
I'm attempting to get at certain values from an XML file. I'm not getting any values back and certainly would certainly apprecitate some feedback. The XML structure is as below:
<?xml version="1.0"?>
<output xmlns:ac=" <ado symbol="C0.1000005493" description="EURKWD Spot" template="C0_I_T006_LSA">
<static>
<rms_code time-stamp="-2208988800000" status="1">
<string>EURKWD</string>
</rms_code>
<ccy time-stamp="1151675243000" status="1">
<enumeration>KWD</enumeration>
</ccy>
<xccy time-stamp="-2208988800000" status="1">
<enumeration>EUR</enumeration>
</xccy>
</static>
<time-series id="GOLDEN_COPY">
<record>
<date status="63">
<integer>20061121</integer>
</date>
<time status="63">
<integer>235959</integer>
</time>
<rate status="1">
<double>0.37088944199999996</double>
</rate>
</record>
</time-series>
</ado>
The value I'm trying to get is the double element. The XSL file I'm using is as below:
<?xml version="1.0"?>
<xsl:stylesheet version = "1.0" xmlns:xsl = "<xslutput method="text" encoding="utf-8"/>
<xsl:template match="node()">
<xsl:if test="name()='ado'">
<xsl:text>
</xsl:text>
</xsl:if>
<xsl:for-each select="output/ado">
<xsl:value-of select="time-series/record/rate/double"/>
<xsl:text>	</xsl:text>
</xsl:for-each>
<xsl:apply-templates />
</xsl:template>
</xsl:stylesheet>
Unfortunately I'm not getting anything back. I would be very grateful for any and all advice.
Thanks and regards,
Tom