You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by vg...@apache.org on 2006/08/23 00:43:55 UTC

svn commit: r433786 - /cocoon/trunk/blocks/cocoon-core-samples-main/cocoon-core-samples-main-sample/src/main/resources/COB-INF/hello-world/style/xsl/page2svg.xsl

Author: vgritsenko
Date: Tue Aug 22 15:43:53 2006
New Revision: 433786

URL: http://svn.apache.org/viewvc?rev=433786&view=rev
Log:
fix the stylesheet - output should be in svg namespace

Modified:
    cocoon/trunk/blocks/cocoon-core-samples-main/cocoon-core-samples-main-sample/src/main/resources/COB-INF/hello-world/style/xsl/page2svg.xsl

Modified: cocoon/trunk/blocks/cocoon-core-samples-main/cocoon-core-samples-main-sample/src/main/resources/COB-INF/hello-world/style/xsl/page2svg.xsl
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-core-samples-main/cocoon-core-samples-main-sample/src/main/resources/COB-INF/hello-world/style/xsl/page2svg.xsl?rev=433786&r1=433785&r2=433786&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-core-samples-main/cocoon-core-samples-main-sample/src/main/resources/COB-INF/hello-world/style/xsl/page2svg.xsl (original)
+++ cocoon/trunk/blocks/cocoon-core-samples-main/cocoon-core-samples-main-sample/src/main/resources/COB-INF/hello-world/style/xsl/page2svg.xsl Tue Aug 22 15:43:53 2006
@@ -1,6 +1,6 @@
 <?xml version="1.0"?>
 <!--
-  Copyright 1999-2004 The Apache Software Foundation
+  Copyright 1999-2006 The Apache Software Foundation
 
   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
@@ -15,34 +15,32 @@
   limitations under the License.
 -->
 
-<!-- CVS $Id$ -->
-
-<xsl:stylesheet 
-  version="1.0" 
-  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-  xmlns:svg="http://www.w3.org/2000/svg"
->
-
- <xsl:template match="page">
-  <svg xmlns="http://www.w3.org/2000/svg" width="500" height="160">
-   <defs>
-    <filter id="blur1"><feGaussianBlur stdDeviation="3"/></filter>
-    <filter id="blur2"><feGaussianBlur stdDeviation="1"/></filter>
-   </defs>
-   
-   <g title="this is a tooltip">
-    <rect 
-      style="fill:#0086B3;stroke:#000000;stroke-width:4;filter:url(#blur1);"
-      x="30" y="30" rx="20" ry="20" width="450" height="80"/>
-    <xsl:apply-templates/>
-   </g>
-  </svg>
- </xsl:template>
- 
- <xsl:template match="para">
-  <svg:text style="fill:#FFFFFF;font-size:24;font-family:TrebuchetMS-Bold;filter:url(#blur2);" x="65" y="80">
-   <xsl:apply-templates/>
-  </svg:text>
- </xsl:template>
+<!--
+  - $Id$
+  -->
+<xsl:stylesheet version="1.0"
+                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+                xmlns:svg="http://www.w3.org/2000/svg">
+
+  <xsl:template match="page">
+    <svg:svg xmlns="http://www.w3.org/2000/svg" width="500" height="160">
+      <svg:defs>
+        <svg:filter id="blur1"><svg:feGaussianBlur stdDeviation="3"/></svg:filter>
+        <svg:filter id="blur2"><svg:feGaussianBlur stdDeviation="1"/></svg:filter>
+      </svg:defs>
+
+      <svg:g title="this is a tooltip">
+        <svg:rect style="fill:#0086B3;stroke:#000000;stroke-width:4;filter:url(#blur1);"
+                  x="30" y="30" rx="20" ry="20" width="450" height="80"/>
+        <xsl:apply-templates/>
+      </svg:g>
+    </svg:svg>
+  </xsl:template>
+
+  <xsl:template match="para">
+    <svg:text style="fill:#FFFFFF;font-size:24;font-family:TrebuchetMS-Bold;filter:url(#blur2);" x="65" y="80">
+      <xsl:apply-templates/>
+    </svg:text>
+  </xsl:template>
 
 </xsl:stylesheet>