jakarta-site-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r667804 - in /jakarta/site/xdocs/stylesheets: common.xsl news2content.xsl
Date Sat, 14 Jun 2008 14:12:26 GMT
Author: sebb
Date: Sat Jun 14 07:12:26 2008
New Revision: 667804

URL: http://svn.apache.org/viewvc?rev=667804&view=rev
Log:
Fix up mixed line-endings; add native

Modified:
    jakarta/site/xdocs/stylesheets/common.xsl   (contents, props changed)
    jakarta/site/xdocs/stylesheets/news2content.xsl   (contents, props changed)

Modified: jakarta/site/xdocs/stylesheets/common.xsl
URL: http://svn.apache.org/viewvc/jakarta/site/xdocs/stylesheets/common.xsl?rev=667804&r1=667803&r2=667804&view=diff
==============================================================================
--- jakarta/site/xdocs/stylesheets/common.xsl (original)
+++ jakarta/site/xdocs/stylesheets/common.xsl Sat Jun 14 07:12:26 2008
@@ -1,15 +1,15 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-    xmlns:dt="http://xsltsl.org/date-time">
-    <xsl:import href="xsltslt-1.2.1/stdlib.xsl"/>
-    <!-- Called when the current node is a release or item within a group -->
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:dt="http://xsltsl.org/date-time">
+    <xsl:import href="xsltslt-1.2.1/stdlib.xsl"/>
+    <!-- Called when the current node is a release or item within a group -->
     <!-- See news.xml for -->
-    <xsl:template name="output-date">
+    <xsl:template name="output-date">
         <xsl:call-template name="dt:format-date-time">
-            <xsl:with-param name="format" select="'%d %B %Y'"/>
-            <xsl:with-param name="year" select="substring(@id, 1, 4)"/>
-            <xsl:with-param name="month" select="substring(@id, 5, 2)"/>
+            <xsl:with-param name="format" select="'%d %B %Y'"/>
+            <xsl:with-param name="year" select="substring(@id, 1, 4)"/>
+            <xsl:with-param name="month" select="substring(@id, 5, 2)"/>
             <xsl:with-param name="day" select="substring(@id, 7, 2)"/>
-        </xsl:call-template>
+        </xsl:call-template>
     </xsl:template>
 </xsl:stylesheet>

Propchange: jakarta/site/xdocs/stylesheets/common.xsl
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: jakarta/site/xdocs/stylesheets/news2content.xsl
URL: http://svn.apache.org/viewvc/jakarta/site/xdocs/stylesheets/news2content.xsl?rev=667804&r1=667803&r2=667804&view=diff
==============================================================================
--- jakarta/site/xdocs/stylesheets/news2content.xsl (original)
+++ jakarta/site/xdocs/stylesheets/news2content.xsl Sat Jun 14 07:12:26 2008
@@ -1,33 +1,33 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
-  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>
-	
-	*****************************
--->
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+  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"/>
     <xsl:param name="base.dir" select="string('.')"/>
-    <xsl:output method="xml" encoding="iso-8859-1" indent="yes"/>
+    <xsl:output method="xml" encoding="iso-8859-1" indent="yes"/>
     <xsl:template match="/">
         <!-- Apply templates to generate a content file for each group. -->
         <xsl:apply-templates select="news/group"/>
@@ -131,19 +131,19 @@
                 </body>
             </document>
         </redirect:write>
-    </xsl:template>
+    </xsl:template>
     <xsl:template match="release">
         <a name="{@id}">
             <h3 xml:space="preserve"><xsl:call-template name="output-date"/>
- <xsl:value-of select="@product"/> released </h3>
-        </a>
-        <!-- Copy content -->
+        </a>
+        <!-- Copy content -->
         <xsl:copy-of select="*"/>
-    </xsl:template>
+    </xsl:template>
     <xsl:template match="item">
-        <a name="{@id}">
-            <h3 xml:space="preserve"><xsl:call-template name="output-date"/>
- <xsl:value-of select="@title"/></h3>
-        </a>
-        <!-- Copy content -->
+        <a name="{@id}">
+            <h3 xml:space="preserve"><xsl:call-template name="output-date"/>
- <xsl:value-of select="@title"/></h3>
+        </a>
+        <!-- Copy content -->
         <xsl:copy-of select="*"/>
-    </xsl:template>
+    </xsl:template>
 </xsl:stylesheet>

Propchange: jakarta/site/xdocs/stylesheets/news2content.xsl
------------------------------------------------------------------------------
    svn:eol-style = native



---------------------------------------------------------------------
To unsubscribe, e-mail: site-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: site-cvs-help@jakarta.apache.org


Mime
View raw message