Hi all,
does somebody now if it is possible set properties on a document depending
on the documents namespace? At this moment I'm able to set properties on
multiple documents that have different namespaces, but now I and up with
documents with all the properties that are defined in the extractors.xml
file.
When using the following extractors
<extractor classname="nl.hippo.slide.extractor.HippoSimpleXmlExtractor"
uri="/files/default.www/demo" content-type="text/xml | text/xml;
charset=UTF-8">
<configuration>
<instruction property="human_name" namespace="
http://hippo.nl/cms/1.0" xpath="string(/h:human/h:name)"/>
</configuration>
</extractor>
<extractor classname="nl.hippo.slide.extractor.HippoSimpleXmlExtractor"
uri="/files/default.www/demo" content-type="text/xml | text/xml;
charset=UTF-8">
<configuration>
<instruction property="pet_name" namespace="
http://hippo.nl/cms/1.0" xpath="string(/d:pet/d:name)"/>
</configuration>
</extractor>
every document gets two properties, human_name and pet_name. What I like is
for the documents in the 'd' namespace only to have the property pet_name.
And to have the property human_name only set on documents if there namespace
equals 'h'.
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