Re: debugging tools?

Mukul Gandhi <[email protected]>
Newsgroups gmane.text.xml.xerces-j.user
Message-ID <CABuuzNN5mF==Q4QRJUhvOYwz1A6+KZKORYmeRk+iyzh1nd2Sig@mail.gmail.com>
For the example you've posted, there's no compilation error with
<assert> XPath expression and the <assert> has returned true for the
XML instance document you've posted.

The <assert> you've cited seems to have a lengthy XPath expression.
Unless there's a strong reason to write such lengthy <assert> XPath
expressions, these should be refactored (for example, by breaking
these into multiple asserts) to have a reasonable logical complexity.

On Thu, May 9, 2013 at 7:42 PM, Jim Barnett <[email protected]> wrote:
> Are there tools that will help me debug a complex assertion?  I’ve tried
> using trace, but it doesn’t seem to print out messages when it’s inside an
> ‘every’ or a ‘some’.   I’ve attached the example I’m trying to debug.  The
> assertion in line 26 of the schema should reject the <transition> in line 7
> of sample.scxml, but it doesn’t (so validation succeeds).  I can’t tell if
> there’s a logical error in my schema, or if I’m not using some element
> correctly.  Can someone give me some hints on how to debug the assertion’s
> application?
>
>
>
> Thanks in advance,
>
> Jim Barnett




-- 
Regards,
Mukul Gandhi
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.