[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

7 Questions on DCDs

  • From: costello@m... (Roger L. Costello)
  • To: xml-dev-digest@i...
  • Date: Tue, 12 Jan 99 11:10:50 -0500

anderson dcds
(1) Will a DCD have a DOCTYPE declaration, or is that a thing 
of the past?  

(2) XML instance documents will specify the the DCD it is 
conforming to using namespaces, rather the using the DOCTYPE
declaration?

i.e., instead of:

<?xml version="1.0"?>
<!DOCTYPE BookCatalogue SYSTEM
"file://localhost/xml-course/xml-part1/BookCatalogue.dtd">
<BookCatalogue>
    ...
</BookCatalogue>

it will be:

<?xml version="1.0"?>
<BookCatalogue xmlns="file://localhost/xml-course/xml-part1/BookCatalogue.d
cd">

where in BookCatalogue.dcd I must have:

<?xml version="1.0"?>
<DCD>
        <Description>DCD to define a Book Catalog</Description>
        <Namespace>file://localhost/xml-course/xml-part1/BookCatalog
ue.dcd</N amespace>
        <ElementDef Type="BookCatalogue" Model="Elements" Root="true">
        ...
</DCD>

(3) Will it make sense to validate a DCD?  If so, how?  Should
a DCD document reference the DCD namespace (to enable validation)
e.g.,

      <DCD xmlns="http://www.w3.org/TR/NOTE-dcd.html">
         ...
      </DCD>

(4) The examples in the DCD spec use the RDF namespace (e.g., RDF:Order)
but no where is a namespace declaration shown.  Should there be
a namespace declaration for the RDF prefix? 

i.e., 


      <DCD xmlns="http://www.w3.org/TR/NOTE-dcd.html"
           xmlns:RDF="http://www.w3.org/TR/NOTE-rdf.html">
         ...
      </DCD>
 
(5) It is not clear to me how to define an attribute whose
datatype is an enumeration and is required.  In DTD it is
specified as:

<!ATTLIST Book 
             Category (autobiography | non-fiction | fiction) #REQUIRED>

I am guessing that in DCD it is specified as:

<ElementDef Type="Book" Model="Elements">
        <AttributeDef Name="Category" Datatype="enumeration"
Occurs="Required">
                autobiography  non-fiction  fiction
        </AttributeDef>
        ...
</ElementDef>

(6) What's the difference between an ElementDef with Content="Open"
versus an ElementDef with Model="Any"?  They seem to mean the
same thing.

i.e., <ElementDef Type="foo" Model="Mixed" Content="Open"> ...

versus
      <ElementDef Type="foo" Model="Any"> ...

(7) Can somebody explain this external entity example:

<ExternalEntityDef resource="#copyrightNotice"/>

Where did this copyrightNotice thing come from?


Thanks.  /Roger


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.