[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?
Hi, If going to HTML you will need <object><embed/></object> In my schema it looks like: <xs:element name="flash" a:label="Flash Object" a:display="inline"> <xs:complexType> <xs:sequence minOccurs="0"> <xs:element ref="c:flashvar"/> </xs:sequence> <xs:attribute name="classid" type="xs:string" a:label="Class Identifier" default="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"/> <xs:attribute name="codebase" type="xs:string" a:label="Codebase" default="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0, 0"/> <xs:attribute name="width" type="xs:string" a:label="Width" use="required"/> <xs:attribute name="height" type="xs:string" a:label="Height" use="required"/> <xs:attribute name="filename" type="xs:string" a:label="Filename" use="required"/> <xs:attribute name="pluginspage" type="xs:string" a:label="Plugin Space" default="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Vers ion=ShockwaveFlash"/> <xs:attribute name="id" type="xs:ID" a:label="ID"/> <xs:attribute name="name" type="xs:NCName" a:label="Name"/> <xs:attribute name="swliveconnect" type="xs:boolean" a:label="Enable Java/JavaScript" default="false"/> <xs:attribute name="play" type="xs:boolean" a:label="Enable Java/JavaScript" default="true"/> <xs:attribute name="loop" type="xs:boolean" a:label="Loop" default="true"/> <xs:attribute name="menu" type="xs:boolean" a:label="Full Menu" default="true"/> <xs:attribute name="quality" a:label="Quality" default="autohigh"> <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="low"/> <xs:enumeration value="autolow"/> <xs:enumeration value="autohigh"/> <xs:enumeration value="medium"/> <xs:enumeration value="high"/> <xs:enumeration value="best"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="scale" a:label="Scale" default="showall"> <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="showall"/> <xs:enumeration value="noborder"/> <xs:enumeration value="exactfit"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="align" a:label="Alignment" default="center"> <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="center"/> <xs:enumeration value="left"/> <xs:enumeration value="top"/> <xs:enumeration value="right"/> <xs:enumeration value="bottom"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="salign" a:label="SAlignment"> <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="left"/> <xs:enumeration value="top"/> <xs:enumeration value="right"/> <xs:enumeration value="bottom"/> <xs:enumeration value="topleft"/> <xs:enumeration value="topright"/> <xs:enumeration value="bottomleft"/> <xs:enumeration value="bottomright"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="wmode" a:label="Window Mode"> <xs:simpleType> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="window"/> <xs:enumeration value="opaque"/> <xs:enumeration value="transparent"/> </xs:restriction> </xs:simpleType> </xs:attribute> <xs:attribute name="bgcolor" type="xs:string" a:label="Background Color"/> <xs:attribute name="base" type="xs:anyURI" a:label="Base URL"/> </xs:complexType> </xs:element> <xs:element name="flashvar" a:label="Flash Variable"> <xs:complexType> <xs:attribute name="name" type="xs:NCName" a:label="Name"/> <xs:attribute name="value" type="xs:string" a:label="Value"/> </xs:complexType> </xs:element> Best, -Rob > -----Original Message----- > From: Bob Stayton [mailto:bobs@sco.com] > Sent: Wednesday, October 01, 2003 7:52 PM > To: David Pratt > Cc: 'Docbook-Apps' > > You can file an RFE on the SourceForge DocBook tracker to > get it on the agenda of the DocBook Technical Committee. > > > 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 > > On Wed, Oct 01, 2003 at 07:04:28PM -0700, David Pratt wrote: > > 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. > > > > > > -- > > 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]