[Petal] Petal 0.82 Released

Jean-Michel Hiver jhiver at mkdoc.com
Tue Jan 28 10:46:40 GMT 2003


> > The same applies for the Petal namespace. Alternatively, if you're happy
> > using xi: prefix you don't even need to declare the namespace at all,
> > it's just more XMLishly correct.
> 
> It may be more correct but it does seems like it's a lot to type in and
> remember just to use an include. I guess that's why XML is really not
> intended for direct use by humans.

Well... it IS more correct and you only need it do to it on the top
tag... so basically if you always start your templates with:

  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      
      <html
        xml:lang="en" lang="en"
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:petal="http://purl.org/petal/1.0/"
        xmlns:xi="http://www.w3.org/2001/XInclude">

And then you can work as usual :-)
-- 
Building a better web - http://www.mkdoc.com/
---------------------------------------------
Jean-Michel Hiver
jhiver at mkdoc.com  - +44 (0)114 255 8097
Homepage: http://www.webmatrix.net/



More information about the Petal mailing list