[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

[no subject]

From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Wed, 22 Nov 2000 05:01:45 -0800 (PST)
[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@xxxxxxxxxxxxxxxxxxxxxx> 
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.