While the default order of document contents is normally what you want, there are also documents where a user could benefit from a consistent order of contents. To this end the stylesheet should allow configuration of the order of the sections.
Allow reordering by the user while he is viewing the document versus based on some preconfigured order
Reordering on-the-fly while viewing would constitute a significant rewrite of the stylesheet and has need for more javascript. It would likely also introduce a need for cookies to save the ordering choices which could in turn spark a need for cookie permissions. For these reason we think a solution that uses the proven methodology of parametrization is a more probable solution
Does a configuration need to be document type relative, i.e. need to support a different configuration for XDLAB versus an IPS or may we expect the implementer to feed the relevant set based on the document type
E.g. C-CDA[section1,section2,section3] or just section1,section2,section3
How do we inform the user that he is not necessarily looking at the document as-is, but rather reordered
We assume that the ordering is based on a list of top-level section/codes
We assume that any section, not in the provided set of section codes will be rendered after the last section is rendered that is in the set.
While the default order of document contents is normally what you want, there are also documents where a user could benefit from a consistent order of contents. To this end the stylesheet should allow configuration of the order of the sections.