Namespace and other html / xml information in SimBiology Notes

조회 수: 1 (최근 30일)
Jim Bosley
Jim Bosley 2020년 1월 10일
댓글: Jim Bosley 2020년 1월 20일
Simbiology notes allows (requires?) one to use html for nicely formatted notes. For normal documentation use, where there will be no sharing, simple html is ok. So the following is acceptable:
<body>
<p>
Hello World
<p>
</body>
The html one includes in a note may eventually be incorporated into an xml document. There are a bunch of version issues that could crop up and further document type and namespace declaration (as below) might be useful to avoid conflict. Is the xmlns declaration needed? What is the MathWorks recommended approach? Or is there a recommended approach?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<body>
<p>
Hello World
<p>
</body>
</html>

채택된 답변

Arthur Goldsipe
Arthur Goldsipe 2020년 1월 17일
I would recommend either plain text or XHTML 1.0 as your format. sbmlexport will export both of these to SBML as XHTML 1.0, which is what SBML documents as the intended format for Notes. These are also the only two formats that the SimBiology graphical interface understands.
That said, if you're not using SBML or care about the appearance of notes in the graphical interface, you are free to use any format you find convenient.
  댓글 수: 1
Jim Bosley
Jim Bosley 2020년 1월 20일
Thanks Arthur. Since the html commenting works great without the header, I'll continue to use that: it's nice to put graphs and charts into the comments.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Import Data에 대해 자세히 알아보기

제품

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by