SGML, XML and SML

Don Park donpark at docuverse.com
Tue Nov 23 09:19:46 GMT 1999


>which is hardly complex. Presumably, your SML would be
>something like this
>
>[1]    canonXML    ::=    (Comment | #xA)*  element (Comment | #xA)*
>[2]    element    ::=   ( Stag (Datachar | element  | Comment )* Etag )
>| Mtag
>[3]    Stag    ::=    '<' Name NSDecl? (Att NSDecl?)* '>'
>[4]    Etag    ::=    '</' Name '>'
>[5]    NSDecl    ::=    #x20 'xmlns:' Prefix '=' '"' Attvalchar* '"'
>[6]    Att    ::=    #x20 Name '=' '"' Attvalchar* '"'
>[7]    Datachar    ::=    '&amp;' | '&lt;' | '&gt;' | (Char -
>('&' | '<'
>| '>' | #x9 | #xA | | #xD ))
>[8]    Attvalchar    ::=    '&amp;' | '&lt;' | '&quot;'  | (Char - ('&'
>| '<' | '"' | #x9 | #xA | #xD))
>[9]    Name    ::=    (Prefix ':')? NCName
>[10]    Prefix    ::=    'n' [1-9] [0-9]*
>[11]    Comment   ::=    '<!--' (Char+ - (Char* '-->')))? '-->'
>[12 ]  Mtag   ::=    '<' Name NSDecl? (Att NSDecl?)* '/>'
>
>Which is the same level of complexity. You take out PIs and
>add comments and empty start tags.

No.  SML will be simpler even.  Remove comment and everything
related to namespace out.  Namespace is not supported at SML
level.  Assuming that attribute support is left in SML, SML can
work with the XML Namespace spec.

Best,

Don Park    -   mailto:donpark at docuverse.com
Docuverse   -   http://www.docuverse.com


>
>
>Rick Jelliffe
>
>
>xml-dev: A list for W3C XML Developers. To post,
mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN
981-02-3594-1
To unsubscribe, mailto:majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following
message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)



xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To unsubscribe, mailto:majordomo at ic.ac.uk the following message;
unsubscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)





More information about the Xml-dev mailing list