- From: Jeremy Carroll <jjc@hpl.hp.com>
- Date: Mon, 25 Jun 2007 10:38:04 +0100
- To: "Clark, John" <CLARKJ2@ccf.org>
- CC: GRDDL Working Group <public-grddl-wg@w3.org>
Thanks spot on. I will change this, and one other aspect of the tests that was pedalogically problematic (I misused xml:base in some examples). Jeremy Clark, John wrote: >> 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. > > > > -- Hewlett-Packard Limited registered Office: Cain Road, Bracknell, Berks RG12 1HN Registered No: 690597 England
Received on Monday, 25 June 2007 09:38:30 UTC