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

Re: Sequence count vs. context position

Subject: Re: Sequence count vs. context position
From: "Imsieke, Gerrit, le-tex gerrit.imsieke@xxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 4 Oct 2024 07:58:19 -0000
Re:  Sequence count vs. context position
Maybe something like

key('keyNameC"BB, $keyValue)/../*[maybe another predicate such as a name test][1]

On 04.10.2024 09:52, Michael Mueller-Hillebrand michael.mueller-hillebrand@xxxxxxxxx wrote:
Dear colleagues,

I am somewhat puzzled by this situation:

key('keyNameC"BB, $keyValue)[1]

From an example in Michael KayC"BBs XSLT 2.0 bible and the description of position(), I learn that this form selects the first item in the sequence of nodes returned by key().

How would I have to write the expression, if I wanted to filter only those nodes, which are at position 1 in their respective document context? I know I can have predicates which consider the context of all returned nodes, looking at ancestors etc. But somehow position() seems to be special.

Thanks a lot,

Michael

*Michael MCB<ller-Hillebrand*
*Senior Consultant*

Phone +49 951-20859-752
Mobil +49 172-819 34 13

michael.mueller-hillebrand@xxxxxxxxx <mailto:michael.mueller-hillebrand@xxxxxxxxx>
www.docufy.de <https://www.docufy.de/>| DOCUFY@LinkedIN <https://www.linkedin.com/company/3845358/>
Datenschutz <https://www.docufy.de/datenschutz/>

*DOCUFY GmbH | KirschCB$ckerstr. 27 | 96052 Bamberg | Deutschland*
GeschCB$ftsfCB<hrung: Nadine Prill (CEO) & Falko Schmidt (CFO)| Amtsgericht Bamberg HRB10571

XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list>
EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/225679> (by email <>)

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.