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>

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">
                     <embed src="../swf/a.swf" width="1080"></embed>

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

It generate correct HTML code (Adobe suggestion 

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

  <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
          WIDTH="{$width}" HEIGHT="{$height}"
      <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" 

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?


Express yourself - download free Windows Live Messenger themes! 

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