NCEAS / eml

Ecological Metadata Language (EML)
https://eml.ecoinformatics.org/
GNU General Public License v2.0
40 stars 15 forks source link

embedded text format ignored by Metacat #173

Closed mbjones closed 5 years ago

mbjones commented 7 years ago

Author Name: Inigo Gil (Inigo Gil) Original Redmine Issue: 2688, https://projects.ecoinformatics.org/ecoinfo/issues/2688 Original Date: 2006-12-06 Original Assignee: Jing Tao


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 .

Another broad approach is to plant ``` 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

mbjones commented 7 years ago

Original Redmine Comment Author Name: Matt Jones (Matt Jones) Original Date: 2007-02-27T17:56:24Z


Really this is more of an EML issue -- the EML Schema determines what layout and formatting are possible, and the XSLT stylesheets are maintained in the EML modules. I'm not sure how this should be fixed, and it requires broader discussion.

mbjones commented 7 years ago

Original Redmine Comment Author Name: Margaret O'Brien (Margaret O'Brien) Original Date: 2008-05-28T16:50:24Z


This bug is related to bug 3181, in which some elements typed xs:string may be chaned to ComplexType TextType to accomodate formatting.

mbjones commented 7 years ago

Original Redmine Comment Author Name: Margaret O'Brien (Margaret O'Brien) Original Date: 2008-09-22T23:59:24Z


other discussions: additional discussion literalLayout is a child of , 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: http://mercury.nceas.ucsb.edu/ecoinformatics/pipermail/metacat-dev/2006-August/000880.html
mbjones commented 7 years ago

Original Redmine Comment Author Name: Margaret O'Brien (Margaret O'Brien) Original Date: 2008-10-01T19:21:55Z


Inigo and Margaret will get together and discuss what changes to the txt:TextType will be necessary to accommodate common current uses. If these changes represent only additional optional elements added to the Type, they will be backward compatible.

mbjones commented 7 years ago

Original Redmine Comment Author Name: Redmine Admin (Redmine Admin) Original Date: 2013-03-27T21:21:00Z


Original Bugzilla ID was 2688