cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeremy Quinn <>
Subject Re: Cocoon-view, Cocoon-sitemap documentation
Date Mon, 12 Nov 2001 11:44:50 GMT
At 12:59 pm +0100 3/11/01, Stefano Mazzocchi wrote:
>Bernhard Huber wrote:

>Maybe the sitemap schema changed, but as I designed it, the label was an
>attribute, not an element.
>So you'd do
> <map:generator src="..."/>
> <map:transformer src="..." label="myview"/>
>instead. (but don't guarantee you that it works since not many people
>know even the existance of views so not much bugfixing on that side,


Yes, I am weeks behind reading the list ...... but this works beautifully ;)

Here is a sample of a sub-sitemap I use:

OK, it is a bit verbose ...... but then I added all the .suffix redirectors

  <map:view name="content" from-label="content">
   <map:serialize type="xml"/>
  <map:view name="map" from-label="map">
   <map:serialize type="xml"/>
  <map:view name="inc" from-label="inc">
   <map:serialize type="xml"/>
  <map:view name="xlink" from-label="xlink">
   <map:serialize type="xml"/>
  <map:view name="xhtml" from-label="xhtml">
   <map:serialize type="xml"/>
  <map:view name="links" from-position="last">
   <map:serialize type="links"/>


	<!-- view redirectors -->

	<!-- xml/kiss/maint.adv.html -->
	<map:match pattern="*.html">
		<map:redirect-to uri="{1}"/>

	<!-- xml/kiss/ -->
	<map:match pattern="*.map">
		<map:redirect-to uri="{1}?cocoon-view=map"/>

	<!-- xml/kiss/ -->
	<map:match pattern="*.inc">
		<map:redirect-to uri="{1}?cocoon-view=inc"/>

	<!-- xml/kiss/maint.adv.base -->
	<map:match pattern="*.base">
		<map:redirect-to uri="{1}?cocoon-view=base"/>

	<!-- xml/kiss/maint.adv.xhtml -->
	<map:match pattern="*.xhtml">
		<map:redirect-to uri="{1}?cocoon-view=xhtml"/>

	<!-- Main Matcher -->

	<!-- xml/kiss/maint.adv -->
	<map:match pattern="*">
		<map:generate src="xlink/linkmap.xml"/>			<!-- Load LinkMap -->
		<map:transform src="xsl/linkmap-cincl.xsl"> 		<!-- convert to
CInclude Tags -->
			<map:parameter name="id" value="{1}"/> 		<!-- using this linkmap
label -->
			<map:parameter name="context" value=""/>	<!-- no need to change
context -->
		<map:label name="map"/>
		<map:transform type="cinclude"/>						<!-- CInclude actual
content -->
		<map:label name="inc"/>
		<map:transform src="xsl/linkmap-xlink.xsl"/>	<!-- crunch LinkMap,
de-reference XLinks ... -->
		<map:label name="xlink"/>									<!-- .... from LinkMap and
LinkBase -->
		<map:transform src="xsl/linkmap-html.xsl"/>		<!-- Apply site style -->
		<map:label name="xhtml"/>
		<map:serialize type="html"/>

BTW. I was thinking about writing an [RT] about the LinkMap ideas I am
working on ......... (or maybe it should be a [UC] "use-case")

These are my goals:

	Separation of the url space, the content hierarchy and the storage space

	The same content (or sub-hierarchy) can logically reside under different
contexts (aliassing)

	Utilise a central repository of link information for both the structure
and content authors

	Automatic link generation of local and arbitrary links
	ie. next, previous, parent, path and tree etc.

	Automatic 'discovery' of semantically relevant links


regards Jeremy


   Jeremy Quinn                                           Karma Divers
                                                       webSpace Design
                                            HyperMedia Research Centre

   <>     		 <>
   <phone:+44.[0].20.7737.6831>             <>

To unsubscribe, e-mail:
For additional commands, email:

View raw message