xsl:for-each select=

webmasterbeta

New Member
Hello All,

Thanks for the help I have already received here... Now, I'm looking for more ;)

I have this XML file...

<ITVCForms>
<entry type="2">
<FormName>testa1</FormName>
<FileName>testa1.pdf</FileName>
</entry>
<entry type="1">
<FormName>testb2</FormName>
<FileName>testb211.pdf</FileName>
</entry>
<entry type="2">
<FormName>testa3</FormName>
<FileName>testa312.pdf</FileName>
</entry>


I would like to display (all),(type 1), or (Type 2).
Here is my XSL code, right now it build a table w/ all of the formnames from the XML file.


<table border="0" width="100%" cellspacing="0" cellpadding="3">
<xsl:for-each select="ITVCForms/entry">
<tr>
<td width="100%"><font face="Arial" size="3">
<xsl:value-of select="FormName"/>
</font></td>
</tr>
</xsl:for-each>
<tr>
<td width="100%"></td>
</tr>
</table>


Your help is much appreciated.

~Thanks, Jim
 
Top