Using custom EntityResolver in Orbeon

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Using custom EntityResolver in Orbeon

Maciej Arciuch
Hi,

is there any way to plug a custom entity resolver into Orbeon's XSD
validation? The environment in which I use Orbeon as the form engine has
no free access to "public" net, certain resources are stored locally. So
far I've been simply rewritting schemaLocations (and model@schema
attribute) to point Orbeon to a local resource serving servlet, but this
approach is a bit cumberstone and error-prone.

Thanks in advance,
--
Maciej Arciuch
programista
tel. +48 22 564 2482


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Using custom EntityResolver in Orbeon

Erik Bruchez
Administrator
Maciej,

Are you talking about using schemas in XForms validation?

I don't think we have this capability at this time, but it would be
good to have it.

If with XForms, I think the changes would have to be done here:

http://github.com/orbeon/orbeon-forms/blob/master/src/java/org/orbeon/oxf/xforms/XFormsModelSchemaValidator.java

Possibly in the resolveEntity() method. Somehow, a schema catalog
would have to be provided and used for resolution.

Is that something you can investigate?

-Erik

2010/5/25 Maciej Arciuch <[hidden email]>:

> Hi,
>
> is there any way to plug a custom entity resolver into Orbeon's XSD
> validation? The environment in which I use Orbeon as the form engine has no
> free access to "public" net, certain resources are stored locally. So far
> I've been simply rewritting schemaLocations (and model@schema attribute) to
> point Orbeon to a local resource serving servlet, but this approach is a bit
> cumberstone and error-prone.
>
> Thanks in advance,
> --
> Maciej Arciuch
> programista
> tel. +48 22 564 2482
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing
> list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Re: Using custom EntityResolver in Orbeon

Maciej Arciuch
Erik Bruchez pisze:
> Maciej,
>
> Are you talking about using schemas in XForms validation?
>  
Yes, I'm sorry if I did not make myself clear enough.

> I don't think we have this capability at this time, but it would be
> good to have it.
>
> If with XForms, I think the changes would have to be done here:
>
> http://github.com/orbeon/orbeon-forms/blob/master/src/java/org/orbeon/oxf/xforms/XFormsModelSchemaValidator.java
>
> Possibly in the resolveEntity() method. Somehow, a schema catalog
> would have to be provided and used for resolution.
>
> Is that something you can investigate?
>  
Thanks for the hint.

Now it seems to me that I should simply change the static
ENTITY_RESOLVER in XMLUtils from "new EntityResolver()" to "new
MyCustomEntityResolver()". Can it that simple? I'll give it a try,
thanks once more, best wishes,

--
Maciej Arciuch
programista
tel. +48 22 564 2482


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws