<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
andrea cossu schrieb:
<blockquote cite="mid007c01c653ff$631193a0$7e00a8c0@inatlantis.dom"
 type="cite">
  <meta http-equiv="Context-Type"
 content="text/html; charset=iso-8859-1">
  <div> Tnks for your answer, </div>
  <div> i tried to develop this process on my own but i didn't
understand how opencms match the template to the xml representing the
resource. </div>
  <div> Do you know it? Can you explain me? </div>
  <div> thanks </div>
  <div>  </div>
  <div> andrea </div>
  <div> <br>
  <br>
  </div>
</blockquote>
Each resource in opencms has a special resource type. With each
resource a resource loader is associated, but this mechanism is a bit
complex and a bit buried in the system code.<br>
<br>
But if you just want to control the template, that belongs to a
resource, then you can set the "template" property. The value of this
property must be the filename a JSP template that is stored somewhere
in the opencms filesystem. The alkacon docs contain some documentation
on how to write the code of a JSP template, but basically you can do
almost any JSP stuff in there and you can access opencms resources and
services by using the opencms taglib and the opencms scriptlet API,
especially the class CmsJspActionElement. <br>
<br>
It is possible to create your own XML-based content type and this is
also described in the Alkacon docs, but I have not tried this yet. The
idea is that you configure a new XML-content type in your module
configuration (opencms-modules.xml). For this contenttype you specify
an XML Schema which you store in the opencms filesystem. <br>
This schema will be used to check your content for validity and opencms
will also use the schema to automatically create an input form for
editing you content.<br>
There is an XML content demo that shows how to do it, but I have not
really looked into this yet.<br>
<br>
<br>
So if you want to store structured content in opencms, then you
probably need to<br>
- create your own structured xml-based content type<br>
- create a template that can display these resources<br>
- create some resources for your content type and use the "template"
property to link these resources to your template<br>
<br>
hope that helps a bit<br>
Christian<br>
</body>
</html>