Subject: Re: [xsl] how to change the xsl text field length? From: Jörg Heinicke <joerg.heinicke@xxxxxx> Date: Sat, 10 Nov 2001 04:30:11 +0100 |
Why don't you do it like the other attributes? Or is it more a HTML-question? Add an attribute named 'size' and assign the value of FIELD_LENGTH to it. There is another thing with your code. You can shorten it with so called AttributeValueTemplate. Your code with AVT looks so: <xsl:for-each select="message/text/FIELD"> <tr> <td><xsl:value-of select="FIELD_NAME"/></td> <td><input type="text" name="{FIELD_NAME}" value="{FIELD_VALUE}" size="{FIELD_LENGTH}"/></td> </tr> </xsl:for-each> Regards, Joerg > I am a total newbie to xml/xsl and need some help. > > My xml looks like > > > <FIELD><FIELD_NAME>Sysout Class</FIELD_NAME> > <FIELD_VALUE>A</FIELD_VALUE><FIELD_LENGTH>1</FIELD_LENGTH></FIELD> > > > > my relevant xsl looks like > > <xsl:for-each select="message/text/FIELD"> <tr><td><xsl:value-of > select="FIELD_NAME"/></td><td><input type="Text"><xsl:attribute > name="name"><xsl:value-of > select="FIELD_NAME"/></xsl:attribute><xsl:attribute > name="value"><xsl:value-of > select="FIELD_VALUE"/></xsl:attribute></input></td> </tr></xsl:for-each> > now the xsl produces a field name and an editable text box showing the field > value. > I want the length of the field box to be equal to the <FIELD_LENGTH> > variable. This might be something really simple. appreciate any help.Thanks > in advance.TP XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] how to change the xsl text fi, TP | Thread | Re: [xsl] how to change the xsl tex, Jeni Tennison |
Re: [xsl] Re: lookup-table thoughts, Dimitre Novatchev | Date | Re: [xsl] counting/comparing values, Jörg Heinicke |
Month |