Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » XML Catalog and DTD system entities
XML Catalog and DTD system entities [message #229329] Fri, 20 March 2009 12:47 Go to next message
Csaba Koncz is currently offline Csaba KonczFriend
Messages: 49
Registered: July 2009
Member
Hello,

I have a number of Eclipse plugins that ship with their own XML Schema
files. These schemas need to share some common constructs. The common
parts are placed into separate files and are included in the schemas using
DTD entities like this:

<!DOCTYPE schema[
<!ENTITY fragment1 SYSTEM "platform:/plugin/com.myplugin/fragment1.xml">
]>

I am using platform: URL as the schema needs to find its fragments during
runtime.
This is fine and works, but I have problems when editing both the schema
and the instance XML documents during development time as neither the XSD
nor the XML editor can resolve the entities.
I added mappings to XML Catalog that would help the editors find the
fragments, but these seem to be ignored.
I suspect a bug here, or am I missing something?
Re: XML Catalog and DTD system entities [message #229338 is a reply to message #229329] Fri, 20 March 2009 16:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

I don't believe that the XML Editors or XSD editors resolve these as you
would expect.

One thing, I'm curious about, why are you using DTD entires to bring in
the XML Schemas. If your XML Schemas have namespaces (which they
really should), then you can assoicate the namespaces with the
appropriate grammar in the XML Catalog.

There is also XML Catalog 1.1 support in the works which should allow
the support of XML Schemas with the same namespace to be used by
different XML files as well.

Dave

Csaba Koncz wrote:
> Hello,
>
> I have a number of Eclipse plugins that ship with their own XML Schema
> files. These schemas need to share some common constructs. The common
> parts are placed into separate files and are included in the schemas
> using DTD entities like this:
>
> <!DOCTYPE schema[ <!ENTITY fragment1 SYSTEM
> "platform:/plugin/com.myplugin/fragment1.xml"> ]>
> I am using platform: URL as the schema needs to find its fragments
> during runtime.
> This is fine and works, but I have problems when editing both the schema
> and the instance XML documents during development time as neither the
> XSD nor the XML editor can resolve the entities. I added mappings to XML
> Catalog that would help the editors find the fragments, but these seem
> to be ignored. I suspect a bug here, or am I missing something?
>
Re: XML Catalog and DTD system entities [message #229400 is a reply to message #229338] Mon, 23 March 2009 12:59 Go to previous messageGo to next message
Csaba Koncz is currently offline Csaba KonczFriend
Messages: 49
Registered: July 2009
Member
Hi Dave,

The WST editors do not use the Catalog for resolving DTD entities, I see
that. However, other editors (e.g. Oxygen XML Editor) do.

As to my problem: I am importing common enum sets into schemas. I have a
simple type in one schema that should extend a simple type from the other.
(the shemas declare their own name spaces).
The base type is a string that is restricted by enumeration values.
However, enum sets can not be extended, at most I can use derivation by
union. But then I loose content assist when using the derived type in an
xml instance document.

Csaba
Re: XML Catalog and DTD system entities [message #229460 is a reply to message #229400] Tue, 24 March 2009 18:34 Go to previous message
Eclipse UserFriend
Originally posted by: dcarver.starstandard.org

Csaba,

Please open an enhancement request against the wst.xml component for
this support. We'll be getting full OASIS XML Catalog support hopefully
in the comming release of WTP 3.1. So I can try to address this during
the very short release cycle for the WTP 3.2 (December of 2009), but
I'll need a bug with as much detail on what you want it to do and what
the results are.

http://bugs.eclipse.org/bugs

Dave


Csaba Koncz wrote:
> Hi Dave,
>
> The WST editors do not use the Catalog for resolving DTD entities, I see
> that. However, other editors (e.g. Oxygen XML Editor) do.
>
> As to my problem: I am importing common enum sets into schemas. I have a
> simple type in one schema that should extend a simple type from the
> other. (the shemas declare their own name spaces). The base type is a
> string that is restricted by enumeration values. However, enum sets can
> not be extended, at most I can use derivation by union. But then I loose
> content assist when using the derived type in an xml instance document.
> Csaba
Previous Topic:Debugging remote server through external launch?
Next Topic:Problems with JEE Update
Goto Forum:
  


Current Time: Tue Mar 19 07:00:30 GMT 2024

Powered by FUDForum. Page generated in 0.02372 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top