FORMS in XSLT

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

    FORMS in XSLT

    How is it that everything I put between <FORM> tags disappears from the
    HTML rendering, when I use an XSL transformation?
    How can I render XML to a html form then?

    --
    - gipsy boy
  • Tjerk Wolterink

    #2
    Re: FORMS in XSLT

    gipsy boy wrote:[color=blue]
    > How is it that everything I put between <FORM> tags disappears from the
    > HTML rendering, when I use an XSL transformation?
    > How can I render XML to a html form then?
    >[/color]

    i do not see what you mean. do you have an example?

    Comment

    • gipsy boy

      #3
      Re: FORMS in XSLT

      Tjerk Wolterink wrote:[color=blue]
      > gipsy boy wrote:
      >[color=green]
      >> How is it that everything I put between <FORM> tags disappears from
      >> the HTML rendering, when I use an XSL transformation?
      >> How can I render XML to a html form then?
      >>[/color]
      >
      > i do not see what you mean. do you have an example?[/color]

      <xsl:template match="CANDIDAT E">
      <FORM action="edit" method="POST">
      Hello
      <INPUT type="submit" value="test"/>
      </FORM>
      <TR valign="top" bgcolor="#FFFFF F">
      <TD rowspan="4" style="font-size:24px;color :#BBBBBB">#<xsl :number
      count="CANDIDAT E"/></TD>
      ....
      </xsl:template>


      Without the <FORM> tag, everything gets rendered correctly, but with it,
      the button that's inside it just disappears (with the "Hello".
      If I put the <FORM> around everything, it all disappears in the HTML
      output. Is this normal?..

      --
      - gipsy boy

      Comment

      • gipsy boy

        #4
        Re: FORMS in XSLT

        gipsy boy wrote:[color=blue]
        > Tjerk Wolterink wrote:
        >[color=green]
        >> gipsy boy wrote:
        >>[color=darkred]
        >>> How is it that everything I put between <FORM> tags disappears from
        >>> the HTML rendering, when I use an XSL transformation?
        >>> How can I render XML to a html form then?
        >>>[/color]
        >>
        >> i do not see what you mean. do you have an example?[/color]
        >
        >
        > <xsl:template match="CANDIDAT E">
        > <FORM action="edit" method="POST">
        > Hello
        > <INPUT type="submit" value="test"/>
        > </FORM>
        > <TR valign="top" bgcolor="#FFFFF F">
        > <TD rowspan="4" style="font-size:24px;color :#BBBBBB">#<xsl :number
        > count="CANDIDAT E"/></TD>
        > ...
        > </xsl:template>
        >
        >
        > Without the <FORM> tag, everything gets rendered correctly, but with it,
        > the button that's inside it just disappears (with the "Hello".
        > If I put the <FORM> around everything, it all disappears in the HTML
        > output. Is this normal?..[/color]

        Ah, it appears this only happens because <FORM> needs to be inside a
        <TD>, it can't float above a <TR>

        --
        - gipsy boy

        Comment

        Working...