ps from the top of my head so i might be off a little: it might well be an implication of MultiValueXMLPropertyExtractor extending the SimpleXMLExtractor from slide instead of the HippoSimpleXMLExtractor which uses different lib for xpath resolving. So I do not want to state that //keywords/keyword/text() is any different than string(//keywords/keyword) (i am not sure if this should be), i only want to say that //keywords/keyword/text() works for your problem
-Ard > > Use //keywords/keyword/text() > > wrapping it with string() does not refer to a nodeset anymore IIUC > > Ard > > > Hi there, > > > > I have 2 properties that use the MultiValueXMLPropertyExtractor > > > > 1) > > <extractor > > classname="nl.hippo.slide.extractor.MultiValueXMLPropertyExtractor" > > uri="/files/customer.preview/content" content-type="text/xml > > | text/xml; > > charset=UTF-8 | application/xml"> > > <configuration> > > <instruction property="keywords" > > namespace="http://hippo.nl/cms/1.0" > > xpath="string(//keywords/keyword)"/> > > </configuration> > > </extractor> > > > > 2) > > <extractor > > classname="nl.hippo.slide.extractor.MultiValueXMLPropertyExtractor" > > uri="/files" content-type="text/xml | text/xml; charset=UTF-8 > > | application/xml"> > > <configuration> > > <instruction property="references" > > namespace="http://hippo.nl/cms/1.0" xpath="//@href|//@src"/> > > </configuration> > > </extractor> > > > > In 1) I only get the first keyword, in 2) I get all the values form > > @href and @src are commaseparatedlist. What am I doing > wrong (or what > > is the MultiValueXMLPropertyExtractor doing wrong)? I want all the > > keywords in 1 property. > > > > Jasha Joachimsthal > > > > Hippo > > Oosteinde 11 > > 1017 WT Amsterdam > > The Netherlands > > +31 (0)20 5224466 > > http://www.hippo.nl > > > > ******************************************** > > Hippocms-dev: Hippo CMS development public mailinglist > > > ******************************************** > Hippocms-dev: Hippo CMS development public mailinglist > ******************************************** Hippocms-dev: Hippo CMS development public mailinglist
