MML - Mail Markup Language

  • The Problems
  • The Solutions
  • Semantics
  • Downloads
  • Change Log
  • About This Site
  • External Links
  • Manifesto

Current version: v1.1

Sample 2

<?xml version="1.0" encoding="utf-16"?>
<mail
  version="1.0"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:xfm="http://www.w3.org/2002/xforms"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:noNamespaceSchemaLocation="http://mailmarkup.org/mail.xsd"
  mail-type="application/mail">
  <session time-stamp="1990-11-08T11:48:49.75">
    <address>
      <to>destination@sample.com</to>
      <from>source@sample.com</from>
      <reply-to>no-reply</reply-to>
    </address>
    <subject>Subject Text</subject>
    <presentation>
      <stylesheet style-namespace="global style-type="text/css">
        http://sample.com/stylesheet.css
      </stylesheet>
      <stylesheet style-namespace="local style-type="text/xsl">
        http://sample.com/stylesheet.xsl
      </stylesheet>
    </presentation>
    <markup>
	  <heading>Heading of a sample document.  Headings under the same parent container
	  should be considered redundant headings.  Headings whose different parent containers
	  share the same grandparent element should be considered sibling headers.  A heading
	  in a section whose parent contain container contains a heading should be considered
	  a child heading.</heading>
	  <paragraph>This is the first paragraph of this sample document. The <format
	  style="global:class">namespace</format> <format style="specific:class">
	  declaration</format> for stylesheets is intended to help with intergration of
	  semantic technologies and allow class names to be used from various stylesheets in a
	  non-competitive manner.  The format tag is the only tag intended to convey no
	  semantic meaning.  It must be contained by a complex-block tag, but it may <format>
	  <format>nest</format></format> itself.</paragraph>
	  <paragraph>This is the second paragraph of this sample document. Unlike
	  <cite refer="html">HTML</cite> a <emphasis uri="http://sample.com/link.html">link
	  </emphasis> can be placed from <strong title="The title attribute is intended
	  to contain descriptions or additional information for humans.">many</strong> tags.
	  Every tag in the markup section of MML may receive the role attribute to convey
	  <format role="wai:synonym meta-data">semantic</format> data for
	  computers.</paragraph>
	  <block-code>Block code is a type of block that is intended to contain computer code.
	  It may also contain other tags for more specific semantics and
	  formating.</block-code>
	  <block-quote>A block quote representations a quote or paraphrase that is so long
	  that is reflective more of a paragraph than a phrase or sentence. It is not
	  required, but a block quote should contain a cite element.</block-quote>
	  <separator>A separator element is intended to provide a semantic break between
	  sections of a document where it would not be appropriate to create addtional
	  sections.  A separator tag may or may not contain text and inline
	  elements.</separator>
	  <table>
	    <head-row>
		  <head-cell>
		    <paragraph>A header cell is intended to contain meta data or a label about
			the data cells within its scope.</paragraph>
		  </head-cell>
		  <head-cell>
		    <paragraph>A header cell may contain simple block elements.</paragraph>
		  </head-cell>
		</head-row>
		<table-row>
		  <head-cell>
		    <paragraph>A table-row may contain header cells as well, but a header row
			will only contain header cells.  This is intended to allow custom
			alteration to the semantic scope that header cells
			provide.</paragraph>
		  </head-cell>
		  <table-cell>
		    <paragraph>A table cell is intended to contain tabular data, and may
			contain simple block tags.</paragraph>
		  </table-cell>
		</table-row>
	  </table>
	  <citation id="html">A citation or reference for the cited term, HTML would go
	  here.</citation>
	  <define-list>
	    <define-item>
			<define-term>Terminology</define-term>
			<definition>The definition for the word: Terminology.</definition>
			<definition>A term may have multiple definitions.</definition>
		</define-item>
		<define-item>
		  <define-term>Actor</define-term>
		  <define-term>Actress</define-term>
		  <definition>Multiple closely related terms may share a single
		  definition.</definition>
		  <definition>Multiple definitions for multiple terms is allowed, but
		  introduces contextual confusion and is discouraged.</definition>
		</define-item>
	  </define-list>
	  <order-list title="An ordered list is a list where each list item is counted by the
	  computer, or enumerated, but this does not mean it must receive a number humans to
	  read.">
	  	<heading>Lists may contain one heading or indentifier element.</heading>
		<list-item>
		  <paragraph>List items must contain some sort of simple-block.</paragraph>
		</list-item>
	  </order-list>
	  <unorder-list title="An unordered list is a list where each list item is not counted
	  and so each list item is syntactically equal in a pool of list items.">
	    <list-item>
		  <paragraph>Text paragraph.</paragraph>
		</list-item>
	  </unorder-list>
	  <navigation-list>
	    <heading>This is the heading for a navigation list.</heading>
		<navigation-item uri="http://sample.com/link1.html">
		  <navigation-text>
		    First link
		  </navigation-text>
		</navigation-item>
		<navigation-item uri="http://sample.com/link2.html">
		  <navigation-text>
		    Second link
		  </navigation-text>
		</navigation-item>
		<navigation-item uri="http://sample.com/link3.html">
		  <navigation-object>
		    <object-text>This is alternate text content for a navigation
			object.</object-text>
			<object-uri>http://sample.com/nav_object-source.gif</object-uri>
			<object-type>
				<image>gif</image>
			</object-type>
		  </navigation-object>
		</navigation-item>
	  </navigation-list>
	  <object>
	    <object-text>This is the alternate text content for an object.</object-text>
	    <object-uri>http://sample.com/object-source.gif</object-uri>
		<object-type>
		  <image>gif</image>
		</object-type>
	  </object>
    </markup>
  </session>
</mail>