]> git.sesse.net Git - xml-template/commitdiff
Make the "include" template a bit harder -- both the Perl and the PHP
authorsgunderson@bigfoot.com <>
Sat, 12 Aug 2006 19:17:58 +0000 (21:17 +0200)
committersgunderson@bigfoot.com <>
Sat, 12 Aug 2006 19:17:58 +0000 (21:17 +0200)
now fail the test.

xml/included.xml

index 98ba0d22c00deec8c5dcb647e1547c3e892f2c5b..a8ddacd63f434f827ce0b8bc814f0fe14a302f8c 100644 (file)
@@ -1,4 +1,7 @@
-<p xmlns:t="http://template.sesse.net/">This document is simply being included into another document by
-  means of attaching DOM nodes together. My favourite color is now
-  <t:color />.
-</p>
+<!-- we need a single root element, so here is a dummy element -->
+<t:dummy xmlns:t="http://template.sesse.net/">
+  <p>This document is simply being included into another document by
+    means of attaching DOM nodes together. My favourite color is now
+    <t:color />.</p>
+  <p>Here is a second paragraph.</p>
+</t:dummy>