Last change
on this file since 16315 was 16315, checked in by davidb, 16 years ago |
Merging of skin work with the main trunk
|
File size:
1.9 KB
|
Rev | Line | |
---|
[16315] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 |
|
---|
| 3 | <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
---|
| 4 |
|
---|
| 5 | <xsl:output method="html"/>
|
---|
| 6 |
|
---|
| 7 | <xsl:template match="/">
|
---|
| 8 | <html>
|
---|
| 9 | <head>
|
---|
| 10 | <title>
|
---|
| 11 | <xsl:call-template name="metadataItem">
|
---|
| 12 | <xsl:with-param name="name">siteName</xsl:with-param>
|
---|
| 13 | </xsl:call-template>
|
---|
| 14 | </title>
|
---|
| 15 | <link rel="stylesheet" href="/css/style.css" type="text/css">
|
---|
| 16 | </head>
|
---|
| 17 | <body>
|
---|
| 18 | <h1>
|
---|
| 19 | <xsl:call-template name="metadataItem">
|
---|
| 20 | <xsl:with-param name="name">siteName</xsl:with-param>
|
---|
| 21 | </xsl:call-template>
|
---|
| 22 | </h1>
|
---|
| 23 |
|
---|
| 24 | <xsl:call-template name="metadataItem">
|
---|
| 25 | <xsl:with-param name="name">siteDescription</xsl:with-param>
|
---|
| 26 | </xsl:call-template>
|
---|
| 27 |
|
---|
| 28 | <h2>Collections:</h2>
|
---|
| 29 | <ul>
|
---|
| 30 | <xsl:for-each select="/page/pageResponse/collectionList/collection">
|
---|
| 31 | <li> <em> <xsl:value-of select="displayItem[@name='name']"/> </em> </li>
|
---|
| 32 | </xsl:for-each>
|
---|
| 33 | </ul>
|
---|
| 34 |
|
---|
| 35 | <xsl:call-template name="uiItem">
|
---|
| 36 | <xsl:with-param name="name">footer</xsl:with-param>
|
---|
| 37 | </xsl:call-template>
|
---|
| 38 |
|
---|
| 39 | </body>
|
---|
| 40 | </html>
|
---|
| 41 | </xsl:template>
|
---|
| 42 |
|
---|
| 43 |
|
---|
| 44 |
|
---|
| 45 |
|
---|
| 46 |
|
---|
| 47 |
|
---|
| 48 |
|
---|
| 49 | <xsl:template name="metadataItem">
|
---|
| 50 | <xsl:param name="name"/>
|
---|
| 51 |
|
---|
| 52 | <xsl:variable name="x">
|
---|
| 53 | <xsl:value-of select="/page/pageResponse/metadataList/metadataItem[@name=$name]"/>
|
---|
| 54 | </xsl:variable>
|
---|
| 55 |
|
---|
| 56 | <xsl:choose>
|
---|
| 57 | <xsl:when test="$x = ''">
|
---|
| 58 | metadataItem '<xsl:value-of select="$name"/>' not defined.
|
---|
| 59 | </xsl:when>
|
---|
| 60 | <xsl:otherwise>
|
---|
| 61 | <xsl:value-of select="$x"/>
|
---|
| 62 | </xsl:otherwise>
|
---|
| 63 | </xsl:choose>
|
---|
| 64 |
|
---|
| 65 | </xsl:template>
|
---|
| 66 |
|
---|
| 67 | <xsl:template name="uiItem">
|
---|
| 68 | <xsl:param name="name"/>
|
---|
| 69 |
|
---|
| 70 | <xsl:variable name="x">
|
---|
| 71 | <xsl:value-of select="/page/pageResponse/uiItemList/uiItem[@name=$name]"/>
|
---|
| 72 | </xsl:variable>
|
---|
| 73 |
|
---|
| 74 | <xsl:choose>
|
---|
| 75 | <xsl:when test="$x = ''">
|
---|
| 76 | uiItem '<xsl:value-of select="$name"/>' not defined.
|
---|
| 77 | </xsl:when>
|
---|
| 78 | <xsl:otherwise>
|
---|
| 79 | <xsl:value-of select="$x"/>
|
---|
| 80 | </xsl:otherwise>
|
---|
| 81 | </xsl:choose>
|
---|
| 82 |
|
---|
| 83 | </xsl:template>
|
---|
| 84 |
|
---|
| 85 |
|
---|
| 86 | </xsl:stylesheet>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.