~ubuntu-branches/ubuntu/precise/xom/precise

« back to all changes in this revision

Viewing changes to data/xslt/input/8-12.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Varun Hiremath
  • Date: 2007-11-25 15:50:40 UTC
  • Revision ID: james.westby@ubuntu.com-20071125155040-r75ikcqf1vu0cei7
Tags: upstream-1.1
ImportĀ upstreamĀ versionĀ 1.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?> 
 
 
b'<xsl:stylesheet version="1.0" '
0
2
               xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
1
3
 <xsl:output method="xml" indent="no"/>
2
4
 <xsl:template match="people">
3
5
   <html>
4
6
     <head><title>Famous Scientists</title></head>
5
7
     <body>
6
8
       <ul><xsl:apply-templates select="person" mode="toc"/></ul>
7
9
       <xsl:apply-templates select="person"/>
8
10
     </body>
9
11
   </html>
10
12
 </xsl:template>
11
13
 <!-- Table of Contents Mode Templates -->
12
14
 <xsl:template match="person" mode="toc">
13
15
   <xsl:apply-templates select="name" mode="toc"/>
14
16
 </xsl:template>
15
17
 <xsl:template match="name" mode="toc">
16
18
   <li><xsl:value-of select="last_name"/>, 
17
19
   <xsl:value-of select="first_name"/></li>
18
20
 </xsl:template>
19
21
 <!-- Normal Mode Templates -->
20
22
 <xsl:template match="person">
21
23
   <p><xsl:apply-templates/></p>
22
24
 </xsl:template>
 
 
b'</xsl:stylesheet>'
 
 
b'\\ No newline at end of file'