|
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:
|