Please help...i have a header part in a page which uses jquery scripts which i used in a template and its perfectly working...but i just shifted it into a xslt and added the macro in the template...the effects are not coming...y??
//Use assets depending on the url - test environment serves a route relative version of assets GAAT40.AssetPath = (function() { var testUrls = ["int-gaat40-output-tests.mrmw.co.uk", "int-40recode.mrmpweb.co.uk", "int-40recode2.mrmpweb.co.uk", "proto-cps.cps.Windows.com", "preview-cps.cps.Windows.com"];
var defaultUrl = GAAT40.ProtocolType + "Windows.com"; var liveUrl = defaultUrl;
var setincookie = (document.location.search.indexOf("assetcookie=1") != -1)
// hide the header while it is worked on document.write('<style type="text/css">#gaat40-header {height:91px;overflow:hidden;visibility:hidden;}</style>')
which part of the code were you using for your jQuery bits and what do they now look like once they're in your macro? I think that would be a bit more useful. the only macro you're calling above is <umbraco:Macro Alias="FooterLinks" runat="server"></umbraco:Macro> and you mention that your jQuery stuff was to do with your header, so I'm a bit lost here.
//Use assets depending on the url - test environment serves a route relative version of assets GAAT40.AssetPath = (function() { var testUrls = ["int-gaat40-output-tests.mrmw.co.uk", "int-40recode.mrmpweb.co.uk", "int-40recode2.mrmpweb.co.uk", "proto-cps.cps.Windows.com", "preview-cps.cps.Windows.com"];
var defaultUrl = GAAT40.ProtocolType + "Windows.com"; var liveUrl = defaultUrl;
var setincookie = (document.location.search.indexOf("assetcookie=1") != -1)
// hide the header while it is worked on document.write('<style type="text/css">#gaat40-header {height:91px;overflow:hidden;visibility:hidden;}</style>')
(function() { var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s); })();
</script> <!-- end google analytics code -->
</head> <body> </asp:Content>
the footer is not needed...i removed it..now in this code...only header part is there..its working in template ...if i copy this whole and put it inside a xslt..the effects are not working
In general, that html looks like it is not valid. There are div tags inside the <head> tags and what not.
But apart from that, it might be the use of CDATA that is causing the problem.
What are the symptoms when you try to but it in a macro? Does it not render at all, or does it render the html differently than when you just use a template?
Jquery Xslt problem :(
Please help...i have a header part in a page which uses jquery scripts which i used in a template and its perfectly working...but i just shifted it into a xslt and added the macro in the template...the effects are not coming...y??
You might want to show your code here, so that we can help identify the problem.
<%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Windows® Hardware Partner Program - <umbraco:Item field="pageTitle" useIfEmpty="pageName" runat="server"></umbraco:Item></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="<umbraco:Item field='metaDescription' runat='server'></umbraco:Item>" />
<meta name="keywords" content="<umbraco:Item field='metaKeywords' runat='server'></umbraco:Item>" />
<link rel="stylesheet" href="/css/ispp.css" type="text/css" />
<link rel="stylesheet" type="text/css" id="HAT-linkStyle" href="http://Hardware.Windows.com/common/css/ltr_header.css?v=7470" />
<!-- start corp header -->
<div align="center" class="con con-hdr">
<script type="text/javascript">
/*<![CDATA[*/
//GAAT40 namespace definition
var GAAT40 = (typeof GAAT40 == "undefined" || !GAAT40) ? {} : GAAT40;
//Page specific render settings
GAAT40.renderSettings = {
pageWidth: "w1024", //w800 | w1024
renderMode: "standards", //quirks | standards
textDirection: "ltr", //ltr | rtl
protocol: "http", //http | https
culture: "en_US",
enableShareWidget: false,
enableEmailWidget: true,
enablePrintWidget: true,
shareTxt: "Share",
changeTxt: "Change",
searchTxt: "Search",
printTxt: "Print",
emailTxt: "Email A Friend",
sitewidePath: "/sites/sitewide/hat/40recode"
};
// construct asset paths to dependencies
GAAT40.ProtocolType = (function(){
var protocol = (GAAT40.renderSettings.protocol == "https")?"https://ssl.":"http://www.";
return protocol;
})();
GAAT40.FileType = (function(){
var extension = (document.location.search.indexOf("filemax=1") != -1)?"-master":"";
return extension;
})();
//Use assets depending on the url - test environment serves a route relative version of assets
GAAT40.AssetPath = (function() {
var testUrls = ["int-gaat40-output-tests.mrmw.co.uk", "int-40recode.mrmpweb.co.uk", "int-40recode2.mrmpweb.co.uk", "proto-cps.cps.Windows.com", "preview-cps.cps.Windows.com"];
var defaultUrl = GAAT40.ProtocolType + "Windows.com";
var liveUrl = defaultUrl;
var setincookie = (document.location.search.indexOf("assetcookie=1") != -1)
if (document.location.search.indexOf("assetcookie=0") != -1) {
document.cookie = "GAATAssetPath=; expires=Thu, 01-Jan-70 00:00:01 GMT;";
}
if ((document.location.search.indexOf("assetpath=proto") != -1) || document.cookie.indexOf("GAATAssetPath=proto") != -1) {
liveUrl = (GAAT40.renderSettings.protocol == "https") ? "https://" : "http://";
liveUrl += "proto-cps.cps.Windows.com";
if (setincookie) {
document.cookie = "GAATAssetPath=proto; path=/";
}
}
if ((document.location.search.indexOf("assetpath=preview") != -1) || document.cookie.indexOf("GAATAssetPath=preview") != -1) {
liveUrl = (GAAT40.renderSettings.protocol == "https") ? "https://" : "http://";
liveUrl += "preview-cps.cps.Windows.com";
if (setincookie) {
document.cookie = "GAATAssetPath=preview; path=/";
}
}
if (testUrls.join().indexOf(document.location.host) != -1 || document.location.search.indexOf("assetpath=rel") != -1 || (document.cookie.indexOf("GAATAssetPath=rel") != -1)) {
liveUrl = "";
if (setincookie) {
document.cookie = "GAATAssetPath=rel; path=/";
}
}
if (document.location.search.indexOf("assetpath=live") != -1 || document.cookie.indexOf("GAATAssetPath=live") != -1) {
liveUrl = defaultUrl;
if (setincookie) {
document.cookie = "GAATAssetPath=live; path=/";
}
}
return liveUrl;
})();
// add CSS
// hide the header while it is worked on
document.write('<style type="text/css">#gaat40-header {height:91px;overflow:hidden;visibility:hidden;}</style>')
//dynamically add header css
document.write('<link id="gaat-linkstyle" href="' + GAAT40.AssetPath + GAAT40.renderSettings.sitewidePath + '/css/' + GAAT40.renderSettings.textDirection + '_header.css?v=7470" rel="stylesheet" type="text/css" />');
// add Windows JavaScript
if(typeof(Windows) == "undefined") {
document.write('<scr' + 'ipt type="text/javascript" src="' + GAAT40.AssetPath + '/sites/js/Windows.js"><\/scr' + 'ipt>');
}
GAAT40.SearchFilterLUT = { head:"Filter Your Results", inputName:"category",
qs:[ { filter:"Products", term:"Products" },
{ filter:"SuppDown", term:"Support & Downloads" },
{ filter:"BlogComm", term:"Blogs & Communities" },
{ filter:"Reseller", term:"Reseller" },
{ filter:"Hardware", term:"Hardware" },
{ filter:"AboutWindows", term:"About Windows" },
{ filter:"HAT-adv1", term:"Advanced Search" }
]
};
/*]]>*/
</script>
<div id="gaat40-header" class="gaat40-reset">
<a class="gaat40-logo" title="" href="http://www.Windows.com"><img src="http://www.Windows.com/sites/sitewide/HAT/40recode/pix/main-logo.png" alt="Logo - Windows" /></a>
<ul class="gaat40-locale gaat40-first">
<li class="gaat40-first" id="gaat40-gohome">
<a href="http://www.Windows.com">Go to Windows.com</a>
</li>
<li id="gaat40-locale">
<a href="http://www.Windows.com/en_US/worldwide.htm?iid=hdr+location">United States (English)</a>
</li>
</ul>
<ul class="gaat40-search">
<li>
<form method="get" id="FORMSearchHeader" action="http://mysearch.Windows.com/corporate/default.aspx">
<fieldset>
<input type="hidden" id="culture" name="culture" value="en_US" />
<input type="hidden" name="category" id="category" />
<input type="hidden" name="adv" id="adv" />
<input type="hidden" name="value" id="value" />
<label id="lbl_search" for="q">Search</label>
<input id="q" name="q" type="text" class="gaat40-inptsearch" />
<input type="submit" value="Search" id="input-submit" class="gaat40-btnsearch" />
<div id="HAT-filtermenu-container" class="gaat40-hide"></div>
</fieldset>
</form>
</li>
</ul>
<div class="gaat40-nav">
<ul class="gaat40-mainnav">
<li class="gaat40-first gaat40-selected" id="gaat40-hdr_link_bus">
<a href="/en-us/">Windows® Hardware Network</a>
</li>
</ul>
<div class="gaat40-lower">
<ul id="gaat40-subnav" class="gaat40-subnav">
<!-- start menu -->
<li class="gaat40-first">
<a href="/en-us/articles/Windows-Hardware-network-communities/">Communities</a>
<div class="gaat40-subsubnav gaat40-hide">
<ul class="gaat40-first">
<li class="gaat40-first"><a href="http://app.Windows.com/"> Developer Program</a></li>
<li><a href="/en-us/visual-computing/">Visual Computing</a></li>
<li><a href="/en-us/parallel/">Parallel Programming</a></li>
<li><a href="/en-us/manageability/">Manageability</a></li>
<li><a href="/en-us/academic/">Academic</a></li>
<li><a href="/en-us/articles/blackbelt/">Earn Reputation — Windows® Black Belt Program</a></li>
<li><a href="/en-us/articles/Windows-Hardware-network-communities/">More...</a></li>
</ul>
<div class="gaat40-end"><b></b><i></i></div>
</div>
</li>
<li class="">
<a href="http://Windows.com/Hardware-partner">Partners</a>
<div class="gaat40-subsubnav gaat40-hide">
<ul class="gaat40-first">
<li class="gaat40-first"><a href="http://Windows.com/Hardware-partner">Windows® Hardware Partner Program</a></li>
<li><a href="http://www.Windows.com/cd/Hardware/partner/asmo-na/eng/285233.htm">Member Benefits</a></li>
<li><a href="http://Windows.com/Hardware-assessment">Hardware Checkers</a></li>
<li><a href="http://Windows.com/home">Program News</a></li>
</ul>
<div class="gaat40-end"><b></b><i></i></div>
</div>
</li>
<li class="">
<a href="javascript:void(0);">Tools & Downloads</a>
<div class="gaat40-subsubnav gaat40-hide">
<ul class="gaat40-first">
<li><h5>Tools</h5></li>
<li><a href="/en-us/Windows-sdp-home/">Windows® Hardware Development Products</a></li>
<li><a href="/en-us/Windows-parallel-studio-home/">Windows® Parallel Studio</a></li>
<li><a href="/en-us/Windows-hpc-home/">HPC</a></li>
<li><a href="/en-us/articles/tools/">Tools Knowledge Base</a></li>
<li><a href="/en-us/articles/Windows-academic-developer-program/">Academic</a></li>
</ul>
<ul>
<li><h5>Downloads</h5></li>
<li><a href="/en-us/articles/code-downloads/">Code & Downloads</a></li>
<li><a href="/en-us/articles/non-commercial-Hardware-development/">Free Non-Commercial</a></li>
<li><a href="/en-us/whatif/">"WhatIf" Experimental Hardware</a></li>
<li><a href="http://downloadcenter.Windows.com/">Drivers</a></li>
<li><a href="http://www.Windows.com/support/detect.htm">Windows® Driver Update Utility</a></li>
</ul>
<div class="gaat40-end"><b></b><i></i></div>
</div>
</li>
<li class="">
<a href="javascript:void(0);">Forums & Support</a>
<div class="gaat40-subsubnav gaat40-hide">
<ul class="gaat40-first">
<li class="gaat40-first"><a href="/en-us/forums/">Hardware Forums</a></li>
<li><a href="http://appdeveloper.Windows.com/en-us/forum/">Atom Developer Forums</a></li>
<li><a href="/en-us/articles/all/1/">Knowledge Base</a></li>
<li><a href="/en-us/articles/Windows-Hardware-developer-support/">Support Resources</a></li>
</ul>
<div class="gaat40-end"><b></b><i></i></div>
</div>
</li>
<li class="">
<a href="javascript:void(0);">Blogs</a>
<div class="gaat40-subsubnav gaat40-hide">
<ul class="gaat40-first">
<li class="gaat40-first"><a href="/en-us/blogs/">All Blogs</a></li>
<li><a href="http://appdeveloper.Windows.com/en-us/blog">Atom Developer Program</a></li>
<li><a href="/en-us/blogs/category/academic/">Academic</a></li>
<li><a href="/en-us/blogs/category/manageability/">Manageability</a></li>
<li><a href="/en-us/blogs/category/parallel/">Parallel Programming</a></li>
<li><a href="/en-us/blogs/category/visual-computing/">Visual Computing</a></li>
<li><a href="/en-us/blogs/authors/">Meet the Bloggers</a></li>
</ul>
<div class="gaat40-end"><b></b><i></i></div>
</div>
</li>
<li class="">
<a href="javascript:void(0);">Resources</a>
<div class="gaat40-subsubnav gaat40-hide">
<ul class="gaat40-first">
<li class="gaat40-first"><a href="/en-us/tv/">Windows® Hardware Network TV</a></li>
<li><a href="/en-us/videos/list/1/1/">Take-5 Videos</a></li>
<li><a href="/en-us/articles/Windows-Hardware-network-events-calendar/">Events Calendar</a></li>
<li><a href="/en-us/articles/Windows-Hardware-network-news-archive/">Windows® Hardware Network Newsletter</a></li>
<li><a href="http://www.Windows.com/Windowspress/">Windows® Press</a></li>
<li><a href="/en-us/articles/Windows-Hardware-insight-magazine/">Insight Magazine</a></li>
<li><a href="/en-us/articles/Windows-visual-adrenaline-magazine/">Visual Adrenaline</a></li>
</ul>
<div class="gaat40-end"><b></b><i></i></div>
</div>
</li>
<!-- end menu -->
</ul>
<ul class="gaat40-overview">
<li class="gaat40-first">
<a href="http://www.Windows.com/products/sitemap.htm">Product Index</a>
</li>
<li class="">
<a href="http://communities.Windows.com/index.jspa?iid=hdr+communities">Communities</a>
</li>
<li class="">
<a href="http://www.Windows.com/experience/index.htm?iid=hdr+experience">Experience Windows</a>
</li>
</ul>
</div>
</div>
<div class="gaat40-share"><div id="ishare_icon"></div></div>
<div class="gaat40-clear"></div>
</div>
<script type="text/javascript">/*<![CDATA[*/
document.write('<scr' + 'ipt type="text/javascript" src="' + GAAT40.AssetPath + GAAT40.renderSettings.sitewidePath + '/js/header2' + GAAT40.FileType +'.js"><\/scr' + 'ipt>');
/*]]>*/</script>
</div>
<!-- end corp header -->
<!-- start google analytics code -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17890616-2']);
_gaq.push(['_setDomainName', '.Windows.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- end google analytics code -->
</head>
<body>
<asp:ContentPlaceHolder Id="ContentPlaceHolderDefault" runat="server"></asp:ContentPlaceHolder>
<div id="mainContent"> <form runat="server"><asp:ContentPlaceHolder ID="TransformMasterContentPlaceHolder" runat="server"></asp:ContentPlaceHolder></form></div>
<div id="footer">
<umbraco:Macro Alias="FooterLinks" runat="server"></umbraco:Macro>
<table align="center" border="0" cellspacing="0" cellpadding="0" width="850px">
<tbody>
<tr>
<td style="padding-left: 10px;">
<br /><p style="font-size: 11px;">©Windows Hello <a href="http://www.Windows.com">Windows.com</a> | <a href="/">News</a> | <a href="/">Events</a> | <a href="/">Support</a> | <a href="/">Sitemap</a> | <a href="/">About</a></p>
</td>
<td>
<p style="font-size: 11px; text-align: right;"><a href="/">Terms of Use</a> | <a href="/">Trademarks</a> | <a href="/">Privacy</a></p>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
</asp:Content>
this is my header code...runs perfectly in template...not working in xslt
sorry these links are also included in the beginning ././forgot to copy it..
<link rel="stylesheet" href="/css/ispp.css" type="text/css" />
<link rel="stylesheet" type="text/css" id="HAT-linkStyle" href="http://windows.com/common/css/ltr_header.css?v=7470" />
<script src="/scripts/js/jquery.form.js" type="text/javascript"></script>
<script src="/scripts/js/jquery.js" type="text/javascript"></script>
<script src="/scripts/js/jquery.min.js" type="text/javascript"></script>
which part of the code were you using for your jQuery bits and what do they now look like once they're in your macro?
I think that would be a bit more useful.
the only macro you're calling above is <umbraco:Macro Alias="FooterLinks" runat="server"></umbraco:Macro> and you mention that your jQuery stuff was to do with your header, so I'm a bit lost here.
<%@ Master Language="C#" MasterPageFile="~/umbraco/masterpages/default.master" AutoEventWireup="true" %>
<asp:Content ContentPlaceHolderID="ContentPlaceHolderDefault" runat="server">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Windows® S - <umbraco:Item field="pageTitle" useIfEmpty="pageName" runat="server"></umbraco:Item></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="<umbraco:Item field='metaDescription' runat='server'></umbraco:Item>" />
<meta name="keywords" content="<umbraco:Item field='metaKeywords' runat='server'></umbraco:Item>" />
<link rel="stylesheet" href="/css/ispp.css" type="text/css" />
<link rel="stylesheet" type="text/css" id="HAT-linkStyle" href="http://software.Windows.com/common/css/ltr_header.css?v=7470" />
<!-- start corp header -->
<div align="center" class="con con-hdr">
<script type="text/javascript">
/*<![CDATA[*/
//GAAT40 namespace definition
var GAAT40 = (typeof GAAT40 == "undefined" || !GAAT40) ? {} : GAAT40;
//Page specific render settings
GAAT40.renderSettings = {
pageWidth: "w1024", //w800 | w1024
renderMode: "standards", //quirks | standards
textDirection: "ltr", //ltr | rtl
protocol: "http", //http | https
culture: "en_US",
enableShareWidget: false,
enableEmailWidget: true,
enablePrintWidget: true,
shareTxt: "Share",
changeTxt: "Change",
searchTxt: "Search",
printTxt: "Print",
emailTxt: "Email A Friend",
sitewidePath: "/sites/sitewide/hat/40recode"
};
// construct asset paths to dependencies
GAAT40.ProtocolType = (function(){
var protocol = (GAAT40.renderSettings.protocol == "https")?"https://ssl.":"http://www.";
return protocol;
})();
GAAT40.FileType = (function(){
var extension = (document.location.search.indexOf("filemax=1") != -1)?"-master":"";
return extension;
})();
//Use assets depending on the url - test environment serves a route relative version of assets
GAAT40.AssetPath = (function() {
var testUrls = ["int-gaat40-output-tests.mrmw.co.uk", "int-40recode.mrmpweb.co.uk", "int-40recode2.mrmpweb.co.uk", "proto-cps.cps.Windows.com", "preview-cps.cps.Windows.com"];
var defaultUrl = GAAT40.ProtocolType + "Windows.com";
var liveUrl = defaultUrl;
var setincookie = (document.location.search.indexOf("assetcookie=1") != -1)
if (document.location.search.indexOf("assetcookie=0") != -1) {
document.cookie = "GAATAssetPath=; expires=Thu, 01-Jan-70 00:00:01 GMT;";
}
if ((document.location.search.indexOf("assetpath=proto") != -1) || document.cookie.indexOf("GAATAssetPath=proto") != -1) {
liveUrl = (GAAT40.renderSettings.protocol == "https") ? "https://" : "http://";
liveUrl += "proto-cps.cps.Windows.com";
if (setincookie) {
document.cookie = "GAATAssetPath=proto; path=/";
}
}
if ((document.location.search.indexOf("assetpath=preview") != -1) || document.cookie.indexOf("GAATAssetPath=preview") != -1) {
liveUrl = (GAAT40.renderSettings.protocol == "https") ? "https://" : "http://";
liveUrl += "preview-cps.cps.Windows.com";
if (setincookie) {
document.cookie = "GAATAssetPath=preview; path=/";
}
}
if (testUrls.join().indexOf(document.location.host) != -1 || document.location.search.indexOf("assetpath=rel") != -1 || (document.cookie.indexOf("GAATAssetPath=rel") != -1)) {
liveUrl = "";
if (setincookie) {
document.cookie = "GAATAssetPath=rel; path=/";
}
}
if (document.location.search.indexOf("assetpath=live") != -1 || document.cookie.indexOf("GAATAssetPath=live") != -1) {
liveUrl = defaultUrl;
if (setincookie) {
document.cookie = "GAATAssetPath=live; path=/";
}
}
return liveUrl;
})();
// add CSS
// hide the header while it is worked on
document.write('<style type="text/css">#gaat40-header {height:91px;overflow:hidden;visibility:hidden;}</style>')
//dynamically add header css
document.write('<link id="gaat-linkstyle" href="' + GAAT40.AssetPath + GAAT40.renderSettings.sitewidePath + '/css/' + GAAT40.renderSettings.textDirection + '_header.css?v=7470" rel="stylesheet" type="text/css" />');
// add Windows JavaScript
if(typeof(Windows) == "undefined") {
document.write('<scr' + 'ipt type="text/javascript" src="' + GAAT40.AssetPath + '/sites/js/Windows.js"><\/scr' + 'ipt>');
}
GAAT40.SearchFilterLUT = { head:"Filter Your Results", inputName:"category",
qs:[ { filter:"Products", term:"Products" },
{ filter:"SuppDown", term:"Support & Downloads" },
{ filter:"BlogComm", term:"Blogs & Communities" },
{ filter:"Reseller", term:"Reseller" },
{ filter:"Software", term:"Software" },
{ filter:"AboutWindows", term:"About Windows" },
{ filter:"HAT-adv1", term:"Advanced Search" }
]
};
/*]]>*/
</script>
<div id="gaat40-header" class="gaat40-reset">
<a class="gaat40-logo" title="" href="http://www.Windows.com"><img src="http://www.Windows.com/sites/sitewide/HAT/40recode/pix/main-logo.png" alt="Logo - Windows" /></a>
<ul class="gaat40-locale gaat40-first">
<li class="gaat40-first" id="gaat40-gohome">
<a href="http://www.Windows.com">Go to Windows.com</a>
</li>
<li id="gaat40-locale">
<a href="http://www.Windows.com/en_US/worldwide.htm?iid=hdr+location">United States (English)</a>
</li>
</ul>
<ul class="gaat40-search">
<li>
<form method="get" id="FORMSearchHeader" action="http://mysearch.Windows.com/corporate/default.aspx">
<fieldset>
<input type="hidden" id="culture" name="culture" value="en_US" />
<input type="hidden" name="category" id="category" />
<input type="hidden" name="adv" id="adv" />
<input type="hidden" name="value" id="value" />
<label id="lbl_search" for="q">Search</label>
<input id="q" name="q" type="text" class="gaat40-inptsearch" />
<input type="submit" value="Search" id="input-submit" class="gaat40-btnsearch" />
<div id="HAT-filtermenu-container" class="gaat40-hide"></div>
</fieldset>
</form>
</li>
</ul>
<div class="gaat40-nav">
<ul class="gaat40-mainnav">
<li class="gaat40-first gaat40-selected" id="gaat40-hdr_link_bus">
<a href="/en-us/">Windows® Software Network</a>
</li>
</ul>
<div class="gaat40-lower">
<ul id="gaat40-subnav" class="gaat40-subnav">
<!-- start menu -->
<li class="gaat40-first">
<a href="/en-us/articles/Windows-software-network-communities/">Communities</a>
<div class="gaat40-subsubnav gaat40-hide">
<ul class="gaat40-first">
<li class="gaat40-first"><a href="http://appdelivery.Windows.com/">Laptop™ delivery Program</a></li>
<li><a href="/en-us/visual-computing/">Visual Computing</a></li>
<li><a href="/en-us/parallel/">Parallel Programming</a></li>
<li><a href="/en-us/manageability/">Manageability</a></li>
<li><a href="/en-us/academic/">Academic</a></li>
<li><a href="/en-us/articles/blackbelt/">Earn Reputation — Windows® Black Belt Program</a></li>
<li><a href="/en-us/articles/Windows-software-network-communities/">More...</a></li>
</ul>
<div class="gaat40-end"><b></b><i></i></div>
</div>
</li>
<li class="">
<a href="http://basisppdev002.gar.corp.Windows.com/software-partner">Partners</a>
<div class="gaat40-subsubnav gaat40-hide">
<ul class="gaat40-first">
<li class="gaat40-first"><a href="http://basisppdev002.gar.corp.Windows.com/software-partner">Windows® Software Partner Program</a></li>
<li><a href="http://www.Windows.com/cd/software/partner/asmo-na/eng/285233.htm">Member Benefits</a></li>
<li><a href="http://basisppdev002.gar.corp.Windows.com/software-assessment">Software Checkers</a></li>
<li><a href="http://basisppdev002.gar.corp.Windows.com/home">Program News</a></li>
</ul>
<div class="gaat40-end"><b></b><i></i></div>
</div>
</li>
<li class="">
<a href="javascript:void(0);">Tools & Downloads</a>
<div class="gaat40-subsubnav gaat40-hide">
<ul class="gaat40-first">
<li><h5>Tools</h5></li>
<li><a href="/en-us/Windows-sdp-home/">Windows® Software Development Products</a></li>
<li><a href="/en-us/Windows-parallel-studio-home/">Windows® Parallel Studio</a></li>
<li><a href="/en-us/Windows-hpc-home/">HPC</a></li>
<li><a href="/en-us/articles/tools/">Tools Knowledge Base</a></li>
<li><a href="/en-us/articles/Windows-academic-delivery-program/">Academic</a></li>
</ul>
<ul>
<li><h5>Downloads</h5></li>
<li><a href="/en-us/articles/code-downloads/">Code & Downloads</a></li>
<li><a href="/en-us/articles/non-commercial-software-development/">Free Non-Commercial</a></li>
<li><a href="/en-us/whatif/">"WhatIf" Experimental Software</a></li>
<li><a href="http://downloadcenter.Windows.com/">Drivers</a></li>
<li><a href="http://www.Windows.com/support/detect.htm">Windows® Driver Update Utility</a></li>
</ul>
<div class="gaat40-end"><b></b><i></i></div>
</div>
</li>
<li class="">
<a href="javascript:void(0);">Forums & Support</a>
<div class="gaat40-subsubnav gaat40-hide">
<ul class="gaat40-first">
<li class="gaat40-first"><a href="/en-us/forums/">Software Forums</a></li>
<li><a href="http://appdelivery.Windows.com/en-us/forum/">Laptop delivery Forums</a></li>
<li><a href="/en-us/articles/all/1/">Knowledge Base</a></li>
<li><a href="/en-us/articles/Windows-software-delivery-support/">Support Resources</a></li>
</ul>
<div class="gaat40-end"><b></b><i></i></div>
</div>
</li>
<li class="">
<a href="javascript:void(0);">Blogs</a>
<div class="gaat40-subsubnav gaat40-hide">
<ul class="gaat40-first">
<li class="gaat40-first"><a href="/en-us/blogs/">All Blogs</a></li>
<li><a href="http://appdelivery.Windows.com/en-us/blog">Laptop delivery Program</a></li>
<li><a href="/en-us/blogs/category/academic/">Academic</a></li>
<li><a href="/en-us/blogs/category/manageability/">Manageability</a></li>
<li><a href="/en-us/blogs/category/parallel/">Parallel Programming</a></li>
<li><a href="/en-us/blogs/category/visual-computing/">Visual Computing</a></li>
<li><a href="/en-us/blogs/authors/">Meet the Bloggers</a></li>
</ul>
<div class="gaat40-end"><b></b><i></i></div>
</div>
</li>
<li class="">
<a href="javascript:void(0);">Resources</a>
<div class="gaat40-subsubnav gaat40-hide">
<ul class="gaat40-first">
<li class="gaat40-first"><a href="/en-us/tv/">Windows® Software Network TV</a></li>
<li><a href="/en-us/videos/list/1/1/">Take-5 Videos</a></li>
<li><a href="/en-us/articles/Windows-software-network-events-calendar/">Events Calendar</a></li>
<li><a href="/en-us/articles/Windows-software-network-news-archive/">Windows® Software Network Newsletter</a></li>
<li><a href="http://www.Windows.com/Windowspress/">Windows® Press</a></li>
<li><a href="/en-us/articles/Windows-software-insight-magazine/">Insight Magazine</a></li>
<li><a href="/en-us/articles/Windows-visual-adrenaline-magazine/">Visual Adrenaline</a></li>
</ul>
<div class="gaat40-end"><b></b><i></i></div>
</div>
</li>
<!-- end menu -->
</ul>
<ul class="gaat40-overview">
<li class="gaat40-first">
<a href="http://www.Windows.com/products/sitemap.htm">Product Index</a>
</li>
<li class="">
<a href="http://communities.Windows.com/index.jspa?iid=hdr+communities">Communities</a>
</li>
<li class="">
<a href="http://www.Windows.com/experience/index.htm?iid=hdr+experience">Experience Windows</a>
</li>
</ul>
</div>
</div>
<div class="gaat40-share"><div id="ishare_icon"></div></div>
<div class="gaat40-clear"></div>
</div>
<script type="text/javascript">/*<![CDATA[*/
document.write('<scr' + 'ipt type="text/javascript" src="' + GAAT40.AssetPath + GAAT40.renderSettings.sitewidePath + '/js/header2' + GAAT40.FileType +'.js"><\/scr' + 'ipt>');
/*]]>*/</script>
</div>
<!-- end corp header -->
<!-- start google analytics code -->
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-6-2']);
_gaq.push(['_setDomainName', '.Windows.com']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
<!-- end google analytics code -->
</head>
<body>
</asp:Content>
the footer is not needed...i removed it..now in this code...only header part is there..its working in template ...if i copy this whole and put it inside a xslt..the effects are not working
In general, that html looks like it is not valid. There are div tags inside the <head> tags and what not.
But apart from that, it might be the use of CDATA that is causing the problem.
What are the symptoms when you try to but it in a macro? Does it not render at all, or does it render the html differently than when you just use a template?
is working on a reply...