OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

relax-ng message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Datatype interface extension



This is a SourceForge related issue.


Since we've decided that we disallow context-dependend datatypes from
attribute default values, the Datatype interface is needed to be
extended to have the following method:

boolean isContextDependent();

This method should return false only if the datatype will never, ever need
to access the context information.

Since we are introducing the new method, it will break the backward
compatibility. I assume it's OK at this moment to break backward
compatibility, but I just want to make sure that nobody has serious
problem with it.


Throwing a ContextRequiredException seemed like a good idea but I now
believe there is a problem with this approach. Namely, if you validate
"abc" with the QName type without ValidationContext, it probably won't
throw a ContextRequiredException.


regards,
--
Kohsuke KAWAGUCHI                          +1 650 786 0721
Sun Microsystems                   kohsuke.kawaguchi@sun.com



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC