Ah, btw, you have the same problem in your sitemap when you try to use your an anchor (See http://marc.theaimsgroup.com/?t=108134351700001&r=1&w=2)
Carsten > -----Original Message----- > From: Carmona Perez, David [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 08, 2004 2:58 PM > To: [EMAIL PROTECTED] > Subject: RE: PatternException when expanding sitemap variables > > *********************** > Este correo ha sido procesado por el antivirus del Grupo FCC. > ***********-*********** > > > I don't understand how I haven't been able to discover it myself. > Thanks a lot. This was the problem!!!. > > -----Mensaje original----- > De: Carsten Ziegeler [mailto:[EMAIL PROTECTED] Enviado > el: jueves, 08 de abril de 2004 14:45 > Para: [EMAIL PROTECTED] > Asunto: RE: PatternException when expanding sitemap variables > > > *********************** > Este correo ha sido procesado por el antivirus del Grupo FCC. > ***********-*********** > > > Is the followin, pasted example correct? > > > <map:act type="pon-idioma"/> > > > <map:match type='hay-valor' pattern='{nuevo-url}'> > > <map:redirect-to uri='{1}'/> > > </map:match> > > </map:act> > > There is a closing slash in the first line! > If so, you can't get the value from the action in your > matcher as the matcher is not nested inside the action. It > should work this way (without a closing slash at the action element): > > <map:act type="pon-idioma"> > <map:match type='hay-valor' pattern='{nuevo-url}'> > <map:redirect-to uri='{1}'/> > </map:match> > </map:act> > > > HTH > Carsten > > > -----Original Message----- > > From: Carmona Perez, David [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, April 08, 2004 2:31 PM > > To: [EMAIL PROTECTED] > > Subject: RE: PatternException when expanding sitemap variables > > > > > *********************** > > Este correo ha sido procesado por el antivirus del Grupo FCC. > > ***********-*********** > > > > > > > > I have achieved it to work by > > > > > 1) Placing the result variable of the action as a request > > > attribute, instead of as a sitemap variable > > 2) Changing > > > > > <map:match type='hay-valor' pattern='{nuevo-url}'> > > to > > <map:match type='hay-valor' pattern='{request-attr:nuevo-url}'> > > > > > Does anyone know if what has happened to me is a Cocoon bug or not? > > > > > -----Mensaje original----- > > De: Carmona Perez, David > > > > > Enviado el: jueves, 08 de abril de 2004 12:59 > > Para: [EMAIL PROTECTED] > > Asunto: RE: PatternException when expanding sitemap variables > > > > > > > > Where can I look at the generated sitemap.java, in order to > > > find the error cause? > > > > > -----Mensaje original----- > > De: Carmona Perez, David > > > > > Enviado el: jueves, 08 de abril de 2004 10:40 > > Para: Cocoon (E-mail) > > Asunto: PatternException when expanding sitemap variables > > > > > Here is a small fragment of my pipeline: > > > > > <map:act type="pon-idioma"/> > > <map:match type='hay-valor' pattern='{nuevo-url}'> > > <map:redirect-to uri='{1}'/> > > </map:match> > > </map:act> > > > > > The 'pon-idioma' action sets a variable called 'nuevo-url'. > > I receive the following error when nesting a matcher that > > > accesses this variable: > > > > > org.apache.cocoon.sitemap.PatternException: Error while > > > evaluating '{nuevo-url}' : not so many levels > > > > > Here is the call stack > > > > > at > > > org.apache.cocoon.components.treeprocessor.variables.PreparedV > > ariableResolver.resolve(PreparedVariableResolver.java:245) > > at > > > org.apache.cocoon.components.treeprocessor.sitemap.MatchNode.i > > nvoke(MatchNode.java:117) > > at > > > org.apache.cocoon.components.treeprocessor.AbstractParentProce > > ssingNode.invokeNodes(AbstractParentProcessingNode.java:108) > > at > > > org.apache.cocoon.components.treeprocessor.sitemap.PipelineNod > > e.invoke(PipelineNode.java:163) > > at > > > org.apache.cocoon.components.treeprocessor.AbstractParentProce > > ssingNode.invokeNodes(AbstractParentProcessingNode.java:108) > > at > > > org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNo > > de.invoke(PipelinesNode.java:161) > > at > > > org.apache.cocoon.components.treeprocessor.TreeProcessor.proce > > ss(TreeProcessor.java:351) > > at > > > org.apache.cocoon.components.treeprocessor.TreeProcessor.proce > > ss(TreeProcessor.java:304) > > at org.apache.cocoon.Cocoon.process(Cocoon.java:640) > > at > > > org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet. > > java:1104) > > > > > It seems that the problem is related to expand the variable. > > Why do I get this error? > > Thanks for any help. > > > > > David > > > > > > > > > --------------------------------------------------------------------- > > 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]
