View Single Post
Old Dec 12th, 2005, 7:51 PM   #5
Kilo
Expert Programmer
 
Kilo's Avatar
 
Join Date: Nov 2005
Location: In Pink Clam?
Posts: 542
Rep Power: 0 Kilo is an unknown quantity at this point
Send a message via AIM to Kilo
Oh, well i used your style sheet? The only thing i have edited so far was the path. couldn't get this thing to work at all so decided to ask you about it... but here it is lol.

  <?xml version="1.0" encoding="ISO-8859-1" ?> 
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
- <!--  <xsl:output method="xml" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" indent="yes"/> 
  --> 
- <xsl:template match="/">
- <html>
- <head>
- <title>
  <xsl:value-of select="page/title" /> 
  </title>
  <style type="text/css">@import url(/layout.css);</style> 
  </head>
- <body>
- <div id="header">
- <h1>
  <xsl:value-of select="page/heading" /> 
  </h1>
  </div>
- <div id="main">
  <xsl:apply-templates select="page/menu" /> 
- <div id="content">
  <xsl:copy-of select="page/content" /> 
  </div>
  </div>
  </body>
  </html>
  </xsl:template>
- <xsl:template match="menu">
- <div id="menu">
  <xsl:value-of select="./@title" /> 
- <ul>
- <xsl:for-each select="./menuitem">
- <xsl:choose>
- <xsl:when test="@active = 1">
- <li>
- <a id="current">
- <xsl:attribute name="href">
  <xsl:value-of select="@href" /> 
  </xsl:attribute>
  <xsl:value-of select="." /> 
  </a>
  </li>
  </xsl:when>
- <xsl:otherwise>
- <li>
- <a>
- <xsl:attribute name="href">
  <xsl:value-of select="@href" /> 
  </xsl:attribute>
  <xsl:value-of select="." /> 
  </a>
  </li>
  </xsl:otherwise>
  </xsl:choose>
  </xsl:for-each>
  </ul>
  </div>
  </xsl:template>
  </xsl:stylesheet>

EDIT: im not going to rip your site bro, but i believe your work could teach me some value.
__________________
"When in Rome, Do as the Romans Do"
"Beauty is in the eye of the BEER holder"
"Save your breath your going to need it for your blow up doll later"

SearchLores.org
Kilo is offline   Reply With Quote