You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by bd...@apache.org on 2006/06/26 19:22:41 UTC
svn commit: r417242 -
/cocoon/trunk/blocks/cocoon-core-samples-main/cocoon-core-samples-main-sample/src/main/resources/COB-INF/hello-world/style/xsl/page2svg.xsl
Author: bdelacretaz
Date: Mon Jun 26 10:22:41 2006
New Revision: 417242
URL: http://svn.apache.org/viewvc?rev=417242&view=rev
Log:
use correct SVG namespace, sample did not display in Firefox 1.5
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=417242&r1=417241&r2=417242&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 Mon Jun 26 10:22:41 2006
@@ -17,10 +17,14 @@
<!-- CVS $Id$ -->
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<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 width="500" height="160">
+ <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>
@@ -36,9 +40,9 @@
</xsl:template>
<xsl:template match="para">
- <text style="fill:#FFFFFF;font-size:24;font-family:TrebuchetMS-Bold;filter:url(#blur2);" x="65" y="80">
+ <svg:text style="fill:#FFFFFF;font-size:24;font-family:TrebuchetMS-Bold;filter:url(#blur2);" x="65" y="80">
<xsl:apply-templates/>
- </text>
+ </svg:text>
</xsl:template>
</xsl:stylesheet>