[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] DocBook - Flash in HTMLhelp
Hello, Regarding item #1, the height of an image in DocBook is expressed in the attribute named 'depth'. If you put a depth attribute on your videodata element, then it will become a height attribute in the HTML output. Regarding item #3, you should get the filenames from the videodata elements included in the hhp file if you set the stylesheet parameter named htmlhelp.enumerate.images to 1 (it is zero by default). Regarding item #2, although it produces better object code, the htmlhelp stylesheet is unaware of that processing instruction, and so would not write a FILE entry in the hhp file. However, you could always customize the stylesheet to do so. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Miloslav Hertl" <mhertl@hotmail.com> To: <docbook-apps@lists.oasis-open.org> Sent: Thursday, September 21, 2006 4:46 AM Subject: [docbook-apps] 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 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]