From: Geert J. <gj...@us...> - 2004-10-07 16:40:42
|
Update of /cvsroot/woc/woc/bin/news In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26493/bin/news Modified Files: news.xsl news_byid.xsl news_latest.xsl rss.xsl Log Message: // in xsl:template match attribute is not useful here Index: news.xsl =================================================================== RCS file: /cvsroot/woc/woc/bin/news/news.xsl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** news.xsl 7 Oct 2004 13:00:14 -0000 1.3 --- news.xsl 7 Oct 2004 16:40:13 -0000 1.4 *************** *** 9,13 **** </xsl:template> ! <xsl:template match="//DATE"> <tr><td border="1" bgcolor="navy"><font color="white"><b> <xsl:apply-templates/> --- 9,13 ---- </xsl:template> ! <xsl:template match="DATE"> <tr><td border="1" bgcolor="navy"><font color="white"><b> <xsl:apply-templates/> *************** *** 15,25 **** </xsl:template> ! <xsl:template match="//TITLE" /> ! <xsl:template match="//ITEM"> <xsl:variable name="pos" select="position()"/> <xsl:choose> <xsl:when test="$pos=2"> ! <tr><td border="1" bgcolor="navy"><font color="white"><b>Laatste verandering</b></font></td></tr> <xsl:apply-templates select=".//p"/> </xsl:when> --- 15,25 ---- </xsl:template> ! <xsl:template match="TITLE" /> ! <xsl:template match="ITEM"> <xsl:variable name="pos" select="position()"/> <xsl:choose> <xsl:when test="$pos=2"> ! <tr><td border="1" bgcolor="navy"><font color="white"><b>Laatste verandering</b></font></td></tr> <xsl:apply-templates select=".//p"/> </xsl:when> *************** *** 31,40 **** </xsl:template> ! <xsl:template match="//a"> <xsl:choose> <xsl:when test="./@target='_top'"> <a href="{@href}" target="{@target}"> <xsl:apply-templates/> ! </a> </xsl:when> <xsl:otherwise> --- 31,40 ---- </xsl:template> ! <xsl:template match="a"> <xsl:choose> <xsl:when test="./@target='_top'"> <a href="{@href}" target="{@target}"> <xsl:apply-templates/> ! </a> </xsl:when> <xsl:otherwise> *************** *** 46,54 **** </xsl:template> ! <xsl:template match="//img"> <img src="{@src}" width="{@width}" border="{@border}" alt="{@alt}"/> </xsl:template> ! <xsl:template match="//p"> <tr><td><p align="{@align}"> <xsl:apply-templates/> --- 46,54 ---- </xsl:template> ! <xsl:template match="img"> <img src="{@src}" width="{@width}" border="{@border}" alt="{@alt}"/> </xsl:template> ! <xsl:template match="p"> <tr><td><p align="{@align}"> <xsl:apply-templates/> *************** *** 56,60 **** </xsl:template> ! <xsl:template match="//br"> <br /> </xsl:template> --- 56,60 ---- </xsl:template> ! <xsl:template match="br"> <br /> </xsl:template> Index: news_byid.xsl =================================================================== RCS file: /cvsroot/woc/woc/bin/news/news_byid.xsl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** news_byid.xsl 7 Oct 2004 12:57:53 -0000 1.1 --- news_byid.xsl 7 Oct 2004 16:40:13 -0000 1.2 *************** *** 38,42 **** </xsl:template> ! <xsl:template match="//ITEM"> <tr><td border="1" bgcolor="navy"><font color="white"> <b><xsl:value-of select="./TITLE"/> (<xsl:value-of select="./DATE"/>)</b> --- 38,42 ---- </xsl:template> ! <xsl:template match="ITEM"> <tr><td border="1" bgcolor="navy"><font color="white"> <b><xsl:value-of select="./TITLE"/> (<xsl:value-of select="./DATE"/>)</b> *************** *** 45,49 **** </xsl:template> ! <xsl:template match="//a"> <xsl:choose> <xsl:when test="@target"> --- 45,49 ---- </xsl:template> ! <xsl:template match="a"> <xsl:choose> <xsl:when test="@target"> *************** *** 60,68 **** </xsl:template> ! <xsl:template match="//img"> <img src="{@src}" width="{@width}" border="{@border}" alt="{@alt}"/> </xsl:template> ! <xsl:template match="//p"> <tr><td><p align="{@align}"> <xsl:apply-templates/> --- 60,68 ---- </xsl:template> ! <xsl:template match="img"> <img src="{@src}" width="{@width}" border="{@border}" alt="{@alt}"/> </xsl:template> ! <xsl:template match="p"> <tr><td><p align="{@align}"> <xsl:apply-templates/> *************** *** 70,74 **** </xsl:template> ! <xsl:template match="//br"> <br /> </xsl:template> --- 70,74 ---- </xsl:template> ! <xsl:template match="br"> <br /> </xsl:template> Index: news_latest.xsl =================================================================== RCS file: /cvsroot/woc/woc/bin/news/news_latest.xsl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -r1.3 -r1.4 *** news_latest.xsl 7 Oct 2004 13:00:14 -0000 1.3 --- news_latest.xsl 7 Oct 2004 16:40:13 -0000 1.4 *************** *** 9,13 **** </xsl:template> ! <xsl:template match="//DATE"> <tr><td border="1" bgcolor="navy"><font color="white"><b> <xsl:apply-templates/> --- 9,13 ---- </xsl:template> ! <xsl:template match="DATE"> <tr><td border="1" bgcolor="navy"><font color="white"><b> <xsl:apply-templates/> *************** *** 15,25 **** </xsl:template> ! <xsl:template match="//TITLE" /> ! <xsl:template match="//ITEM"> <xsl:variable name="pos" select="position()"/> <xsl:choose> <xsl:when test="$pos=2"> ! <tr><td border="1" bgcolor="navy"><font color="white"><b>Laatste verandering (<xsl:value-of select="DATE"/>)</b></font></td></tr> <xsl:apply-templates select="child::p"/> </xsl:when> --- 15,25 ---- </xsl:template> ! <xsl:template match="TITLE" /> ! <xsl:template match="ITEM"> <xsl:variable name="pos" select="position()"/> <xsl:choose> <xsl:when test="$pos=2"> ! <tr><td border="1" bgcolor="navy"><font color="white"><b>Laatste verandering (<xsl:value-of select="DATE"/>)</b></font></td></tr> <xsl:apply-templates select="child::p"/> </xsl:when> *************** *** 31,35 **** </xsl:template> ! <xsl:template match="//a"> <xsl:choose> <xsl:when test="@target"> --- 31,35 ---- </xsl:template> ! <xsl:template match="a"> <xsl:choose> <xsl:when test="@target"> *************** *** 46,54 **** </xsl:template> ! <xsl:template match="//img"> <img src="{@src}" width="{@width}" border="{@border}" alt="{@alt}"/> </xsl:template> ! <xsl:template match="//p"> <tr><td><p align="{@align}"> <xsl:apply-templates/> --- 46,54 ---- </xsl:template> ! <xsl:template match="img"> <img src="{@src}" width="{@width}" border="{@border}" alt="{@alt}"/> </xsl:template> ! <xsl:template match="p"> <tr><td><p align="{@align}"> <xsl:apply-templates/> *************** *** 56,60 **** </xsl:template> ! <xsl:template match="//br"> <br /> </xsl:template> --- 56,60 ---- </xsl:template> ! <xsl:template match="br"> <br /> </xsl:template> Index: rss.xsl =================================================================== RCS file: /cvsroot/woc/woc/bin/news/rss.xsl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -r1.2 -r1.3 *** rss.xsl 7 Oct 2004 13:02:13 -0000 1.2 --- rss.xsl 7 Oct 2004 16:40:13 -0000 1.3 *************** *** 24,28 **** </xsl:template> ! <xsl:template match="//TEKST"> <description> <xsl:apply-templates/> --- 24,28 ---- </xsl:template> ! <xsl:template match="TEKST"> <description> <xsl:apply-templates/> *************** *** 30,36 **** </xsl:template> ! <xsl:template match="//DATUM" /> ! <xsl:template match="//ITEM"> <xsl:variable name="pos" select="position()"/> <xsl:if test="21>$pos"> --- 30,36 ---- </xsl:template> ! <xsl:template match="DATUM" /> ! <xsl:template match="ITEM"> <xsl:variable name="pos" select="position()"/> <xsl:if test="21>$pos"> *************** *** 49,53 **** <a href="{@href}" target="{@target}" xmlns="http://www.w3.org/1999/xhtml"> <xsl:apply-templates/> ! </a> </xsl:when> <xsl:otherwise> --- 49,53 ---- <a href="{@href}" target="{@target}" xmlns="http://www.w3.org/1999/xhtml"> <xsl:apply-templates/> ! </a> </xsl:when> <xsl:otherwise> |