diff options
author | robbat2 <robbat2> | 2009-12-03 09:11:10 +0000 |
---|---|---|
committer | robbat2 <robbat2> | 2009-12-03 09:11:10 +0000 |
commit | 8cca83cab82b85992951027996a6a7a03943bf95 (patch) | |
tree | 1983143f2b42893fd9d2c22664bf451b10be6161 | |
parent | #291062 Allow several <pgpkey> element in userinfo.xml (diff) | |
download | www-redesign-8cca83cab82b85992951027996a6a7a03943bf95.tar.gz www-redesign-8cca83cab82b85992951027996a6a7a03943bf95.tar.bz2 www-redesign-8cca83cab82b85992951027996a6a7a03943bf95.zip |
Bug #293434: Give the <mirrorlist> element a new argument of the path to the source file to use, so we can reuse some of the template for a new rsync mirrors page.
-rw-r--r-- | xml/htdocs/dtd/guide.dtd | 4 | ||||
-rw-r--r-- | xml/htdocs/xsl/mirrors.xsl | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/xml/htdocs/dtd/guide.dtd b/xml/htdocs/dtd/guide.dtd index 118b0c20..896a0fc7 100644 --- a/xml/htdocs/dtd/guide.dtd +++ b/xml/htdocs/dtd/guide.dtd @@ -37,5 +37,7 @@ <!ELEMENT glsaindex EMPTY> <!ELEMENT glsa-latest EMPTY> + <!ELEMENT mirrorlist EMPTY> -<!ATTLIST mirrorlist select (full|partial) 'full'> +<!ATTLIST mirrorlist select (full|partial) 'full'> +<!ATTLIST mirrorlist src CDATA '/main/en/mirrors3.xml'> diff --git a/xml/htdocs/xsl/mirrors.xsl b/xml/htdocs/xsl/mirrors.xsl index 82de41aa..fb6d60b2 100644 --- a/xml/htdocs/xsl/mirrors.xsl +++ b/xml/htdocs/xsl/mirrors.xsl @@ -35,9 +35,11 @@ <xsl:template match="/mainpage//mirrorlist"> - <!-- Generate list of mirrors, when (inside a mainpage && @select='full') - || (inside a body && @select='partial') --> - <xsl:variable name="the-mirrors" select="document('/main/en/mirrors3.xml')"/> + <!-- Given a XML file (@src) containing mirrors grouped by country, + generate list of mirrors, when (inside a mainpage && @select='full') + || (inside a body && @select='partial') + --> + <xsl:variable name="the-mirrors" select="document(@src)"/> <xsl:choose> <xsl:when test="name(..)='mainpage' and @select='full'"> |