cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Isidro Vila Verde" <>
Subject Xpath expression with a variable predicate in binding cforms
Date Sat, 01 May 2004 18:45:43 GMT
Sorry if this is a FAQ, but I am in my first steps into cocoon and cforms
and all (almost) is new to me.
I have this XML data 

<hab tipo="QD" quant="2"/>
<hab tipo="QS" quant="3"/>
  <elem hab="QD" val="30" unit="Euro"/>
  <elem hab="QS" val="25" unit="Euro"/>

That I wanto to bind with something like this

	<fb:repeater id="hab" parent-path="." row-path="hab">
			<fb:value id="id" path="@id"></fb:value>
			<fb:value id="tipo" path="@tipo"/>
			<fb:value id="n" path="@quant">
				<fd:convertor datatype="integer"/>
			<fb:value id="preco"
				<fd:convertor datatype="integer"/>

Where VARIABLE must be the value of @tipo from current node (hab).
How can I do this. Are there any possibility to refer to value o 'tipo'?
Something like we do with xsl:variable in XSL?

Thanks in advance.
Isidro Vila Verde
tel: 223743701
tel: 969103006 

Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
Version: 6.0.672 / Virus Database: 434 - Release Date: 28-04-2004

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message