Performing transformations on Multiple XML Documents.
| Stylesheet |
Description |
Files |
| Document With NodeSet to HTML |
Combining Multiple XML Documents and accessing them through the document function. This stylesheet demonstrates how to combine multiple XML documents into a single data source. In this example, the document names are stored as an attribute value. The stylesheet that combines the data first accesses each XML Document name using the document() function (demonstrating also how an xPath query can be applied to the document) and displays each document as HTML using the DisplayProds template. Note: This example was originally inspired by Kurt Cagle (http://www.KurtCagle.net) |
Output XSL File XML Set File XML File1 XML File2 Download this sample
|
| |
|
|
| Parsed Entity to HTML |
Combining Multiple XML Documents as a Parsed Entity. This example demonstrates how to combine multiple XML documents as a reference to one or more parsed entities. In this example, each XML document is represented as a parsed entity, which is referenced in the dtd. The entities are combined in the ParsedEntity.xml document and are transformed to HTML using the ParsedEntity.xsl file, which also uses the DisplayProds template to format the HTML data. NOTE: This example was originally inspired by Jeni Tennison (www.jenitennison.com). |
Output XSL File XSL File XML Set File XML File1 XML File2 Download this sample
|
| |
|
|
| UnParsed Entity to HTML |
Combining Multiple XML Documents as Unparsed Entities. This example demonstrates how to combine multiple XML documents as a reference to one or more unparsed entities. In this example, each XML document is represented as an unparsed entity, which is referenced in the dtd. The entities are combined in the UnParsedEntity.xml document and are transformed to HTML using the UnParsedEntity.xsl file, which also uses the DisplayProds template to format the HTML data. NOTE: This example was originally inspired by Ken G. Holman ( http://www.CraneSoftwrights.com/links/trn-xps.htm |
Output XSL File XML Set File XML File1 XML File2 Download this sample
|
| |
|
|
| Document As Attribute to XML |
Combining Multiple XML Documents using document names as attributes. This stylesheet demonstrates how to combine multiple XML documents into a single data source. In this example, the name of the xml document is stored as an attribute value. The document() function is used in the stylesheet to create an instance of each xml document.The end result of the transformation is a combination of all of the input XML documents into a single XML document. |
Output XSL File XML Set File XML File1 XML File2 Download this sample
|
| |
|
|
| Document With NodeSet to XML |
Combining Multiple XML Documents and accessing them through the document function. This stylesheet demonstrates how to combine multiple XML documents into a single data source. In this example, the document names are stored as an attribute value. The stylesheet that combines the data first accesses each XML Document name using the document() function (demonstrating also how an xPath query can be applied to the document) and displays each document as HTML using the DisplayProds template. Note: This example was originally inspired by Kurt Cagle (http://www.KurtCagle.net) |
Output XSL File XML Set File XML File1 XML File2 Download this sample
|
| |
|
|
| Parsed Entity to XML |
Combining Multiple XML Documents as a Parsed Entity. This example demonstrates how to combine multiple XML documents as a reference to one or more parsed entities. In this example, each XML document is represented as a parsed entity, which is referenced in the dtd. The entities are combined in the ParsedEntity.xml document and are transformed to HTML using the ParsedEntity.xsl file, which also uses the DisplayProds template to format the HTML data. NOTE: This example was originally inspired by Jeni Tennison (www.jenitennison.com). |
Output XSL File XSL File XML Set File XML File1 XML File2 Download this sample
|
| |
|
|
| UnParsed Entity to XML |
Combining Multiple XML Documents as Unparsed Entities. This example demonstrates how to combine multiple XML documents as a reference to one or more unparsed entities. In this example, each XML document is represented as an unparsed entity, which is referenced in the dtd. The entities are combined in the UnParsedEntity.xml document and are transformed to HTML using the UnParsedEntity.xsl file, which also uses the DisplayProds template to format the HTML data. NOTE: This example was originally inspired by Ken G. Holman ( http://www.CraneSoftwrights.com/links/trn-xps.ht |
Output XSL File XML Set File XML File1 XML File2 Download this sample
|
| |
|
|