Differences between revisions 11 and 12
Revision 11 as of 2005-05-15 15:31:43
Size: 3759
Editor: c-66-30-11-234
Revision 12 as of 2009-09-20 23:27:44
Size: 3756
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 4: Line 4:
A resource type package is a [wiki:PubletsProposal publet] which contains all components necessary to A resource type package is a [[PubletsProposal|publet]] which contains all components necessary to


A resource type package is a publet which contains all components necessary to

  • create
  • present

resources (documents, assets, ...) of a certain type.

This requires a well-defined interface to access resource type. I could imagine a directory structure like


                /publet.xconf                         Publet configuration
                /resourcetype.xconf                   General resource type configuration (samples etc.)
                /usecases.xconf                       Patch file for cocoon.xconf to insert usecase declarations

            /documentation                            Documentation (Forrest document, can be included in main documentation)

                /schema                               Schema (XSD, Relax NG)
                /samples                              Sample resources

            /java                                     Usecase handlers etc.

            /lenya                                    Resources to use the fallback mechanism (e.g., usecases)

            /resourcetype.xmap                        Sitemap to render resources


The Contents Of A Resource Type Package


This file describes the resource type.

<resource-type xmlns="...">

  <schema href="resources/schema/xhtml.rng"/>

    <sample href="resources/samples/default.xml">
      The default XHTML sample.
    <sample href="resources/samples/simple.xml">
      A minimal XHTML document.
    <sample href="resources/samples/detailed.xml">
      A document containing examples of the most XHTML structures.



This sitemap handles the presentation of resources.

To provide a unified access point to resources, a common intermediate format has to be defined, for instance XHTML. This means that resourcetype.xmap returns the result of the transformation of the resource into this intermediate format.

It should be possible to support custom views, which are requested using certain URI patterns, request parameters, etc.

Using Resource Types in Publications

The resource types used by a publication are declared in publication.xconf:


   <publet id="xhtml"/>
   <publet id="bitmap-image"/>


Options For Creating Resources

  • a) The site/create usecase provides the option to choose the to-be-created resource type and sample. The samples are listed in a combo box in the same order as they are declared in resourcetype.xconf. a) A "create" submenu is generated dynamically according to the available resource types. This allows resource types to provide custom create screens and create usecase handlers.

Options For Managing Resources

  • a) All usecases provided by the resource type are available as menu items for the corresponding documents.

When a usecase is invoked on a resource, the resource type is determined and the usecase handler of this resource type is used. This means the usecase handler resolving strategy is

usecase -> publication -> (publication templates) -> core


  • How are shared schemas handled?

ProposalResourceTypePackages (last edited 2009-09-20 23:27:44 by localhost)