We are saving our documents with a namespace in it, like:

<?xml version="1.0" encoding="utf-8"?>
<home xmlns="http://www.test.nl/online/cms/hippo"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://www.t.nl/online/cms/hippo home.xsd" taal="nl" 
land="NL">
   <titel>foobar</titel>
</home>

Only our extractor stopped working. Is there a possibility to give the 
namespace to the extractor?

Original extractor config:
<?xml version="1.0"?>
<extractors>
    <extractor classname="nl.hippo.slide.extractor.HippoSimpleXmlExtractor" 
uri="/files/default.preview/content"
               content-type="text/xml | application/xml | text/xml; 
charset=UTF-8">
        <configuration>
            <instruction property="titel" namespace="http://hippo.nl/cms/1.0"; 
xpath="string(/home/titel)"/>
        </configuration>
    </extractor>
</extractors>

We've tried to change this to:
<?xml version="1.0"?>
<extractors xmlns:cms="http://www.test.nl/online/cms/hippo";>
    <extractor classname="nl.hippo.slide.extractor.HippoSimpleXmlExtractor" 
uri="/files/default.preview/content"
               content-type="text/xml | application/xml | text/xml; 
charset=UTF-8">
        <configuration>
            <instruction property="titel" namespace="http://hippo.nl/cms/1.0"; 
xpath="string(/cms:home/cms:titel)"/>
        </configuration>
    </extractor>
</extractors>

But then the repository complains about:
WARN    2007-11-20 11:25:04   [fortress.slide.domain]  Exception while 
retrieving content: Prefix must resolve to a namespace: cms

(The message appeared only after we've changed 
components/excalibur-slide/server/src/java/nl/hippo/slide/extractor/HippoSimpleXmlExtractor.java
 to show the error.)

Has someone experience with using namespace in documents inside the repository?

With regards,

Nick Stolwijk
********************************************
Hippocms-dev: Hippo CMS development public mailinglist

Reply via email to