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 XML 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 by no means a great way to 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" you are seeking.

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

begin 600 WINMAIL.DAT
M>)\^(@D``0:0" `$```````!``$``0>0!@`(````Y 0```````#H``$(@ <`
M& ```$E032Y-:6-R;W-O9G0@36%I;"Y.;W1E`#$(`0V ! `"`````@`"``$$
MD 8`= $```$````0`````P``, (````+``\.``````(!_P\!````.P``````
M``"!*Q^DOJ,0&9UN`-T!#U0"`````&QI<W1 <F5B;VPN8V]M`%--5% `;&ES
M=$!R96)O;"YC;VT``!X``C !````!0```%--5% `````'@`#, $````/````
M;&ES=$!R96)O;"YC;VT```,`%0P!`````P#^#P8````>``$P`0```!$````G
M;&ES=$!R96)O;"YC;VTG``````(!"S !````% ```%--5% Z3$E35$!214)/
M3"Y#3TT``P``.0`````+`$ Z`0```!X`]E\!````#P```&QI<W1 <F5B;VPN
M8V]M```"`?=?`0```#L`````````@2L?I+ZC$!F=;@#=`0]4`@````!L:7-T
M0')E8F]L+F-O;0!33510`&QI<W1 <F5B;VPN8V]M```#`/U?`0````,`_U\`
M`````@'V#P$````$`````````IE&`02 `0`8````4D4Z(%M214)/3%T@4F4Z
M(%A-3"U24$,`408!!8 #``X```#0!P(`$ `-`"P``0`#`"8!`2" `P`.````
MT <"`! `#0`I`"L``P!-`0$)@ $`(0```$0W0S,Y1#DU,# W139%-$5!135%
M1C-$-$5%13-&0T5"`*\'`0.0!@"L#@``(0````L``@`!````"P`C```````#
M`"8```````L`*0```````P`N```````#`#8``````$ `.0#@4R?K%GB_`1X`
M< `!````& ```%)%.B!;4D5"3TQ=(%)E.B!834PM4E!#``(!<0`!````%@``
M``&_>!;JAQBP$NYFGT%$G6@0@<',M/$``!X`'@P!````!0```%--5% `````
M'@`?# $````/````<F5B;VQ ;&]K82YN970```,`!A <?0XL`P`'$)(-```>
M``@0`0```&4```!(14Q,3TM!4DPL1$%.04Y$2D)/3D5)3E)%4U!/3E-%5$]+
M05),4U%515-424].+$%214141%-74DE45$5.24Y834P_5$A%04Y35T5225-4
M2$%4*E!!4E0J3T942$5&3U)-04Q$``````(!"1 !````EPL``),+``"!% ``
M3%I&=<_;F#4#``H`<F-P9S$R-48R`/@+8&[email protected]!]R "I /C`@!C: K 
MX'-E=# @!Q,"@P!0H1!V<')Q,A%V?0J V0C((#L);PXP-0* "H%L=6,`4 L#
M8P!!#P(Q"# S,PNF(&AE;!\)``,P%I "T1(B,38@PDL*P&PL($0#D0!PR&0@
M2@;@;F4*H@J$E0J 20.@( EP<W "(%D1,"!T&" 9$B<$(''Q"E!S=&D"(!E0
M"L ;L.A$5$0<07<%$ ) "?""( N (%A-3#\*X_T:AE07X!FA`^ $D!X@!" 6
M=!$`!4 J"K%T*B#<;V8@01NP`A!R`, #($\!`0N '= <P2!C`Y%BXQNP';PN
M($\A007 (++Q!"!L:6L;L!$P`X$<L/YC!" A$1?P)3 )\"2A&;+E('!T!1!B
M=1WP):$%P-\;8 60!I -X!F@< M0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\=@):`E=A&T)<,=5$_RVRH'"D,32U'K1S,<TA6W'_^0(?1X "UT+N
M(U]16 `P\?\,("1"1*&*:4D1=*%0PG_Q_UM@21&HXNU0<H#W4.> .Y3_[]<9
M(]5$UN$Y48MX./CK@O=_\)2@4J G31YAP-%A5U+^355 &JB+4$:PH'",$D2A
M_YVQT\#GH*-!7U-:$*A ?_#OP5%.$NL8T94BE'!.$J&3^^LP6#$HBV'AX*"A
MW0%$,K\7TZ8!6&%Y8N?@68(IS.#_,8:#H<RSJ"-OE%]2"E%#\_\I4J*@ZQE1
M`^E!^0!20-/C[T\"<A)2->2R0O-#^8*NQ?F_H&QKS#9Q(TKQUU'H4_M_\:#Q
M(6 ;!3'H4T<,&76S;Y5OE"U+T_"BH%*]EA5OE'UK$ !5```#`! 0``````,`
M$1 ``````P" $/____] ``<PP']DF!9XOP% ``@PP']DF!9XOP$+``" "" &
M``````# ````````1@`````#A0````````,``H (( 8``````, ```````!&
M`````!"%`````````P`%@ @@!@``````P ```````$8`````4H4``+<-```#
M``F "" &``````# ````````1@`````!A0```````!X`%8 (( 8``````, `
M``````!&`````%2%```!````! ```#@N, `+`!F "" &``````# ````````
M1@`````.A0````````,`&H (( 8``````, ```````!&`````!&%````````
M`P`<@ @@!@``````P ```````$8`````&(4````````>`"N "" &``````# 
M````````1@`````VA0```0````$`````````'@`L@ @@!@``````P ``````
M`$8`````-X4```$````!`````````!X`+8 (( 8``````, ```````!&````
M`#B%```!`````0`````````>`#T``0````4```!213H@``````,`#33]-P``
"ZO2%
`
end

Reply via email to