No, because the change I made was committed after 2.1.4 was released.*********************** Este correo ha sido procesado por el antivirus del Grupo FCC. ***********-***********
Could I also use 2.1.4 as it's more stable?
Alternatively, you can try replacing the file src/java/org/apache/cocoon/components/treeprocessor/variables/PreparedVariableResolver.java with the one from CVS, then rebuild your Cocoon. That will achieve the same end.
I've no idea whether this will fix your problem, but it is worth a try.
Of course, you could rewrite your sitemap like so:
<map:act type="pon-idioma"/> <map:match pattern="**/area"> <map:act type="area"> <map:redirect-to uri='/{/myvar}'/> </map:act> </map:match> </map:act>
Using a / to signify the top level.
Upayavira
BTW, Cocoon 2.1.4 doesn't show up in changes http://cocoon.apache.org/2.1/changes.html, the latest shown is 2.1.3.
-----Mensaje original----- De: Upayavira [mailto:[EMAIL PROTECTED] Enviado el: jueves, 08 de abril de 2004 13:19 Para: [EMAIL PROTECTED] Asunto: Re: Anchor in an action
I get an exception of anchor not found.
The simplest, and most immediate question I'd ask is, are you able to
upgrade to 2.1.5-dev (from CVS)? As the this code has been completely
rewritten, and thus may prevent your problem.
Regards, Upayavira
-----Mensaje original----- De: Upayavira [mailto:[EMAIL PROTECTED] Enviado el: jueves, 08 de abril de 2004 12:42 Para: [EMAIL PROTECTED] Asunto: Re: Anchor in an action
I'm using Cocoon version 2.1.2
Here is a snippet that doesn't work:
<map:act type="pon-idioma" name='i'/> <map:match pattern="**/area"> <map:act type="area"> <map:redirect-to uri='/{#i:myvar}'/> </map:act> </map:match> </map:act>
Okay. You say "it doesn't work." What does it do that is wrong?
Upayavira
-----Mensaje original----- De: Upayavira [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 07 de abril de 2004 15:25 Para: [EMAIL PROTECTED] Asunto: Re: Anchor in an action
Carmona Perez, David wrote:
Hi all,
I've read in the wiki, http://wiki.cocoondev.org/Wiki.jsp?page=SitemapVariableSubstitution, the following:
Ah, a useful link.
you use the new anchor syntax. With sitemap variable anchors you name a specific level and refer to them directly by the specified name.
... <map:match pattern="images/*.gif" name="root"> <map:act type="resource-exists"> <map:parameter name="url" value="resources/images/{1}.gif"> <!-- new level --> <map:read src="resources/images/{#root:1}.gif" mime-type="images/gif"/> </map:act> </map:match> ...
It seems not to work. In my case I attach it to an action instead of a matcher.
Any help will be appreciated.
What version of Cocoon are you using?
Support for 'name' is there in both action and match in the code, it seems.
Can you provide a sample of sitemap code that doesn't work?
Upayavira
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]