BizTalk Utilities CV ,   Jobs ,   Code library
 
Home Page


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


Uncategorized
What is BEEP (BXXP)?
Meta-Patterns: Design Patterns Explained
XML Helper functions in Visual Basic
nodeset of child templates using document()
Converting INI files to XML
Fullxml 2
Sorting the results and use the Axis
TreeMaker
XMLEditor - WebClipping
WDDX Parser
Templx: x++ IDE Released!
XppEngCOM: COM implementation of x++ interpreter
Backup Outlook mail as XML
Grouping and Summing the values in XML
WDDX Parser (updated bug)
DIME Parser and Generator (C#)
Flash menu using XML
Virtual Directory Utilities for IIS(C#)
ComSerialization
Re: Max() function


 
 

<< System.XMLWCF, WS, SOAP >>


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

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 :  

<< System.XMLWCF, WS, SOAP >>





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

 
 

    Email TopXML