-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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"
)
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working