home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / tsw / TSW_3.4.0.exe / Apache2 / asp / template.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2003-09-03  |  727 b   |  36 lines

  1. <?xml version="1.0"?> 
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  3.  
  4. <xsl:template match="hello">
  5. Hello <xsl:apply-templates/>
  6. </xsl:template>
  7.  
  8. <xsl:template match="page">
  9.   <% $Response->Include('header.inc'); %>
  10.    <xsl:apply-templates/> 
  11.   </body>
  12.   </html>
  13. </xsl:template>
  14.  
  15. <xsl:template match="title">
  16.  <h2>
  17.   <xsl:apply-templates/>
  18.  </h2>
  19. </xsl:template>
  20.  
  21. <xsl:template match="paragraph">
  22.  <p>
  23.   <xsl:apply-templates/>
  24.  </p>
  25. </xsl:template> 
  26.  
  27.  
  28. <xsl:template match="file">
  29.   <a><xsl:attribute name="href">
  30.        source.asp?file=<xsl:value-of select="@src"/>
  31.      </xsl:attribute><xsl:value-of select="@title"/></a>
  32. </xsl:template>
  33.  
  34. </xsl:stylesheet>
  35.  
  36.