[Petal] Petal requires invalid XHTML documents

William McKee william at knowmad.com
Wed Oct 8 19:56:36 BST 2003


Jean-Michel,

In the process of fixing my html docs to be xhtml valid for use with the
new MKDoc::XML parser, I have discovered that the W3C validator does not
like the xmlns:petal nor the petal: attributes. Try passing the attached
file through the validator to see the output.

This document is successfully processed by Petal despite being invalid
XHTML. Is there any way we can make Petal templates be valid XHTML or is
this beyond the realm of possibility because Petal is designed to
process XML documents rather than XHTML documents?

Thanks,
William

-- 
Knowmad Services Inc.
http://www.knowmad.com
-------------- next part --------------
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:petal="http://purl.org/petal/1.0/" xml:lang="en" lang="en">
  <head>
    <title>Congregational College</title>
    <link rel="stylesheet" type="text/css" href="ccnew.css" />
		<style type="text/css">
		</style>
	</head>

  <body style="background-color:#BFE2F9">
    <div id="navigation">
      <a href="category.html">Community Needs</a> <a
      href="../PDFs/Cong.Coll.Catolog.pdf">Catalog of Classes</a> <a
      href="../plans/">Event Calendar</a> <a
      href="../PDFs/Registration.pdf">Class Registration</a> <a
      href="bridgebuilders.html">BridgeBuilders Program</a> <a
      href="www.meckmin.org">Mecklenburg Ministries Home</a> <a
      href="../meckmin/meetthestaff.html">Contact Us</a> 

      <p>&#160;</p>

      <p>Invest in Mecklenburg Ministries</p>
       <a
      href="http://www.guidestar.org/partners/networkforgood/donate.jsp?ein=56-1583407">
      <img alt="" src="image/donatenowlogo1.gif" /></a> 

      <p>&#160;</p>

      <p><span class="fit">Mecklenburg Ministries<br />
       1510 E/ 7th St.<br />
       Charlotte, NC 28204-2410<br />
       704-347-2404 (phone)<br />
       704-347-1766 (fax)<br />
      </span></p>

      <p>&#160;</p>

      <p>Rev. Andy Baxter, <em>Executive Director</em></p>

      <p>Susan Hill, <em>Assistant to the Director</em></p>
    </div>

    <div id="CCbgnav">
      <img alt="" src="image/CCMMlogo.jpg" />
    </div>

    <div id="content">
      <table width="600" style="background-color:#BFE2F9" summary="">
        <tr>
          <td>&#160;</td>
        </tr>

        <tr>
          <td align="center">
            <img alt="Learning" src="image/class.gif" width="143"
            height="120" border="0" /> 

            <p><b>Classes For Learning</b></p>
          </td>

          <td align="center">
            <img alt="" src="image/mosque.jpg" width="128" height="100"
            border="0" /> 

            <p><b>Connecting to Others</b></p>
          </td>

          <td align="center">
            <img alt="Working" src="image/build.gif" width="143"
            height="120" border="0" /> 

            <p><b>Working With Others</b></p>
          </td>
        </tr>

        <tr>
          <td colspan="3">
            <p>&#160;</p>

            <p class="tablehead">Welcome to the Congregational
            College</p>

            <p align="center">Providing programs to groups about needs
            in Mecklenburg County and suggesting ways that we can do
            extraordinary things.</p>

            <p><a href="category.cgi">View Categories</a></p>
          </td>
        </tr>

        <tr petal:if="featured_project/project_name">
          <td colspan="3">
            <p>&#160;</p>

            <p class="tablehead"><b>Our Featured Project</b></p>

            <h3><span
            petal:replace="featured_project/project_name">Didn&#39;t
            Work</span></h3>
            <b>Decription</b> 

            <p><span
            petal:replace="featured_project/description">Description</span></p>
            <b>Location Information</b> 

            <p><span
            petal:replace="featured_project/congregation">Congregation</span>
            in <span petal:replace="featured_project/city">City</span>,
            <span
            petal:replace="featured_project/state">State</span></p>
          </td>
        </tr>
      </table>
    </div>
  </body>
</html>



More information about the Petal mailing list