Skip to content

Discuss with RiseClipse if it's possible to return a XPath Expression to the element #112

Open
@dlabordus

Description

@dlabordus

We need to discuss with RiseClipse to see if it's possible to return a XPath Expression to Element causing the validation error like we try to build for the XSD Validation.

Before we start this discussion we first want to see if we get it working for the XSD Validation, see #111 and com-pas/compas-open-scd#187.

After that works we can see if the following is possible. (See #108)
I see possibilities in the class 'SCLXMLHandler', here the line number is also added to the EObject. Maybe something can also be done here to store the Element information, see 'org.eclipse.emf.ecore.xmi.impl.XMLHandler' which is extended indirectly by 'SCLXMLHandler'.
But it won't be easy, because there is no Document. We only have the method 'startElement' probably with information about the element being processed.
If we want to support the RiseClipse Team more, the hard thing for now is to have a working development environment.
You probably need to start using Eclipse and see how to compile everything.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions