• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Junilu Lacar
  • Tim Cooke
  • Jeanne Boyarsky
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger
  • Frits Walraven

Assigning XML element value to a textbox field

Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to assign a value from xml to a text field in xsl ??

<Question>Do you have Astigmatism </Question>



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>


Please help me
Posts: 8
  • Mark post as helpful
  • send pies
  • 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.
Paper jam tastes about as you would expect. Try some on this tiny ad:
Two software engineers solve most of the world's problems in one K&R sized book
    Bookmark Topic Watch Topic
  • New Topic