<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.
입력하신 내용을 알려주시겠습니까? 고맙습니다! –