Hi all.

Is it possible to define two extractors that map to the same URI and that
extract content from documents in two different namespaces?


So giving the following situation.



Document one looks like this:

<h:human xmlns:h="http://human.org";>
    <h:name>Nico</h:name>
</h:human>

and the second document looks like this:

<p:pet xmlns:p="http://pet.org";>
    <p:name></p:name>
</p:pet>


The extractors look like this:

<extractor classname="nl.hippo.slide.extractor.HippoSimpleXmlExtractor"
uri="/files/default.www/livingbeings" content-type="text/xml | text/xml;
charset=UTF-8">
    <configuration>
        <instruction property="human_name" namespace="http://human.org/props";
xpath="string(/h:human/h:name)"/>
    </configuration>
</extractor>

<extractor classname="nl.hippo.slide.extractor.HippoSimpleXmlExtractor"
uri="/files/default.www/livingbeings" content-type="text/xml | text/xml;
charset=UTF-8">
    <configuration>
        <instruction property="pet_name" namespace="http://pet.org/props";
xpath="string(/p:pet/p:name)"/>
    </configuration>
</extractor>


I have tried different extractor configurations but none of them seems to do
the job.

Should it be possible to put the two documents into
"/files/default.www/levingbeings" or a sub directory? If the answer is yes,
how do I configure the extractors and should it be possible to use the same
setup with nl.hippo.slide.extractor.MultiValueXMLPropertyExtractor
extractor?




Kind regards

Nico Tromp
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Searchable archives can be found at:
MarkMail: http://hippocms-dev.markmail.org
Nabble: http://www.nabble.com/Hippo-CMS-f26633.html

Reply via email to