graffitici
Programmer
Hi,
I am trying to generate an HTML file from XML using XSLT (a very mundane sentence!). However I can't get to insert the value of an xml tag, as the "name" attribute of an input element. My html file looks like this:
<?xml version="1.0" encoding="ISO-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="rpg.xsl"?>
<rpg>
<soru id="soru1">
<text> soru txt </text>
</soru>
</rpg>
And I want to do this:
...
<input type="radio" name="soru1" />
...
The first thing I tried was to do
<input type="radio" name="<xsl:value-of match="../@id" /> />
Which obviously didn't work, since the xml wasn't well formed. I then tried replacing the less-than characters with the corresponding entity <, but that just prints it on the page instead of generating a radio button.
What do you think I should do?
thanks...
bB
I am trying to generate an HTML file from XML using XSLT (a very mundane sentence!). However I can't get to insert the value of an xml tag, as the "name" attribute of an input element. My html file looks like this:
<?xml version="1.0" encoding="ISO-8859-9" ?>
<?xml-stylesheet type="text/xsl" href="rpg.xsl"?>
<rpg>
<soru id="soru1">
<text> soru txt </text>
</soru>
</rpg>
And I want to do this:
...
<input type="radio" name="soru1" />
...
The first thing I tried was to do
<input type="radio" name="<xsl:value-of match="../@id" /> />
Which obviously didn't work, since the xml wasn't well formed. I then tried replacing the less-than characters with the corresponding entity <, but that just prints it on the page instead of generating a radio button.
What do you think I should do?
thanks...
bB