Hi
Yes, this is possible but it needs some XMLPackage programming. I'll try to give you an example in V9...
In your template.master, instead of a <body> HTML tag, use this line:
Code:
<asp:Literal runat="server" Text="<%$ Tokens: XmlPackage, header.xml.config%>" />
Now, create an XML Package called 'header.xml.config' in your \App_Templates\Skin_1\XmlPackages directory that looks something like this:
Code:
<?xml version="1.0" standalone="yes" ?>
<package version="2.1" displayname="Body tag code" debug="false" includeentityhelper="false">
<PackageTransform>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:aspdnsf="urn:aspdnsf" exclude-result-prefixes="aspdnsf">
<xsl:output method="html" omit-xml-declaration="yes" />
<xsl:template match="/">
<xsl:choose>
<xsl:when test="/root/Runtime/PageName='c-123-pageexample.aspx'" ><xsl:text disable-output-escaping="yes"><![CDATA[<body id="style1">]]></xsl:text></xsl:when>
<xsl:when test="/root/Runtime/PageName='c-456-pageexample.aspx'" ><xsl:text disable-output-escaping="yes"><![CDATA[<body id="style2">]]></xsl:text></xsl:when>
<xsl:otherwise><xsl:text disable-output-escaping="yes"><![CDATA[<body>]]></xsl:text></xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
</PackageTransform>
</package>
In the example above, a different <body id=''> is generated depending on the page. You can of course change this code to suit your requirements.
Adam