Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSL and WML variables

Status
Not open for further replies.

don2241

IS-IT--Management
Jun 1, 2001
57
AU
Hi!
I'm working on in wml environment.
I'm trying to send a value retrived from a database and send it back to the server. My problem is when I store the variable it is stored in XSL syntax but when I'm trying to send it to the server the variable needs to be in WML syntax. How do I convert the '$(XXXXX)' variable for WML to accepting it to be sent to the server using <postfield/> My code looks like this:

<card id='c1'>
<do type='prev' label='Back'>
<prev/>
</do>
<p>
<table columns=&quot;2&quot;>
<xsl:for-each select=&quot;//Forums&quot;>
<tr>
<td><xsl:variable name=&quot;XXXXX&quot;><xsl:value-of select=&quot;ForumName&quot;/></xsl:variable>

<a href=&quot;#c2&quot;><xsl:value-of select=&quot;ForumName&quot;/></a></td>
</tr>
</xsl:for-each>
</table>
</p>
</card>

<card id=&quot;c2&quot;>
<do type='accept' label='OK'>
<go href='../ass3/wapController.jsp' method='post'>
<postfield name=&quot;action&quot; value=&quot;$(XXXXX)&quot;/>
</go>
</do>
<do type=&quot;prev&quot; label=&quot;Back&quot;>
<prev/>
</do>
</card>

NOTE: I have tried using different variations of syntax, I'v tried these ones: $XXXXX, $(XXXXXX), ($XXXXX), {$XXXXX} and ${XXXXX}.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top