[Home] [By Thread] [By Date] [Recent Entries]
At 2012-04-14 22:03 +0200, Leo Studer wrote:
Hi Ken Forgive me ... when I saw "XPath 1" in the subject line, my thought was that the only context of using XPath 1 is in XSLT 1 and so created an example using XSLT. I wondered about current(), but that is like key() as it is only in XSLT and not XPath. And even with it I could not figure out how to get what you want because I end up at cdcatalog and not cd. I cannot think of a way of getting the newest CD of each artist using only XPath 1. This is because of not being able to access information from within the predicate to something known outside of the step. One needs simultaneous comparisons to two children of the element and each time I write the predicate I only have access to one. Interesting task! . . . . . . . . . Ken -- Public XSLT, XSL-FO, UBL and code list classes in Europe -- May 2012 Contact us for world-wide XML consulting and instructor-led training Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal
|

Cart



