Hello Jody,

Thank you for looking at this again. I managed to provide a workaround for my 
problem, so I closed the issue on JIRA.
If this is needed in the future, it can be raised again (and fixed properly). I 
do agree that multiplicity has to be considered and it needs a lot of 
thought... 

Cheers
Rini

-----Original Message-----
From: Jody Garnett [mailto:[email protected]] 
Sent: Saturday, 6 June 2009 2:25 PM
To: Angreani, Rini (E&M, Kensington)
Cc: [email protected]
Subject: Re: [Geotools-devel] Filtering complex attribute value

> Therefore, my converter would only retrieve the first (and assumed only) 
> value from the attribute.
> I don't know if multiplicity would ever be needed.. Perhaps we'll update that 
> when required.
> While you're at it, I submitted a patch and would appreciate it if you can 
> take a look :)
> http://jira.codehaus.org/browse/GEOT-2528

I am a bit unhappy ignoring multiplicity on this one; if multiplicity
is allowed the XPath expression should return all of the values in a
collection. We do have a couple of functions that are willing to do
things with a list of values; but I expected when we started working
with multiplicity we would get more.

You should ask for a second opinion on this one I may be being a bit
to exacting on what is a pragmatic approch (treating a list of 1 as as
a single entry). What you describe is similar to the Perl practice of
being magic about converting a list to a single entry depending on
context.

However is there not an XPath syntax to explicitly grab the first
thing out of a list?

I am not going to have a chance to get to look at GEOT-2528 until next
weekend; we should ask another admin to help out on this one.

Jody

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to