Has anyone managed to create a template that creates robust semantics within blocks of prose (paragraphs)? It seems to me that templating does a good job of HTML-like markup but I find that totally uninteresting.
A good example of what I mean is New Industry Text Format (
http://www.NITF.org) which is a sematically rich markup format. Geared for News gathering organizations, it captures all sorts of information in a semantically interesting way. An example of an NITF fragment would be:
<p>Today, <org value="MSFT" idsrc="NASD">Microsoft</org>announced the release of....</p>
<p>That company is <em>so</em> big that they....</p>
Some of that is HTML like but others are not. Some of the semantic structure (like postal address and location) have complex xml structures. I need to provide a way for a user to enter that sort of information without knowing NITF markup. It would have to show a dialog box that allows the user to edit the fragment, with drop downs for certain attributes and text fields for others. It also needs to be intelligent enough so that one could enter a postal address inline with the paragraph, It would be something like:
<p>Send mail to me care of
<postaddr id="post1">
<addressee>
<person>
<name.given>Jim</name.given>
<name.family>Ross</name.family>
<function>CEO</function>
</person>
</addressee>
<delivery.point>1234 Nowhere Street<br/>
RR 12</delivery.point>
<postalcode code-source="CanadaPost">X2X 2X2</postalcode>
<delivery.office code-source="CanadaPost" office-code="yvr">Vancouver</delivery.office>
<region code-source="GeomaticsCanada" region-code="BC">British Columbia</region>
<country iso-cc="ca">Canada</country>
</postaddr>
and I will reply as soot as I am able.</p>
What I'm looking to do is highly complex semantics in such a way that my users don't have to know anything about the underlying markup.
I'm not going to be doing NITF, but its a good litmus test. My likely short term needs are for links to internal files and services that the user cannot know the URL for. I need to give them a list of files that they can choose from.
Any ideas?