westcoaststyle
Programmer
I have a .xsql query which passes the initial values into the .xml file. For some reason I'm having a really hard time displaying those initial values so that the user knows what options they selected. Here's the raw-xml:
<?xml version="1.0" ?>
- <page>
- <request>
- <parameters>
<date_type>eff_date</date_type>
<date>1010</date>
</parameters>
<session />
<cookies />
</request>
- <ROWSET>
- <ROW num="1">
<AFO_ID>0</AFO_ID>
<PC>T</PC>
<OAC_OBAN>65TT</OAC_OBAN>
</ROW>
</ROWSET>
</page>
-------------------------------------
The 2 values I want to display are the "date_type" and "date". What do I need to put in my .xsl file to display them? I've tried:
-------------------------------------
<table borders="1">
<xsl:for-each select="REQUEST/PARAMETERS">
<tr>
<td><xsl:value-of select="DATE_TYPE"/></td>
<td><xsl:value-of select="DATE"/></td>
</tr>
</xsl:for-each>
</table>
-------------------------------------
but they don't show up at all.
Please help!!
Thanks!
<?xml version="1.0" ?>
- <page>
- <request>
- <parameters>
<date_type>eff_date</date_type>
<date>1010</date>
</parameters>
<session />
<cookies />
</request>
- <ROWSET>
- <ROW num="1">
<AFO_ID>0</AFO_ID>
<PC>T</PC>
<OAC_OBAN>65TT</OAC_OBAN>
</ROW>
</ROWSET>
</page>
-------------------------------------
The 2 values I want to display are the "date_type" and "date". What do I need to put in my .xsl file to display them? I've tried:
-------------------------------------
<table borders="1">
<xsl:for-each select="REQUEST/PARAMETERS">
<tr>
<td><xsl:value-of select="DATE_TYPE"/></td>
<td><xsl:value-of select="DATE"/></td>
</tr>
</xsl:for-each>
</table>
-------------------------------------
but they don't show up at all.
Please help!!
Thanks!