Re: assert error using schema 1.1

pa7751 <[email protected]>
Newsgroups gmane.text.xml.xerces-j.user
Message-ID <[email protected]>
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 <[email protected]> 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: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 
> 

-- 
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.