Subject: [xsl] Need better ways to do this.. From: "Sudhir Malhotra" <sudhirmalhotra123@xxxxxxxxxxx> Date: Thu, 31 May 2001 19:03:29 -0500 |
I am sure there are better ways to accomplish what I am doing and trying to do. I would be thankful if you could suggest one. I have explained my approach in the comments in the XSL segment.
--Input XML segment-- <tr> <td>19960529-00:00:00.000 CDT</td> <td>115.269997</td> <td>49.669998</td> <td>2.320717</td> <td>2.314239</td> <td>2.295786</td> <td>2.332692</td> <td>0.018453</td> </tr> <tr> <td>19960530-00:00:00.000 CDT</td> <td>112.650002</td> <td>49.019900</td> <td>2.298042</td> <td>2.308282</td> <td>2.290944</td> <td>2.325620</td> <td>0.017338</td> </tr> ------
<xsl:template mode="INVALID" match="tr/td" > </xsl:template>
<!-- COPY PROCESSING for positions 4-7 --> <xsl:template match="tr/td[4 ]"> <xsl:choose> <xsl:when test=" . = 'NA' "> <YData>-9999</YData> </xsl:when> <xsl:otherwise> <YData><xsl:value-of select="."/></YData> </xsl:otherwise> </xsl:choose> </xsl:template>
<xsl:template match="tr/td[5 ]"> <xsl:choose> <xsl:when test=" . = 'NA' "> <YData>-9999</YData> </xsl:when> <xsl:otherwise> <YData><xsl:value-of select="."/></YData> </xsl:otherwise> </xsl:choose> </xsl:template>
<xsl:template match="tr/td[6 ]"> <xsl:choose> <xsl:when test=" . = 'NA' "> <YData>-9999</YData> </xsl:when> <xsl:otherwise> <YData><xsl:value-of select="."/></YData> </xsl:otherwise> </xsl:choose> </xsl:template>
<xsl:template match="tr/td[7 ]"> <xsl:choose> <xsl:when test=" . = 'NA' "> <YData>-9999</YData> </xsl:when> <xsl:otherwise> <YData><xsl:value-of select="."/></YData> </xsl:otherwise> </xsl:choose> </xsl:template> -------------------- _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Wrong Characters Returned, Chris Bayes | Thread | [xsl] Problem in making choices usi, Sreekanth Pallavoor |
RE: [xsl] Output a link in a transf, Nate Austin | Date | [xsl] Problem in making choices usi, Sreekanth Pallavoor |
Month |