| Summary: | Schema validation and code completion use differing interpretations of relative paths | ||
|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | Stuart Rossiter <monsieurrigsby> |
| Component: | wst.xsd | Assignee: | wst.xsd <wst.xsd-inbox> |
| Status: | NEW --- | QA Contact: | Keith Chong <keith.chong.ca> |
| Severity: | normal | ||
| Priority: | P3 | CC: | thatnitind |
| Version: | 3.2.3 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Stuart Rossiter
>
> test.xsd contains:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <schema xmlns="http://www.w3.org/2001/XMLSchema"
> targetNamespace="http://www.example.org/test"
> xmlns:tns="http://www.example.org/test" elementFormDefault="qualified">
>
> <complexType name="ComplexTest">
> <sequence>
> <element name="a" type="string" />
> <element name="b" type="string" />
> </sequence>
> </complexType>
> </schema>
>
Oops: should be test2.xsd contains.
Note that the same filesystem relative paths are required for creating an XML file from a schema file. (I presume that, under the covers, this uses the same code as for schema validation but, if not, it also needs fixing here.)
To reproduce that, change the main contents of test.xsd to :
<element name="refTest">
<complexType>
<sequence>
<element name="a" type="tns:ComplexTest" />
</sequence>
</complexType>
</element>
Then try to add a new XML file based on test.xsd as the schema. It requires the include entry to have the filesystem relative path, not the Eclipse platform one.
Has no-one yet assessed this bug / planned when to fix it? It persists in the latest Indigo SR1 release. The related bug 196353 has also not been touched since March 2011. I wanted to update this to show it's still a problem in Indigo SR1, but the Version field only goes up to 3.4. What's all that about?? Is this bug system somehow defunct? (In reply to comment #3) > Has no-one yet assessed this bug / planned when to fix it? It persists in the > latest Indigo SR1 release. The related bug 196353 has also not been touched > since March 2011. > > I wanted to update this to show it's still a problem in Indigo SR1, but the > Version field only goes up to 3.4. What's all that about?? Is this bug system > somehow defunct? The Version field says which version in which the problem was found. 3.4 is the version still in development, so higher versions are currently of no use. Indigo SR1 contains 3.3.1. |