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

How do I set a StopEventRequest's LineFilter that passes the XSD validation? #470

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

leonardehrenfried
Copy link

@leonardehrenfried leonardehrenfried commented Feb 21, 2025

I'm familiarising myself with OJP but I'm a little puzzled about how to set a line filter in the StopEventRequest.

Intellij's autocomplete and the HTML documentation suggests that you can do it like in the example in this PR but xmllint and weirdly Intellij itself complain about it.

examples/basic/StopEventRequest-LineFilter.xml:25: element LineFilter: Schemas validity error : Element '{http://www.vdv.de/ojp}LineFilter': This element is not expected. Expected is one of ( {http://www.vdv.de/ojp}IncludePlacesContext, {http://www.vdv.de/ojp}IncludeSituationsContext, {http://www.vdv.de/ojp}IncludeStopHierarchy, {http://www.vdv.de/ojp}Extension ).

Is the below example correct?

@leonardehrenfried leonardehrenfried changed the title How do I include a LineFilter that passes the XSD validation? How do I set a StopEventRequest's LineFilter that passes the XSD validation? Feb 22, 2025
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

Successfully merging this pull request may close these issues.

1 participant