I don't have the karma to do this myself....
This brings the xsl stylesheet a lot closer to site.vsl in functionality.
If someone could explain to me what the special image handling is in
site.vsl, I'll give that one a go too.
Index: xdocs/stylesheets/site.xsl
===================================================================
RCS file: /home/cvs/jakarta-site2/xdocs/stylesheets/site.xsl,v
retrieving revision 1.2
diff -u -r1.2 site.xsl
--- xdocs/stylesheets/site.xsl 4 Jan 2002 12:38:37 -0000 1.2
+++ xdocs/stylesheets/site.xsl 21 Jan 2002 22:59:56 -0000
@@ -6,10 +6,6 @@
<!-- Outstanding Compatibility Issues (with Anakia-based stylesheets):
-* Calculation of the hyperlink for navigation menu items (site.xsl prefixes
- with relative path unconditionally; needs conditional logic like the
- "projectanchor" macro).
-
* Handling of the <image> element to insert relative path prefixes
* Special table formatting of the <table>, <tr>, and <td> tags. (I don't
@@ -155,7 +151,17 @@
<!-- Process a menu item for the navigation bar -->
<xsl:template match="item">
<xsl:variable name="href">
- <xsl:value-of select="$relative-path"/><xsl:value-of select="@href"/>
+ <xsl:choose>
+ <xsl:when test="starts-with(@href, 'http://')">
+ <xsl:value-of select="@href"/>
+ </xsl:when>
+ <xsl:when test="starts-with(@href, '/site')">
+
<xsl:text>http://jakarta.apache.org</xsl:text><xsl:value-of select="@href"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$relative-path"/><xsl:value-of
select="@href"/>
+ </xsl:otherwise> + </xsl:choose>
</xsl:variable>
<li><a href="{$href}"><xsl:value-of select="@name"/></a></li>
</xsl:template>
--
dIon Gillard, Multitask Consulting
http://www.multitask.com.au/developers
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>