RE: false/false illegal setting for namespaces is permitted
"Paul Brown" <[email protected]>
| Newsgroups | gmane.comp.java.classpath.extensions.xml |
|---|---|
| Message-ID | <7D365016E308F44EACB6ADB51CBD6904328554@shbex01.hosting.innerhost.com> |
> From: [email protected] > [mailto:[email protected]] > "Paul Brown" <[email protected]> writes: > > As part of a project, I put together a feature/property > > checker, and one of the things that it spotted is that > > GNU JAXP allows the illegal namespaces=false, > > namespace-prefixes=false setting. > Hmmm... that sounds fairly simple to fix. > Want to have a crack at it? As long as it is agreed that this is the Right Thing To Do. Implementing the features as in the SAX "spec" would require that: 1) If namespace-prefixes is false, then setting namespaces to false is an error; and vice versa. 2) Default is n=T,n-p=F. So the naive namespace disablement action (namespaces=false) will result in an error. The next two questions: 1) Should the exception be thrown only on parse (to avoid the problem in 2 above)? 2) Is SAXNotSupportedException the right exception to throw? -- Paul