Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Making catalog contributions(Resolving correct xml files)
Making catalog contributions [message #904772] Wed, 29 August 2012 06:13 Go to next message
Leonid Ripeynih is currently offline Leonid RipeynihFriend
Messages: 150
Registered: February 2012
Senior Member
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.
Re: Making catalog contributions [message #910627 is a reply to message #904772] Mon, 10 September 2012 05:57 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

Where is the file to which you actually want to point?

_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Windows 7 related???
Next Topic:JSF 2.2.m05 Taglib support
Goto Forum:
  


Current Time: Wed Apr 24 17:59:57 GMT 2024

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

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

Back to the top