1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/tests/xinclude_test.py Sat Feb 16 20:11:27 2008 +0000
1.3 @@ -0,0 +1,21 @@
1.4 +#!/usr/bin/env python
1.5 +
1.6 +import libxml2dom
1.7 +
1.8 +s = """<?xml version="1.0"?>
1.9 +<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude">
1.10 +<body>
1.11 + <p>
1.12 + <xi:include href="tests/test_xinclude.xhtml"
1.13 + xpointer="xmlns(html=http://www.w3.org/1999/xhtml)xpointer(/html:html/html:body/html:p/node())"/>
1.14 + </p>
1.15 +</body>
1.16 +</html>
1.17 +"""
1.18 +
1.19 +d = libxml2dom.parseString(s)
1.20 +print "Result of XInclude processing:", d.xinclude()
1.21 +print
1.22 +print d.toString()
1.23 +
1.24 +# vim: tabstop=4 expandtab shiftwidth=4