 |
ISPN Discussion Forum of the International Society for Phylogenetic Nomenclature
|
| View previous topic :: View next topic |
| Author |
Message |
tmkeesey Site Admin
Joined: 14 Aug 2006 Posts: 287 Location: Los Angeles, CA, USA
|
Posted: Wed 11 Oct, 2006 9:19 pm Post subject: PhyloCode Microformat |
|
|
The idea of microformats was recently brought to my attention: microformats.org. Basically, it's a way of marking text in HTML/XHTML as being of a certain data type. For example, a div or span tag with attribute class="postal-code" signifies a postal code in the hCard microformat. In this way, XML-parsing tools can glean useful information from HTML web pages without disrupting the look of the HTML page.
It was suggested that a microformat be constructed for the PhyloCode. I thought I'd start some discussion here. What types of data could be marked using a microformat?
The most obvious one would be taxa. For example, classes like clade and species: | Code: | | <span class="clade">Dinosauria</span> includes <span class="species">Tyrannosaurus rex</span>. |
The species class could be optionally expanded, too: | Code: | | <span class="clade">Dinosauria</span> includes <span class="species"><span class="praenomen">Tyrannosaurus</span> <span class="epithet">rex</span></span>. |
In CSS, of course, the classes could be automatically set to render out as italicized: | Code: | .clade, .species {
font-style: italic;
} |
Then the aforementioned code would render as:
| Quote: | | Dinosauria includes Tyrannosaurus rex. |
Microformat tags could also be created for citations, definitions, traditional taxa, etc. _________________ T. Michael Keesey
Director of Technology, Exopolis, Inc. |
|
| Back to top |
|
 |
Nick Gardner
Joined: 20 Aug 2006 Posts: 31 Location: VA
|
Posted: Sat 11 Nov, 2006 4:41 pm Post subject: |
|
|
| Nice, I like it. |
|
| Back to top |
|
 |
tmkeesey Site Admin
Joined: 14 Aug 2006 Posts: 287 Location: Los Angeles, CA, USA
|
Posted: Thu 13 Sep, 2007 10:55 pm Post subject: |
|
|
For the latest version of the PhyloCode website, I added some semantic information in the id and class names of various elements.
Some have to do with the structure of the code itself. For example, the <div> tag containing Article 2.1 looks like:
| Code: | | div id="art2.1" class="article">...</div> |
Others have to do with taxa as mentioned above. Many <span> tags have one or more of the following classes: clade-name, prenomen, ranked-name, species-name.
The citations have also been extensively marked with semantic information. A few other bits of information, like dates, glossary terms, etc. are also marked. _________________ T. Michael Keesey
Director of Technology, Exopolis, Inc. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|