Subject: Re: Re: [xsl] Re: WML input problem From: "ashu t" <aashut@xxxxxxxxxxxxxx> Date: 15 Jul 2002 09:31:10 -0000 |
<p><input type="checkbox" name="musicpref_rnb" checked="checked" />R&B<br /> <input type="checkbox" name="musicpref_jazz" checked="checked" />Jazz<br /> <input type="checkbox" name="musicpref_blues" />Blues<br /> <input type="checkbox" name="musicpref_newage" />New Age</p>
Specify your music preferences (check all that apply): <select ivalue="1" multiple="true" name="musicpref_rnb"> <option value=""> R&B </option> </select> <br/> <select ivalue="1" multiple="true" name="musicpref_jazz"> <option value=""> Jazz </option> </select> <br/> <select multiple="true" name="musicpref_blues"> <option value=""> Blues </option> </select> <br/> <select multiple="true" name="musicpref_newage"> <option value=""> New Age </option> </select>
ashu t wrote:thanks Joerg i have tried this to print text between <option> and </option> <xsl:when test="@type='checkbox'"> <select name="{@name}" multiple="true"> <xsl:if test="@checked='checked'"> <xsl:attribute name="ivalue">1</xsl:attribute> </xsl:if> <option value="{@value}"> <xsl:value-of select="following-sibling::text()"/>
Why following-sibling?? Either you changed your XML or you should use simply "text()". For me it looks, that you have a structure like
<form> <input/> text <input/> text </form>
Because of this you can access the text via following-sibling and the text gets outputted via the <xsl:apply-templates/> in the match on <form>. Either you change the XML to <input>text</input> or you change the apply-templates to <xsl:apply-templates select="*"/>.
Hope this solves your problem,
Joerg
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
_________________________________________________________ There is always a better job for you at Monsterindia.com. Go now http://monsterindia.rediff.com/jobs
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: WML input problem, Joerg Heinicke | Thread | Re: [xsl] Re: WML input problem, Joerg Heinicke |
RE: [xsl] xslt 2 grouping, Michael Kay | Date | RE: [xsl] Site Check, bryan |
Month |