XMLStarlet + XInclude + XSLT
问题 I'd like to include contents of an XML document into another XML document and transform it via xmlstarlet+XSLT. I'm trying to use XInclude. (A newbie to both XInclude and XSLT, I am.) The xmlstarlet, though, won't process the included XML doc, it just leaves the inclusion node there untouched. File a.xml : <?xml version="1.0" ?> <doc xmlns:xi="http://www.w3.org/2001/XInclude"> a <xi:include href="b.xml" /> b </doc> File b.xml : <?xml version="1.0" ?> <snippet> c </snippet> The x.xsl "pass