Hi Kohsuke, Another reason to move away from using the transformers is for improved performance. Currently the Validator does several transformations: DOM->SAX->XNI->SAX->DOM. The SAX layer is just being used as a bridge and could be removed by directly converting the DOM to XNI and back. This would also allow us to add TypeInfo and PSVI to the DOMResult (if the output is from Xerces), something which isn't possible when using a transformer.
A transformer is also being used when a DOMSource is provided to the SchemaFactory. Although the input to the schema traversers is a DOM it undergoes the following transformations: DOM->SAX->XNI->Schema DOM. Since Xerces has dependencies on the Schema DOM implementation I understand why the conversion was necessary. I believe it's possible to remove this dependency so that the DOM the application specified can be used directly. I'm interested in working on these things, though I imagine it will probably take some time. Thanks. Kohsuke Kawaguchi <[EMAIL PROTECTED]> wrote on 04/21/2005 08:10:42 PM: > Neeraj Bajaj wrote: > > re: cutting these dependencies > > > > This should be possible because validator works on SAX stream. DOM --> > > SAX converter is required. > > Kohsuke, Do you want to add here ? > > I agree that we just need DOM->SAX converter to get rid of the > dependency to the identity transformer, and we can certainly do so by > copying the relevant code from Xalan. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]