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: Applets, Flash, etc. in DocBook


/ Norman Walsh <ndw@nwalsh.com> was heard to say:
| neatly. It probably wouldn't be a bad idea to add a standard module
| that supports the XHTML object tag.

Does this fit the bill? (It's an extension of the dbforms.rnc module;
you'll probably have to adjust the include statement.)

# This file is an extension of DocBook V5.0
#
# Copyright 1992-2006 HaL Computer Systems, Inc.,
# O'Reilly & Associates, Inc., ArborText, Inc., Fujitsu Software
# Corporation, Norman Walsh, Sun Microsystems, Inc., and the
# Organization for the Advancement of Structured Information
# Standards (OASIS).
#
# Release: $Id: htmlobject.rnc,v 1.9 2006/03/03 13:01:08 nwalsh Exp $
#
# Permission to use, copy, modify and distribute the DocBook schema
# and its accompanying documentation for any purpose and without fee
# is hereby granted in perpetuity, provided that the above copyright
# notice and this paragraph appear in all copies. The copyright
# holders make no representation about the suitability of the schema
# for any purpose. It is provided "as is" without expressed or implied
# warranty.
#
# If you modify the DocBook schema in any way, label your schema as a
# variant of DocBook. See the reference documentation
# (http://docbook.org/tdg5/en/html/ch05.html#s-notdocbook)
# for more information.
#
# Please direct all questions, bug reports, or suggestions for changes
# to the docbook@lists.oasis-open.org mailing list. For more
# information, see http://www.oasis-open.org/docbook/.
#
# ======================================================================

namespace html = "http://www.w3.org/1999/xhtml";
namespace ctrl = "http://nwalsh.com/xmlns/schema-control/";
namespace rng  = "http://relaxng.org/ns/structure/1.0";
namespace s = "http://www.ascc.net/xml/schematron";
namespace db = "http://docbook.org/ns/docbook";
default namespace = "http://docbook.org/ns/docbook";

include "../docbook/dbforms.rnc"

db.extension.blocks |= db.html.object
db.extension.inlines |= db.html.object

# ======================================================================

[
   db:refname [ "html:object" ]
   db:refpurpose [ "An HTML object" ]
]
div {

   db.html.object.attlist =
      db.html.attrs
    & [
       db:refpurpose [ "Indicates that this object is only a declaration for use by a subsequent object" ]
      ]
      attribute declare  { "declare" }?
    & [
       db:refpurpose [ "A URI identifying the location of the objects implementation" ]
      ]
      attribute classid  { xsd:anyURI }?
    & [
       db:refpurpose [ "Base URI used to resolve relative URIs in the classid, data, or archive attributes." ]
      ]
      attribute codebase { xsd:anyURI }?
    & [
       db:refpurpose [ "A URI identifying the location of the objects data" ]
      ]
      attribute data     { xsd:anyURI }?
    & [
       db:refpurpose [ "Identifies the MIME content-type of the data" ]
      ]
      attribute type     { text }?
    & [
       db:refpurpose [ "Identifies the MIME content-type expected when the code is downloaded from the classid location" ]
      ]
      attribute codetype { text }?
    & [
       db:refpurpose [ "A space-separated list of archives containing resources relevant to the object" ]
      ]
      attribute archive  { text }?
    & [
       db:refpurpose [ "Specifies a message that the user agent may render while loading the objects implementation" ]
      ]
      attribute standby  { text }?
    & [
       db:refpurpose [ "The height of the object" ]
      ]
      attribute height   { text }?
    & [
       db:refpurpose [ "The width of the object" ]
      ]
      attribute width    { text }?
    & [
       db:refpurpose [ "Identifies an image map to use with the graphical submit control" ]
      ]
      attribute usemap   { xsd:anyURI }?
    & [
       db:refpurpose [ "Specifies the name of this object" ]
      ]
      attribute name     { xsd:NMTOKEN }?
    & [
       db:refpurpose [ "Specifies the position of the element in tabbing order" ]
      ]
      attribute tabindex { xsd:integer }?

   db.html.object =
      element html:object {
         db.html.object.attlist,
         (
            (text
             | db.html.param
             | db.html.form
             | db.all.inlines)*
          | (db.html.param
             | db.html.form
             | db.all.blocks)*)
      }
}

# ======================================================================

[
   db:refname [ "html:param" ]
   db:refpurpose [ "An HTML object parameter" ]
]
div {

   db.html.param.attlist =
      [
       db:refpurpose [ "A document-wide unique identifier" ]
      ]
      attribute xml:id { xsd:ID }?
    & [
       db:refpurpose [ "The property name" ]
      ]
      attribute name { text }
    & [
       db:refpurpose [ "The property value" ]
      ]
      attribute value { text }?
    & [
       a:defaultValue="data"
       db:refpurpose [ "The type of the value attribute" ]
      ]
      attribute valuetype { "data" | "ref" | "object" }?
    & [
       db:refpurpose [ "The MIME content-type of the resource designated by the value attribute only in the case where the valuetype is ref" ]
      ]
      attribute type { text }?

   db.html.param =
      element html:param {
         db.html.param.attlist,
         empty
      }
}

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com>      | Everything should be made as
http://www.oasis-open.org/docbook/ | simple as possible, but no simpler.
Chair, DocBook Technical Committee |

PGP signature



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