Click here to Skip to main content
15,891,719 members
Articles / Programming Languages / C#

sharpcms.net - CMS framework based on XSLT and XML

Rate me:
Please Sign up or sign in to vote.
5.00/5 (16 votes)
29 Nov 20053 min read 72.2K   3.3K   90  
CMS for .NET based on XSLT, XML and C#.
<xsl:stylesheet version="1.0"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 
	<xsl:output 
		method="html" 
		doctype-system="http://www.w3.org/TR/html4/strict.dtd"  
		doctype-public="-//W3C//DTD HTML 4.01//EN" 
		omit-xml-declaration="yes" 
		indent="yes"
	/>
	<xsl:include href="-PageContent.xslt"/>
	<xsl:include href="-SiteTree.xslt"/>
  <xsl:include href="..\..\Snippets.xslt"/>

	<xsl:template match="/">
		<html>
			<head>
				<title>Sharpcms.net (<xsl:value-of select="/data/contenttwo/page/attributes/pagename"/>)
      </title>
        
        <base >
          <xsl:attribute name="href">
            <xsl:value-of select="/data/basepath"/>
            <xsl:text>/</xsl:text>
          </xsl:attribute>
          
        </base>
        <link href="Custom/Components/FrontEnd/style.css" rel="stylesheet" type="text/css" />
				<link rel="stylesheet" type="text/css" href="Custom/Components/FrontEnd/niftycorners/niftyCorners.css"/>
				<script type="text/javascript" src="Custom/Components/FrontEnd/niftycorners/nifty.js">lsdkjf</script>
				<script type="text/javascript">
					<![CDATA[
				window.onload=function(){
				if(!NiftyCheck())
					return;
			
					Rounded("div#topdiv","top","#393439","#ffffff","smooth");
					Rounded("div#topdiv","bottom","#393439","#ffffff","smooth");

				} 
				]]>
				</script>
			</head>
			<body style="background:#393439;text-align:center;">
 
				<div id="topdiv">
					<div id="logo" style="width:779px;">
						<img src="Custom/Components/FrontEnd/Pictures/logo.gif"/>
					</div>
					<div id="topmenu">
						<xsl:call-template name="TopMenu"/>
					</div>
					<div id="toppicture">
						<img src="Custom/Components/FrontEnd/Pictures/top.jpg"/>
					</div> 
					<div  id="submenu"> 
						<xsl:call-template name="SubMenu"/>
					</div>
					<div id="contentcontainer">
            <xsl:if test="/data/messages">
              <div class="adminmenu" style="background-color:#ffffe1">
                <ul>
                  <xsl:for-each select="/data/messages/item">
                    <li>
                      <xsl:value-of select="."/>
                    </li>
                  </xsl:for-each>
                </ul>
              </div>
            </xsl:if>
            
						<xsl:apply-templates mode="show" select="/data/contenttwo/page/containers/container[@name='content']"/>
						<xsl:text> </xsl:text>
					</div>
					<div style="clear:both;">
						
					</div>
				</div>
        


			</body>
		</html>

	</xsl:template>
</xsl:stylesheet>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
Denmark Denmark
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions