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

Re: Summary of Namespaces and Validation

  • From: "Liam R. E. Quin" <liamquin@i...>
  • To: xml-dev@i...
  • Date: Fri, 11 Sep 1998 03:21:35 -0400 (EDT)

prefix sup
On Thu, 10 Sep 1998, Tim Bray wrote:

> 1. Build a compound DTD that has prefixed declarations for all your
>    elements and attributes.  This is the hard part.
Yes, I agree.
MurataSahn's Forest Automata work may help a little -- see Paul's paper
for some examples.  Bt it does not solve the problem itself.

> What really bothers me is that discussion here keeps obsessing over the
> tedious but straightforward problem of matching up prefixes, and nobody's
> thinking about the interesting and difficult problem of compounding DTDs.
I think it's because that part doesn't sound hard.

The main difficulty I see is that we don't have a way of associating DTDs
(or fragments) with prefixes,  I'll start by assuming that such a way
exists and then see if that helps...

File 1, using prefix A:
<!ELEMENT Sup
    (#PCDATA|Sup)*
>

File 2, using prefix B:
<!ELEMENT Sup
    (beverage|food)+
>
<!--* supper is my bestest meal! *-->

Now <Sup> in an instance may have either mixed or element content,
depending on the context in which it occurs.

But we can transform it into A:Sup (mixed) or B:Sup (element) in
every case.

In fact, every element mentioned in a DTD can be algorithmically
normalized by prepending the prefix associated with it.

And if a DTD refers to another fragment with a prefix, the
same rules can be used.

If a DTD refers to multiple external definition sets, with multiple
prefixes, it is necessary to determine the source of each referenced
element type, which may require a two-pass algorithm to collect all
of the element definitions and then associate them with the right
prefixes.  The fact that an element type can be referred to before
it is declared makes this slightly more complex, but is necessary...

Tim, what am I missing?  Apart from the face that we lack a good
way to associate a DTD or DTD fragment with a prefix, I mean?

Lee

-- 
Liam Quin, GroveWare Inc., Toronto;  The barefoot agitator
l i a m q u i n     at    i n t e r l o g    dot   c o m


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.