Forum Moderators: open
<xsl:template match="yourHTMLhere"> and </xsl:template>
but beware, you have to write PERFECT HTML for this to work properly
Also, you MUST create a root element, and declare the XML version. Thus a very simple site, using "webpage 1" as your root element could look like :
<?xml version="1.0"?>
<webpage 1>
<xsl:template match="/">
<html>
<head>
<title>My XML page</title>
</head>
<body>blah, blah, blah text and stuff goes here as per normal, but it has to be really well written</body>
</html>
</xsl:template>
</webpage 1>
BTW, xslt processors may well add their own meta tags to the HTML, but its charset stuff, shouldnt have an impact on SEO, but watch it. Strange things can happen out on them thar seas
<?xml version="1.0"?>
<?xml:stylesheet href="home.css" type="text/css"?>
<page>
<html>
<head>
<META NAME="Description" CONTENT="keyword1, keyword2">
<META NAME="Description" CONTENT="This my description">
<title>My XML page</title>
</head>
<body>blah, blah, blah text and stuff goes here as per normal, but it has to be really well written</body>
</html>
</page>
Using: [searchengineworld.com...] the description seems to be spidered. Can you or anyone else tell me if they know of any way of testing whether this technique to get a meta description on an xml page will work other than submitting to a search engine.
<?xml[color=blue]-[/color=blue]stylesheet type="text/css" href="home.css"?>
Also, to get that HTML in the output of the xml, you have to use the template rule tag. Otherwise, the xml parser will interpret <html> and <head> as opening new elements within the root element <page>. This will confuse it greatly.
Also, as for spidering, I'm not aware of any SE spider that will read raw xml. You would have to get it to crawl the HTML output.
The main reason is that as xml is so configurable, it have to record the schema used by every site it visited, and hold that in a d/base for it to be possible for the SE to properly define the contents of a page, judge it for relevance, and hence return it to a query. Nightmare