guessing the id (was: RE: [xsl] lost mail)

Subject: guessing the id (was: RE: [xsl] lost mail)
From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 23 Apr 2001 11:52:14 +0200 (MET DST)
> Not sure, but I did the same thing and it never appeared again. 
> (nor was forwarded by the list admin).
> 
> I suppose its just "out there"!

Well, in this mail I wanted to propose a new function for XPath 2.0
which returns the id of an element, if it has one - just the complementary
function to id(). 

But now I realized that this can be achieved simply (really?) by
@*[id(.) and count(id(.)|..)=1]

Cheers,
Oliver


/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/


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


Current Thread