XML Catalog and DTD system entities [message #229329] |
Fri, 20 March 2009 08:47  |
Eclipse User |
|
|
|
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 #229460 is a reply to message #229400] |
Tue, 24 March 2009 14:34  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 1.18600 seconds