Martin,

You define processor-specific properties in properties.xml using the following syntax:

<property as="xs:string"
          processor-name="oxf:dsmlldap"
          name="host"
          value="ldap01"/>

Then you can write in your processor:

getPropertySet().getString("host");

BTW, you should not use xmlns:oxf="http://www.orbeon.com/oxf/processors"; for your custom processors. You should use something like (just basing this on your email address, but it can be anything you choose):

xmlns:guug="http://www.goog.de/project-name/processors";

Use this prefix mapping in processors.xml as well as properties.xml.

<processor name="guug:dsmlldap">
  <class name="nl.xos.oxf.ldap.DSMLProcessor"/>
</processor>

The "uri" attribute here is only present for backward compatibility. If you create a new processor, you can actually just drop it and only specify the "name" attribute.

-Erik

Martin Schulte wrote:
Hi,

we have defined our own processor:
<processor name="oxf:dsmlldap" uri="oxf/processor/dsmlldap">
  <class name="nl.xos.oxf.ldap.DSMLProcessor"/>
</processor>

We would now like to define properties that can be read by this processor, the method we are using is getPropertySet().getString("host").

We tried to insert
<property name="oxf.processor.dsmlldap.host" value="ldap01"/>
into both into orbeon.war:properties.xml and resources/config/properties.xml, but we get a back a null.


Are we right that the uri of the processor should "match" the first part of the property-name? If not, what's the right way? If yes, what else are we doing wrong?

Thanks a lot,

Martin


-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
orbeon-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to