|
Re: scheme location problem regarding Content assist in xml editor [message #529942 is a reply to message #529616] |
Tue, 27 April 2010 18:47 |
|
On 4/26/2010 10:41 AM, Emil wrote:
....
> Later I've decided to use xsd scheme. The following I put in the root
> node of the xml <Root_node
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:noNamespaceSchemaLocation="file:///d:/temp/scheme/sampleScheme.xsd">
> The tricky part here is that I want the location pointed out in
> noNamespaceSchemaLocation attribute to be independent on location of the
> plugin. In other words: My plugin is in "d:/testPlugin", the xsd scheme
> is situated in it in a "resources" folder.
> If I open the xml from any location, I want the Content assist to be
> working properly. So I need some way to set this attribute before
> content assist is triggered in order to put the relative location
> calculated on the base of the location of the xml file and schema. Also
> if there is way to point the scheme without writing it in the xml, so
> that Content assist would read it is also an option.
> If there are any suggestions please write to me soon.
Have you looked into the XML Catalog?
--
Nitin Dahyabhai
Eclipse WTP Source Editing and JSDT
IBM Rational
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
Powered by
FUDForum. Page generated in 0.02768 seconds