Re: Question about document type nodes and JAXP

2000-10-19 Thread Arnaud Le Hors
Don Brutzman wrote: > > our new strategy: > develop a schema to replace DTD, then use XSLT to autogenerate > - IDL for spec > - corresponding Java interfaces & methods for all elements & attributes > - stub Java classes implementing those interfaces, suitable for a sample > implementation > - do

Re: Question about document type nodes and JAXP

2000-10-19 Thread Don Brutzman
Arnaud Le Hors wrote: > [...] > > I'd try to > > convince them to stop using IDL to specify DOM and use > > UML instead. > > You're welcome to try on www-dom. I don't remember anybody ever trying > (and I've been on the DOM WG from its beginning). good ideas to consider, thanks > > (The lack of

RE: Question about document type nodes and JAXP

2000-10-18 Thread Eric Hodges
> -Original Message- > From: Arnaud Le Hors [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 18, 2000 2:25 PM > To: general@xml.apache.org > Cc: [EMAIL PROTECTED]; xerces-j-dev@xml.apache.org > Subject: Re: Question about document type nodes and JAXP >

Re: Question about document type nodes and JAXP

2000-10-18 Thread Arnaud Le Hors
Eric Hodges wrote: > > I'm not convinced that a language neutral spec is that important. What does > it give us? I'd rather use an API tailored to the language I'm in, I think. But that was one of the requirements the DOM WG had to work with. People want to implement and use the DOM in many dif

Re: Question about document type nodes and JAXP

2000-10-18 Thread Arnaud Le Hors
Sean Kelly wrote: > > Ah, so the DOM is specified in IDL, as in OMG's IDL? Yes. > I didn't know that. I'm always amazed to find out how so few people ever read the specs. Which doesn't stop some from forming opinions and be vocal about it... (that's not intended to you in particular btw!) I sug

RE: Question about document type nodes and JAXP

2000-10-18 Thread Eric Hodges
> -Original Message- > From: Sean Kelly [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 18, 2000 1:53 PM > To: general@xml.apache.org > Cc: [EMAIL PROTECTED]; xerces-j-dev@xml.apache.org > Subject: Re: Question about document type nodes and JAXP > > &g

Re: Question about document type nodes and JAXP

2000-10-18 Thread Sean Kelly
> They are but not at the IDL level. It has to be done at the language > binding level. BTW we've been told it's a known pb with IDL!... Ah, so the DOM is specified in IDL, as in OMG's IDL? I didn't know that. > > > I wish JAXP addressed this problem but it doesn't either. :-( > > > > Thanks a

Re: Question about document type nodes and JAXP

2000-10-18 Thread Arnaud Le Hors
Eric Hodges wrote: > > You can't specify a factory in IDL? You can, but it would be yet another interface which wouldn't solve the bootstrapping issue. As I said in my previous message we've been told it's a know pb with IDL!... > I don't know much about IDL, so I'm > curious why you can't. See

Re: Question about document type nodes and JAXP

2000-10-18 Thread Arnaud Le Hors
Sean Kelly wrote: > > Blech. Are static methods allowed in the DOM specification (and are > they language independent)? They are but not at the IDL level. It has to be done at the language binding level. BTW we've been told it's a known pb with IDL!... > I'd love to see a singleton or static >

RE: Question about document type nodes and JAXP

2000-10-18 Thread Eric Hodges
> -Original Message- > From: Arnaud Le Hors [mailto:[EMAIL PROTECTED] > Sent: Wednesday, October 18, 2000 12:25 PM > To: general@xml.apache.org > Cc: [EMAIL PROTECTED]; xerces-j-dev@xml.apache.org > Subject: Re: Question about document type nodes and JAXP > > >

Re: Question about document type nodes and JAXP

2000-10-18 Thread Sean Kelly
> Because there doesn't seem to be any way to specify a bootstrap > mechanism which is platform and language independent the DOM spec > doesn't define any. :-( > I've made a proposal to fix this at least for Java in DOM Level 3. In > the meantime, you have to use some "proprietary" call. Blech. A

RE: Question about document type nodes and JAXP

2000-10-18 Thread Eric Hodges
@xml.apache.org > Subject: Re: Question about document type nodes and JAXP > > > > OK, how do I get the first instance of DOMImplementation so I can create > the > > DocumentType before I create the Document? I can only find a > way to get a > > DOMImplementa

Re: Question about document type nodes and JAXP

2000-10-18 Thread Arnaud Le Hors
Because there doesn't seem to be any way to specify a bootstrap mechanism which is platform and language independent the DOM spec doesn't define any. :-( I've made a proposal to fix this at least for Java in DOM Level 3. In the meantime, you have to use some "proprietary" call. Sean Kelly wrote: >

Re: Question about document type nodes and JAXP

2000-10-18 Thread Sean Kelly
> OK, how do I get the first instance of DOMImplementation so I can create the > DocumentType before I create the Document? I can only find a way to get a > DOMImplementation if I already have a Document. Document toss = new org.apache.xerces.dom.DocumentImpl(); DOMImplementation impl = toss.getI

RE: Question about document type nodes and JAXP

2000-10-18 Thread Eric Hodges
t: Monday, October 16, 2000 8:51 PM > To: [EMAIL PROTECTED] > Cc: general@xml.apache.org; xerces-j-dev@xml.apache.org > Subject: Re: Question about document type nodes and JAXP > > > In DOM Level 2, you first need to create the doctype node with > DOMImplementation.createDocu

Re: Question about document type nodes and JAXP

2000-10-17 Thread Eric Hodges
- Original Message - From: "Arnaud Le Hors" <[EMAIL PROTECTED]> To: Cc: ; <[EMAIL PROTECTED]> Sent: Tuesday, October 17, 2000 11:14 AM Subject: Re: Question about document type nodes and JAXP > Eric Hodges wrote: > > > > > In DOM Level 2, you fi

Re: Question about document type nodes and JAXP

2000-10-17 Thread Arnaud Le Hors
Eric Hodges wrote: > > > In DOM Level 2, you first need to create the doctype node with > > DOMImplementation.createDocumentType() and then create the document node > > with DOMImplementation.createDocument() to which you pass the doctype. > > You can't change the doctype afterwards. > > Wow, tha

Re: Question about document type nodes and JAXP

2000-10-17 Thread Eric Hodges
- Original Message - From: "Arnaud Le Hors" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: ; Sent: Monday, October 16, 2000 8:51 PM Subject: Re: Question about document type nodes and JAXP > In DOM Level 2, you first need to cre

Re: Question about document type nodes and JAXP

2000-10-17 Thread Arnaud Le Hors
In DOM Level 2, you first need to create the doctype node with DOMImplementation.createDocumentType() and then create the document node with DOMImplementation.createDocument() to which you pass the doctype. You can't change the doctype afterwards. -- Arnaud Le Hors - IBM Cupertino, XML Technology

Re: Question about document type nodes and JAXP

2000-10-17 Thread Don Brutzman
Eric Hodges wrote: > > I'm still trying to add a DocumentType from to a Document. I just worked around this using JAXP by creating a dummy document of the right type and then reading it in. This restriction is probably a limitation because: http://www.w3.org/TR/2000/PR-DOM-Level-2-Core-292

RE: Question about document type nodes and JAXP

2000-10-16 Thread Eric Hodges
PROTECTED]; > general@xml.apache.org > Subject: Question about document type nodes and JAXP > > > I need to duplicate XML documents. I'm using Xerces, going > through the JAXP > interface. I can't find any way to copy the document type node from one > documen

RE: Question about document type nodes and JAXP

2000-10-10 Thread Eric Hodges
0 4:04 PM > To: general@xml.apache.org > Cc: xerces-j-dev@xml.apache.org; [EMAIL PROTECTED] > Subject: RE: Question about document type nodes and JAXP > > > Unfortunately that's a xerces specific method. Like I said, we're using > Xerces through JAXP, so we want

RE: Question about document type nodes and JAXP

2000-10-10 Thread Eric Hodges
56 PM > To: general@xml.apache.org; [EMAIL PROTECTED] > Cc: xerces-j-dev@xml.apache.org; [EMAIL PROTECTED] > Subject: Re: Question about document type nodes and JAXP > > > HI Eric! > I think the Api "cloneNode" which is in > org.apache.xerces.dom.DocumentImpl sho

Re: Question about document type nodes and JAXP

2000-10-10 Thread Venkat Ramana Karpuram
HI Eric! I think the Api "cloneNode" which is in org.apache.xerces.dom.DocumentImpl should help you out. Please check the documentation to make sure of it. I used long time back and i remember i didn't had any problems. Thanks Venkat Ramana Eric Hodges wrote: > I need to duplicate XML doc

Question about document type nodes and JAXP

2000-10-10 Thread Eric Hodges
I need to duplicate XML documents. I'm using Xerces, going through the JAXP interface. I can't find any way to copy the document type node from one document to a new one. What are other people doing in this situation, or is there a suggested way to do it? Thanks.