AW: [xsl] generating a DTD with XML/XSL

Subject: AW: [xsl] generating a DTD with XML/XSL
From: "Marcus Klinge" <klinge@xxxxxxxxxxxxxxx>
Date: Mon, 7 May 2001 13:28:22 +0200
Oops..

my fault.  I didn´t think of SGML, when I wrote this.  Now it is clear that
DTDs were invented before XML.
And to my second question: yes, I meant "how do I test if my XML document
contains repeated elements."

As to the W3C, I know they are the source...but I can't seem to adjust my
brain to their writing style, so I find myself looking for other sources.

Marcus Klinge
Web Producing
----------------------
Karzauninkat Webdesign
Barner Strasse 14
22765 Hamburg
Tel: 040 39834 771
Fax: 040 39834 779


-----Ursprüngliche Nachricht-----
Von: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]Im Auftrag von Peter Flynn
Gesendet: Montag, 7. Mai 2001 12:25
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff: Re: [xsl] generating a DTD with XML/XSL


Marcus writes:

> We are currently at a project where we are planning to use an
> XML-stylesheet (why a DTD isn`t XML-conformant, only the gods know)

This has recently been discussed to death on comp.text.xml.  DTDs were
invented 12 years before XML. It's therefore unfair to expect them to
conform to it. The reason they weren't designed to use instance syntax
is because that would require a prior DTD-for-DTDs in order to read it
(don't forget SGML *required* a DTD, it wasn't optional as in XML),
and that would have defeated the objective: a concise definition of
the document structure. See Norman Walsh's recent post on c.t.x with
a comparison of DTD and Schema for the same document.

> to generate a DTD and an XML-Input mask.  Now a colleague mentioned
> XML-Schemas might be the trick we need.  Where can I find
> Information on those?

Have you tried reading the W3C Web site? It's usually a good idea
to try there before anywhere else.

> or (another way) how can I test for multiple elements in an XML?

Do you mean "test to see if my XML document contains repeated
elements" or "test to see if the DTD/Schema permits repeated
elements"?  The first wouldn't have anything to do with DTDs or
Schemas. The second would.

///Peter

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread