# HG changeset patch # User paulb # Date 1203192687 0 # Node ID f25e771276fd11249c7f490a1247534e93bd62d3 # Parent 51b33e7bf51b87c2b38b03928cdeba27c054b4d4 [project @ 2008-02-16 20:11:27 by paulb] Added XInclude test. diff -r 51b33e7bf51b -r f25e771276fd tests/test_xinclude.xhtml --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/test_xinclude.xhtml Sat Feb 16 20:11:27 2008 +0000 @@ -0,0 +1,8 @@ + + + +

+ Included using XInclude. +

+ + diff -r 51b33e7bf51b -r f25e771276fd tests/xinclude_test.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tests/xinclude_test.py Sat Feb 16 20:11:27 2008 +0000 @@ -0,0 +1,21 @@ +#!/usr/bin/env python + +import libxml2dom + +s = """ + + +

+ +

+ + +""" + +d = libxml2dom.parseString(s) +print "Result of XInclude processing:", d.xinclude() +print +print d.toString() + +# vim: tabstop=4 expandtab shiftwidth=4