I changed it as below and it is working:

<xs:assert test="if ((@output eq 'result') or (@output eq 'isTimedOut'))
then Exception else true() "/>

thanks


Mukul Gandhi-4 wrote:
> 
> On Sat, Oct 27, 2012 at 12:17 PM, pa7751 <pa7...@gmail.com> wrote:
>> The attribute is optional. But if it is there then it can assume any
>> value
>> other than 'isTimedOut' or 'result'.
> 
> I think, then the assert needs to be something like following:
> 
> <xs:assert test="if (@output) then not(@output = ('isTimedOut',
> 'result')) else true()"/>
> 
> 
> 
> -- 
> Regards,
> Mukul Gandhi
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
> For additional commands, e-mail: j-users-h...@xerces.apache.org
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/assert-error-using-schema-1.1-tp34607109p34618415.html
Sent from the Xerces - J - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-users-h...@xerces.apache.org

Reply via email to