Add Interop closed caption XSD for verification.
authorCarl Hetherington <cth@carlh.net>
Thu, 10 Sep 2020 22:36:00 +0000 (00:36 +0200)
committerCarl Hetherington <cth@carlh.net>
Thu, 10 Sep 2020 23:03:42 +0000 (01:03 +0200)
src/verify.cc
wscript
xsd/PROTO-ASDCP-CC-CPL-20070926.xsd [new file with mode: 0644]

index a9036fd13294e4d529cd99647d347cd34a98577b..4fce49a33db8fd277a437a2be53ebbe04948624b 100644 (file)
@@ -203,6 +203,7 @@ public:
                add("http://www.digicine.com/PROTO-ASDCP-CPL-20040511.xsd", "PROTO-ASDCP-CPL-20040511.xsd");
                add("http://www.digicine.com/PROTO-ASDCP-PKL-20040311.xsd", "PROTO-ASDCP-PKL-20040311.xsd");
                add("http://www.digicine.com/PROTO-ASDCP-AM-20040311.xsd", "PROTO-ASDCP-AM-20040311.xsd");
+               add("http://www.digicine.com/PROTO-ASDCP-CC-CPL-20070926#", "PROTO-ASDCP-CC-CPL-20070926.xsd");
                add("interop-subs", "DCSubtitle.v1.mattsson.xsd");
                add("http://www.smpte-ra.org/schemas/428-7/2010/DCST.xsd", "SMPTE-428-7-2010-DCST.xsd");
        }
@@ -276,6 +277,7 @@ validate_xml (T xml, boost::filesystem::path xsd_dtd_directory, list<Verificatio
                schema.push_back("PROTO-ASDCP-AM-20040311.xsd");
                schema.push_back("DCSubtitle.v1.mattsson.xsd");
                schema.push_back("DCDMSubtitle-2010.xsd");
+               schema.push_back("PROTO-ASDCP-CC-CPL-20070926.xsd");
 
                /* XXX: I'm not especially clear what this is for, but it seems to be necessary */
                string locations;
diff --git a/wscript b/wscript
index 5cefa27940a7d8a173b9372bdbf712b56db3484a..f418652182118c73c5a8be7e53734d417899db91 100644 (file)
--- a/wscript
+++ b/wscript
@@ -245,6 +245,7 @@ def build(bld):
               'PROTO-ASDCP-CPL-20040511.xsd',
               'PROTO-ASDCP-PKL-20040311.xsd',
               'PROTO-ASDCP-AM-20040311.xsd',
+              'PROTO-ASDCP-CC-CPL-20070926.xsd',
               'Main-Stereo-Picture-CPL.xsd',
               'DCSubtitle.v1.mattsson.xsd',
               'DCDMSubtitle-2010.xsd' ]:
diff --git a/xsd/PROTO-ASDCP-CC-CPL-20070926.xsd b/xsd/PROTO-ASDCP-CC-CPL-20070926.xsd
new file mode 100644 (file)
index 0000000..36ba4d8
--- /dev/null
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.digicine.com/PROTO-ASDCP-CC-CPL-20070926#" xmlns:cpl="http://www.digicine.com/PROTO-ASDCP-CPL-20040511#" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+  <xs:import namespace="http://www.digicine.com/PROTO-ASDCP-CPL-20040511#" schemaLocation="http://www.digicine.com/PROTO-ASDCP-CPL-20040511.xsd"/>
+  <!--MainClosedCaption-->
+  <xs:element name="MainClosedCaption" type="cpl:SubtitleTrackFileAssetType"/>
+</xs:schema>