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

Failure if the target namespace is unqualified #3

Open
dholroyd opened this issue Aug 30, 2019 · 0 comments
Open

Failure if the target namespace is unqualified #3

dholroyd opened this issue Aug 30, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@dholroyd
Copy link

e.g. MPD.xsd,

$ cargo run --package xml-schema --bin gen DASH-MPD.xsd > dash-mpd.rs                                                                                      
    Finished dev [unoptimized + debuginfo] target(s) in 0.03s                                                                                                                                                      
     Running `target/debug/gen DASH-MPD.xsd`                                                                                                                                                                       
thread 'main' panicked at 'Some("urn:mpeg:dash:schema:mpd:2011")', src/libcore/option.rs:1034:5

I think this is because of the namespace definition in the schema:

<xs:schema
  targetNamespace="urn:mpeg:dash:schema:mpd:2011"
  attributeFormDefault="unqualified"
  elementFormDefault="qualified"
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:xlink="http://www.w3.org/1999/xlink"
  xmlns="urn:mpeg:dash:schema:mpd:2011">

...the targetNamespace matches the unqualified namespace definition xmlns="urn:mpeg:dash:schema:mpd:2011".

(As a workaround, I can alter the schema so that the namespace definition is qualified, e.g. xmlns:mpd="urn:mpeg:dash:schema:mpd:2011")

@progval progval added the bug Something isn't working label Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants