Subject: [xsl] Re: xsl to HTML From: Rajesh.Jayabalan@xxxxxxxxxx Date: Fri, 7 Jun 2002 10:38:34 -0400 |
Hi The XML is <Root> :: :: <Publication> :: :: <from_dt>06/06/02</from_dt> <to_dt>06/07/02</to_dt> </Publication> </Root> The XSL I am using currently is <td align="center"> <font size="2"><strong>From Date : </strong></font> <xsl:variable name = "A1" select = "/root/publication/from_dt"></xsl:variable> <xsl:value-of select="$A1"/> <input style="width: 100px" maxlength="8" title="Choose Date" type="text" id="From_Date" name="From_Date" value="{$A1}" onFocus ="getCalendarFor(this); this.blur()" class="form"/> <font size="2"><strong>To Date : </strong></font> <input style="width: 100px" maxlength="8" title="Choose Date" type="text" id="To_Date" name="To_Date" value="{/root/publication/to_dt}" onFocus="getCalendarFor(this); this.blur()" class="form"/> <input type="submit" value="Go" name="Go"/> </td> I get no values but when I do <xsl:value-of select="/Root/Publication/from_dt/text()"/> I get a the values displayed in the page. Regards Rajesh J To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx Rajesh Jayabalan cc: 06 Jun 2002 04:34 PM Subject: xsl to HTML Hi In the following code I am trying to assign the value of the element "/root/publication/fromdt" to the text field named "from_dt" I have tried the following ways <input style="width: 100px" maxlength="8" title="Choose Date" type="text" id ="From_Date" name="From_Date" value="{/root/publication/fromdt}" onFocus ="getCalendarFor(this); this.blur()" class="form"/> <input style="width: 100px" maxlength="8" title="Choose Date" type="text" id ="From_Date" name="From_Date" value="{./ root/publication/fromdt}" onFocus="getCalendarFor(this); this.blur()" class ="form"/> <input style="width: 100px" maxlength="8" title="Choose Date" type="text" id ="From_Date" name="From_Date" value="{./ root/publication/fromdt/text()}" onFocus="getCalendarFor(this); this.blur()" class="form"/> <input style="width: 100px" maxlength="8" title="Choose Date" type="text" id ="From_Date" name="From_Date" value="{/ root/publication/fromdt/text}" onFocus="getCalendarFor(this); this.blur()" class ="form"/> <xsl:variable name = "A1" select = "/root/publication/fromdt"></xsl:variable> AAAAAAA<xsl:value-of select="$A1"/>BBBB <input style="width: 100px" maxlength="8" title="Choose Date" type="text" id="From_Date" name="From_Date" value="{$A1}" onFocus ="getCalendarFor(this); this.blur()" class="form"/> I am new to XSL so I do not know where I am going wrong non of the above method seem to work. I get blank. Kindly help. Regards Rajesh J XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] If vs. apply-templates fo, David Carlisle | Thread | Re: [xsl] Re: xsl to HTML, Michael Beddow |
[xsl] If vs. apply-templates for op, Hunsberger, Peter | Date | RE: [xsl] Newbie: See if a node exi, Américo Albuquerque |
Month |