[Yanel-commits] rev 20604 -
public/yanel/trunk/src/realms/yanel-website/content/xslt
michi at wyona.com
michi at wyona.com
Tue Dec 5 23:34:44 CET 2006
Author: michi
Date: 2006-12-05 23:34:42 +0100 (Tue, 05 Dec 2006)
New Revision: 20604
Modified:
public/yanel/trunk/src/realms/yanel-website/content/xslt/global.xsl
Log:
introspection link fixed
Modified: public/yanel/trunk/src/realms/yanel-website/content/xslt/global.xsl
===================================================================
--- public/yanel/trunk/src/realms/yanel-website/content/xslt/global.xsl 2006-12-05 22:24:15 UTC (rev 20603)
+++ public/yanel/trunk/src/realms/yanel-website/content/xslt/global.xsl 2006-12-05 22:34:42 UTC (rev 20604)
@@ -30,7 +30,6 @@
</xsl:comment>
<head>
- <link rel="neutron-introspection" type="application/neutron+xml" href="introspection-{$name-without-suffix}.xml"/>
<xsl:comment>Name: <xsl:value-of select="$yanel.path.name"/> (without suffix: <xsl:value-of select="$name-without-suffix"/>), Path: <xsl:value-of select="$yanel.path"/>, Back 2 Realm: <xsl:value-of select="$yarep.back2realm"/>, Back 2 Context: <xsl:value-of select="$yanel.back2context"/></xsl:comment>
<title><xsl:value-of select="/xhtml:html/xhtml:head/xhtml:title"/> - Yanel</title>
@@ -45,6 +44,16 @@
<link rel="stylesheet" href="{$yarep.back2realm}css/global.css" type="text/css"/>
<xsl:copy-of select="/xhtml:html/xhtml:head/*[name(.) != 'title']"/>
+
+ <xsl:choose>
+ <xsl:when test="/xhtml:html/xhtml:head/xhtml:link/@rel='neutron-introspection'">
+ <!-- NOTE: Use the one from the copy above in case one exists! -->
+ </xsl:when>
+ <xsl:otherwise>
+ <!-- TODO: Maybe one should better not cut-off the suffix! -->
+ <link rel="neutron-introspection" type="application/neutron+xml" href="introspection-{$name-without-suffix}.xml"/>
+ </xsl:otherwise>
+ </xsl:choose>
</head>
<body bgcolor="#ffffff">
More information about the Yanel-commits
mailing list