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: RE: [docbook-apps] SWF file type for imagedata or videodata - Why not?


This is very helpful Bob.  Many thanks for your help.  I will work
through your advice. Any reason why it couldn't be a permanent file
type? It's a pretty popular format.

Regards
Dave

-----Original Message-----
From: Bob Stayton [mailto:bobs@sco.com] 
Sent: Wednesday, October 01, 2003 3:42 PM
To: David Pratt
Cc: 'Docbook-Apps'
Subject: Re: [docbook-apps] SWF file type for imagedata or videodata -
Why not?


On Wed, Oct 01, 2003 at 04:12:53PM -0700, David Pratt wrote:
> I think I have asked something similar before but can't recall getting

> reply.  The swf file type does not exist as a valid file type in 
> either the imagedata or videodata elements.
> 
> I want to be able to store data of this file type within these 
> elements. What is the rationale for this?
> 
> What is the work around to this so documents will validate with this 
> extension? Must be someone else out there wanting to embed Flash 
> movies as well.
> 
> Thanks in advance for any replies.

For validation, you need to add to the list of notations supported by
the DTD.  You can extend the list yourself in the internal subset of the
DTD.  In your docbook file:

<!DOCTYPE book PUBLIC etc. [
<!ENTITY % local.notation.class "| SWF">
<!NOTATION SWF SYSTEM "SWF">
]>
<book>
...

In your imagedata or videodata element, add a
format attribute:

format="SWF"

Then you need to customize the stylesheet to update
the template named 'is.graphic.format' to accept
your format string:

xsl:template name="is.graphic.format">
  <xsl:param name="format"></xsl:param>
  <xsl:if test="$format = 'SVG'
                or $format = 'PNG'
                or $format = 'JPG'
                or $format = 'JPEG'
                or $format = 'linespecific'
                or $format = 'GIF'
                or $format = 'GIF87a'
                or $format = 'GIF89a'
                or $format = 'BMP'
                or $format = 'SWF'">1</xsl:if>
</xsl:template>


If you use videoobject, then the HTML output
will be <embed>.  If you use imageobject, then
the HTML output will be <img>.

I'm not sure what happens after that.   8^)

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com

To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org.



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