Loading ...
Sorry, an error occurred while loading the content.
 

XSL Doubt

Expand Messages
  • sathish.krishnaswamy@iflexsolutions.com
    Message 1 of 2 , Apr 11, 2002
      <?xml version="1.0"?>
      <xsl:stylesheet version="1.0"
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns="http://www.w3.org/1999/html"
      xmlns:fo="http://www.w3.org/1999/XSL/Format">

      <xsl:template match="XYZ">
      <xsl:apply-templates/>
      </xsl:template>

      <xsl:template match="ABC">
      <TABLE Name="lmn" Align="center" Width="100%">
      <TR><P></P>
      <P>
      <xsl:choose>
      <xsl:when test="FIELD_DESCRIPTION='LOV'">
      <P><TD VAlign="Top" Align="Right" Width="30%"></TD>
      <xsl:value-of select="FIELD_NAME"/>
      <TD VAlign="Top" Align="Center" Width="5%"></TD>
      <TD><INPUT TYPE="TEXT"></INPUT>
      <INPUT TYPE="BUTTON"
      style="border-color:#9BD1E7;background-color:#2F9FCD;font-family:arial;font-
      weight:bold;color:white;width=30"></INPUT></TD>
      </P>
      <TD VAlign="Top" Align="Center" Width="30%"></TD>
      </xsl:when>
      </p>
      </table>
      <xsl:template>
      </xsl:stylesheet>

      i've above xsl file. the loop stops till there are no values of LOV in
      FIELD_DESCRIPTION in the corresponding xml file. i create a html file using
      xsl and xml files. how do i get the values entered in the textbox of the
      html file in the servlet. if i use <form></form> with specified action it
      does work in other cases but in this case where i'm making loop the <form>
      also goes in a loop and gives an error. how do i get the value in the
      servlet or is there any other alternative. pl give me a probable sol asap.

      regards,
      sathish
      ----------------------------------------------------------------------------

      This message contains privileged and confidential information and is
      intended only for the individual named. If you are not the intended
      recepient you should not disseminate, distribute, store, print, copy or
      deliver this message. Please notify the sender immediately by e-mail if you
      have received this e-mail by mistake and immediately delete this e-mail from
      your system.


      E-mail transmission cannot be guaranteed to be secure or error-free as
      information could be intercepted, corrupted, lost, destroyed, arrive late or
      incomplete, or contain viruses. The sender therefore does not accept
      liability for any errors or omissions in the contents of this message which
      arise as a result of e-mail transmission. If verification is required
      please request a hard-copy version.


      --------------------------------------------------------------------------
    • sathish.krishnaswamy@iflexsolutions.com
      Message 2 of 2 , Apr 11, 2002
        <?xml version="1.0"?>
        <xsl:stylesheet version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        xmlns="http://www.w3.org/1999/html"
        xmlns:fo="http://www.w3.org/1999/XSL/Format">

        <xsl:template match="XYZ">
        <xsl:apply-templates/>
        </xsl:template>

        <xsl:template match="ABC">
        <TABLE Name="lmn" Align="center" Width="100%">
        <TR><P></P>
        <P>
        <xsl:choose>
        <xsl:when test="FIELD_DESCRIPTION='LOV'">
        <P><TD VAlign="Top" Align="Right" Width="30%"></TD>
        <xsl:value-of select="FIELD_NAME"/>
        <TD VAlign="Top" Align="Center" Width="5%"></TD>
        <TD><INPUT TYPE="TEXT"></INPUT>
        <INPUT TYPE="BUTTON"
        style="border-color:#9BD1E7;background-color:#2F9FCD;font-family:arial;font-
        weight:bold;color:white;width=30"></INPUT></TD>
        </P>
        <TD VAlign="Top" Align="Center" Width="30%"></TD>
        </xsl:when>
        </p>
        </table>
        <xsl:template>
        </xsl:stylesheet>

        i've above xsl file. the loop stops till there are no values of LOV in
        FIELD_DESCRIPTION in the corresponding xml file. i create a html file using
        xsl and xml files. how do i get the values entered in the textbox of the
        html file in the servlet. if i use <form></form> with specified action it
        does work in other cases but in this case where i'm making loop the <form>
        also goes in a loop and gives an error. how do i get the value in the
        servlet or is there any other alternative. pl give me a probable sol asap.

        regards,
        sathish


        regards,
        sathish
        iflex solutions ltd
        9th floor, raheja towers
        mg road,bangalore
        ph(off)-080-5597600-3304

        ----------------------------------------------------------------------------

        This message contains privileged and confidential information and is
        intended only for the individual named. If you are not the intended
        recepient you should not disseminate, distribute, store, print, copy or
        deliver this message. Please notify the sender immediately by e-mail if you
        have received this e-mail by mistake and immediately delete this e-mail from
        your system.


        E-mail transmission cannot be guaranteed to be secure or error-free as
        information could be intercepted, corrupted, lost, destroyed, arrive late or
        incomplete, or contain viruses. The sender therefore does not accept
        liability for any errors or omissions in the contents of this message which
        arise as a result of e-mail transmission. If verification is required
        please request a hard-copy version.


        --------------------------------------------------------------------------
      Your message has been successfully submitted and would be delivered to recipients shortly.