On 05/15/2010 02:54 AM, Andrew Ballard wrote: > On Fri, May 14, 2010 at 4:57 PM, Hector Virgen <[email protected]> wrote: >> What problem are you having with " "? I didn't realize it's not valid >> XHTML. Should it be " " instead? >> >> -- >> Hector > > That was my understanding. Being based on XML, I understood that the > only entities defined in XHTML were those defined in XML -- <, > > " and '. > > The few times (a while ago) that I tried to parse XHTML documents with > various parsers, they would not work unless they used  /  > for non-breaking spaces rather than . That is consistent with > the error I saw in Firefox. I have read documents on the web how you > can define your own entities in an XML document to add , but > I've also read that you cannot extend the XHTML doctype. > > Andrew
Andrew I don't really understand the trouble with I'm using it on website ( ZF + XHTML1.1 STRICT ) and they validate at 100%. Perharps this is due the header used ? Check it at http://it.ioda-net.ch/ I'm working with ZF-1.10 with layout. Bootstrap containing protected function _initDoctype() { $this->bootstrap('view'); $view = $this->getResource('view'); $view->doctype('XHTML11'); } Extract from the layout : <?php echo '<?xml version=\'1.0\' encoding=\'utf-8\' ?>', PHP_EOL; echo $this->doctype(), PHP_EOL; ?> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->lang; ?>"> <head> <base href="http://<?php echo (( isset($_SERVER['SERVER_NAME']) )? $_SERVER['SERVER_NAME'] : 'localhost' ) . $this->baseUrl(); ?>/" /> <?php echo $this->headMeta() ->setHttpEquiv('Content-Type', 'application/xhtml+xml; charset=utf-8') ->setHttpEquiv('Content-Style-Type', 'text/css') ->setHttpEquiv('lang', $this->lang ) ->setHttpEquiv('imagetoolbar', 'no') ... They work great with IE7+ Opera9.5+ FF3.5+ Safari 4+ And it's validate against w3c validator ... -- Bruno Friedmann
