BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


Add/Edit your code items
Search the code library
Browse for the code library


XSLT
DVC Algorithms in XSLT
Another way of avoiding XSLT processor crash
Re: DVC Algorithms in XSLT
trig functions in xslt
XSLT string Replace function
A Slide-In Menu made with XML/XSLT
What is SVG?
Family Tree maker
Alternative Ordering - ""Women and Children to the lifeboats first""
Restructuring flat delimited XML
Hex and Binary Conversions in XSLT - with Boolean math functions
Using XSLT to produce SVG (1)
Using XSLT to produce SVG (2)
Performance Tuning XSLT - Part 1
Performance Tuning XSLT - Part 2
Performance Tuning XSLT - Part 3
Performance Tuning XSLT - Part 4
Using XSLT to produce SVG (3)
XPath as parameters
Table with more than one column


 
 

<< XQuery.NET and XML >>


By Dimitre Novatchev
First Posted 01/03/2002
Times viewed 263

Permutations of the values of N nodes


Summary Presented is an XSLT implementation of an algorithm for the generation of permutations.

Let's take a specific problem: The results of a test must be evaluated. The possible answers and "distractions" are presented in the source xml. The correct answers may be written in any order. We need to have all possible permutations of assessment/question/answer/@item-id In this concrete example the correct answers are A, B, and H. The solution is presented in the code section. When applied to the source xml document, the correct answer: "ABH;AHB;BAH;BHA;HAB;HBA;" is produced. Do Enjoy, Dimitre Novatchev.

Additional information

Further additional information


Rate this article on a scale of 1 to 10 (0 votes, average 0)

Your vote :  

<< XQuery.NET and XML >>





Leave a comment for this article
Your name
Your email (optional)
Your comment
Optional: Upload an attachment
Enter the code shown:

 
 

    Email TopXML