WIF:Proposal
From WikiSym
This page describes the WIF (WSR 3)) proposal
Proposal
Here we describe a concrete proposal to be edited and changed. Below we discuss issues.
We have different levels of content:
- static content (proposal: XHTML subset)
- static + generated content (proposal: XHTML subset + RDFa)
We also have different granularity:
- single page
- a set of pages
- a whole wiki
Proposal
- WIF documents are valid XHTML documents.
- WIF defines a subset of XHTML that WIF tools have to process, in order to be valid WIF tools.
The chosen subset is:
- Document: html (attribute: baseuri), head, body
- Block elements: p, pre, h1, h2, h3, h4, h5, h6, hr
- Lists: dl, dd, dt, ol, ul, li
- Tables: table, tr, th, td
- Inline elements, only within p: i, b, sub, sup, tt
- Special inline elements: img (attribute: src), a (attribute: href)
All elements and attributes not mentioned here might be converted to wiki syntax, WIF compliant tools do not guarantee that. They are free to ignore all unknown elements and attributes, and should behave like browsers (as defined in HTML/XHTML specs). @@add reference
Adding semantics
A very early proposal about how to add semantics in a WIF document can be found in WIF:Semantics. Here you can find an example of RDFa:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:wif="http://www.wikisym.org/wif.rdfs#"
xmlns:ex="http://www.example.org/onto.rdfs#" > <!-- declare other NS -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>WifExamplePage</title>
<link href="wif.css" type="text/css" rel="stylesheet" />
<meta property="wif:name" content="WifExamplePage"/> <!-- CamelWord name for the page -->
<link rel="wif:source"href="http://www.wikisym.org/WifExamplePage.html"/> <!-- original URL of the page -->
<meta property="wif:version" content="3"/> <!-- version of the page -->
<meta property="wif:modification_date" content="2002-05-30T09:30:10Z"/> <!-- modification date -->
</head>
<body> <!-- content in XHTML -->
<h1>WifExamplePage</h1>
Here is a link to a
<a rel="wif:internal_link" href="SecondPage.html">
<span about="SecondPage.html" property="wif:camel_word">SecondPage</span>
</a>
using just a CamelWord.
Here is a link to
<a rel="wif:internal_link" href="AnotherPage.html">
<span href="AnotherPage.html" property="wif:camel_word" content="AnotherPage">another page of the wiki</span>
</a> using a customized label.
Here is a link to <a rel="wif:external_link" href="http://www.w3.org">an external page</a>.
<span id="object_1">
<link rel="rdf:type" href="[ex:macro]" />
$GREP("NewPage")$
</span>
<!-- The rest is plain XHTML -->
</body>
</html>