Changeset 25:0d84061c9878
- Timestamp:
- 07/06/11 23:14:15 (14 years ago)
- Author:
- František Kučera <franta-hg@…>
- Branch:
- default
- Message:
-
Seznam všech stránek formou odstavců.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r24
|
r25
|
|
| 56 | 56 | } |
| 57 | 57 | |
| 58 | | table.seznamStranek { |
| 59 | | border: 1px solid grey; |
| 60 | | border-collapse: collapse; |
| 61 | | } |
| 62 | | |
| 63 | | table.seznamStranek td { |
| 64 | | border: 1px solid grey; |
| 65 | | padding: 4px; |
| 66 | | } |
| 67 | | |
| 68 | | table.seznamStranek thead { |
| 69 | | background-color: silver; |
| 70 | | } |
-
|
r24
|
r25
|
|
| 13 | 13 | <stránka |
| 14 | 14 | xmlns="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/strana" |
| 15 | | xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro"> |
| | 15 | xmlns:m="https://trac.frantovo.cz/xml-web-generator/wiki/xmlns/makro"> |
| | 16 | <skrytá>ano</skrytá> |
| 16 | 17 | <nadpis>Seznam všech stránek</nadpis> |
| 17 | 18 | <perex>Všechny stránky tohoto webu.</perex> |
| 18 | | <text xmlns="http://www.w3.org/1999/xhtml"> |
| 19 | | <table class="seznamStranek"> |
| 20 | | <thead> |
| 21 | | <tr> |
| 22 | | <td>Název</td> |
| 23 | | <td>Vytvořeno</td> |
| 24 | | </tr> |
| 25 | | </thead> |
| 26 | | <tbody> |
| 27 | | <xsl:apply-templates select="a:feed/a:entry"/> |
| 28 | | </tbody> |
| 29 | | </table> |
| | 19 | <text xmlns="http://www.w3.org/1999/xhtml"> |
| | 20 | <xsl:apply-templates select="a:feed/a:entry"/> |
| 30 | 21 | </text> |
| 31 | 22 | </stránka> |
| … |
… |
|
| 33 | 24 | |
| 34 | 25 | <xsl:template match="a:entry"> |
| 35 | | <tr> |
| 36 | | <td><a href="{a:link/@href}"><xsl:value-of select="a:title"/></a></td> |
| 37 | | <td><xsl:value-of select="a:updated"/></td> |
| 38 | | </tr> |
| | 26 | <p style="seznamStranek"> |
| | 27 | <xsl:variable name="základníUrl" select="//a:feed/a:link[not(@rel)]/@href"/> |
| | 28 | <a href="{replace(a:link/@href, $základníUrl, '')}"><xsl:value-of select="a:title"/></a> |
| | 29 | – |
| | 30 | <xsl:value-of select="a:summary"/> |
| | 31 | (<xsl:value-of select="format-dateTime(a:updated, |
| | 32 | '[D01].[M01]. [Y0001] [H01]:[m01]')"/>) |
| | 33 | </p> |
| 39 | 34 | </xsl:template> |
| 40 | 35 | |