Jirka Kosek <[EMAIL PROTECTED]> writes:

> 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:

It would be compact as much as the relax ng compact syntax is compact
compared to the XML form.

I am refering to a simple pre-processing of the compact representation
into XML, no schema is involved. I think it can only be as bad an idea
as the relax ng compact syntax is, which is not bad at all.

> 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

Unfortunately, there is wide-spread fear of parenthesis for some
reason.

Kendall

Reply via email to