Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » XML Catalog
XML Catalog [message #64338] Tue, 11 January 2005 00:17 Go to next message
Eclipse UserFriend
In my WTP M2 installation, there are no plug-in defined entries in the XML
Catalog. Should there be? I'm looking for an example that uses this feature.
I'd like my plug-in (an editor for a particular XML format) to deploy with a
schema located within the plug-in directory, and a catalog entry for use by
files opened by the editor.

Thanks.
Re: XML Catalog [message #64687 is a reply to message #64338] Tue, 11 January 2005 15:14 Go to previous messageGo to next message
Eclipse UserFriend
Richard Rodseth wrote:

> In my WTP M2 installation, there are no plug-in defined entries in the XML
> Catalog. Should there be? I'm looking for an example that uses this feature.
> I'd like my plug-in (an editor for a particular XML format) to deploy with a
> schema located within the plug-in directory, and a catalog entry for use by
> files opened by the editor.

> Thanks.

In M2, we don't include any plugin defined catalog entries. We hope to
add these in M3. Here's an example of how plugin developers can do this
via the plugin.xml file.

<extension point="org.eclipse.wst.xml.uriresolver.catalogContributor">
<catalogContributor catalogId="default">
<mappingInfo key="http://schemas.xmlsoap.org/wsdl/"
uri="xsd/wsdl.xsd"/>
<mappingInfo key="http://schemas.xmlsoap.org/wsdl/soap/"
uri="xsd/soap.xsd"/>
</catalogContributor>
</extension>

Note that the 'uri' attribute values specify plugin relative paths. In
this case we'd assume a directory structure like this
<install-location>/eclipse/plugins/my-plugin/xsd

Give that a try and let me know how it works out. BTW... just a
disclaimer... I should mention that this extension point may change in the
future. Until our API's are finalized some migration may be required when
you pick up new WTP release.

Hope that helps
Re: XML Catalog [message #64845 is a reply to message #64687] Tue, 11 January 2005 22:34 Go to previous message
Eclipse UserFriend
Thanks. I tried this extension point today, and it worked out fine. There
was a commented-out instance of the extension point in the xds.ui plug-in.

- Richard

"Craig Salter" <csalter@ca.ibm.com> wrote in message
news:cs1c2l$po8$1@www.eclipse.org...
> Richard Rodseth wrote:
>
>> In my WTP M2 installation, there are no plug-in defined entries in the
>> XML Catalog. Should there be? I'm looking for an example that uses this
>> feature. I'd like my plug-in (an editor for a particular XML format) to
>> deploy with a schema located within the plug-in directory, and a catalog
>> entry for use by files opened by the editor.
>
>> Thanks.
>
> In M2, we don't include any plugin defined catalog entries. We hope to
> add these in M3. Here's an example of how plugin developers can do this
> via the plugin.xml file.
>
> <extension point="org.eclipse.wst.xml.uriresolver.catalogContributor">
> <catalogContributor catalogId="default">
> <mappingInfo key="http://schemas.xmlsoap.org/wsdl/"
> uri="xsd/wsdl.xsd"/>
> <mappingInfo key="http://schemas.xmlsoap.org/wsdl/soap/"
> uri="xsd/soap.xsd"/>
> </catalogContributor>
> </extension>
>
> Note that the 'uri' attribute values specify plugin relative paths. In
> this case we'd assume a directory structure like this
> <install-location>/eclipse/plugins/my-plugin/xsd
>
> Give that a try and let me know how it works out. BTW... just a
> disclaimer... I should mention that this extension point may change in the
> future. Until our API's are finalized some migration may be required when
> you pick up new WTP release.
>
> Hope that helps
>
>
Previous Topic:Background Color of Structured Text
Next Topic:JavaScript Support in Webtools M2
Goto Forum:
  


Current Time: Thu May 08 10:57:38 EDT 2025

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

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

Back to the top