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
            [EMAIL PROTECTED]
          +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:[EMAIL PROTECTED]]
> Sent: giovedě 21 giugno 2001 16.15
> To: [EMAIL PROTECTED]
> 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 <[EMAIL PROTECTED]>
> 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: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


---------------------------------------------------------------------
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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to