home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="utf-8"?>
- <!-- ===========================================================
- Category: MultipleDataSources
- Sub-category:
- Author: David Silverlight
- HeadGeek@xmlpitstop.com
- Created: 2001-05-16
- Description:-
- 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).
- ================================================================ -->
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- version="1.0"><xsl:output method="xml" indent="yes"/>
- <xsl:template match="/">
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="allproducts">
- <xsl:element name="products" >
- <xsl:copy-of select="."/>
- </xsl:element>
- </xsl:template>
-
- </xsl:stylesheet>