943,985 Members | Top Members by Rank

Ad:
Nov 1st, 2009
0

Nesting of xsl:key() within xsl:key() & combining results of xsl:key()

Expand Post »
Hi all,

I have 2 unrelated questions. I need to do a grouping of data using XSLT. I need this to function like how a nested IF within an IF would function. After which, I need to group the data so that I can split it into multiple files according to the Group condition.

Using XSLT Version 1.0 :

Q1) How do you nest a key() within another key() (i.e. Use the result nodes returned from the first key() as current node-list to search for 2nd key() condition to group my data)?

Q2) Can I combine the results of 2 key() functions? Say, I want to execute code for all nodes with Key values of "A" and "B".

Does anyone know how to solve Q1 and Q2?

Appreciate your help very much! I hope the questions are clear enough. Let me know if you need examples of input and output.

Regards, Melita.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
meli7a is offline Offline
1 posts
since Nov 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in XML, XSLT and XPATH Forum Timeline: XPATH Question on Filtering / Condition
Next Thread in XML, XSLT and XPATH Forum Timeline: Convert XML file to another XML file using XSLT





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC