summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gentoobrowse/base.xslt8
-rw-r--r--gentoobrowse/categories.xslt8
-rw-r--r--gentoobrowse/category.xslt8
-rw-r--r--gentoobrowse/form.xslt8
-rw-r--r--gentoobrowse/home.xslt8
-rw-r--r--gentoobrowse/login.xslt8
-rw-r--r--gentoobrowse/package.xslt48
-rw-r--r--gentoobrowse/popular.xslt8
-rw-r--r--gentoobrowse/present/accountHome.xml2
-rw-r--r--gentoobrowse/present/confirm.xml2
-rw-r--r--gentoobrowse/present/login.xml6
-rw-r--r--gentoobrowse/search.xslt12
12 files changed, 67 insertions, 59 deletions
diff --git a/gentoobrowse/base.xslt b/gentoobrowse/base.xslt
index 0a7efdc..e516454 100644
--- a/gentoobrowse/base.xslt
+++ b/gentoobrowse/base.xslt
@@ -1,9 +1,9 @@
<?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: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 match="/gentoo">
<html>
<head>
diff --git a/gentoobrowse/categories.xslt b/gentoobrowse/categories.xslt
index 1961869..6987131 100644
--- a/gentoobrowse/categories.xslt
+++ b/gentoobrowse/categories.xslt
@@ -1,10 +1,10 @@
<?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>Category List - Gentoo Browse</title>
<meta name="description" content="Complete list of Gentoo package categories" />
diff --git a/gentoobrowse/category.xslt b/gentoobrowse/category.xslt
index 553ec54..5579ae2 100644
--- a/gentoobrowse/category.xslt
+++ b/gentoobrowse/category.xslt
@@ -1,10 +1,10 @@
<?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/project2:uriElems/project2:uriElem[2]" /> Package List - Gentoo Browse</title>
<meta name="description">
diff --git a/gentoobrowse/form.xslt b/gentoobrowse/form.xslt
index e24c8ae..4fd35e2 100644
--- a/gentoobrowse/form.xslt
+++ b/gentoobrowse/form.xslt
@@ -1,10 +1,12 @@
<?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"
xmlns:dyn="http://exslt.org/dynamic" extension-element-prefixes="dyn">
- <xsl:import href="base.xslt" />
+ <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 match="para">
- <xsl:copy-of select="." />
+ <xsl:copy-of select="*" />
</xsl:template>
<xsl:template match="form">
<form class="generalForm">
diff --git a/gentoobrowse/home.xslt b/gentoobrowse/home.xslt
index ea25942..848a487 100644
--- a/gentoobrowse/home.xslt
+++ b/gentoobrowse/home.xslt
@@ -1,9 +1,9 @@
<?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">
<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>Newest ebuilds - Gentoo Browse</title>
<meta name="google-site-verification" content="f2uqzTiSxj7gbzzRzf4nOCB3WfQuWV9Knfjb9ju69jU" />
diff --git a/gentoobrowse/login.xslt b/gentoobrowse/login.xslt
index 45ecea2..8f9d4d1 100644
--- a/gentoobrowse/login.xslt
+++ b/gentoobrowse/login.xslt
@@ -1,12 +1,12 @@
<?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"
xmlns:dyn="http://exslt.org/dynamic" extension-element-prefixes="dyn">
<xsl:import href="base.xslt" />
<xsl:import href="form.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="content">
<xsl:apply-templates select="form|para|trackedebuilds" />
</xsl:template>
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>
diff --git a/gentoobrowse/popular.xslt b/gentoobrowse/popular.xslt
index c65b6fa..d11f432 100644
--- a/gentoobrowse/popular.xslt
+++ b/gentoobrowse/popular.xslt
@@ -1,10 +1,10 @@
<?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>Popular Package List - Gentoo Browse</title>
<meta name="description">
diff --git a/gentoobrowse/present/accountHome.xml b/gentoobrowse/present/accountHome.xml
index 8628d8c..6ceda4c 100644
--- a/gentoobrowse/present/accountHome.xml
+++ b/gentoobrowse/present/accountHome.xml
@@ -4,7 +4,7 @@
<xi:include href="../checks/loggedIn.xml" />
<project2:rawview>
<form caption="Logout" submit="Logout" action="/dologout" method="post" />
- <para>View my <a href="/accountTracked">tracked packages</a>.</para>
+ <para><p xmlns="http://www.w3.org/1999/xhtml">View my <a href="/accountTracked">tracked packages</a>.</p></para>
</project2:rawview>
</view>
diff --git a/gentoobrowse/present/confirm.xml b/gentoobrowse/present/confirm.xml
index 5784bdf..cdadf68 100644
--- a/gentoobrowse/present/confirm.xml
+++ b/gentoobrowse/present/confirm.xml
@@ -2,7 +2,7 @@
<view name="confirm" root="gentoo" style="login.xslt" xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:project2="http://project2.randomdan.homeip.net">
<project2:rawview>
- <para>Please enter the confirmation code from your welcome email.</para>
+ <para><p xmlns="http://www.w3.org/1999/xhtml">Please enter the confirmation code from your welcome email.</p></para>
<form caption="Confirmation" submit="Confirm" action="/doconfirm" method="post">
<input type="text" name="verifyguid" caption="Confirmation code"
xslvalue="/gentoo/project2:params/project2:param[@name='verifyguid']" />
diff --git a/gentoobrowse/present/login.xml b/gentoobrowse/present/login.xml
index 6b86881..1bab32a 100644
--- a/gentoobrowse/present/login.xml
+++ b/gentoobrowse/present/login.xml
@@ -8,7 +8,11 @@
<input type="password" name="password" caption="Password"
xslvalue="/gentoo/project2:params/project2:param[@name='password']" />
</form>
- <para>I don't have an account... so I'll <a href="/signup">signup...</a></para>
+ <para>
+ <p xmlns="http://www.w3.org/1999/xhtml">
+ I don't have an account... so I'll <a href="/signup">signup...</a>
+ </p>
+ </para>
</project2:rawview>
</view>
diff --git a/gentoobrowse/search.xslt b/gentoobrowse/search.xslt
index 4ba1b90..362a827 100644
--- a/gentoobrowse/search.xslt
+++ b/gentoobrowse/search.xslt
@@ -1,11 +1,11 @@
<?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:import href="form.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:import href="base.xslt" />
+ <xsl:import href="form.xslt" />
+ <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="content">
<xsl:apply-templates select="form|para" />
<xsl:apply-templates select="/gentoo/searchResults" />