Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > How Can I put XSL tag inside HTML form tag?

Reply
Thread Tools

How Can I put XSL tag inside HTML form tag?

 
 
RC
Guest
Posts: n/a
 
      05-10-2005
In JSP (Java Server Page) you can do something
like this

<%
String v = myBean.getValue();
%>

<form .... >
<input name="myTag" value="<%= v %>">
</form>

You can do the similar thing in PHP.

But when I try in XSL I got error.

I have an XML file

<myTag attribute1="value1" />

Now I want to transform it into HTML form tag used XSL template
But XSL doesn't like this

<input name="myTag" value='
<xsl:value-of select="@attribute1" />
'></input>

How can I solve this problem?
Thank Q very much in advance!
 
Reply With Quote
 
 
 
 
Volkm@r
Guest
Posts: n/a
 
      05-10-2005
RC wrote:
> In JSP (Java Server Page) you can do something
> like this
>
> <%
> String v = myBean.getValue();
> %>

[...]
> But XSL doesn't like this
>
> <input name="myTag" value='
> <xsl:value-of select="@attribute1" />
> '></input>
>
> How can I solve this problem?
> Thank Q very much in advance!


Try
<input name="myTag" value="{@attribute1}"/>

--
Volkm@r
 
Reply With Quote
 
 
 
 
RC
Guest
Posts: n/a
 
      05-10-2005
Volkm@r wrote:


> Try
> <input name="myTag" value="{@attribute1}"/>


Thank you very much, it is work!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting a "normal" HTML form to work inside the server-side form tag Deane ASP .Net 3 08-01-2007 02:33 PM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
How Can I put XSL tag inside HTML form tag? RC Java 2 05-10-2005 06:26 PM
How to put XSLT element <xsl:value-of> inside an HTML tag? Matt XML 1 10-12-2004 09:02 AM
How to put XSLT element <xsl:value-of> inside an HTML tag? Matt Java 1 10-12-2004 12:36 AM



Advertisments