artemp/mapnik — Issue #567: Enable libxml2 XInclude functionality for style sheets
Author: artemp
Created: 2011-10-11 16:26:09+00:00
State: open
Labels: XML

Leverage the XInclude functionality provided by libxml2 to enable style sheets to exist as multiple files, enhancing maintainability.

This changeset adds a new xml tag, `Include`, which serves as a document wrapper of included files. All tags within the `Include` tag are merged into the Map container in the enclosing style sheet.

Style sheets wishing to use XInclude must add

xmlns:xi ="http://www.w3.org/2001/XInclude

to the Map tag

Files can then be included using

Simple examples are attached for use as test cases