cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Piroumian" <>
Subject Re: XMLForm and concatenation in view: possible bug?
Date Wed, 16 Apr 2003 12:14:57 GMT
You didn't told me that you are using some different XPath
(/persons_col[1]/concat(lastName, firstName) <- this is not a correct XPath.
You should use this instead:

ref="concat(/persons_col[1]/lastName, /persons_col[1]/firstName)"

hopefully this should work.

Please follow the recommendations carefully.


----- Original Message -----
From: <>
To: <>
Sent: Wednesday, April 16, 2003 15:29
Subject: XMLForm and concatenation in view: possible bug?


I have a Collection object which contains some attributes (applicationId,
applicationName, applicationVersion).

In a XMLForm view I need to display more than one attribute per "output",

<xf:selectOne ref="/appId">
  <xf:itemset nodeset="applications">
    <xf:caption ref="applicationName + applicationVersion"/>
    <xf:value ref="applicationId"/>

Konstantin has told me to try:
<xf:caption ref="concat(applicationName, applicationVersion)"/>

But it doesn't work. Error:
org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
org.apache.commons.jxpath.JXPathException: Invalid XPath:
'/persons_col[1]/concat(lastName, firstName)'. Syntax error after:

Is someone could tell why this doesn't work?

Sylvain (T)

View raw message