[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Once you wrote
select="/root/publication/from_dt"
once
select="/Root/Publication/from_dt/text()"
The difference is not the text(), both should work with your XML. So the only mistake I can see, is your wrong matching: XML is case sensitive as Michael wrote it.
Regards,
Joerg
Rajesh.Jayabalan@xxxxxxxxxx wrote:
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Re: [xsl] Re: xsl to HTML
Subject: Re: [xsl] Re: xsl to HTML From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Fri, 07 Jun 2002 20:02:02 +0200 |
Once you wrote
select="/root/publication/from_dt"
once
select="/Root/Publication/from_dt/text()"
The difference is not the text(), both should work with your XML. So the only mistake I can see, is your wrong matching: XML is case sensitive as Michael wrote it.
Regards,
Joerg
Rajesh.Jayabalan@xxxxxxxxxx wrote:
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
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Re: xsl to HTML, Michael Beddow | Thread | Re: [xsl] Re: xsl to HTML, Rajesh . Jayabalan |
Re: [xsl] Newbie: See if a node exi, Mike Brown | Date | Re: [xsl] Newbie: See if a node exi, Mike Brown |
Month |