Hello XML interested people,
There is ongoing work to define the metada itself using a XML syntax.
You can find an easy to read introduction in:
http://msdn.microsoft.com/library/psdk/xmlsdk/xmls5gkl.htm
A more formal one comes from the www.w3.org site.
This is an introductory text:
***** TEXT BEGIN *****
* XML Schema Working Group *
While XML 1.0 supplies a mechanism, the Document Type Definition (DTD) for
declaring constraints on the use of markup, automated processing of XML
documents requires more rigorous and comprehensive facilities in this area.
Requirements are for constraints on how the component parts of an
application
fit together, the document structure, attributes, data-typing, and so on.
The XML Schema Working Group [members only] is addressing means for defining
the structure, content and semantics of XML documents.
The Working Group considered several submitted proposals:
XML-Data, Jan 1998 [http://www.w3.org/XML/#9801xml-data]
DCD, Aug 1998 [http://www.w3.org/XML/#dcd]
SOX, Sep 1998 [http://www.w3.org/XML/#9809sox]
DDML, Jan 1999 [http://www.w3.org/XML/#DDML]
An initial Requirements [http://www.w3.org/TR/NOTE-xml-schema-req] document
and
specification (part 1 [http://www.w3.org/TR/xmlschema-1/], part 2
[http://www.w3.org/TR/xmlschema-2/]) are available for review.
***** TEXT END *****
For me, the most interesting links are these last two (specification part 1
[http://www.w3.org/TR/xmlschema-1/] and part 2
[http://www.w3.org/TR/xmlschema-2/]).
Have fun,
Paulo Gaspar
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 16, 2000 1:46 AM
To: [EMAIL PROTECTED]
Subject: [REBOL] [REBOL] Re: XML-RPC
hello Karl, Dan and Jbone
In response to Karl's question, are DTD's written in XML?
The answer is that *part* of the formal definition can be written in XML.
Other parts like semantics of elements and attributes or specific
application conventions cannot be expressed formally in XML/SGML and are
written in their own special syntax.
What Mr DuCharme means when he says converting DTDs to XML is that DTD's
are special files that state the rules for production of the XML
*Documents*. The XML parser uses the DTD to generate the XML document as
per rules specified in the DTD. For example, usually there are XML element
declarations in the DTD like <!ELEMENT name> This Declaration in the DTD
tells the parser that all xml documents it parses of this document type can
have the element NAME in it.
The DTD (Document Type Definition) is a specifier of a class of XML
Documents.
I hope that makes it clearer.
I am discussing one of the possible uses of XML in another thread "Philo
sphizing/Imbedding and Extending Rebol". Perhaps some of you would like to
contribute?
About jbone's question: you wrote
>The ability to
> "dialect" the data language via DTDs and the separation of structure
> definition from data representation ...
REBOL provides a convenient way of defining values. It think it would be
easy to create, for instance an ELEMENT declaration in REBOL that
evaluated to a tagged text like <Fname= "Walt" lname= "Disney">
Off the top of my head ELEMENT would have to be a function like
ELEMENT: func [a b][return rejoin ["<NAME=" a " " "LNAME= " b ">"]]
(this is a trivial way build a DTD but .. :) would make way for
documents that had ELEMENT Walt Disney markups in them. When executed they
will produce
== "<NAME=Walt LNAME= Disney>"
A collection of such ELEMENT declarations would provide the "separation of
structure definition from data representation"
However, XML/SGML is a very powerful and widely accepted open standard. I
think it would be interesting to look at ways in which REBOL and XML could
complement each other..
Regards,
Nitish
[EMAIL PROTECTED]
http://www.loka.net/
-----Original Message-----
From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
Sent: Wednesday, 16 February 2000 10:32
To: [EMAIL PROTECTED]
Subject: [REBOL] Re: XML-RPC
Thank you for your comments about XML, Dan and jbone.
On Sun, 13 Feb 2000, [EMAIL PROTECTED] wrote:
> I've had something very similar to this discussion with someone else
> regarding Newtonscript-like frames vs. XML. Both are tree-structured
data
> formats. The real key difference, and the reason XML "wins," is that
(while
> more verbose) XML is much more of a "metadata structure." The ability to
> "dialect" the data language via DTDs and the separation of structure
> definition from data representation make it much more flexible. The cost
is
> some increase in complexity and size of data, but this is more than
> compensated by increased utility. A pure-block Rebol implementation,
even if
> dealing with all-Rebol componentry, still suffers from the same
deficiencies
> -wrt- XML as, say, Newstonscript frames.
I don't understand how XML is more a metadata structure than REBOL. There
is
no reason you can't define certain REBOL dialects as representing data and
requiring an associated REBOL Type Definition.
I found this in the current XML FAQ (dated 1 June 1999):
> C.11 I keep hearing about alternatives to DTDs. What's a schema?
>
> Bob DuCharme writes: `Many XML developers are dissatisfied with the
syntax of
> the markup declarations described in the XML spec for two reasons. First,
they
> feel that if XML documents are so good at describing structured
information,
> then the description of a document type's structure (its `schema') should
be
> in an XML document instead of written with its own special syntax. In
addition
> to being more consistent, this would make it easier to edit and
manipulate the
> schema with regular document manipulation tools.'
The quote of Mr. DuCharme follows this seemingly contradictory DTD
definition:
"A DTD is a file (or several files to be used together), written in XML,
which
contains a formal definition of a particular type of document." But then
it
talks about converting DTDs to XML!
Are DTDs written in XML?
-Karl Robillard