SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Aug 2008
    Location
    india
    Posts
    28
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    validation problem

    i need your help, always at time i tend to validate my page, i get these errors

    XML Parsing Error
    (1) Line 5, column 55: XML Parsing Error: attributes construct error

    …//www.w3.org/1999/xhtml" xml:lang=">"<?php echo $this->language; ?>" lang="<?Line 5, column 55: XML Parsing Error: Couldn't find end of Start Tag html line 5

    …//www.w3.org/1999/xhtml" xml:lang=">"<?php echo $this->language; ?>" lang="<?Line 5, column > 80: XML Parsing Error: Extra content at the end of the document

    …xml:lang=">"<?php echo $this->language; ?>" lang="<?php echo $this->language;…

    (2) Line 5, column 55: unclosed start-tag requires SHORTTAG YES
    …//www.w3.org/1999/xhtml" xml:lang=">"<?php echo $this->language; ?>" lang="<?

    (3) character data is not allowed here:
    …ang=">"<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>"


    this is the main code below:

    <?php
    defined( '_JEXEC')or die( 'Restricted access' );
    ?>
    <!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" xml:lang=">"<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
    <head>

    i have done everything to get rid off these problem, but could not find any solution yet. any solution will be highly appreciated.

    thanx in advance

  2. #2
    Sesame Street Iimitk's Avatar
    Join Date
    Feb 2006
    Posts
    662
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP code is not getting parsed. Make sure your server is configured to properly parse PHP files.
    Imagination is more important than knowledge. - Einstein

  3. #3
    SitePoint Author silver trophybronze trophy

    Join Date
    Nov 2004
    Location
    Ankh-Morpork
    Posts
    12,158
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can't validate the PHP source code; you need to validate the generated page.
    Birnam wood is come to Dunsinane


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •