• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Assigning XML element value to a textbox field

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How to assign a value from xml to a text field in xsl ??

<LensSelector>
<Astigmatism>
<Question>Do you have Astigmatism </Question>
<Yes>ABCD</Yes>
<No>EFGH</No>
</Astigmatism>

</LensSelector>

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

None of the below works :



<input type="text" name="question" size="100" value="<xsl:value-of select='Question'/>">



<input type="text" name="question1" size="100">
<xsl:attribute name="value"> <value-of select="Question"/></xsl:attribute>

</input>

Please help me
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The second option should work but looks like the "xsl" prefix is missing from the "value-of" element.

If it still does not work, please paste your complete xslt content here.
 
reply
    Bookmark Topic Watch Topic
  • New Topic