summaryrefslogtreecommitdiff
path: root/gentoobrowse/package.xslt
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-11-27 02:05:31 +0000
committerrandomdan <randomdan@localhost>2010-11-27 02:05:31 +0000
commit59e8df604aa95fa1a3be2c3bf569f5a41b3db4bf (patch)
tree4452f56b7f8f4e10063d1fbc8aac3e57d049f942 /gentoobrowse/package.xslt
parentAdd most popular tracked packages page (diff)
downloadgentoobrowse-59e8df604aa95fa1a3be2c3bf569f5a41b3db4bf.tar.bz2
gentoobrowse-59e8df604aa95fa1a3be2c3bf569f5a41b3db4bf.tar.xz
gentoobrowse-59e8df604aa95fa1a3be2c3bf569f5a41b3db4bf.zip
Switch to XHTML Strict
Diffstat (limited to 'gentoobrowse/package.xslt')
-rw-r--r--gentoobrowse/package.xslt48
1 files changed, 25 insertions, 23 deletions
diff --git a/gentoobrowse/package.xslt b/gentoobrowse/package.xslt
index 37bf811..a4f03fd 100644
--- a/gentoobrowse/package.xslt
+++ b/gentoobrowse/package.xslt
@@ -1,15 +1,27 @@
<?xml version="1.0" encoding="UTF-8" ?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"
xmlns:project2="http://project2.randomdan.homeip.net" exclude-result-prefixes="project2" >
<xsl:import href="base.xslt" />
- <xsl:output encoding="utf-8" method="html" media-type="text/html" indent="yes"
- doctype-system="http://www.w3.org/TR/html4/loose.dtd"
- doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" />
+ <xsl:output encoding="utf-8" method="xml" media-type="text/html" indent="yes"
+ doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
+ doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" />
<xsl:template name="head">
<title><xsl:value-of select="/gentoo/summary/package/pkgname" /> (in <xsl:value-of select="/gentoo/summary/package/catname" />) Package Details - Gentoo Browse</title>
<meta name="description">
<xsl:attribute name="content"><xsl:value-of select="/gentoo/summary/package/description" /></xsl:attribute>
</meta>
+ <script type="text/javascript">
+ function showTab(name)
+ {
+ var children = document.getElementById('tabcontainer').childNodes;
+ for(var c = 0; c != children.length; c++) {
+ if (children[c].className == 'tabvisible') {
+ children[c].className = 'tabhidden';
+ }
+ }
+ document.getElementById(name).className = 'tabvisible';
+ }
+ </script>
</xsl:template>
<xsl:template name="content">
<xsl:apply-templates select="/gentoo/summary/package" />
@@ -55,18 +67,6 @@
</li>
</xsl:template>
<xsl:template match="/gentoo/summary/package">
- <script language="javascript" type="text/javascript">
- function showTab(name)
- {
- var children = document.getElementById('tabcontainer').childNodes;
- for(var c = 0; c &lt; children.length; c++) {
- if (children[c].className == 'tabvisible') {
- children[c].className = 'tabhidden';
- }
- }
- document.getElementById(name).className = 'tabvisible';
- }
- </script>
<xsl:if test="count(/gentoo/project2:session/project2:var[@name='loggedInUserID']) != 0">
<xsl:if test="count(tracks/track) > 0">
<form method="post" class="tracker">
@@ -134,7 +134,7 @@
<xsl:apply-templates select="packageBugs" />
<xsl:apply-templates select="maskdetails" />
<xsl:apply-templates select="changelog" />
- <div style="clear; both" />
+ <div style="clear: both" />
</div>
</xsl:template>
@@ -142,7 +142,7 @@
<xsl:template match="/gentoo/summary/package/packageUrls">
<div class="urls">
<xsl:for-each select="url">
- <a target="_blank">
+ <a>
<xsl:attribute name="href">
<xsl:value-of select="url" />
</xsl:attribute>
@@ -159,7 +159,7 @@
<ul class="tabhidden" id="bugs">
<xsl:for-each select="bug">
<li>
- <a target="_blank">
+ <a>
<xsl:attribute name="href">http://bugs.gentoo.org/<xsl:value-of select="bugid" /></xsl:attribute>
<xsl:attribute name="title"><xsl:value-of select="summary" /></xsl:attribute>
<xsl:value-of select="bugid" />
@@ -177,10 +177,12 @@
<ul class="tabhidden" id="changelog">
<xsl:for-each select="entry">
<li><xsl:value-of select="substring-before(date, ' ')" /></li>
- <ul>
- <li><xsl:value-of select="person" /> &lt;<xsl:value-of select="email" />&gt;</li>
- <li><xsl:value-of select="comment" /></li>
- </ul>
+ <li>
+ <ul>
+ <li><xsl:value-of select="person" /> &lt;<xsl:value-of select="email" />&gt;</li>
+ <li><xsl:value-of select="comment" /></li>
+ </ul>
+ </li>
</xsl:for-each>
</ul>
</xsl:if>