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
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
> -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
>
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
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
> -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
> 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
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
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
>
> -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
>
>
>
> 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
@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
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:
>
> 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
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
- 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
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
- 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
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
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
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
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
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
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
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.
25 matches
Mail list logo