Kendall Shaw wrote:

> I mean roughly the same syntax as the relax ng compact syntax, but for
> any XML, not just for Relax NG schemas.
> 
> In other words:
> 
> namespace y = "http://abcd";
> 
> element y:floop {
>   attribute bork "xyz"
> }
> 
> would represent:
> 
> <y:floop xmlns:y="http://abcd"; bork="xyz"/>

I don't see in what aspect is this syntax better then XML. Anyway in RNC
you can already write this as:

namespace y = "http://abcd";

[y:floop [ bork = "xyz" ]]

The only problem is that above is not complete schema (it doesn't define
any real RELAX NG pattern) and it will be refused by Trang. But I
suppose that you can very easily extend Trang to deal with such
incomplete schemas.

                                Jirka

P.S. And of course, if you don't like angle brackets you can turn them
into parenthesis and use s-expressions (or SGML with minimalization
features as was already suggested) ;-D

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: [EMAIL PROTECTED]      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO/JTC1/SC34 member
------------------------------------------------------------------
 Want to speak at XML Prague 2007 => http://xmlprague.cz/cfp.html

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to