Kod
<div>tresc</div>
jest wyżej pozycjonowana(przynajmniej przez Google), niż strona:
Kod
<div>
<div>
<div><div>tresc</div>
</div>
</div>
<div>
<div><div>tresc</div>
</div>
</div>
Ale mój problem polega na tym: czy strona html:
Kod
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<div>tresc</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>title</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="style.css" type="text/css" />
</head>
<body>
<div>tresc</div>
</body>
</html>
Będzie wyżej pozycjonowana od strony XML+XSLT:
XML:
Kod
<root>tresc</root>
XSLT:
Kod
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/>
<xsl:template match="/">
<xsl:value-of selct="root" />
</xsl:template>
</xsl:stylesheet>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/>
<xsl:template match="/">
<xsl:value-of selct="root" />
</xsl:template>
</xsl:stylesheet>
Wszystkie wasze uwagi, bardzo mi się przydadzą.