Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: xsl topological sort

From: "Dimitre Novatchev" <dimitren@---.---.-->
To: NULL
Date: 5/14/2007 6:06:00 AM

See :

  http://aspn.activestate.com/ASPN/Mail/Message/xsl-list/955081

and

  http://aspn.activestate.com/ASPN/Mail/Message/xsl-list/956248

The latter is a stable topological sort -- "keeps the cliques together".


Cheers,
Dimitre Novatchev


"Edward Wohlman" <edward@s...> wrote in message 
news:B0A5B9B2-8437-43F4-859E-498690439432@m......
> Is it possible to use xsl to perform a topological sort such that data 
> such as
>
> <Route>
> <Place>B</Place>
> <Place>D</Place>
> <Place>F</Place>
> </Route>
> <Route>
> <Place>A</Place>
> <Place>B</Place>
> <Place>C</Place>
> <Place>E</Place>
> </Route>
> <Route>
> <Place>C</Place>
> <Place>D</Place>
> <Place>E</Place>
> </Route>
> <Route>
> <Place>A</Place>
> <Place>E</Place>
> <Place>F</Place>
> </Route>
>
> can be transformed to
>
>    <Route>
>        <Place>A</Place>
>        <Place>B</Place>
>        <Place>C</Place>
>        <Place>D</Place>
>        <Place>E</Place>
>        <Place>F</Place>
>    </Route>
>
> So far I've only really used xsl for fairly minor rearranging into html, 
> but I'd really like to get into more advanced uses.
> I'm pretty sure this can be done, but I'm not sure how to go about it.
>
> If there are any experts out there who can point me in the right 
> direction, I'd be most grateful.
>
> Thanks
>
> 




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent