This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > May 2005 > How Can I put XSL tag inside HTML form tag?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How Can I put XSL tag inside HTML form tag?
RC

2005-05-10, 7:34 pm

Hello Dudes,
Sorry I couldn't find a XML/XSL group
I can only post these groups close to my subject.

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!
Ken Robinson

2005-05-10, 7:34 pm


RC wrote:
> Hello Dudes,
> Sorry I couldn't find a XML/XSL group


comp.text.xml

Ken

Malte

2005-05-10, 7:34 pm

RC wrote:
> Hello Dudes,
> Sorry I couldn't find a XML/XSL group
> I can only post these groups close to my subject.
>
> 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!


<input>
<attribute name="mytag">
<xsl:value-of select=@attribute1 />
</attribute>
</input>

or something like this.
Ken Robinson

2005-05-14, 7:47 am


RC wrote:
> Hello Dudes,
> Sorry I couldn't find a XML/XSL group


comp.text.xml

Ken

Malte

2005-05-14, 7:47 am

RC wrote:
> Hello Dudes,
> Sorry I couldn't find a XML/XSL group
> I can only post these groups close to my subject.
>
> 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!


<input>
<attribute name="mytag">
<xsl:value-of select=@attribute1 />
</attribute>
</input>

or something like this.
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews