OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: DocBook - Flash in HTMLhelp


Does any use SWF files in DocBook?
I use xsl 1.71.0 to create CHM file output.

The situation:

1) When I use
<mediaobject><videoobject><videodata fileref='../swf/a.swf' width="800" 
scalefit="1" scale="200" format="SWF"/></videoobject>
</mediaobject>

The result doesn't have right size. SWF in HTML expect height attribute, but 
videodata element doesn't have it. XSL generate this code:

<div class="mediaobject">
            <table border="0" summary="manufactured viewport for HTML img" 
cellspacing="0" cellpadding="0" width="800">
               <tr>
                  <td>
                     <embed src="../swf/a.swf" width="1080"></embed>
                  </td>
               </tr>
            </table>
         </div>

2) When I use PI
<?hhlp_swf name="../swf/a.swf" width="800" height="620"?>

It generate correct HTML code (Adobe suggestion 
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_4150)

<xsl:template match="processing-instruction('hhlp_swf')">
  <xsl:variable name="name">
    <xsl:call-template name="pi-attribute">
      <xsl:with-param name="pis"
                      select="."/>
      <xsl:with-param name="attribute" select="'name'"/>
    </xsl:call-template>
  </xsl:variable>
  <xsl:variable name="width">
    <xsl:call-template name="pi-attribute">
      <xsl:with-param name="pis"
                      select="."/>
      <xsl:with-param name="attribute" select="'width'"/>
    </xsl:call-template>
  </xsl:variable>
  <xsl:variable name="height">
    <xsl:call-template name="pi-attribute">
      <xsl:with-param name="pis"
                      select="."/>
      <xsl:with-param name="attribute" select="'height'"/>
    </xsl:call-template>
  </xsl:variable>

  <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
          WIDTH="{$width}" HEIGHT="{$height}"
          
CODEBASE="http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0";>
      <param name="movie" value="{$name}"/>
      <param name="play" value="true"/>
      <param name="loop" value="false"/>
      <param name="quality" value="low"/>
    <EMBED SRC="{$name}" WIDTH="{$width}" HEIGHT="{$height}" quality="low" 
loop="false"
           TYPE="application/x-shockwave-flash"
           
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash";>
    </EMBED>
  </OBJECT>
</xsl:template>

3) Neither of method includes the SWF files into HHP in section [FILES]. 
HH.EXE doesn’t know about files and doesn’t compile them into CHM.

I have also changed <xsl:template name="is.graphic.format"> and 
<xsl:template name="is.graphic.extension"> to SWF support.

How to do automation?
Any ideas?

Mila

_________________________________________________________________
Express yourself - download free Windows Live Messenger themes! 
http://clk.atdmt.com/MSN/go/msnnkwme0020000001msn/direct/01/?href=http://imagine-msn.com/themes/vibe/default.aspx?locale=en-us&source=hmtagline



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]