Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
dlabordus opened this issue Sep 5, 2022 · 0 comments

Comments

@dlabordus
Copy link

dlabordus commented Sep 5, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant