Most metadata are distributed in XML files (e.g. manifest.safe, product/swath and calibration files) and the product zip file contains part of the XSD definition to use.
As the XSD schemas are required when using xmlschema we need a way to always have a set of files. Strategy is:
allow the user to specify a set of XSD files as a mapping from namespace to path to the schema file
look for the distributed schema files based on a predefined product folder structure e.g. top_dir/support/s1-level-1-product.xsd
use a mapping from namespace to shipped schema file
Most metadata are distributed in XML files (e.g. manifest.safe, product/swath and calibration files) and the product zip file contains part of the XSD definition to use.
As the XSD schemas are required when using
xmlschema
we need a way to always have a set of files. Strategy is:top_dir/support/s1-level-1-product.xsd