This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: problems with forms and XSL


Thanks Chris, this works great!

...Rohit

----- Original Message ----- 
From: Chris Bayes <Chris@Bayes.co.uk>
To: <xsl-list@mulberrytech.com>
Sent: Wednesday, July 19, 2000 2:35 PM
Subject: RE: problems with forms and XSL


> 
> <input type="text">
> <xsl:attribute name="name"><xsl:value-of select="@name"/></xsl:attribute>
> </input>
> 
> should do the trick
> 
> 
> >-----Original Message-----
> >From: owner-xsl-list@mulberrytech.com
> >[mailto:owner-xsl-list@mulberrytech.com]On Behalf Of Rohit Peyyeti
> >Sent: 19 July 2000 05:25
> >To: xsl-list@mulberrytech.com
> >Subject: problems with forms and XSL
> >Importance: High
> >
> >
> >Hello:
> >
> >I have written two .JSP pages which have XML and corresponding
> >XSL too. 
> >
> >The first .JSP page has a form and on action of this form a second
> >.JSP page is called. This form is written in XML like the following:
> >
> ><textbox type="text" name="fname"/> and then the .XSL is applied.
> >The XSL file has the form action and submit button.
> >
> >When I open this page in the browser and enter some text in the
> >textbox and hit submit, I see that "%0D%0A" get appended to the
> >field name. For example "fname%0D%0A". I can see this in the 
> >Address bar of the browser after hitting submit.
> >
> >This happens if I take the attributes of the tag like this in XSL:
> >
> ><input type="text">
> ><xsl:attribute name="name">
> > <xsl:value-of select="@name"/>
> ></xsl:attribute>
> ></input>
> >
> >But it works fine if I hardcode the name of the input box in the XSL
> >like this:
> >
> ><input type="text" name="fName"/>
> >
> >Can anyone please help me? 
> >
> >Thanks,
> >Rohit 
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]