]> git.sesse.net Git - xml-template/commitdiff
Use t: all over instead of tmpl:.
authorsgunderson@bigfoot.com <>
Sat, 12 Aug 2006 17:04:40 +0000 (19:04 +0200)
committersgunderson@bigfoot.com <>
Sat, 12 Aug 2006 17:04:40 +0000 (19:04 +0200)
doc/intro.txt
xml/clone.xml

index a5d1dede4511be796cd7d90dabeb3389b22a8cbe..f94cef771dbe4e6b5e56e2fcf66a2a414a168d64 100644 (file)
@@ -83,14 +83,14 @@ Template (clone.xml):
   <!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" xmlns:tmpl="http://template.sesse.net/" xml:lang="en">
+  <html xmlns="http://www.w3.org/1999/xhtml" xmlns:t="http://template.sesse.net/" xml:lang="en">
     <head>
       <title>Cloning test</title>
     </head>
     <body>
-       <p>My favourite color is <tmpl:color />; I like that very much.
+       <p>My favourite color is <t:color />; I like that very much.
          All my favourite things:</p>
-      <ul tmpl:id="things">
+      <ul t:id="things">
         <li />
       </ul>
     </body>
@@ -135,7 +135,7 @@ Result:
   </html>
 
 This isn't much harder than the example above; we've done a simple replacement
-of the contents of <tmpl:color> to "blue" (and after that just removed the tag;
+of the contents of <t:color> to "blue" (and after that just removed the tag;
 any tag you use in the templating namespace will automatically get stripped
 away), and then cloned the contents of our "things" bullet list. Note that
 XML::Template automatically recurses after the cloning, since you probably
@@ -169,14 +169,14 @@ Template (clone.xml), repeated for your convenience:
   <!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" xmlns:tmpl="http://template.sesse.net/" xml:lang="en">
+  <html xmlns="http://www.w3.org/1999/xhtml" xmlns:t="http://template.sesse.net/" xml:lang="en">
     <head>
       <title>Cloning test</title>
     </head>
     <body>
-       <p>My favourite color is <tmpl:color />; I like that very much.
-         All my favourite things:</p>
-      <ul tmpl:id="things">
+      <p>My favourite color is <t:color />; I like that very much.
+        All my favourite things:</p>
+      <ul t:id="things">
         <li />
       </ul>
     </body>
index d1cb33078a405aee01b2e51148ba0a2f6032137d..03aacab881838889690ade3f235eab63140169ec 100644 (file)
@@ -1,14 +1,14 @@
 <!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" xmlns:tmpl="http://template.sesse.net/" xml:lang="en">
+<html xmlns="http://www.w3.org/1999/xhtml" xmlns:t="http://template.sesse.net/" xml:lang="en">
   <head>
     <title>Cloning test</title>
   </head>
   <body>
-     <p>My favourite color is <tmpl:color />; I like that very much.
+     <p>My favourite color is <t:color />; I like that very much.
        All my favourite things:</p>
-    <ul tmpl:id="things">
+    <ul t:id="things">
       <li />
     </ul>
   </body>