<library>
<thriller>
<book>
<ISBN>1000</ISBN>
<title>Sherlock Holmes</title>
<author>Bob Dylan</author>
<publisher>BBC</publisher>
<country>England</country>
<price>10.90</price>
<edition>5</edition>
<year>2005</year>
</book>
<book>
<ISBN>1001</ISBN>
<title>The Indian Girl</title>
<author>Chetan Bhagat</author>
<publisher>Anusha Publishers</publisher>
<country>India</country>
<price>1270</price>
<edition>3</edition>
<year>2005</year>
</book>
</thriller>
</library>
<xsl:for-each select="library/thriller/book"> then
<tr bgcolor="#9acd32">
<td><xsl:value-of select="ISBN"/></td>
<td><xsl:value-of select="title"/></td>
</tr>
</xsl:for-each>
<xsl:for-each select="library/thriller>
<xsl:for-each select="book">
</xsl:for-each>
</xsl:for-each>
上記の例では、私はライブラリのすべての本の内容をスリラーでそれぞれに使いたいと思います。私は を試しましたが、それはテーブルとして移動しません。私はそれぞれの前に必要なすべてのテーブルタグを与えました。だから私は試した\xsltでそれぞれのためにネストされた分岐を使用する方法
but whether there is away to do that in single loop. thanks in advance.
あなたの入力が期待している出力も表示できますか?ありがとうございました! –