Ok, let's clarify this and put it in different words. I am able to match
on the digits part but not able to obtain this digits
<map:match type="regexp" pattern="\.*/\d$">
......
.....
<map:parameter name="href" value="{1}"/>
<map:parameter name="depth" value="{2}"/>
The variable {1} is matching and I can obtain as expected, but {2} is
not.
Can someone please share the knowledge and direct me to resolve this ?
On Sat May 30,2009 12:55 pm, Mansour Al Akeel wrote:
> Thank you, V?ctor.
>
> This answered the question about the levels, and made it clear. I am still
> looking to find a way to match a URL ending with digits !
>
>
> V?ctor Pergolesi wrote:
>> Dear Mansour:
>> The question:
>> One more thing, I have seen some code for a sitemap using something like
>> {../2}, what is this ? I couldn't find any documentation.
>> ** The answer:
>> <map:match pattern="ejemplo-*">
>> <map:act type="request">
>> <map:generate
>> src="http://192.168.0.5/intraapps/resumenpesajereparto?txtfecha={../1}"
>> label="documento"/>
>> </map:act>
>> <map:transform type="xslt" src="ejemplo.xsl">
>> </map:transform>
>> <map:serialize type="html"/>
>> </map:match>
>> Above is an example of the use of {../n}. I use it because between the
>> map:match and the map:generate there is a map:act. So I need to jump this
>> level ( using {../} ) to reference the pattern. If I use {1} this is the
>> reference to the map:act level.
>> I hope this help.
>> *
>> Victor Pergolesi *
>> *Codimat S.A.*
>> ?rea Sistemas
>> *Web:* www.codimat.com.ar <http://www.codimat.com.ar/>
>> *Tel.: *(0291) 459-2480 | 459-2424
>> *Fax: *(0291) 459-2400 | 0-800-666-42266
>> Don Bosco 1495 - B8003CAA Bah?a Blanca - Argentina
>> *From:* Mansour Al Akeel [mailto:[email protected]]
>> *To:* [email protected]
>> *Sent:* Sat, 30 May 2009 03:26:53 -0300
>> *Subject:* Regexp matcher with digits
>> I am trying to match a url that ends with digits. I tried this:
>> <map:match type="regexp" pattern="\.*/[:digit:]*$">
>> ...
>> <map:transform src="transform.xsl">
>> <map:parameter name="href" value="{1}"/>
>> <map:parameter name="depth" value="{2}"/>
>> </map:transform>
>> Then I tried:
>> <map:match type="regexp" pattern="\.*/[0-9]*$">
>> Nothing seems to be working. What's worng ?
>> One more thing, I have seen some code for a sitemap using something
>> like
>> {../2}, what is this ? I couldn't find any documentation.
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> <mailto:[email protected]>
>> For additional commands, e-mail: [email protected]
>> <mailto:[email protected]>
>> Este mensaje y sus adjuntos contienen informaci?n confidencial y son para
>> uso exclusivo del destinatario. Si hubiese recibido este mensaje por
>> error, o contuviera informaci?n que Ud. no desea recibir, por favor le
>> agradecemos nos lo haga saber y lo elimine de su sistema. Cualquier
>> inconveniente, enviarlo a [email protected].
>> Este correo ha sido chequeado por el servidor de Codimat S.A.
>> www.codimat.com.ar
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]