embedded text format ignored by Metacat
When metacat displays metadata documents, the original format is often lost. Newlines, new paragraphs, bullets and the like are largely ignored by the metacat stylesheets, and all spaced is lumped together, creating undesired results.
A number of solutions are being considered and some are deployed in the development metacat at the LTER network office.
A broad approach would be to prepend an html
tag wherever the user has specified within EML that the content should be treated as <literalLayout>. Another broad approach is to plant <pre> tags in critical sections such as methodology descriptions (I.e: eml/dataset/methods/description/) or in inline data. Other workarounds are to explore trimming white space in targeted locations (at beginning and end, not everywhere). There are a handful of different XSL treatments of whitespace, carriage returns, line feeds and new line characters discussed at http://www.dpawson.co.uk/xsl/sect2/N8321.html
#3 Updated by Margaret O'Brien about 10 years ago
literalLayout is a child of <para>, and this template could be added to eml-text.xsl to preserve it:
There is still lots of potential for ugliness, however. Here is additional discussion: