You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by zo...@ca.ibm.com on 2003/01/31 23:25:28 UTC

Dynamic validation of stylesheets

Hello,

     Sarah McNamara noticed that, with the latest xercesImpl.jar, Xalan-J 
Interpretive will produce errors for a stylesheet that includes a DOCTYPE, 
but does not otherwise meet the requirements of the XML 1.0 validity 
constraints; no error is produced for stylesheets that contain no DOCTYPE. 
 This is because the processor turns on Xerces' dynamic validation feature 
when it processes a stylesheet, and the meaning of that feature changed 
recently.

     Looking at the source, there once existed code that turned on the 
dynamic validation feature for input documents as well, but that code was 
disabled in response to bug 2124.[1]  Looking at some e-mail discussion, 
it looks like, at some point, Xerces-J might have required that either 
validation or dynamic validation be enabled in order to have attributes of 
type ID processed correctly for id() function support, but that doesn't 
appear to have been the case for some time now.

     Does anyone know of any reason why we should continue to turn on the 
dynamic validation feature for stylesheets?  If not, I'll remove that 
code.

Thanks,

Henry
[1] http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2124
------------------------------------------------------------------
Henry Zongaro      Xalan development
IBM SWS Toronto Lab   Tie Line 969-6044;  Phone (905) 413-6044
mailto:zongaro@ca.ibm.com