Please login or register. August 23, 2019, 09:23:51 PM

Author Topic: xml validation glitches  (Read 3249 times)

mcinquin

  • New Member
  • **
  • Posts: 13
    • View Profile
xml validation glitches
« on: May 01, 2011, 02:01:55 PM »
Hello

Using schema-check (source code in the DCI spec), I have validated the files output by open dcp 0.19 against the reference documents.

Here are the reference documents :
Interop :
Assetmap : http://www.digicine.com/PROTO-ASDCP-AM-20040311.xsd
Cpl : http://www.digicine.com/PROTO-ASDCP-CPL-20040511.xsd
Pkl : http://www.digicine.com/PROTO-ASDCP-PKL-20040311.xsd

Smpte : (files built by myself from code found in the smpte standards)
Assetmap : http://www.michaelcinquin.com/schemas/smpte_assetmap_schema.xsd
Cpl : http://www.michaelcinquin.com/schemas/smpte_composition_schema.xsd
Pkl : http://www.michaelcinquin.com/schemas/smpte_packing_schema.xsd



Here are the results
Interop : (opendcp_mxf -n interop... , then opendcp_xml...)
Assetmap : <creator> should be the last element before AssetList, not the first after <id>
Cpl : <ScreenAspectRatio> should be after <framerate>, not <before>
Pkl : could not validate agains the xsd, but manually it looks fine

Smpte :  (opendcp_mxf -n smpte..., then opendcp_xml...)
Assetmap : OK
Cpl : found a typo in the XSD, the UUID regular function is missing a dash. I've replaced the expression with the one from the Pkl xsd and it's fine.
<ScreenAspectRatio> should be after <framerate>, not <before>
Pkl : OK (after correction a type of a missing '>' in the xsd


I ignored validation errors such as these :
Error at file "http://www.w3.org/TR/2002/REC-xmldsig-core20020212/xmldsig-core-schema.xsd", line 4, column 23
 Message: Non-whitespace characters are not allowed in schema elements other than 'appinfo' and 'documentation'.
or
 Message: Schema Representation Constraint: Namespace 'http://www.w3.org/2000/09/xmldsig#' is referenced without <import> declaration
or
 Message: Ref element ds:Signature not found in the Schema


I was wondering if even such minor glitches can lead to failures in some rare occasions.

Also, I'm surprised that even though DCP is supposed to be all about standards, one can find glitches in the standards themselves !


What are your thoughts about this ?

cheers

Michael

Terrence Meiczinger

  • Administrator
  • Hero Member
  • *****
  • Posts: 561
    • View Profile
Re: xml validation glitches
« Reply #1 on: May 01, 2011, 03:23:36 PM »
The order of elements in XML generally doesn't matter except in cases where there are sibling elements. For example, ScreenAspectRatio can be before FrameRate. However, when it comes to Reels and there are more than one, they need to be in order.

There are plenty of issues with the specs that is for sure.

dcinemaforum.com

Re: xml validation glitches
« Reply #1 on: May 01, 2011, 03:23:36 PM »