cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathaniel Alfred" <>
Subject RE: sitemap match and path
Date Thu, 21 Jul 2005 12:44:56 GMT
The browser requests the absolute URL http://myserver/cocoon/xml/docA/gusto.css.
So you have to match pattern="**/gusto.css".
HTH, Alfred.
-----Original Message-----
From: Franco Andrao []
Sent: Donnerstag, 21. Juli 2005 13:09
Subject: sitemap match and path

I'm trying to simplify my sitemap but something is wrong!!
the directory structure that I have is like this
      |         |__docA_
      |         |           | xml files
      |         |__docB_
      |         |           | xml files
      |                 | xslt files
      |         | css files

In the sitemap I have this maches:

    <map:match pattern="gusto.css">
        <map:read src="css/gusto.css" mime-type="text/css"/>

    <map:match pattern="banner">
        <map:generate src="xml/banner.xml"/>
        <map:transform src="stylesheets/banner.xsl"/>

    <map:match pattern="menu/*">
        <map:generate src="xml/menuindex.xml"/>
        <map:transform src="stylesheets/menu.xsl"/>

    <map:match pattern="home">
        <map:generate src="xml/home.xml"/>
        <map:transform src="context://mdg/stylesheets/page.xsl"/>


    <map:match pattern="*/docA/*">
        <map:aggregate element="index">
          <map:part src="cocoon:/banner" element="banners"/>
          <map:part src="cocoon:/menu/{1}" element="sx"/>
          <map:part src="cocoon:/home" element="chiSiamo"/>
        <map:transform src="stylesheets/index.xsl" />


Processing the URI  http://myserver/cocoon/xml/docA/page i retreive the content of the xml
but not the css style that is defined in index.xsl:

<xsl:stylesheet version="1.0" xmlns:xsl=""

    <xsl:template match="index">
          <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"/>
          <title>I Maestri del Gusto</title>
          <link rel="stylesheet" href="gusto.css" type="text/css"/>
           <div class="mainbox">
        <div class="contentbox">
         <xsl:apply-templates select="banners"/>
         <xsl:apply-templates select="chiSiamo"/>
        <div class="leftbox">
         <xsl:apply-templates select="sx"/>


    <xsl:template match="@*|*|node()" priority="-1">
            <xsl:apply-templates select="@*|*|node()"/>


Thanks in advance for any help

:-)Franco Andrao
This message is for the named person's use only. It may contain confidential, proprietary
or legally privileged information. No confidentiality or privilege is waived or lost by any
mistransmission. If you receive this message in error, please notify the sender urgently and
then immediately delete the message and any copies of it from your system. Please also immediately
destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the intended recipient.
The sender's company reserves the right to monitor all e-mail communications through their
networks. Any views expressed in this message are those of the individual sender, except where
the message states otherwise and the sender is authorised to state them to be the views of
the sender's company.

View raw message