vmassol 2003/01/13 03:26:48
Modified: documentation/docs/skins/jakarta.apache.org/stylesheets
document2html.xsl
Log:
Discover bad ids in <link> elements, by issuing warnings during the transformation
Revision Changes Path
1.13 +12 -2
jakarta-cactus/documentation/docs/skins/jakarta.apache.org/stylesheets/document2html.xsl
Index: document2html.xsl
===================================================================
RCS file:
/home/cvs/jakarta-cactus/documentation/docs/skins/jakarta.apache.org/stylesheets/document2html.xsl,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- document2html.xsl 12 Jan 2003 17:24:53 -0000 1.12
+++ document2html.xsl 13 Jan 2003 11:26:48 -0000 1.13
@@ -707,8 +707,18 @@
<xsl:variable name="id" select="substring-after(@href,'ext:')"/>
<xsl:value-of select="$sitemap//resource[@id=$id]/@href"/>
</xsl:when>
- <xsl:otherwise>
+ <xsl:when test="starts-with(@href,'http:')">
+ <xsl:value-of select="@href"/>
+ </xsl:when>
+ <xsl:when test="starts-with(@href,'mailto:')">
<xsl:value-of select="@href"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:message>
+ <xsl:text>Bad site id: [</xsl:text>
+ <xsl:value-of select="@href"/>
+ <xsl:text>]</xsl:text>
+ </xsl:message>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>