[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: xpath key problems

Subject: Re: xpath key problems
From: Syd Bauman <Syd_Bauman@xxxxxxxxx>
Date: Sun, 21 Nov 2010 13:40:44 -0500
Re:  xpath key problems
Hi David!

You are much better at handling keys than I am. But if I skip the key
bit, and just put an XPath on the select= of the <xsl:value-of> child
of <pointer> in the hm28x template, I think the following XPath does
what you want.

   preceding::pb[parent::*[local-name(.) = $my_hm_local-name]][1]/@folio

(Obviously I set $my_hm_local-name() to local-name(.) earlier in the
template :-)

And it runs pretty quickly using Saxon-HE 9.2.1.1J:
 real   0m2.996s
 user   0m4.634s
 sys    0m0.256s

I hope this helps ...

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.