In pds4_create_xml_index there are currently two options for the headers:
Full XPaths include <1> numbering at every level
Disambiguated XPaths where the entire hierarchy is removed except for the final tag whenever possible
I would like to see a new argument called something like --dont-number-unique-tags that still gives full XPaths, but if there is only a single instance at a given level, it doesn't include the <1> at the end. So instead of:
In
pds4_create_xml_index
there are currently two options for the headers:<1>
numbering at every levelI would like to see a new argument called something like
--dont-number-unique-tags
that still gives full XPaths, but if there is only a single instance at a given level, it doesn't include the<1>
at the end. So instead of:we would get:
This is a very simple modification to the existing renumbering function, where if the mapping only has one value in it we don't add the
<n>
at all.This function could be used in addition to
--simplify-xpaths
to get the simplest version possible.