OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   RE: [xml-dev] SML: Second Try

[ Lists Home | Date Index | Thread Index ]


> This looks a lot like an indented syntax I created a while back to make it
> easier to type XML files.  I posted it to the PyXML list, and at XML2002
> John Cowan asked me to post it here. (which obviously I did not get to
> before now - sorry, John).
> Here is my version of Don's sample from the linked web page -
> circle::
>     @x::1.0
>     @y::1.0
>     @r::0.5
>     fill
>         @color::#FF0000
>     text::Circle A

Cool, although I think use of special characters like '@' and ':' makes your
syntax more geeky than necessary.  All I am using so far are quotes and '='.

> Of course this format is too simple to capture everything in XML, but it
> does the basics of banging elements into place easily and readably.

I doubt my syntax can handle everything also.  I even forgot to illustrate
mixed-content which caused so many headaches for SML-DEV.

I am thinking the following will suffice:

  A attr1="blah"
    "some text"
    "some more text"
      "inner text"

In this example, readability suffers somewhat.  Oh, well.  I never liked

> I never thought of this as a replacement for XML, but just a handy helper
> for easy typing and reading.

Same here.  XML is off and running.  I am just trying to put a *saddle* on


Don Park


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS