Hi Alex,

I have attached the processor and a sample of a xpath config file.  The
idea is that you can grab the xpath content of a ref attribute and use
that to point to the element that is to be validated.

I would like to cache the Verifier object created from the schema so
that it can be used across multiple input screens.

Let me know if you have any questions.

Peter



-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Alessandro Vernet
Sent: Monday, August 11, 2003 10:34 AM
To: OXF Users
Subject: Re: Caching of of a pocessor?

Peter Charles wrote:
> We have a validation processor that we use across several pages.  Each
> time this processor is called is reads in a schema and then does
> validation.  It seems inefficient to keep reading the schema into this
> processor over and over again. Is it possible to instantiate a
processor
> with a configuration and then re-use it over and over?

Peter, is it possible for you to send us the source code of this 
processor, so we can suggest the best approach in this case?

Alex

_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users
<?xml version="1.0" encoding="UTF-8"?>
<ValidateElements schema ="\app\schemas\person.xsd">
	<Xpath valid="false">/person/firstName</Xpath>
	<Xpath valid="false">/person/lastName</Xpath>
</ValidateElements>

Attachment: NodeValidationProcessor.java
Description: Binary data

_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to