|
Home > Online Product Documentation > Table of Contents > xsl:for-each xsl:for-eachSelects a set of nodes in the source document and instantiates the contained template once for each node in the set. Format
Description
The
By default, the new list of source nodes is processed in document order. However, you can use the
The
ExampleFor example, suppose your source document includes the following XML:
The following stylesheet creates an HTML document that contains a list of authors. Each author is followed by the titles of the books the author wrote. It does not matter how many authors there are nor how many titles are associated with each author. The stylesheet uses the
The result document looks like this:
|
XML-DEV Discussion Forum
XML-DEV is a leading technical forum for XML discussion and a valuable free XML learning resource. Subscribe to the XML-DEV email discussion forum today to help further your XML education.
Java Code Generation
The Stylus Studio Java Codce Generator lets you generate deployable Java code for XQuery and XSLT at the push of a button!
Web Service Data-to-XML Mapper
Stylus Studio provides a powerful standards-based solution for accessing and transforming live Web service XML data. Intuitive tools like the Web Service Call Composer and UDDI Browser make developing Web service applications a snap.
XML Publisher - XSLT Generator and XSL:FO Generator
The XML Publisher lets you easily design beautiful documents in HTML or PDF format from relational, XML and other data sources using XSL:FO or XSLT, using an intuitive visual interface.