Revision 98
Added by Matt Jones over 24 years ago
resultset.xsl | ||
---|---|---|
41 | 41 |
<table width="100%"> |
42 | 42 |
<tr class="rowodd"> |
43 | 43 |
<th> </th> |
44 |
<th><xsl:text>Document ID</xsl:text></th> |
|
44 |
<th><xsl:text>Document</xsl:text></th> |
|
45 |
<th><xsl:text>Document Type</xsl:text></th> |
|
45 | 46 |
<th><xsl:text>Title</xsl:text></th> |
46 | 47 |
</tr> |
47 | 48 |
|
48 |
<xsl:for-each select="resultset/docid">
|
|
49 |
<xsl:for-each select="resultset/document">
|
|
49 | 50 |
<tr valign="top"> |
50 | 51 |
<xsl:attribute name="class"> |
51 | 52 |
<xsl:choose> |
... | ... | |
57 | 58 |
<td> |
58 | 59 |
<input type="radio" name="docid"> |
59 | 60 |
<xsl:attribute name="value"> |
60 |
<xsl:value-of select="."/> |
|
61 |
<xsl:value-of select="./docid"/>
|
|
61 | 62 |
</xsl:attribute> |
62 | 63 |
</input> |
63 | 64 |
<input type="submit" value="Display"/> |
64 | 65 |
<!-- |
65 | 66 |
<a> |
66 | 67 |
<xsl:attribute name="href"> |
67 |
/servlets/MetaCatServlet?action=getdocument&docid=<xsl:value-of select="."/> |
|
68 |
/servlets/MetaCatServlet?action=getdocument&docid=<xsl:value-of select="./docid"/>
|
|
68 | 69 |
</xsl:attribute> |
69 |
<xsl:text>Document </xsl:text><xsl:value-of select="."/> |
|
70 |
<xsl:text>Document </xsl:text><xsl:value-of select="./docid"/>
|
|
70 | 71 |
</a> |
71 | 72 |
--> |
72 | 73 |
</td> |
73 | 74 |
<td> |
74 |
<xsl:text>Document </xsl:text><xsl:value-of select="."/> |
|
75 |
<xsl:value-of select="./docname"/> |
|
76 |
<xsl:text> </xsl:text> |
|
77 |
<xsl:value-of select="./docid"/> |
|
75 | 78 |
</td> |
76 |
<td>Fake title</td> |
|
79 |
<td><xsl:value-of select="./doctype"/></td> |
|
80 |
<td><xsl:value-of select="./doctitle"/></td> |
|
77 | 81 |
</tr> |
78 | 82 |
</xsl:for-each> |
79 | 83 |
</table> |
Also available in: Unified diff
improved query result handling