Forums

F.A.Q. F.A.Q.    Register Register    Login Login    Home Home
Search Search
SBML Discussions » sbml-discuss » What do people's software do with <notes> content?
Show: Today's Posts  :: Message Navigator
| Subscribe to topic 
Return to the default flat view Create a new topic Submit Reply
AuthorTopic
Mike Hucka


Posts: 967
Registered:
October 2003
What do people's software do with <notes> content? 18 Mar '06 21:31 Go to previous message

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:

<htmlExample>
<table xmlns="http://www.w3.org/1999/xhtml"
border="0" width="100%">
<tr>
<th align="left">Zip Code</th>
<th align="left">Part Number</th>
<th align="left">Quantity</th>
</tr>
<tr><td>95819</td><td> </td><td> </td></tr>
<tr><td> </td><td>872-AA</td><td>1</td></tr>
<tr><td> </td><td>926-AA</td><td>1</td></tr>
<tr><td> </td><td>833-AA</td><td>1</td></tr>
<tr><td> </td><td>455-BX</td><td>1</td></tr>
<tr><td>63143</td><td> </td><td> </td></tr>
<tr><td> </td><td>455-BX</td><td>4</td></tr>
</table>
</htmlExample>

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?

MH


      

SubjectPosterDate
Read Message   What do people's software do with <notes> co...  Mike Hucka18 Mar '06 21:31
Read Message   RE: What do people's software do with <notes>... Herbert Sauro18 Mar '06 23:01
Read Message   Re: What do people's software do with <notes>... Bill Denney19 Mar '06 06:01
Previous Topic:Multiple kineticLaw Sections Per Reaction
Next Topic:New Use for SBML
Go to forum:
-=] Back to Top [=-

Powered by FUDforum. (Copyright Advanced Internet Designs Inc.)

Please use our issue tracking system for any questions or suggestions about this website.