This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Question about using Xpath in Dimitre xsl for LOOKup problem


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@unisvr.net.tw




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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]