« W3C working across multiple languages | Main | Character encoding in HTML »

Templating Language for Authoring Tools

wysiwyg (what you see is what you get) authoring tools are very rarely wysiwym (what you see is what you mean) tools. When reading a book we leverage the meaning from the layout and the style of the text. We know that this little number at the bottom right is the number of the page, and not part of the flow of the text. Computers don't.

Computers are dumb. Really they are. When we want to have a richer experience with an Web page either on the Web or in a more local context, we need to put extra information inside the page. For example, we will specify that this bit of text in the page is a postal address or a date for an event.

Humans want to have fun. It's why they create tools. With appropriate tools, we avoid to spend too much time on things we don't like. The only way to input an extra information in a Web page without pain is to use a mechanism (like a form). Behind the form a mechanism handles the generation of the appropriate markup in the page. It is called Structured Editing.

Many Content Management System have specific markup languages for defining templates of all sorts. They are all different unfortunately. There is no common standard for this, which makes it challenging to deploy your templates in a new environment. A group at INRIA has created a language for templating and structured editing: XTiger. The language has been implemented in Amaya, a testbed platform for Web authoring technologies. For example, to create markup for editing microformat such as hCard.

<xt:component name="author"> 
    <p class="vcard"> 
        <span class="fn"> 
            <xt:use types="string">Author name</xt:use> 
        </span> 
        <br/> 
        <span class="adr"> 
            <xt:use types="string br">Address line 1<br/>
            line 2...</xt:use> 
        </span> 
        <br/> 
        <span class="email"> 
            <xt:use types="string">email</xt:use> 
        </span> 
    </p> 
</xt:component>

If you want to learn more about XTiger or better implement it, there are two very useful articles:

If you want to play with XTiger and actual authoring, you can download Amaya for Windows, MacOS X or Linux.

Enjoy!

Filed by Karl Dubost on March 10, 2008 7:06 AM in HTML, Tools, Tutorials
| | Comments (0) | TrackBacks (0)

Leave a comment

Note: this blog is intended to foster polite on-topic discussions. Comments failing these requirements and spam will not get published. Please, enter your real name and email address. Every individual comment is reviewed by the W3C staff. This may take some time, thank you for your patience.

You can use the following HTML markup (a href, b, i, br/, p, strong, em, ul, ol, li, blockquote, pre) and/or Markdown syntax.

Your comment


About you

This blog is written by W3C staff and working group participants,
 and maintained by Coralie Mercier.
Authorized parties may log in to create a new entry.
Powered by Movable Type, magpierss and a lot of Web Technology