我有xml清单文件(这是它的一部分)
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<manifest:MediaManifest
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:manifest="http://www.movielabs.com/schema/manifest/v1.5/manifest"
xmlns:md="http://www.movielabs.com/schema/md/v2.4/md"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<manifest:Compatibility>
<manifest:SpecVersion>1.5</manifest:SpecVersion>
<manifest:Profile>http://www.movielabs.com/md/manifest/v1.5/manifest-v1.5.xsd</manifest:Profile>
</manifest:Compatibility>
<manifest:Inventory>
<manifest:Audio
AudioTrackID="md:audtrackid:org:blueskyfilm.com:licks1:feature.audio51.en">
<md:Type>primary</md:Type>
<md:Language>en</md:Language>
<md:TrackReference>2</md:TrackReference>
<md:Encoding>
<md:Codec>PCM</md:Codec>
<md:ChannelMapping>L,R,C,LFE,LS,RS</md:ChannelMapping>
</md:Encoding>
<md:Channels>5.1</md:Channels>
<manifest:ContainerReference>
<manifest:ContainerIdentifier>
<md:Namespace>md</md:Namespace>
<md:Identifier>md:apid:org:blueskyfilm.com:licks1:feature.audio51.en</md:Identifier>
<md:Location>file://resources/Licks_FTR_1080_2398p_51en_20en.mov</md:Location>
</manifest:ContainerIdentifier>
</manifest:ContainerReference>
</manifest:Audio>
<manifest:Audio
AudioTrackID="md:audtrackid:org:blueskyfilm.com:licks1:feature.audio20.en">
<md:Type>primary</md:Type>
<md:Language>en</md:Language>
<md:Encoding>
<md:Codec>PCM</md:Codec>
<md:ChannelMapping>stereo</md:ChannelMapping>
</md:Encoding>
<md:Channels>2</md:Channels>
<md:TrackReference>3</md:TrackReference>
<manifest:ContainerReference>
<manifest:ContainerIdentifier>
<md:Namespace>md</md:Namespace>
<md:Identifier>md:apid:org:blueskyfilm.com:licks1:feature.audio20.en</md:Identifier>
<md:Location>file://resources/Licks_FTR_1080_2398p_51en_20en.mov</md:Location>
</manifest:ContainerIdentifier>
</manifest:ContainerReference>
</manifest:Audio>...
我在元素md:encoding上有错误。
$ xmllint --schema ~/Documents/workspace/manifest-v1.5.xsd licks_manifest.xml > report.txt
licks_manifest.xml:20: element Encoding: Schemas validity error : Element '{http://www.movielabs.com/schema/md/v2.4/md}Encoding': This element is not expected. Expected is one of ( {http://www.movielabs.com/schema/md/v2.4/md}TrackIdentifier, {http://www.movielabs.com/schema/md/v2.4/md}Private, {http://www.movielabs.com/schema/manifest/v1.5/manifest}ContainerReference ).
licks_manifest.xml:37: element Encoding: Schemas validity error : Element '{http://www.movielabs.com/schema/md/v2.4/md}Encoding': This element is not expected. Expected is one of ( {http://www.movielabs.com/schema/md/v2.4/md}Channels, {http://www.movielabs.com/schema/md/v2.4/md}TrackReference, {http://www.movielabs.com/schema/md/v2.4/md}TrackIdentifier, {http://www.movielabs.com/schema/md/v2.4/md}Private, {http://www.movielabs.com/schema/manifest/v1.5/manifest}ContainerReference ).
licks_manifest.xml fails to validate*
架构和参考在movielabs.com上 (http://movielabs.com/md/manifest/)
我害怕我不完全理解trackidentificator规范。电影实验室仍然没有回答问题,所以我试试这里。如果有人有经验并且可以指导我。
感谢。
答案 0 :(得分:0)
我自己回答。标记em:编码必须遵循标记md:Type。感谢来自movielabs.com的Crieg。