Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - newbie for-each select question for table creation [Thread Next] Re: newbie for-each select question for table creationTo: NULL Date: 5/2/2005 4:58:00 PM Try this instead:
<xsl:for-each select="ReportedFiles/File">
<tr><td><xsl:value-of select="."/></td></tr>
</xsl:for-each>
"Michael Howes" <mhowes@x...> a écrit dans le message de
news:%23iNj3T1TFHA.2976@T......
> newbie xsl question
>
> I'm receiving fairly straight forward XML. One of the elements contains
> repeated elements
>
> like this
> <ReportedFiles>
>
> <File>C:\test\test\me.frd</File>
>
> <File>C:\test\test2\me2.frd</File>
>
> </ReportedFiles>
>
> How do create a <tr> for each <File> element?
>
> I've tried something like this
>
> <xsl:for-each select="ReportedFiles/File">
>
> <tr><td><xsl:value-of select="File"></xsl:value-of></tr>
>
> </xsl:for-each>
>
> but this doesn't work
>
> thanks
>
> mike
>
>
>
>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
