| 1 |
<?xml version='1.0'?> |
| 2 |
|
| 3 |
<!-- |
| 4 |
<!DOCTYPE xxx [ |
| 5 |
<!ENTITY % nbsp "<![CDATA[ ]]>" > |
| 6 |
]> |
| 7 |
--> |
| 8 |
|
| 9 |
<xsl:stylesheet version="1.0" |
| 10 |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" |
| 11 |
xmlns:pod="http://axkit.org/ns/2000/pod2xml" |
| 12 |
xmlns="http://www.w3.org/TR/xhtml1/strict"> |
| 13 |
|
| 14 |
|
| 15 |
<xsl:output |
| 16 |
method="html" |
| 17 |
indent="no" |
| 18 |
encoding="iso-8859-1" |
| 19 |
/> |
| 20 |
|
| 21 |
<xsl:variable name="imagepath">/eg/images</xsl:variable> |
| 22 |
<xsl:variable name="newswidth">152</xsl:variable> |
| 23 |
<xsl:param name="numnews">10</xsl:param> |
| 24 |
|
| 25 |
<xsl:template match="/"> |
| 26 |
<html> |
| 27 |
<head> |
| 28 |
<title><xsl:value-of select="pod/head/title"/></title> |
| 29 |
</head> |
| 30 |
<body> |
| 31 |
<xsl:apply-templates select="/pod/sect1"/> |
| 32 |
|
| 33 |
<xsl:if test="$numnews < 9999"> |
| 34 |
<a href="news/NEWS.xml?numnews=9999">more...</a> |
| 35 |
</xsl:if> |
| 36 |
</body> |
| 37 |
</html> |
| 38 |
</xsl:template> |
| 39 |
|
| 40 |
|
| 41 |
<xsl:template match="sect1"> |
| 42 |
<table width="{$newswidth}" border="0" cellspacing="0" cellpadding="0"> |
| 43 |
<tr> |
| 44 |
<td><img src="{$imagepath}/h_news.gif" width="{$newswidth}" height="19"/></td> |
| 45 |
</tr> |
| 46 |
<tr> |
| 47 |
<td><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text></td> |
| 48 |
</tr> |
| 49 |
<tr> |
| 50 |
<td> |
| 51 |
<xsl:apply-templates select="item[position() < $numnews]"/> |
| 52 |
</td> |
| 53 |
</tr> |
| 54 |
</table> |
| 55 |
</xsl:template> |
| 56 |
|
| 57 |
|
| 58 |
|
| 59 |
<xsl:template match="item"> |
| 60 |
<table width="100%" border="0" cellspacing="0" cellpadding="0"> |
| 61 |
<tr> |
| 62 |
<td bgcolor="#327EA7"><font size="1" face="Verdana, Arial, Helvetica, sans-serif"><b> |
| 63 |
<font color="#FFFFFF"><xsl:text disable-output-escaping="yes">&nbsp;</xsl:text> |
| 64 |
<xsl:value-of select="itemtext"/> |
| 65 |
</font></b></font></td> |
| 66 |
</tr> |
| 67 |
<tr> |
| 68 |
<td bgcolor="#C2D9E5"><img src="{$imagepath}/linie-news.gif" width="{$newswidth}" height="4"/></td> |
| 69 |
</tr> |
| 70 |
<tr> |
| 71 |
<td bgcolor="#D2E9F5"> |
| 72 |
<table width="100%" border="0" cellspacing="0" cellpadding="3"> |
| 73 |
<tr> |
| 74 |
<td><font size="1" face="Verdana, Arial, Helvetica, sans-serif"> |
| 75 |
<xsl:apply-templates/> |
| 76 |
</font></td> |
| 77 |
</tr> |
| 78 |
</table> |
| 79 |
</td> |
| 80 |
</tr> |
| 81 |
</table> |
| 82 |
</xsl:template> |
| 83 |
|
| 84 |
<xsl:template match="para"> |
| 85 |
<xsl:apply-templates/> |
| 86 |
</xsl:template> |
| 87 |
|
| 88 |
<xsl:template match="xlink"> |
| 89 |
<xsl:element name="a"> |
| 90 |
<xsl:attribute name="href"> |
| 91 |
<xsl:value-of select="@uri"/> |
| 92 |
</xsl:attribute> |
| 93 |
<xsl:value-of select="."/> |
| 94 |
</xsl:element> |
| 95 |
</xsl:template> |
| 96 |
|
| 97 |
</xsl:stylesheet> |