1#!/bin/sh 2DIR=. 3if [ "x$1" != "x" ] 4then 5 DIR="$1" 6fi 7 8OLD=`pwd` 9cd $DIR 10 11echo "<section xmlns:xi=\"http://www.w3.org/2003/XInclude\">" 12for I in `find . -mindepth 2 -type f -name '*.xml' | sort -t/ -k3 | xargs` 13do 14 echo "<xi:include href='$I' parse='xml'/>" 15done 16 17echo "</section>" 18 19cd $OLD 20