home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / XML Utilities / Professional Programmer XSL IDE / Xselerator25.msi / Data.Cab / F23624_ParsedEntityXML.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2001-10-04  |  1.2 KB  |  30 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!-- ===========================================================
  3.   Category:       MultipleDataSources
  4.   Sub-category:
  5.   Author:         David Silverlight
  6.                   HeadGeek@xmlpitstop.com
  7.   Created:        2001-05-16
  8.   Description:-
  9.     This example demonstrates how to combine multiple XML
  10.     documents as a reference to one or more parsed entities.
  11.     In this example, each XML document is represented as a
  12.     parsed entity, which is referenced in the dtd.  The entities
  13.     are combined in the ParsedEntity.xml document and are
  14.     transformed to HTML using the ParsedEntity.xsl file, which
  15.     also uses the DisplayProds template to format the HTML data.
  16.     NOTE: This example was originally inspired by Jeni Tennison
  17.     (www.jenitennison.com).
  18. ================================================================ -->
  19. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  20.                 version="1.0"><xsl:output method="xml" indent="yes"/>
  21. <xsl:template match="/">
  22.       <xsl:apply-templates/>
  23. </xsl:template>
  24. <xsl:template match="allproducts">
  25. <xsl:element name="products" >
  26.     <xsl:copy-of select="."/>
  27. </xsl:element>
  28. </xsl:template>
  29.  
  30. </xsl:stylesheet>