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

Re: Gale-Shapley algorithm and XSLT on the Rosetta Sto

Subject: Re: Gale-Shapley algorithm and XSLT on the Rosetta Stone web site
From: "Matthieu RICAUD-DUSSARGET m.ricaud-dussarget@xxxxxxxxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 28 Sep 2018 08:20:22 -0000
Re:  Gale-Shapley algorithm and XSLT on the Rosetta Sto
Hi Jean-Luc,

I clicked on the "platform 9 3/4" link that bring me to
https://rosettacode.org/wiki/Stable_marriage_problem/XSLT_input

And I can see this XML input :

<t>
   <m:stable-marriage-problem-result
xmlns:m="http://rosettacode.org/wiki/Stable_marriage_problem">
      <m:solution is-stable="true">
         <m:engagement>
            <m:dude name="bob"/>
            <m:maid name="cath"/>
         </m:engagement>
         <m:engagement>
            <m:dude name="ed"/>
            <m:maid name="jan"/>
         </m:engagement>
         <m:engagement>
            <m:dude name="fred"/>
            <m:maid name="bea"/>
         </m:engagement>
         <m:engagement>
            <m:dude name="gav"/>
            <m:maid name="gay"/>
         </m:engagement>
         <m:engagement>
            <m:dude name="ian"/>
            <m:maid name="hope"/>
         </m:engagement>
         <m:engagement>
            <m:dude name="jon"/>
            <m:maid name="abi"/>
         </m:engagement>
         <m:engagement>
            <m:dude name="hal"/>
            <m:maid name="eve"/>
         </m:engagement>
         <m:engagement>
            <m:dude name="abe"/>
            <m:maid name="ivy"/>
         </m:engagement>
         <m:engagement>
            <m:dude name="col"/>
            <m:maid name="dee"/>
         </m:engagement>
         <m:engagement>
            <m:dude name="dan"/>
            <m:maid name="fay"/>
         </m:engagement>
      </m:solution>
      <m:message>Perturbing the matches! Swapping cath for jan</m:message>
      <m:message>The perturbed configuration is unstable.</m:message>
   </m:stable-marriage-problem-result>
</t>

Hope this helps,

I didn't know about this "Stable marriage problem", original one !

Cheers

Matthieu Ricaud-Dussarget
Expert XML
SI EDITORIAL
m.ricaud-dussarget@xxxxxxxxxxxxxxxxxx
TC)lB : 01 40 92 21 98
80 Avenue de la Marne - 92120 Montrouge




-----Message d'origine-----
DeB : Jean-Luc Chevillard jeanluc.chevillard@xxxxxxxxx
[mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx]
EnvoyC)B : mercredi 22 aoC;t 2018 10:59
CB : xsl-list
ObjetB :  Gale-Shapley algorithm and XSLT on the Rosetta Stone web site

Dear list members,

I have just had a quick look at the XSLT implementation of the Gale-Shapley
algorithm which is available on the RosettaCode web site at

https://rosettacode.org/wiki/Stable_marriage_problem

https://rosettacode.org/wiki/Stable_marriage_problem#XSLT_2.0

but I cannot find the INPUT section

Could someone kindly point to me where it is?

I am probably missing the obvious but all I can find is the statement

> Assume that the input is in XML form as listed here. The following XSLT 2.0
style-sheet..


and the location referred to by the word "here" remains invisible to me, like
"platform 9 3/4"

Thanks in advance for any help you can provide

Best wishes

-- Jean-Luc Chevillard (Paris)

https://univ-paris-diderot.academia.edu/JeanLucChevillard

https://twitter.com/JLC1956

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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