What do people's software do with <notes> content?
18 Mar '06 21:31
SBML <notes> content is defined to be, essentially, anything
in the XHTML namespace. This follows by analogy to examples
in the XML Schema primer. For example, in section 5.5 of http://www.w3.org/TR/xmlschema-0/ there's the following:
The XHTML content within the container (htmlExample) in
their example is not a full <html> or even <body>. It's
that way in SBML <notes> too. The corresponding XML Schema
definition only requires that the content is in the XHTML
namespace; the processing instructions are set to skip
validation of the content, so validating XML parsers will
not actually check that the content is valid XHTML.
Now the question I'm wondering about is, what do people
currently do with <notes> content? Do you take everything
between the <notes> </notes>, wrap it inside <html> </html>
to make it an [X]HTML document, and pass it off to a
function that parses and displays HTML? (Such functions
come for free in Java and other programming languages.) Do
you first check that the next tag inside <notes> is <body>?
Or does the [X]HTML handling library you use care?