Bill Winspur wrote:
> However the pipeline is now throwing the OXFException:
> org.orbeon.oxf.common.OXFException: Can't load schema for URI:
> com:wynnon:oxf:processors
> at
> org.orbeon.oxf.xml.SchemaRepository.getSchema(SchemaRepository.java:141)
> 1. As I understand it, oxf: designates a protocol, should
> I be defining wynn as a protocol somehow, not as a namespace?
"oxf:" may mean several things:
1. A protocol, that allows accessing your resources sandbox, when used
in URLs.
2. A prefix commonly used for processor names, e.g. "oxf:xslt", where
xmlns:oxf="http://www.orbeon.com/oxf/processors". In this case, you
are free to use another prefix, as long as it is mapped to the
correct URI.
3. It is also used to refer to processor inputs from XSLT
(e.g. document("oxf:my-input")).
> 2. Why is OXF expecting a schema to be associated with the wynn
> namespace ?
> 3. What can I try to get my processor running ?
There is a schema associated with the config input of your processor,
case because you have in your processor:
addInputInfo(new ProcessorInputOutputInfo(INPUT_CONFIG, URL_NAMESPACE_URI));
This is what associates a schema to the input. However, the schema is
associated through the URI that you defined, which is
"com:wynnon:oxf:processors".
Are you doing something with HttpPostProcessor.URL_NAMESPACE_URI? Did
you add it to SchemaRepository by any chance?
You can BTW define additional schemas in the properties without
touching SchemaRepository.java. In your case you would do:
<property as="xs:string"
name="oxf.schemas.com:wynnon:oxf:processors"
value="oxf:/whatever/path/to/your/schema.rng"/>
At this particular stage, to get the processor running, just change
"com:wynnon:oxf:processors" back to
"http://www.orbeon.org/oxf/xml/url" in HttpPostProcessor.java.
-Erik
-------------------------------------------------------
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