greedyzebra
Technical User
I'm wanting to turn an xml document into a form page and am wondering how I can apply a default value to a text input field.
Here's how I would do this in HTML:
<input type="text" value="My Default Value">
When displayed in a browser, a text input field would appear with "My Default Value" as the default value.
I can create a text input field with my xsl style sheet like so:
<td><INPUT TYPE="text"/></td>
However I run into problems trying to set the "value" with <xsl:value-of select="XML_TAG_CONTAINING_DEFAULT_DATA"/> as this is meaningless within the HTML tag.
Is there some sort of escape mechanism (escape character) to assign such a value within the HTML tag? Is there any way to do this?
Thanks. If this doesn't make sense, please tell me so I can clarify further.
Here's how I would do this in HTML:
<input type="text" value="My Default Value">
When displayed in a browser, a text input field would appear with "My Default Value" as the default value.
I can create a text input field with my xsl style sheet like so:
<td><INPUT TYPE="text"/></td>
However I run into problems trying to set the "value" with <xsl:value-of select="XML_TAG_CONTAINING_DEFAULT_DATA"/> as this is meaningless within the HTML tag.
Is there some sort of escape mechanism (escape character) to assign such a value within the HTML tag? Is there any way to do this?
Thanks. If this doesn't make sense, please tell me so I can clarify further.