Re: assert with count function does not work

Mukul Gandhi <[email protected]>
Newsgroups gmane.text.xml.xerces-j.user
Message-ID <CABuuzNMDs-3qD9rYuFKYcuvUQajEzKa7yTepUqandje+BWEyXA@mail.gmail.com>
Hi Constantino,
   I tried the XSD validation with latest Xerces SVN codebase using your
example in this test case, and got an assertion failure (i.e a 'false'
result) rather than an indication of bug.

Your XML document is in a namespace. If I change your assertion to
following,

<xs:assert test="@count eq count(./column)"
xpathDefaultNamespace="##targetNamespace"/>

I get the expected result.

On Tue, Dec 11, 2012 at 6:43 PM, Cronemberger, Constantino <
[email protected]> wrote:

>  Hi,
>
> I have downloaded the referred revision:
>
> $ svn info
> Path: .
> Working Copy Root Path: /cygdrive/c/development/xml-schema-1.1-dev
> URL:
> https://svn.apache.org/repos/asf/xerces/java/branches/xml-schema-1.1-dev
> Repository Root: https://svn.apache.org/repos/asf
> Repository UUID: 13f79535-47bb-0310-9956-ffa450edef68
> Revision: 1414220
> Node Kind: directory
> Schedule: normal
> Last Changed Author: mukulg
> Last Changed Rev: 1414220
> Last Changed Date: 2012-11-27 13:06:55 -0200 (Tue, 27 Nov 2012)
>
> But still got the same problem.
>
> I have created a simple test app which is attached in this e-mail. All
> jars used are from SVN.
>
> Regards,
>     Constantino
>
>  *Constantino Cronemberger*
>
> ****
>
>
> _____________________________________________________________________________
>
> ****
>
> *  <http://www.gft.com/cebit>*
>
> *
> GFT Brasil Consultoria Informática Ltda.*
> **
>
> **
>
> Av. Sao Francisco, 98
>
>  18.095-450 Sorocaba
>
> BRASIL
>
> ** **
>
> T +55 15 3332 9720
>
> F +55 15 3332 9711
>
>  [email protected]
>
> www.gft.com/br
>
> www.gft-blog.com.br
>
> www.twitter.com/gft_br
>
>
> _____________________________________________________________________________
> ****
>
>
>


-- 
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.