Subject: Re: AW: [xsl] An easy problem From: "alex ek" <alexek@xxxxxxxxxxxxxx> Date: 29 Jul 2002 10:28:49 -0000 |
<do type="accept" label="submit"> <go href="choice.html" method="post"> <postfield name="gender" value="$gender"/> </go> </do> input your name: <input name="name" type="text"/><br/> input password :<input name="pwd" type="password"/> Enter the choices<select name="name1"> <option value="">America</option> </select><br/> <select name="name2"><option value="">Europe</option> </select><br/> <select name="name3"><option value="">Asia </option> </select> Enter the gender <select name="gender"> <option value="mal">male</option> <option value="fem"> female</option> </select>
input your name: <input name="name" type="text"/> <br/> input password : <input name="pwd" type="password"/> Enter the choices <select name="name1"> <option value=""> America </option> </select> <br/> <select name="name2"> <option value=""> Europe </option> </select> <br/> <select name="name3"> <option value=""> Asia </option> </select> Enter the gender <select name="gender"> <option value="mal"> male </option> <option value="fem"> female </option> </select> <br/> <do label="submit" type="accept"> <go href="choice.html" method="post"> <postfield name="name" value="$name"/> <postfield name="pwd" value="$pwd"/> <postfield name="name1" value="$name1"/> <postfield name="name2" value="$name2"/> <postfield name="name3" value="$name3"/> <postfield name="gender" value="$gender"/> </go> </do>
What is the problem . alexek
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:key name="radios" match="//input[@type='radio']" use="@name"/>
<xsl:template match="form">
<do type="accept" label="submit">
<go href="{@action}" method="{@method}">
<xsl:apply-templates select=".//input[@type='checkbox']"/>
<xsl:for-each
select="//input[generate-id(.)=generate-id(key('radios', @name))]">
<postfield name="{@name}" value="{concat('$',@name)}"/>
</xsl:for-each>
</go> </do> <xsl:apply-templates select="*"/> </xsl:template>
<xsl:template match="input[@type='checkbox']"> <postfield name="{@name}" value="{concat('$',@name)}"/> </xsl:template>
</xsl:stylesheet>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] xslt critique, DPawson | Thread | [xsl] reusing same xml with xslt, ashwati s |
RE: [xsl] xslt critique, DPawson | Date | [xsl] reusing same xml with xslt, ashwati s |
Month |