by Domenico Briganti is licensed under a Creative Commons Attribuzione 3.0 Unported License.Permissions beyond the scope of this license may be available at [email protected] most of the keywords in a PDS Label are from the PDS namespace, I'm going to delete the default "p" and leave it blank.This is also a personal preference - you could equally well change the "p" to "pds" (in which case all the PDS4 element names will be prefixed with "pds:" - for example, the root element would then be Now, if I also know I'll be referencing other name spaces, it's convenient to add their info here as well.For the Assembly that it is stored in, the name will be the Assembly's namespace to begin with.If the resource is in a sub-directory, add that directory's name. Thus if you have an assembly called contains the detailed validation problem.You can also change, add and delete additional namespaces and prefixes after you create the label, if needed (although changing a prefix after you've added namespace elements can be an error-prone operation).Once you're done adding namespaces, click the Finish button and the skeleton of your new XML file will appear in your editor window, though there's still some toughing-up to do: processing instruction to tell the Schematron validator where to find the reference schematron file.
Some will be one-off labels for things like context objects, documents, bundle and collections.
Here I've added the instruction with a reference to the location of the schematron file relative to the root of my "Demo" project.
Note that the file extension for schematron files is .sch: Next, I need to put some line breaks inside the opening Product_Observational tag so I can see what's going on.
Others will be turned into templates to use as input to label generation software.
The following instructions assume you have already downloaded the latest version of the PDS4 master schema (or the specific version you're working with, if not the latest release), and have added an XML Catalog entry to use it to define the PDS namespace, as described in Configuring XML Schema validation.