Changeset 3765
- Timestamp:
- 2003-02-25T15:14:27+13:00 (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/interfaces/default/transform/basicquery.xsl
r3752 r3765 106 106 <!-- If query term information is available, display it --> 107 107 <br/> 108 <xsl:if test="count(content/ metadataList/metadata[@type='term']) > 0">108 <xsl:if test="count(content/termList/term) > 0"> 109 109 <small> 110 110 Word count: 111 <xsl:for-each select="content/ metadataList/metadata[@type='term']">111 <xsl:for-each select="content/termList/term"> 112 112 <xsl:if test="position() > 1">, </xsl:if> 113 <xsl:value-of select="@name"/>: <xsl:value-of select="@ value"/>113 <xsl:value-of select="@name"/>: <xsl:value-of select="@count"/> 114 114 </xsl:for-each> 115 115 </small><br/> … … 117 117 118 118 <!-- If the number of matching documents is known, display it --> 119 <xsl:variable name="num MatchingDocs" select="content/metadataList/metadata[@name='numMatchingDocs']"/>120 <xsl:if test="$num MatchingDocs">119 <xsl:variable name="numDocsMatched" select="metadataList/metadata[@name='numDocsMatched']/@value"/> 120 <xsl:if test="$numDocsMatched"> 121 121 <xsl:choose> 122 <xsl:when test="$num MatchingDocs='0'">122 <xsl:when test="$numDocsMatched='0'"> 123 123 No documents matched the query. 124 124 </xsl:when> 125 <xsl:when test="$num MatchingDocs='1'">125 <xsl:when test="$numDocsMatched='1'"> 126 126 1 document matched the query. 127 127 </xsl:when> 128 128 <xsl:otherwise> 129 <xsl:value-of select="$num MatchingDocs"/> documents matched the query.129 <xsl:value-of select="$numDocsMatched"/> documents matched the query. 130 130 </xsl:otherwise> 131 131 </xsl:choose>
Note:
See TracChangeset
for help on using the changeset viewer.