W3C home > Mailing lists > Public > www-forms@w3.org > December 2002

RE: xforms instance with doctype

From: Micah Dubinko <MDubinko@cardiff.com>
Date: Sun, 1 Dec 2002 20:07:57 -0800
Message-ID: <BD2DBD26EE0BAA48B1A425C7BE7923002D0043@csmail.cardiff.com>
To: "'Roman Huditsch'" <roman.huditsch@hico.com>
Cc: "'www-forms@w3.org'" <www-forms@w3.org>

Hi Roman,

You are correct, your 2nd example is not how to do it. :-) (The main problem
being that it's not well-formed XML. Doctype declarations are only allowed
at the very top of the document)

The way to do it in XSLT is to include some special attributes that declare
the public and system parts of the doctype to include..

 doctype-public="-//TopicMaps.Org//DTD XML Topic Map (XTM) 1.0//EN"
 doctype-system="file://usr/local/home/gromit/xml/xtm/xtm1.dtd"

This isn't possible in XForms, however, since those two attributes have been
excluded. If you think this is a serious issue for implementations, please
put your best arguments (inlcuding a proposed change) in a message to
www-forms-editor@w3.org, and it will be up for consideration by the Working
Group.

Thanks,

.micah

P.S. I think it might be "file:///usr/... (three slashes)

-----Original Message-----
From: Roman Huditsch [mailto:roman.huditsch@hico.com]
Sent: Wednesday, November 27, 2002 11:58 PM
To: www-forms@w3.org
Subject: xforms instance with doctype



Hi,

I have a short question about attaching a doctype information to an Xforms
instance.

After submitting the complete xforms instance, I would like to get an XML
document like:

<?xml version="1.0"?>
  <!DOCTYPE topicMap
            PUBLIC "-//TopicMaps.Org//DTD XML Topic Map (XTM) 1.0//EN"
                   "file://usr/local/home/gromit/xml/xtm/xtm1.dtd">
  <topicMap xmlns='http://www.topicmaps.org/xtm/1.0/'
            xmlns:xlink='http://www.w3.org/1999/xlink'
            xml:base='http://www.shakespeare.org/hamlet/'>

    <!-- topics, associations, and merge map directives go here -->

  </topicMap>

How can I achieve that? I assume that it is not as simple as writing:

<xforms:instance>
  <!DOCTYPE topicMap
      PUBLIC "-//TopicMaps.Org//DTD XML Topic Map (XTM) 1.0//EN"
      "file://usr/local/home/gromit/xml/xtm/xtm1.dtd">
  <topicMap xmlns='http://www.topicmaps.org/xtm/1.0/'
            xmlns:xlink='http://www.w3.org/1999/xlink'
            xml:base='http://www.shakespeare.org/hamlet/'>

    <!-- topics, associations, and merge map directives go here -->

  </topicMap>
</xforms:instance>

Is it?

wbr,
Roman
Received on Sunday, 1 December 2002 23:08:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:54 GMT