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

Re: XSLT Hello World - outreach

Subject: Re: XSLT Hello World - outreach
From: David Rudel <fwqhgads@xxxxxxxxx>
Date: Fri, 28 Mar 2014 22:31:46 +0100
Re:  XSLT Hello World - outreach
On Fri, Mar 28, 2014 at 10:02 PM, Brian Chrisman <brchrisman@xxxxxxxxx> wrote:

>
> Okay... is it me, or is this one of those exceedingly rare cases where
> you actually want the 'A!=B' test instead of 'not(A=B)'?
> ie, test="*[1]/@audience!=*/@audience" would tell us when something in
> this case is 'not' to be promoted?
>
> - Brian
>

Oops... I just realized that, from a performance standpoint, your
solution is likely to be faster because when checking $seq1 != $seq2,
the processor is likely to stop after it finds the first
non-homogeneous term. It may do the same when checking
count(distinct-values(@audience))=1 as well, but perhaps less likely.

More importantly, I wanted to introduce you to the distinct-values()
function in case you were unaware of its application in this context.

-David

-- 

"A false conclusion, once arrived at and widely accepted is not
dislodged easily, and the less it is understood, the more tenaciously
it is held." - Cantor's Law of Preservation of Ignorance.

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.