RE: library tests

> Further XSLT question, some of the logic in the new code 
> requires comparing element nodes for identity.

The most common way to do this in XSLT 1 is with the `generate-id()`
function[0], which is contractually obligated to produce the same ID
whenever it is called on the same node and different IDs for different
nodes.  As a result, the idiom looks like this:

  <xsl:if test="generate-id($node1) = generate-id($node2)">
    <note>$node1 and $node2 must be the same node!</note>
  </xsl:if>

[0] http://www.w3.org/TR/xslt#function-generate-id

Take care,

    John L. Clark

===================================




Cleveland Clinic is ranked one of the top 3 hospitals in
America by U.S.News & World Report. Visit us online at
http://www.clevelandclinic.org for a complete listing of
our services, staff and locations.


Confidentiality Note:  This message is intended for use
only by the individual or entity to which it is addressed
and may contain information that is privileged,
confidential, and exempt from disclosure under applicable
law.  If the reader of this message is not the intended
recipient or the employee or agent responsible for
delivering the message to the intended recipient, you are
hereby notified that any dissemination, distribution or
copying of this communication is strictly prohibited.  If
you have received this communication in error,  please
contact the sender immediately and destroy the material in
its entirety, whether electronic or hard copy.  Thank you.

Received on Friday, 22 June 2007 12:41:28 UTC