Hi there!
I'm trying to bind an xsd files to specific namespaces and schema locations in my editor.
Here is a standart xsi:schemaLocation declaration we're using:
xsi:schemaLocation="http:++www-myCompany-com+system+subsystem+doctype http:++myCompany-system-sybsystem-doctype.xsd"
First, i've tried to bind a namespace to xsd with:
<extension
point="org.eclipse.wst.xml.core.catalogContributions">
<catalogContribution>
<uri
id="com.myCompany.system.subsystem.doctype.uri"
name="http:++www-myCompany-com+system+subsystem+doctype"
uri="resources/xsd/doctype.xsd">
</uri>
</catalogContribution>
</extension>
And it's not working with the above declaration, but works fine with just namespace declaration:
xsi:schemaLocation="http:++www-myCompany-com+system+subsystem+doctype"
I've found this http://wiki.eclipse.org/Using_the_XML_Catalog page, which is saying:
Quote:
can use the XML Catalog to register a local XML Schema file using the Schema Location as the key. This way a reference to web resource (e.g. --some--http--url--which--i--cant--post--) can be redirected to a local resource.
So, i've tried:
<public
id="com.myCompany.system.subsystem.doctype.public"
publicId="http:++myCompany-system-sybsystem-doctype.xsd"
uri="resources/xsd/doctype.xsd">
</public>
and as it's not working, then:
<system
id="com.myCompany.system.subsystem.doctype.system"
systemId="http:++myCompany-system-sybsystem-doctype.xsd"
uri="resources/xsd/doctype.xsd">
</system>
without any success (by success i mean non-derieved content assist).
So, what is the correct declaration for binding an above mentioned schemaLocation declaration to xsd?
P.S. '+' for the '/' and '-' for the '.' in urls, due to having less then 25 posts.