Re: [xsl] // expanding to descendant-or-self::node()

Subject: Re: [xsl] // expanding to descendant-or-self::node()
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Wed, 17 Sep 2008 14:46:42 -0400
At 01:43 PM 9/17/2008, Andrew wrote:
2008/9/17 David Carlisle <davidc@xxxxxxxxx>:
>
>
>> the distinction between //foo[1] and (//foo)[1]. That has got to be
>> the biggest downside of the way "//"  is defined.
>
> and anyway any blemish in the definition of // is minor compared to !=
> which would have been better not being defined, since 9 times out of 10
> when it is used it does the wrong thing.
>

true, perhaps != should be for atomic comparison and much lesser used
"ne" for set comparison, rather than the other way around...

In Java using != to compare Strings gets underlined as a warning and
you get a reminder to the use the method equals() instead, so maybe
the same could be done here

I'm actually not in favor of changing any of it. I think Mike is right when he warns us that such "improvements" generally turn out to cost more, and for longer, than they're worth.


Can you imagine us having to sort out the "oh, that processor uses the old XPath 1.0 semantics" issues that would come up here? Write the caveats into every answer that we gave about anything? Posting lists, with painful pedantic explanations, of things that are the same and things that aren't the same?

It falls into the category of Be Careful What You Wish For. Yes, we can point out flaws. But let's do it in an effort to mitigate their negative effects, rather than in the hope of scrubbing them away -- and then dealing with the unpredictable consequences of whatever was done in the attempt to do that.

Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================

Current Thread