[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: [relax-ng-comment] Compact syntax is not compact enough. Why?
I took the sample of Relax NG non-xml syntax
from
element library {
element book { attribute id {text}, attribute available {text}, element isbn {text}, element title {attribute xml:lang {text}, text}, element author { attribute id {text}, element name {text}, element born {text}, element dead {text}?}*, element character { attribute id {text}, element name {text}, element born {text}, element qualification {text}}* } + } Applying tersexml notation
it could be written as
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
}
} * } +
}
Or, keeping the spirit of current relax NG
it could be ( I don't like it, but still ... )
:
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
}
} * } +
}
1. What are the problems of those terse notations,
comparing to current notation ( which is not
terse enough, from my point of view ).
I'm sure that this question has been asked
already, because I can't belive people enjoy
writing
element a { text }
instead of just
a { text }
2 ... What was the resolution ( if any ) last time
when this question has been asked?
Rgds.Paul.
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC