]> git.sesse.net Git - xml-template/blobdiff - doc/intro.txt
Reinstate own_clone_node. All php5 tests pass!
[xml-template] / doc / intro.txt
index dccf7d97e3bcd08667d6c89abc293b815a747d62..218c754292ec3da12caf92756a0153af4a7ee3aa 100644 (file)
@@ -22,6 +22,7 @@ ports to other languages would be welcome.)
 
 Template (simple.xml):
 
+  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
   <!DOCTYPE
     html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
     "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -47,6 +48,7 @@ Code (simple.pl):
 
 Result:
 
+  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
     <head>
@@ -80,6 +82,7 @@ We move on to another useful operation, cloning.
 
 Template (clone.xml):
 
+  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
   <!DOCTYPE
     html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
     "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -114,6 +117,7 @@ Code (clone.pl):
 
 Result:
 
+  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
     <head>
@@ -166,6 +170,7 @@ we have a small hack:
 
 Template (clone.xml), repeated for your convenience:
 
+  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
   <!DOCTYPE
     html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
     "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
@@ -200,6 +205,7 @@ Code (attribute.pl):
 
 Result:
 
+  <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
     <head>