From: Matthew C. <mat...@va...> - 2007-10-05 16:06:46
|
Angel Pizarro wrote: > Just finished going through the specification, which is great BTW. > Just have a few notes/questions on the spec/schema as it stands. I'll > also post it these to the PSI site. > > (1) sourceFileRef in multiple places > > Why does this exist > run -> spectrumList -> spectrum [:sourceFileRef => anyURI ] > when there is this? > run -> sourceFileRefList -> sourceFileRef [:ref => anyURI ] I agree, I don't see a reason for the sourceFileRefList. Only a sourceFileList is needed. > > When would you use one over the other or would you have to specify > both or what? The spec should cover this a bit better. > > (2) count attributes in list like element types > > I *really* don't like the count attribute in list types (e.g. > instrumentList[@count]). I think they are not too informative and > prone to error (just another condition to code and maintain) If you don't want to maintain the count attributes, ignore them. :) They are mainly useful for human consumption, or if you wanted to write a very (but bulky) fast parser with low error checking. -Matt |