How to create your First XMLNuke page
XMLNuke divide the page creation in two parts: LAYOUT and DATA.
The layout is created using XSLT and must have only instructions to use data and generate a proper output like XHTML, RSS, WML and outhers.
The data are XML documents and must contain only your informations. You can (if you want) create your own XML format. But, to make easy start using XMLNuke we suggest and implement a specific data format. The data is separeted in two parts:
- Header
- Data blocks
Header
The header contains informations about the XML document like page title, abstract and creation/modification date. The user can add your own definition.
<page>
<meta>
<title>Put your title here.</title>
<abstract>Put your abstract here.</abstract>
<created>2/7/2005 11:53:00</created>
<modified/>
<keyword>xmlnuke</keyword>
<groupkeyword>all</groupkeyword>
</meta>
</page>
Data Block
The document is created using data blocks. These blocks are called by blockcenter, blockleft and blockright. The default XSLT transform these blocks putting it at center, left and right, but you can transform it and put at a specific position. See an example:
<blockcenter>
<title>Block title</title>
<body>
<p>This your the first paragraph.</p>
</body>
</blockcenter>
See XML of this page.
