forrest-svn mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ferdin...@apache.org
Subject svn commit: r603035 - /forrest/branches/UpdateFOPto094/main/webapp/skins/common/xslt/fo/pdfoutline.xsl
Date Mon, 10 Dec 2007 20:22:33 GMT
Author: ferdinand
Date: Mon Dec 10 12:22:33 2007
New Revision: 603035

URL: http://svn.apache.org/viewvc?rev=603035&view=rev
Log:
Reformatting before changes

Modified:
    forrest/branches/UpdateFOPto094/main/webapp/skins/common/xslt/fo/pdfoutline.xsl

Modified: forrest/branches/UpdateFOPto094/main/webapp/skins/common/xslt/fo/pdfoutline.xsl
URL: http://svn.apache.org/viewvc/forrest/branches/UpdateFOPto094/main/webapp/skins/common/xslt/fo/pdfoutline.xsl?rev=603035&r1=603034&r2=603035&view=diff
==============================================================================
--- forrest/branches/UpdateFOPto094/main/webapp/skins/common/xslt/fo/pdfoutline.xsl (original)
+++ forrest/branches/UpdateFOPto094/main/webapp/skins/common/xslt/fo/pdfoutline.xsl Mon Dec
10 12:22:33 2007
@@ -15,31 +15,48 @@
   See the License for the specific language governing permissions and
   limitations under the License.
 -->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-                xmlns:fo="http://www.w3.org/1999/XSL/Format"
-                xmlns:fox="http://xml.apache.org/fop/extensions"
-                version="1.0">
-  <xsl:template match="document" mode="outline">
-    <xsl:apply-templates select="body/section" mode="outline"/>
-  </xsl:template>
-  <xsl:template match="section" mode="outline">
-    <fox:outline>
-      <xsl:attribute name="internal-destination">
-        <xsl:choose>
-          <xsl:when test="normalize-space(@id)!=''">
-            <xsl:value-of select="@id"/>
-          </xsl:when>
-          <xsl:otherwise>
-            <xsl:value-of select="generate-id()"/>
-          </xsl:otherwise>
-        </xsl:choose>
-      </xsl:attribute>
-      <fox:label>
-        <xsl:number format="1.1.1.1.1.1.1" count="section" level="multiple"/>
-<xsl:text> </xsl:text>
-        <xsl:value-of select="normalize-space(title)"/>
-      </fox:label>
-      <xsl:apply-templates select="section" mode="outline"/>
-    </fox:outline>
-  </xsl:template>
+<xsl:stylesheet
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:fo="http://www.w3.org/1999/XSL/Format"
+    xmlns:fox="http://xml.apache.org/fop/extensions"
+    version="1.0">
+    <xsl:template
+        match="document"
+        mode="outline">
+        <xsl:apply-templates
+            select="body/section"
+            mode="outline" />
+    </xsl:template>
+    <xsl:template
+        match="section"
+        mode="outline">
+        <fox:outline>
+            <xsl:attribute
+                name="internal-destination">
+                <xsl:choose>
+                    <xsl:when
+                        test="normalize-space(@id)!=''">
+                        <xsl:value-of
+                            select="@id" />
+                    </xsl:when>
+                    <xsl:otherwise>
+                        <xsl:value-of
+                            select="generate-id()" />
+                    </xsl:otherwise>
+                </xsl:choose>
+            </xsl:attribute>
+            <fox:label>
+                <xsl:number
+                    format="1.1.1.1.1.1.1"
+                    count="section"
+                    level="multiple" />
+                <xsl:text> </xsl:text>
+                <xsl:value-of
+                    select="normalize-space(title)" />
+            </fox:label>
+            <xsl:apply-templates
+                select="section"
+                mode="outline" />
+        </fox:outline>
+    </xsl:template>
 </xsl:stylesheet>



Mime
View raw message