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

validate URIs/URLs #41

Open
MartijnR opened this issue Oct 24, 2018 · 1 comment
Open

validate URIs/URLs #41

MartijnR opened this issue Oct 24, 2018 · 1 comment

Comments

@MartijnR
Copy link
Member

MartijnR commented Oct 24, 2018

external data, media resources

The spec info is here: http://getodk.github.io/xforms-spec/#uris but in addition we consider http(s):// URLs valid too.

@MartijnR
Copy link
Member Author

MartijnR commented Nov 2, 2021

See Develop for guidance on running this tool locally.

Here is an XForm (extension changed to txt to work around GitHub restriction) that can be used during development (and to add a test spec) that contains several valid and invalid URLs:

  1. external <instance> data references i.e. <instance src="....">, always as children of <model>, and
  2. image resources i.e. <value form="image">, always under model/itext/translation/text/value as textContent

Create a PR that:

  • adds a test spec (optional)
  • adds the feature

If you get stuck trying to 'find' the media resources, don't worry about it (and don't spend too much time) and just do the <instance> elements with a src attribute only.

@MartijnR MartijnR changed the title validate URLs validate URIs Nov 2, 2021
@MartijnR MartijnR changed the title validate URIs validate URIs/URLs Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant