This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

No Subject


David,
You're 100% right, but Jenni's original expression:

@*[not(self::dem:count)] 

 can be simply written as follows:

@*[count(../@dem:count| .) != count(../@dem:count)]


This was my original idea. This expression is simpler, because it is
more easy to understand and also because it will continue to yield the
correct results even in case some future version of XSLT had
local-name() and namespace-uri() removed (pls, bear with my weird sense
of humour...).

Cheers,
Dimitre Novatchev.

-------------------------- Original Message --------------
Re: self axis and attributes
To: xsl-list at mulberrytech dot com 
Subject: Re: self axis and attributes 
From: David Carlisle <davidc at nag dot co dot uk> 
Date: Wed, 22 Nov 2000 11:36:39 GMT 
References: <20001122111955.12281.qmail@web6304.mail.yahoo.com> 
Reply-To: xsl-list at mulberrytech dot com 

--------------------------------------------------------------------------------



> The following seems (to me) a little bit simpler:
> 
>    [count(//@dem:count| .) != count(//@dem:count)]

simpler to write, but if // causes Gigabytes of input document to have
to
be searched, it might be a bit slower. However the idea is sound, and
../@ would work just as well, and be faster.

David



__________________________________________________
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]