You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Ling Kok Choon <ko...@brel.com> on 2001/06/21 16:15:06 UTC

sitemap .xmap

hi,

  When i read thought the sitemap.xmap file, i found something that i don't understand :
In the sitemap code below, what is the usage of {1}.xsp (line 5 and 7 ). And also line 7, what 
is the purpose of this line ?

1) <map:match pattern="session">
2)    <map:redirect-to uri="session/sessionpage.xsp"/>
3)   </map:match>

4)   <map:match pattern="session/*.xsp*">
5)     <map:generate type="serverpages" src="docs/samples/session/{1}.xsp"/>
6)     <map:transform src="stylesheets/dynamic-page2html.xsl">
7)        <map:parameter name="view-source" value="docs/samples/session/{1}.xsp"/>
8)     </map:transform>
9)     <map:serialize/>
10)   </map:match>


Thank you.


From:
       ^^
-----00''00----- Kok Choon.
--------------------------------------------------------
Name: Ling Kok Choon
E-mail: Ling Kok Choon <ko...@brel.com>
Date: 06/21/01
Time: 22:15:06

This message was sent by Z-Mail Pro - from NetManage
NetManage - delivers Standards Based IntraNet Solutions
--------------------------------------------------------

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>


RE: sitemap .xmap

Posted by Luca Morandini <l....@tin.it>.
Ling,

	the "{1}" expressone (with curly braces), stands for the first matched
regular expression.

	Let's suppose the URI is "test.xsp", then line 4 will match it, and the
map:generate (line 5) will read like:
<map:generate type="serverpages" src="docs/samples/session/test.xsp"/>

Best regards,
 
---------------------------------------------
               Luca Morandini
               GIS Consultant
            lmorandini@ieee.org
          +39 0744 59  85  1 Office
          +39 0335 681 02 12 Mobile
http://utenti.tripod.it/lmorandini/index.html
---------------------------------------------


> -----Original Message-----
> From: Ling Kok Choon [mailto:kokchoon@brel.com]
> Sent: giovedì 21 giugno 2001 16.15
> To: cocoon-users@xml.apache.org
> Subject: sitemap .xmap
>
>
> hi,
>
>   When i read thought the sitemap.xmap file, i found something
> that i don't understand :
> In the sitemap code below, what is the usage of {1}.xsp (line 5
> and 7 ). And also line 7, what
> is the purpose of this line ?
>
> 1) <map:match pattern="session">
> 2)    <map:redirect-to uri="session/sessionpage.xsp"/>
> 3)   </map:match>
>
> 4)   <map:match pattern="session/*.xsp*">
> 5)     <map:generate type="serverpages"
> src="docs/samples/session/{1}.xsp"/>
> 6)     <map:transform src="stylesheets/dynamic-page2html.xsl">
> 7)        <map:parameter name="view-source"
> value="docs/samples/session/{1}.xsp"/>
> 8)     </map:transform>
> 9)     <map:serialize/>
> 10)   </map:match>
>
>
> Thank you.
>
>
> From:
>        ^^
> -----00''00----- Kok Choon.
> --------------------------------------------------------
> Name: Ling Kok Choon
> E-mail: Ling Kok Choon <ko...@brel.com>
> Date: 06/21/01
> Time: 22:15:06
>
> This message was sent by Z-Mail Pro - from NetManage
> NetManage - delivers Standards Based IntraNet Solutions
> --------------------------------------------------------
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <co...@xml.apache.org>
> For additional commands, e-mail: <co...@xml.apache.org>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>