library-web r575 - in trunk: . data/xslt
- From: fpeters svn gnome org
- To: svn-commits-list gnome org
- Subject: library-web r575 - in trunk: . data/xslt
- Date: Sat, 28 Feb 2009 16:01:50 +0000 (UTC)
Author: fpeters
Date: Sat Feb 28 16:01:49 2009
New Revision: 575
URL: http://svn.gnome.org/viewvc/library-web?rev=575&view=rev
Log:
* data/xslt/html2html.xsl: fixed handling of latest GTK+ tarball
(2.15.4) that ships with library.gnome.org links, instead of relative
links. (closes: #573394)
Modified:
trunk/ChangeLog
trunk/data/xslt/html2html.xsl
Modified: trunk/data/xslt/html2html.xsl
==============================================================================
--- trunk/data/xslt/html2html.xsl (original)
+++ trunk/data/xslt/html2html.xsl Sat Feb 28 16:01:49 2009
@@ -81,26 +81,75 @@
<xsl:template match="@href" mode="gtk-doc">
<xsl:attribute name="href">
<xsl:choose>
- <xsl:when test="contains(., '/gobject/')">
- <xsl:value-of select="concat('../../gobject/stable/', substring-after(., '/gobject/'))"/>
- </xsl:when>
- <xsl:when test="contains(., '/glib/')">
- <xsl:value-of select="concat('../../glib/stable/', substring-after(., '/glib/'))"/>
- </xsl:when>
- <xsl:when test="contains(., '/gtk/')">
- <xsl:value-of select="concat('../../gtk/stable/', substring-after(., '/gtk/'))"/>
- </xsl:when>
- <xsl:when test="contains(., '/gdk/')">
- <xsl:value-of select="concat('../../gdk/stable/', substring-after(., '/gdk/'))"/>
- </xsl:when>
- <xsl:when test="contains(., '/pango/')">
- <xsl:value-of select="concat('../../pango/stable/', substring-after(., '/pango/'))"/>
- </xsl:when>
- <xsl:when test="contains(., '/gdk-pixbuf/')">
- <xsl:value-of select="concat('../../gdk-pixbuf/stable/', substring-after(., '/gdk-pixbuf/'))"/>
- </xsl:when>
- <xsl:when test="contains(., '/gio/')">
- <xsl:value-of select="concat('../../gio/stable/', substring-after(., '/gio/'))"/>
+ <xsl:when test="starts-with(., 'http://library.gnome.org/devel/') or not(starts-with(., 'http://'))">
+ <xsl:choose>
+ <xsl:when test="contains(., '/gobject/stable/')">
+ <xsl:value-of select="concat('../../gobject/stable/', substring-after(., '/gobject/stable/'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/gobject/unstable/')">
+ <xsl:value-of select="concat('../../gobject/unstable/', substring-after(., '/gobject/unstable/'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/gobject/')">
+ <xsl:value-of select="concat('../../gobject/stable/', substring-after(., '/gobject/'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/glib/stable/')">
+ <xsl:value-of select="concat('../../glib/stable/', substring-after(., '/glib/stable/'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/glib/unstable/')">
+ <xsl:value-of select="concat('../../glib/unstable/', substring-after(., '/glib/unstable/'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/glib/')">
+ <xsl:value-of select="concat('../../glib/stable/', substring-after(., '/glib/'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/gtk/stable/')">
+ <xsl:value-of select="concat('../../gtk/stable/', substring-after(., '/gtk/stable/'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/gtk/unstable/')">
+ <xsl:value-of select="concat('../../gtk/unstable/', substring-after(., '/gtk/unstable/'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/gtk/')">
+ <xsl:value-of select="concat('../../gtk/stable/', substring-after(., '/gtk/'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/gdk/stable/')">
+ <xsl:value-of select="concat('../../gdk/stable/', substring-after(., '/gdk/stable/'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/gdk/unstable/')">
+ <xsl:value-of select="concat('../../gdk/unstable/', substring-after(., '/gdk/unstable/'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/gdk/')">
+ <xsl:value-of select="concat('../../gdk/stable/', substring-after(., '/gdk/'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/pango/stable/')">
+ <xsl:value-of select="concat('../../pango/stable/', substring-after(., '/pango/stable/'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/pango/unstable/')">
+ <xsl:value-of select="concat('../../pango/unstable/', substring-after(., '/pango/unstable/'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/pango/')">
+ <xsl:value-of select="concat('../../pango/stable/', substring-after(., '/pango/'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/gdk-pixbuf/stable/')">
+ <xsl:value-of select="concat('../../gdk-pixbuf/stable/', substring-after(., '/gdk-pixbuf/stable'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/gdk-pixbuf/unstable/')">
+ <xsl:value-of select="concat('../../gdk-pixbuf/unstable/', substring-after(., '/gdk-pixbuf/unstable'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/gdk-pixbuf/')">
+ <xsl:value-of select="concat('../../gdk-pixbuf/stable/', substring-after(., '/gdk-pixbuf/'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/gio/stable/')">
+ <xsl:value-of select="concat('../../gio/stable/', substring-after(., '/gio/stable/'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/gio/unstable/')">
+ <xsl:value-of select="concat('../../gio/unstable/', substring-after(., '/gio/unstable/'))"/>
+ </xsl:when>
+ <xsl:when test="contains(., '/gio/')">
+ <xsl:value-of select="concat('../../gio/stable/', substring-after(., '/gio/'))"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="."/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="."/>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]