Re: XSchema: root element

Peter Murray-Rust (peter@ursus.demon.co.uk)
Fri, 03 Jul 1998 19:46:59


At 13:47 03/07/98 +0200, Ron Bourret wrote:
>Marcus Carr wrote:
>
>> Not me - conversion work of legacy data routinely involves pulling
documents
>to
>> pieces, working on a fragment (such as a table) then putting it all back
>> together. A language such as OmniMark will allow you to find fragments
without
>> parsing the data around it - under those circumstances, what is proposed is
>> unduly restrictive.
>
>I'm not sure I understand. We want to give an authoring tool/XSchema
>explorer/etc. a way to determine the roots of useful/possible documents.
That
>is, it is a way for the XSchema designer to say, "If you start with any of
these
>elements, the resulting documents can be interpreted by the nifty software I
>wrote to go with this XSchema."
>
Many of us will be authoring documents where the 'root' is almost
meaningless. It is highly probable that many 'CML' documents will have a
root element of <HTML:HTML>. Example:
<?xml:namespace ns="http://w3.org/some/where/html" prefix="H"?>
<?xml:namespace ns="http://xml-cml.org/cml" prefix="C"?>

<H:HTML>
<H:HEAD>... </H:HEAD>
<H:Body>
<H:P>
<H:UL>
<H:LI>
<C:MOL title="benzene">...</C:MOL>
</H:LI>
<H:LI>
<C:MOL title="toluene">...</C:MOL>
</H:LI>
<H:LI>
<C:MOL title="ortho-xylene">...</C:MOL>
</H:LI>
</H:UL>
</H:P>
</H:BODY>
</H:HTML>

The fact that this document uses H:HTML as its 'root' is virtually
irrelevant to its semantic message.

P.

Peter Murray-Rust, Director Virtual School of Molecular Sciences, domestic
net connection
VSMS http://www.nottingham.ac.uk/vsms, Virtual Hyperglossary
http://www.venus.co.uk/vhg