Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: [xsl] Re: Determining whether no single instance of a specific

From: "Michael Kay" <mike@--------.--->
To: <xsl-list@-----.------------.--->
Date: 6/5/2009 1:38:00 PM
> 
>      <xsl:when test="count(not(b/c)) &gt;= 1">
> 
> This statement looks correct, but it isn't working for me. 

I haven't followed the thread, but...

In XSLT 1.0, applying count() to anything other than a node-set is an error
(one of the very few dynamic errors defined in XPath 1.0). It's being
applied here to a boolean.

In XSLT 1.0, applying count() to a boolean always returns 1.

So the statement doesn't look correct at all.

Perhaps (count(b[not(c)]) &gt;= 1) was intended.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe@l...>
--~--



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent