/docs/MyDocs

To get this branch, use:
bzr branch http://darksoft.org/webbzr/docs/MyDocs

« back to all changes in this revision

Viewing changes to xml/samples/menu/menu.xsl

  • Committer: Suren A. Chilingaryan
  • Date: 2009-04-09 03:21:08 UTC
  • Revision ID: csa@dside.dyndns.org-20090409032108-w4edamdh4adrgdu3
import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
2
 
 
3
 <xsl:output method="html"/>
 
4
 
 
5
 <xsl:template match="menuitem">
 
6
    <A href="{@href}">
 
7
        <xsl:value-of select="@label"/>
 
8
    </A>
 
9
    <br />
 
10
 </xsl:template>
 
11
 
 
12
 <xsl:template match="submenu">
 
13
    <B><xsl:value-of select="@label"/></B>
 
14
    <br />
 
15
    <table><tr>
 
16
        <td width="20"></td>
 
17
        <td><xsl:apply-templates/></td>
 
18
    </tr></table>
 
19
 </xsl:template>
 
20
 
 
21
 <xsl:template match="/">
 
22
    <html>
 
23
      <head>
 
24
        <title>Menu</title>
 
25
      </head>
 
26
      <body>
 
27
        <xsl:apply-templates/>
 
28
      </body>
 
29
    </html>
 
30
 </xsl:template>
 
31
</xsl:stylesheet>