]> git.sesse.net Git - xml-template/commitdiff
Add a test for repeated t:id replacing.
authorsgunderson@bigfoot.com <>
Mon, 21 Apr 2008 17:34:32 +0000 (19:34 +0200)
committersgunderson@bigfoot.com <>
Mon, 21 Apr 2008 17:34:32 +0000 (19:34 +0200)
tests/reference/namespace.xml
xml/namespace.xml

index c93b55976a5db87e02888322a0bacaddee9195df..11b75e930048df4e6ebab20b8e81865d9dcf1444 100644 (file)
@@ -8,5 +8,6 @@
     <p id="hello">This will not.</p>
     <p id="test">Replaced.</p>
     foo
+    <p>Replaced.</p>
   </body>
 </html>
index e81948b7537e5f92891e3dc9ce56fe11bed8a982..623eec0b2a52e994289daffd5d927d6a72a895a8 100644 (file)
@@ -11,5 +11,6 @@
     <p id="hello">This will not.</p>
     <p id="test" t:id="test">This will also be replaced, but the id will stay.</p>
     <t:tagname id="moretest">This will say "foo", not "bar".</t:tagname>
+    <p t:id="test">Two elements can have the same ID, so this should be replaced again.</p>
   </body>
 </html>