cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gkossakow...@apache.org
Subject svn commit: r674330 - /cocoon/trunk/tools/cocoon-daisy-export-strategy/src/main/resources/org/apache/cocoon/tools/maven/daisy/export/strategy/cocoon-doc-2-xdoc.xslt
Date Sun, 06 Jul 2008 18:24:12 GMT
Author: gkossakowski
Date: Sun Jul  6 11:24:11 2008
New Revision: 674330

URL: http://svn.apache.org/viewvc?rev=674330&view=rev
Log:
A few hacks that make flash export working. This must get refactored.

Modified:
    cocoon/trunk/tools/cocoon-daisy-export-strategy/src/main/resources/org/apache/cocoon/tools/maven/daisy/export/strategy/cocoon-doc-2-xdoc.xslt

Modified: cocoon/trunk/tools/cocoon-daisy-export-strategy/src/main/resources/org/apache/cocoon/tools/maven/daisy/export/strategy/cocoon-doc-2-xdoc.xslt
URL: http://svn.apache.org/viewvc/cocoon/trunk/tools/cocoon-daisy-export-strategy/src/main/resources/org/apache/cocoon/tools/maven/daisy/export/strategy/cocoon-doc-2-xdoc.xslt?rev=674330&r1=674329&r2=674330&view=diff
==============================================================================
--- cocoon/trunk/tools/cocoon-daisy-export-strategy/src/main/resources/org/apache/cocoon/tools/maven/daisy/export/strategy/cocoon-doc-2-xdoc.xslt
(original)
+++ cocoon/trunk/tools/cocoon-daisy-export-strategy/src/main/resources/org/apache/cocoon/tools/maven/daisy/export/strategy/cocoon-doc-2-xdoc.xslt
Sun Jul  6 11:24:11 2008
@@ -234,16 +234,20 @@
   </xsl:template>
   
   <!--+
-    | MultiMediaObject (typeId=9)
+    | MultiMediaObject (typeId=9) (supports flash only!)
     +-->
   <xsl:template match="d:document[@typeId='9']">
     <object>
       <xsl:apply-templates select="d:fields/d:field[(@name = 'MultiMediaObjectHeight')
or (@name = 'MultiMediaObjectWidth')]" mode="object"/>
-      <xsl:apply-templates select="d:parts/d:part[@name = 'MultiMediaData']" mode="object"/>
+      <xsl:apply-templates select="d:parts/d:part[@name = 'MultiMediaData']" mode="object">
+        <xsl:with-param name="filePath" select="concat('flash/', @id, '_', @branchId,
'_', @languageId, '.swf')"/>
+      </xsl:apply-templates>
       <xsl:apply-templates select="d:fields/d:field[starts-with(@name, 'MultiMediaObject')
and
         ((@name != 'MultiMediaObjectHeight') or (@name != 'MultiMediaObjectWidth')) ]" mode="object"/>
       <embed>
-        <xsl:apply-templates select="d:parts/d:part[@name = 'MultiMediaData']" mode="embed"/>
+        <xsl:apply-templates select="d:parts/d:part[@name = 'MultiMediaData']" mode="embed">
+          <xsl:with-param name="filePath" select="concat('flash/', @id, '_', @branchId,
'_', @languageId, '.swf')"/>
+        </xsl:apply-templates>
         <xsl:apply-templates select="d:fields/d:field[starts-with(@name, 'MultiMediaObject')]"
mode="embed"/>
       </embed>
     </object>
@@ -253,13 +257,8 @@
   <!--+
     | MultiMediaData part (typeId=13)
     +-->
-  <xsl:template match="d:part[@typeId='13']">
-    
-  </xsl:template>
-  
-<!--  <xsl:template match="d:part" mode="object">
-    <xsl:variable name="filePath" select="concat($documentBasePath, $document/@id, '/version/',
$document/@dataVersionId, '/part/', $document/d:parts/d:part[@name = 'MultiMediaData']/@typeId,
'/data', $fileName, '?branch=', $document/@branch, '&amp;language=', $document/@language)"/>
-    
+  <xsl:template match="d:part" mode="object">
+    <xsl:param name="filePath"/>
     <xsl:choose>
       <xsl:when test="@mimeType = 'application/x-shockwave-flash'">
         <xsl:attribute name="classid">clsid:D27CDB6E-AE6D-11cf-96B8-444553540000</xsl:attribute>
@@ -273,6 +272,7 @@
   </xsl:template>
   
   <xsl:template match="d:part" mode="embed">
+    <xsl:param name="filePath"/>
     <xsl:attribute name="src">
       <xsl:value-of select="$filePath"/>
     </xsl:attribute>
@@ -298,7 +298,7 @@
     <xsl:attribute name="{$fieldName}">
       <xsl:value-of select="@valueFormatted"/>
     </xsl:attribute>
-  </xsl:template>-->
+  </xsl:template>
 
   <!--+
       | Add link to Daisy page at the bottom of each page



Mime
View raw message