[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: [relax-ng-comment] Abbreviated compact syntax (Re: Compact syntaxis not compact enough. Why?)
> element foo { } would be abbreviated as <foo> { } why not just foo {} > attribute foo { } would be abbreviated as @foo { } Makes sense. I like this better, than my version. > The example in Paul's post would then become: > > <library> > { > <book> > { > @id {text}, @available {text}, > <isbn> {text}, > <title> {@xml:lang {text}, text}, > <author> {@id {text}, <name> {text}, <born> {text}, <dead> {text}?}*, > <character> {@id {text}, <name> {text}, <born> {text}, <qualification> > {text}}* > } + > } > > which is more compact indeed, and in my opinion easier to read. What about: library { book { @id {text}, @available {text}, isbn {text}, title {@xml:lang {text}, text}, author {@id {text}, name {text}, born {text}, dead {text}?}*, character {@id {text}, name {text}, born {text}, qualification {text}}* } + } Rgds.Paul.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC