Hadrian / Sanjiva

What I originally meant was for us to be able to specify any of the Xerces (since thats what we use underneath) features http://xerces.apache.org/xerces2-j/features.html as properties to our validate mediator. The default behavior of the mediator should be the default behavior as per Xerces. We should not define these properties in our code, but merely pass any defined properties to Xerces - which should do whats expected if its a valid property that it understands.

So something like...
<validate schema="url" [source="xpath"]>
  <property name="http://apache.org/xml/features/validation/schema-full-checking" value="true|false"/>
  ......
</validate>

And we should just call SchemaFactory.setFeature() using the name and value specified.. this way one can turn on or off *any* supported feature, and our code would be independent of it.

I think this would be what we really need?

asankha





Sanjiva Weerawarana wrote:
On Thu, 2006-06-29 at 22:34 -0400, Hadrian Zbarcea wrote:
  
                
                <validate schema="url" [source="xpath"]>
                    <property name="schema-full-checking" value="true|
                false"/>
                    <property name="honour-all-schemaLocations"
                value="true|false"/>
                    ......
                </validate>
                
                Instead of..
                <validate schema="url" [source="xpath"]
                [schema-full-checking="boolean"]
                [honour-all-schemaLocations="boolean"]>
                    ......
                </validate>
    

Can we please s/honour/something-else/ ?? The spelling "honor" vs.
"honour" will get some folks .. no matter what we pick. I'd prefer to
pick a word with a consistent spelling globally.

Sanjiva.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



  
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to