This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Question about using Xpath in Dimitre xsl for LOOKup problem
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Question about using Xpath in Dimitre xsl for LOOKup problem
- From: "Yang" <sfyang at unisvr dot net dot tw>
- Date: Sun, 24 Jun 2001 10:18:36 +0800
- Reply-To: xsl-list at lists dot mulberrytech dot com
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