commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ing. Fabio Biscaro" <bisc...@webscience.it>
Subject Digester
Date Fri, 07 Oct 2005 17:41:13 GMT
Hi! I have this xml code snippet:

<slice id="chiudi">
			<UID>18290a0d-43ac-40b2-a1a4-638a89f0c041-96</UID>
			<name>chiudi</name>
			<x>766</x>
			<y>58</y>
			<width>17</width>
			<height>17</height>
			<lineUp>1126868756121_492</lineUp>
			<lineDown>1126868756357_918</lineDown>
			<lineLeft>1126868733344_77</lineLeft>
			<lineRight>1126868783359_812</lineRight>
			<captures>
				<capture id="chiudi_1127312064299_17">
					<name>normal</name>
	
<UID>18290a0d-43ac-40b2-a1a4-638a89f0c041-96-NOR-36</UID>
					<x>766</x>
					<y>58</y>
					<width>17</width>
					<height>17</height>
	
<image>chiudi_1127312064299_17.png</image>
				</capture>
				<capture ....

I use this digester:

<pattern value="slices/slice">
			<object-create-rule
classname="it.webscience.genesi.translator.beans.SliceBean" />
			<bean-property-setter-rule pattern="name"
propertyname="name"/>
			<bean-property-setter-rule pattern="UID"
propertyname="UID"/>
			<bean-property-setter-rule pattern="x"
propertyname="x"/>
			<bean-property-setter-rule pattern="y"
propertyname="y"/>
			<bean-property-setter-rule pattern="width"
propertyname="width"/>
			<bean-property-setter-rule pattern="height"
propertyname="height"/>
			<pattern value="captures/capture">
				<object-create-rule
classname="it.webscience.genesi.translator.beans.CaptureBean" />
				<bean-property-setter-rule pattern="name"
propertyname="name"/>
				<bean-property-setter-rule pattern="UID"
propertyname="UID"/>
                        <bean-property-setter-rule pattern="parentUID"
propertyname="../../../UID"/>
				<bean-property-setter-rule pattern="x"
propertyname="x"/>

When I use digester to fill capture object properties I need to fill
"parentUID" with uid of slices info which is parent. How can I pass slice
UID to capture bean?

../../../UID doesnt work!

Thanks,
fabio



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message