diff options
-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'"> |