Hmmm, it might be wrong on the wiki : does  xpath="string(//a/@href)"
work? I think it should be

xpath="//a/@href"

Ard

> DOH! Thanks Ard. 
> I was mislead by the Wiki [1]:
> <extractor
> classname="nl.hippo.slide.extractor.MultiValueXMLPropertyExtractor"
> uri="/files/project.preview/content" content-type="text/xml">
>     <configuration>
>       <instruction property="dependencies"
> namespace="http://hippo.nl/cms/1.0"; xpath="string(//a/@href)"/>
>    </configuration>
> </extractor>
> 
> [1]
> http://www.hippocms.org/display/CMS/4.+Hippo+Repository+Config
> ure+Extrac
> tors#4.HippoRepositoryConfigureExtractors-l.hippo.slide.extrac
> tor.MultiV
> alueXMLProperty...
>  
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED] On Behalf Of Ard 
> > Schrijvers
> > Sent: dinsdag 22 januari 2008 16:23
> > To: Hippo CMS development public mailinglist
> > Subject: RE: [HippoCMS-dev] MultiValueXMLPropertyExtractor 
> on elements
> > 
> > 
> > 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
> 
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to