Personally, I would say yes, new namespace. Because I think an XHTML module should be a radical departure from HTML, not in terms of it's output, but in terms of it's construction.

An XHTML module should - by default - be built using the existing XML tools, and shouldn't be outputting 'XML-like code' but actual machine-generated bona-fide XML.

From the otherside, outputting XHTML and using it in a HTML context is almost as bad as outputting non-XML in an XHTML context. <br />, for example, is invalid markup in HTML4.0 (strictly speaking). Of course, browsers will ignore the '/' but you're giving up clean HTML and getting tag soup. Some browsers, especially Moz, might even start going into almost-standards most/quirks mode, or something, which is even worse.

Strictly speaking, I don't think one is a subset of the other, but I would love to see how you propose to do XHTML modules. By thinking about implementation, I'm probably thinking on very different lines to you (or am I?).


In reply to Re: RFC: New rootlevel CPAN namespace: XHTML by kal
in thread RFC: New rootlevel CPAN namespace: XHTML by jeffa

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.