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

Re: How to restrict xsl:key

Subject: Re: How to restrict xsl:key
From: "Martin Honnen martin.honnen@xxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 12 Sep 2019 22:04:39 -0000
Re:  How to restrict xsl:key
On 12.09.2019 23:55, Mark Wilson mark@xxxxxxxxxxxx wrote:
I have established a key:
 B <xsl:key name="placement-index" match="Stamp"
use="concat(CatNumbers/@pofis-prefix, CatNumbers/@pofis-number,

It uses an XML file that contains the element Stamp. It worked until
today. What changed is that the CatNumbers fall into two Periods
(seedataB  below). Until today, the Catnumbers referenced always fell in
Period domain='c' in my data. They now also fall into Period
domain='cr'.B  I need to restrict the output of the template to only keys
built from the @domain='c' part of the data. Have not a clue how to do

You can also change the third argument of the key call with

key('placement-index', concat(@pofis-prefix, @pofis-number,
@pofis-suffix), doc('../work/data-with-index.xml')//Period[@domain = 'c'])

to only search that subtree.

Current Thread


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.
First Name
Last Name
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.