Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSL ?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
0
0
Hi
I have an XML file - Details.xml which contains details of the form I want to build <Items><tagn id=&quot;testid&quot;>Test</tagn></Items>
How can I get the following results
<tr><td>Test</td><td><input type=&quot;text&quot; name=&quot;testid&quot;></td></tr>
I seem to have a problem creating the INPUT tag from the attribute ID I can print it like <td>testid</td> but cant get XSL to give me the following output <td><input type=&quot;text&quot; name=&quot;testid&quot;>

any help is greatly appreciated.
cheers
D
 
hi auskid

You may try to type this XSL fragment:
...
<td>
<input type=&quot;text&quot;>
<xsl:attribute name=&quot;name&quot;>
<xsl:value-of select=&quot;@id&quot;/>
</xsl:attribute>
</input>
</td>
...

You can see also caf's question &quot;Binding XSL&quot;.
The same thing.

Best regards.
Avator

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top