[xsl] Question about using Xpath in Dimitre xsl for LOOKup problem

Subject: [xsl] Question about using Xpath in Dimitre xsl for LOOKup problem
From: "Yang" <sfyang@xxxxxxxxxxxxx>
Date: Sun, 24 Jun 2001 10:18:36 +0800
Hi, : Dimitre 

 In your xsl solution to Benoit_Aumars lookup problem;(1048, 1004)
 you use following key commands to get relation between name and abbr.

  <xsl:key name="kLookup" match="name" use="preceding-sibling::abbr[1]"/>


 It seems a very smart and compact expression, especially the xpath 
 preceding-sibling:: abbr[1] for use attribute.

 However I can not understand how exactly this xpath does the trick
 with all my reading about preceding-sibling, predicate[1]?

 Would you give it an explanation?    

 Sun-fu Yang

 sfyang@xxxxxxxxxxxxx




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


Current Thread