Index: tests/Zend/View/Helper/DoctypeTest.php =================================================================== --- tests/Zend/View/Helper/DoctypeTest.php (revision 23481) +++ tests/Zend/View/Helper/DoctypeTest.php (working copy) @@ -122,7 +122,7 @@ public function testIsXhtmlReturnsTrueForXhtmlDoctypes() { - foreach (array('XHTML1_STRICT', 'XHTML1_TRANSITIONAL', 'XHTML1_FRAMESET', 'XHTML5') as $type) { + foreach (array('XHTML1_STRICT', 'XHTML1_TRANSITIONAL', 'XHTML1_FRAMESET', 'XHTML1_RDFA', 'XHTML5') as $type) { $doctype = $this->helper->doctype($type); $this->assertEquals($type, $doctype->getDoctype()); $this->assertTrue($doctype->isXhtml()); Index: library/Zend/View/Helper/Doctype.php =================================================================== --- library/Zend/View/Helper/Doctype.php (revision 23481) +++ library/Zend/View/Helper/Doctype.php (working copy) @@ -43,6 +43,7 @@ const XHTML1_STRICT = 'XHTML1_STRICT'; const XHTML1_TRANSITIONAL = 'XHTML1_TRANSITIONAL'; const XHTML1_FRAMESET = 'XHTML1_FRAMESET'; + const XHTML1_RDFA = 'XHTML1_RDFA'; const XHTML_BASIC1 = 'XHTML_BASIC1'; const XHTML5 = 'XHTML5'; const HTML4_STRICT = 'HTML4_STRICT'; @@ -87,6 +88,7 @@ self::XHTML1_STRICT => '', self::XHTML1_TRANSITIONAL => '', self::XHTML1_FRAMESET => '', + self::XHTML1_RDFA => '', self::XHTML_BASIC1 => '', self::XHTML5 => '', self::HTML4_STRICT => '', @@ -117,6 +119,7 @@ case self::XHTML1_TRANSITIONAL: case self::XHTML1_FRAMESET: case self::XHTML_BASIC1: + case self::XHTML1_RDFA: case self::XHTML5: case self::HTML4_STRICT: case self::HTML4_LOOSE: Index: documentation/manual/en/module_specs/Zend_View-Helpers-Doctype.xml =================================================================== --- documentation/manual/en/module_specs/Zend_View-Helpers-Doctype.xml (revision 23481) +++ documentation/manual/en/module_specs/Zend_View-Helpers-Doctype.xml (working copy) @@ -21,6 +21,7 @@ XHTML1_STRICT XHTML1_TRANSITIONAL XHTML1_FRAMESET + XHTML1_RDFA XHTML_BASIC1 HTML4_STRICT HTML4_LOOSE @@ -95,6 +96,49 @@ } ]]> + + + Choosing a Doctype to Use with the Open Graph Protocol + + + If you would like to implement the + Open Graph Protocol, it is best to specify the XHTML1_RDFA doctype. + This doctype allows a developer to use the + Resource Description Framework within an XHTML document. + + + doctype('XHTML1_RDFA'); +]]> + + + It is not required to use the XHTML1_RDFA doctype to enable the Open Graph Protocol, but it is required to enable the namespaces inside the html tag: + + + + +]]> + + + In the above example, we specifed two namespaces in the html tag. One for the Open Graph and another for + Facebook Open Graph + + + + Here is how to specify a meta tag with a property: + + + +]]> + + + We set the property to og:type. The og references the Open Graph namespace we specified in the html tag. The content identifies the page as being about a musician. + + +