source: branches/Greenstone3/gsdl3/transform/collect_about.xsl@ 3223

Last change on this file since 3223 was 3222, checked in by kjdon, 22 years ago

Initial revision

  • Property svn:keywords set to Author Date Id Revision
File size: 919 bytes
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<xsl:stylesheet version="1.0"
3xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
4
5<xsl:output method="text"/>
6
7<xsl:template match="//message/response/collection">
8<xsl:value-of select="@name"/>: <xsl:value-of select="metadataList/metadata[@name='Title']"/><xsl:text>
9</xsl:text>
10<xsl:value-of select="metadataList/metadata[@name='Description']"/>
11<xsl:text>
12</xsl:text>
13The collection has <xsl:value-of select="metadataList/metadata[@name='numDocs']"/> documents.
14Metadata available for this collection are:
15<xsl:for-each select="metadataList/metadata[@name='Metadata']/element">
16<xsl:value-of select="@name"/>,
17</xsl:for-each>
18<xsl:apply-templates select="serviceList"/>
19</xsl:template>
20
21
22<xsl:template match="serviceList">
23the Services available are:
24<xsl:for-each select="service">
25***<xsl:value-of select="@name"/>
26</xsl:for-each>
27</xsl:template>
28
29
30</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.