Tip: Create Multiple Files in XSLT 2.0
By Jack Herrington2005-05-16
Create an index
To finish, I need to add an index file that points to all the output test results. To do that, I use another
xsl:result-document tag and hard-code the output to go to an index file (see Listing 6).Listing 6. Code to build the index file
|
This section goes right after the xsl:for-each loop that builds the HTML files for each test case. Listing 7 shows the index file for the example data set.
|
Tutorial Pages:
» Use a single XSLT template to create multiple files
» Create a file for each test
» Get better output
» Create an index
» Summary
» Resources
First published by IBM DeveloperWorks
