[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] basename string sort and group
Given input such as
<fonts> <entry href="/apps/jdk/lib/fonts/LucidaTypewriterRegular.ttf">Lucida</entry> <entry href="/apps/jdk/lib/fonts/LucidaTypewriterBold.ttf">Lucida</entry> <entry href="/apps/jdk/lib/oblique-fonts/LucidaSansDemiOblique.ttf">Lucida</entry> </fonts> I want to sort and group by directory, for an output such as <fonts> <dir href="/apps/jdk/lib/fonts"> <entry href="LucidaTypewriterRegular.ttf">Lucida</entry> <entry href="LucidaTypewriterBold.ttf">Lucida</entry> </dir> <dir href="/apps/jdk/lib/oblique-fonts"> <entry href="LucidaSansDemiOblique.ttf">Lucida</entry> </dir> etc. I.e. Isolate the directories, then group all entries within that directory. XSLT 2.0, Any suggestions for an approach please? TIA regards -- Dave Pawson XSLT XSL-FO FAQ. http://www.dpawson.co.uk
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|