|
Subject: [xsl] multiple values for the key From: sudheshna iyer <sudheshnaiyer@xxxxxxxxx> Date: Thu, 31 Jul 2008 09:28:33 -0700 (PDT) |
How do I use multiple key values?
Declaration:
<xsl:key name="keyname" match="subroot" use="ccc"/>
During the usage, I want to specify multiple values:
<xsl:variable name="keyname" select="key('keyname', '11' or '22')"/> ==> Here I want to use multiple values 11 and 22.
For the following xml, result should be:
aaaaa bbbbb ccccc ddddd ==> note that both values of ccc= '22' and ccc= '11'
<?xml version="1.0" encoding="UTF-8"?>
<root>
<subroot id="11111">
<ccc>11</ccc> ==> needs to be picked
<ddd>2005-08-26</ddd>
<eee>aaaaa</eee>
</subroot>
<subroot id="11111">
<ccc>22</ccc> ==> needs to be picked
<ddd>2005-08-26</ddd>
<eee>bbbbb</eee>
</subroot>
<subroot id="11111">
<ccc>11</ccc>
<ddd>2005-08-26</ddd>
<eee>ccccc</eee>
</subroot>
<subroot id="11111">
<ccc>11</ccc>
<ddd>2005-08-26</ddd>
<eee>ddddd</eee>
</subroot>
<subroot id="11111">
<ccc>33</ccc>
<ddd>2005-08-26</ddd>
<eee>eeeee</eee>
</subroot>
</root>
Thank you for your help.
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] custom page sequence in x, G. Ken Holman | Thread | Re: [xsl] multiple values for the k, David Carlisle |
| RE: [xsl] selecting associated head, Rushforth, Peter | Date | Re: [xsl] custom page sequence in x, Mandar Jagtap |
| Month |