[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-site-cvs
Subject: svn commit: r366196 - /jakarta/site/xdocs/stylesheets/news2content.xsl
From: sebb () apache ! org
Date: 2006-01-05 15:17:42
Message-ID: 20060105151743.44740.qmail () minotaur ! apache ! org
[Download RAW message or body]
Author: sebb
Date: Thu Jan 5 07:17:39 2006
New Revision: 366196
URL: http://svn.apache.org/viewcvs?rev=366196&view=rev
Log:
Replace multiple attributes with xsl:attribute
Modified:
jakarta/site/xdocs/stylesheets/news2content.xsl
Modified: jakarta/site/xdocs/stylesheets/news2content.xsl
URL: http://svn.apache.org/viewcvs/jakarta/site/xdocs/stylesheets/news2content.xsl?rev=366196&r1=366195&r2=366196&view=diff
==============================================================================
--- jakarta/site/xdocs/stylesheets/news2content.xsl (original)
+++ jakarta/site/xdocs/stylesheets/news2content.xsl Thu Jan 5 07:17:39 2006
@@ -2,6 +2,26 @@
<!--
Converts the master news.xml document to an RSS feed, plus a number
of content XML documents, each of which can then be transformed to HTML. -->
+
+<!--
+ *****************************
+
+ N.B. any tags with more than one attribute should be coded using
+ xsl:attribute for all but the first attribute.
+
+ This is to ensure that JDK 1.4 and 1.5 generate the attributes in the same order,
+ and thus avoid huge numbers of irrelevant differences when the JDK changes.
+
+ For example:
+
+ <img alt="Alt">
+ <xsl:attribute name="border">0</xsl:attribute>
+ <xsl:attribute name="src">xxx.gif</xsl:attribute>
+ </img>
+
+ *****************************
+-->
+
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" \
xmlns:date="http://exslt.org/dates-and-times"
xmlns:redirect="http://xml.apache.org/xalan/redirect" \
extension-element-prefixes="date redirect" version="1.0"> <xsl:import \
href="common.xsl"/> @@ -69,7 +89,9 @@
<xsl:for-each select="*">
<xsl:sort select="@id" order="descending"/>
<xsl:if test="position() > 1">
- <hr size="1" noshade="noshade"/>
+ <hr noshade="noshade">
+ <xsl:attribute name="size">1</xsl:attribute>
+ </hr>
</xsl:if>
<xsl:apply-templates select="."/>
</xsl:for-each>
---------------------------------------------------------------------
To unsubscribe, e-mail: site-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: site-cvs-help@jakarta.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic