[Petal] Petal 0.82 Released

Jean-Michel Hiver jhiver at mkdoc.com
Mon Jan 27 16:50:58 GMT 2003


> Is <tag> the *real* tag that should be used? Can this format be used

No, you can set the namespace prefix on any tag you like and it will be
scoped to the contents of the tag. Example:

  <foo xmlns:xi="http://www.w3.org/2001/XInclude">
    <xi:include href="hello.xml" />
    <bar xmlns:XI="http://www.w3.org/2001/XInclude">
      <XI:include href="nifty.xml" />
    </bar>
    <xi:include href="world.xml" />
  </foo>

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.

So basically just typing

  <xi:include href="../blah.html" />

Should do.


> with XHTML as well?

Indeed, I know how much you like the XHTML parser / writer and I
wouldn't want to deprive you of any new features :-)


Cheers,
-- 
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