DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Assigning XML element value to Hidden form field in XSL?

  1. #1
    vetrivel Guest

    Assigning XML element value to Hidden form field in XSL?


    Hi
    We are using xsl with xml for presentation.In xsl we
    have to get the value of one xml element in to the html form field hidden
    variable. We
    tried as follows.It's not working properly.
    <input name="name" type="hidden" value="&ltxsl:value-of select='SPECIALITY'/&gt"
    />
    In future we will pass this value to another JSP.This value part is not
    taking the actual element value from the xml.
    Can anyone give suggestions for this.
    Thanks in advance.
    Vetrivel.C



  2. #2
    Mark Bower Guest

    Re: Assigning XML element value to Hidden form field in XSL?

    try:

    <input name="name" type="hidden"><xsl:attribute name="value"><value-of
    select="SPECIALITY"></xsl:attribute></input>

    "vetrivel" <mvet@sonata-software.com> wrote in message
    news:398c0c43$1@news.devx.com...
    >
    > Hi
    > We are using xsl with xml for presentation.In xsl we
    > have to get the value of one xml element in to the html form field hidden
    > variable. We
    > tried as follows.It's not working properly.
    > <input name="name" type="hidden" value="&ltxsl:value-of

    select='SPECIALITY'/&gt"
    > />
    > In future we will pass this value to another JSP.This value part is

    not
    > taking the actual element value from the xml.
    > Can anyone give suggestions for this.
    > Thanks in advance.
    > Vetrivel.C
    >
    >




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center