How Can I put XSL tag inside HTML form tag?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RC

    How Can I put XSL tag inside HTML form tag?

    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="val ue1" />

    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="@attrib ute1" />
    '></input>

    How can I solve this problem?
    Thank Q very much in advance!
  • Ken Robinson

    #2
    Re: How Can I put XSL tag inside HTML form tag?


    RC wrote:[color=blue]
    > Hello Dudes,
    > Sorry I couldn't find a XML/XSL group[/color]

    comp.text.xml

    Ken

    Comment

    • Ken Robinson

      #3
      Re: How Can I put XSL tag inside HTML form tag?


      RC wrote:[color=blue]
      > Hello Dudes,
      > Sorry I couldn't find a XML/XSL group[/color]

      comp.text.xml

      Ken

      Comment

      • Malte

        #4
        Re: How Can I put XSL tag inside HTML form tag?

        RC wrote:[color=blue]
        > 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="val ue1" />
        >
        > 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="@attrib ute1" />
        > '></input>
        >
        > How can I solve this problem?
        > Thank Q very much in advance![/color]

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

        or something like this.

        Comment

        • Malte

          #5
          Re: How Can I put XSL tag inside HTML form tag?

          RC wrote:[color=blue]
          > 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="val ue1" />
          >
          > 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="@attrib ute1" />
          > '></input>
          >
          > How can I solve this problem?
          > Thank Q very much in advance![/color]

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

          or something like this.

          Comment

          Working...