Re: [Saxdotnet-devel] Reducing the versioning / eliminating the Ixxx2 interfaces
Brought to you by:
jeffrafter,
kwaclaw
From: Elliotte H. <el...@me...> - 2004-12-07 19:56:39
|
Karl Waclawek wrote: > While we are at it: Why are enumerations reported as NMTOKEN in the Java API" > <quote> > For an enumerated attribute that is not a notation, > the parser will report the type as "NMTOKEN". > </quote> > > Why not use the type as it is declared? Or use the the term "ENUMERATION"? I've actually seen Java SAX parsers that do each of these. i.e. return "ENUMERATION" as the type or return "(value1 | value2 | value3)". This has actually died out in the java space as parsers come into tighter compliance with the spec, but either one is reasonable as long as you specify it. I see no reason why SAX.NET has to follow Java SAX here. -- Elliotte Rusty Harold el...@me... XML in a Nutshell 3rd Edition Just Published! http://www.cafeconleche.org/books/xian3/ http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim |