Re: doctype?

2009-11-24 Thread Michael Ludwig
Michael Glavassevich schrieb am 30.10.2009 um 12:45:44 (-0400): > Benson Margulies wrote on 10/30/2009 10:59:27 > AM: > > > I'm not sure if I should be consulting Xerces, Xalan, or a beer. > > > > I've got a DOM tree with a doctype on it. > > > > I want to serialize it. > > > > I use the usual T

Re: doctype?

2009-11-24 Thread Michael Glavassevich
A DOCTYPE can be specified programmatically [1][2][3], so you don't need to write a stylesheet. Note that either approach only works if the DocumentType node has no internal subset. If it has one it will still be lost if you do this. Thanks. [1] http://xerces.apache.org/xerces2-j/javadocs/api/ja

Re: doctype?

2009-11-24 Thread Michael Ludwig
Michael Glavassevich schrieb am 24.11.2009 um 12:02:29 (-0500): > > A DOCTYPE can be specified programmatically [1][2][3], so you don't > need to write a stylesheet. True, thanks. But I assumed the OP had already written one, as he wrote: > > > > I use the usual TraX call. No doctype lands in th

Re: doctype?

2009-11-24 Thread Michael Glavassevich
Michael Ludwig wrote on 11/24/2009 12:20:15 PM: > Michael Glavassevich schrieb am 24.11.2009 um 12:02:29 (-0500): > > > > A DOCTYPE can be specified programmatically [1][2][3], so you don't > > need to write a stylesheet. > > True, thanks. But I assumed the OP had already written one, as he wrot

Re: xs:any namespace resolution

2009-11-24 Thread ajay bhadauria
Michael, Thanks a lot, it works. I have a question for you. Is Validator smart enough to figure out when LSResourceResolver is giving compiled schema or uncompiled schema just to avoid compiling of schema at runtime ? Thanks Ajay --- On Fri, 11/20/09, Michael Glavassevich wrote: > From:

Re: xs:any namespace resolution

2009-11-24 Thread Michael Glavassevich
Hi Ajay, The Validator knows what kind of Schema it was created with. It will only call the LSResourceResolver if the Schema was created with SchemaFactory.newSchema() (the one with no parameters). Whatever it loads dynamically does get cached [1] (though might get flushed out at some point in th