rendered paste body<?php
/*
Illustrate that content definitions be used in local/remote CSS, in <style> tags, or inline HTML content specified by style="" property.
HTML class will only make use of <style> or style="",
*/
//echo '<link rel="stylesheet" href="' . $cssfile_reference . '" type="text/css" />';
interface SGML {
public function __construct($attlist);
public function __destruct();
}
class DOCTYPE implements SGML {
public $buffer;
public function __construct($attlist) {
$attribute = NULL;
$this->buffer .= '<!' . get_class($this);
foreach ($attlist as $key => $attribute) {
if ($attribute != '') {
switch ($key) {
case "parent_element":
$this->buffer .= ' ' . $attribute;
break;
case "availability":
$this->buffer .= ' ' . $attribute;
break;
case "registration":
$this->buffer .= ' "' . $attribute . '//';
break;
case "organization":
$this->buffer .= $attribute . '//';
break;
case "type":
$this->buffer .= $attribute . ' ';
break;
case "label":
$this->buffer .= $attribute . '//';
break;
case "language":
$this->buffer .= $attribute . '" "';
break;
case "url":
$this->buffer .= $attribute . '"';
break;
}
}
}
}
public function __destruct() {
return $this->buffer .= '>' . "\n";
}
}
class HTML {
public $buffer = NULL;
public function __construct($attlist) {
$this->buffer .= '<' . get_class($this);
foreach ($attlist as $key => $attribute) {
if ($attribute != '') {
$this->buffer .= ' ' . $key . '="' . $attribute . '"';
}
}
$this->buffer .= '>' . "\n";
}
public function __destruct() {
return '</' . get_class($this) . '>' . "\n";
}
}
class HEAD {
public $buffer;
public function __construct($attlist) {
$this->buffer .= '<' . get_class($this) . ' ';
foreach ($attlist as $key => $attribute) {
if ($attribute != '') {
$this->buffer .= ' ' . $key . '="' . $attribute . '"';
}
}
$this->buffer .= '>' . "\n";
}
public function __destruct() {
return '</' . get_class($this) . '>' . "\n";
}
}
class META {
public $buffer;
public function __construct($attlist) {
$this->buffer .= '<' . get_class($this) . ' ';
foreach ($attlist as $key => $attribute) {
if ($attribute != '') {
$this->buffer .= ' ' . $key . '="' . $attribute . '"';
}
}
$this->buffer .= '>' . "\n";
}
public function __destruct() {
return '</' . get_class($this) . '>' . "\n";
}
}
class BODY {
public $buffer;
public function __construct($attlist) {
$this->buffer .= '<' . get_class($this) . ' ';
foreach ($attlist as $key => $attribute) {
if ($attribute != '') {
$this->buffer .= ' ' . $key . '="' . $attribute . '"';
}
}
$this->buffer .= '>' . "\n";
}
public function __destruct() {
return '</' . get_class($this) . '>' . "\n";
}
}
class A {
public $buffer;
public function __construct($attlist) {
$this->buffer .= '<' . get_class($this);
foreach ($attlist as $key => $attribute) {
if ($attribute != '') {
$this->buffer .= ' ' . $key . '="' . $attribute . '"';
}
}
$this->buffer .= '>';
}
public function __destruct() {
return '</' . get_class($this) . '>' . "\n";
}
}
$content = NULL;
$attrs = array('id' => '', 'class' => '', 'style' => '', 'title' => '', 'lang' => '', 'dir' => '', 'onclick' => '', 'ondblclick' => '', 'onmousedown' => '', 'onmouseup' => '', 'onmouseover' => '', 'onmousemove' => '', 'onmouseout' => '', 'onkeypress' => '', 'onkeydown' => '', 'onkeyup' => '');
$doctype = new DOCTYPE(
array(
'parent_element' => 'HTML',
'availability' => 'PUBLIC',
'registration' => '-',
'organization' => 'W3C',
'type' => 'DTD',
'label' => 'HTML 4.01',
'language' => 'EN',
'url' => 'http://www.w3.org/TR/html4/loose.dtd'
)
);
$content .= $doctype->__destruct();
unset($doctype);
$html = new HTML(
array(
'lang' => 'en',
'dir' => 'ltr'
)
);
$content .= $html->buffer;
$head = new HTML(
array(
'lang' => 'en',
'dir' => 'ltr'
)
);
$content .= $head->buffer;
$a = new A(
array(
'charset' => '',
'type' => '',
'name' => '',
'href' => '',
'hreflang' => '',
'rel' => '',
'rev' => '',
'accesskey' => '',
'shape' => '',
'coords' =>'',
'tabindex' =>'',
'onfocus' => '',
'onblur' => ''
)
);
$content .= $a->buffer;
$content .= $a->__destruct();
unset($a);
$content .= $html->__destruct();
unset($html);
print $content;
//$html = new HTML();
//$content = new HTML();
?>