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, >yet!) Stefano, 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:views> <map:view name="content" from-label="content"> <map:serialize type="xml"/> </map:view> <map:view name="map" from-label="map"> <map:serialize type="xml"/> </map:view> <map:view name="inc" from-label="inc"> <map:serialize type="xml"/> </map:view> <map:view name="xlink" from-label="xlink"> <map:serialize type="xml"/> </map:view> <map:view name="xhtml" from-label="xhtml"> <map:serialize type="xml"/> </map:view> <map:view name="links" from-position="last"> <map:serialize type="links"/> </map:view> </map:views> <!-- view redirectors --> <!-- xml/kiss/maint.adv.html --> <map:match pattern="*.html"> <map:redirect-to uri="{1}"/> </map:match> <!-- xml/kiss/maint.adv.map --> <map:match pattern="*.map"> <map:redirect-to uri="{1}?cocoon-view=map"/> </map:match> <!-- xml/kiss/maint.adv.inc --> <map:match pattern="*.inc"> <map:redirect-to uri="{1}?cocoon-view=inc"/> </map:match> <!-- xml/kiss/maint.adv.base --> <map:match pattern="*.base"> <map:redirect-to uri="{1}?cocoon-view=base"/> </map:match> <!-- xml/kiss/maint.adv.xhtml --> <map:match pattern="*.xhtml"> <map:redirect-to uri="{1}?cocoon-view=xhtml"/> </map:match> <!-- 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:transform> <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"/> </map:match> 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 Interested? regards Jeremy -- ___________________________________________________________________ Jeremy Quinn Karma Divers webSpace Design HyperMedia Research Centre <mailto:[EMAIL PROTECTED]> <http://www.media.demon.co.uk> <phone:+44.[0].20.7737.6831> <pager:[EMAIL PROTECTED]> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]