[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx> Date: Wed, 22 Nov 2000 05:01:45 -0800 (PST) |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: XML to XML transformation, Kay Michael | Thread | [no subject], David Carlisle |
Re: Is failed key-lookups very slow, Jeni Tennison | Date | Re: XML to XML transformation, David Carlisle |
Month |
Keywords