<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="module_navigation.xsl"?>
<navigationsmodul>
<menupunkt id="000001">
<tekst>Forside</tekst>
<link>pages/page_frontpage.xml</link>
<target>iframe_1</target>
</menupunkt>
<menupunkt id="000002">
<tekst>Produkter</tekst>
<link>
http://www.dlcd.dk</link> <target>iframe_1</target>
<undermenupunkter>
<undermenupunkt>
<tekst>Undermenuen virker ikke endnu!</tekst>
<link>../pages/index_page_allpages.xml</link>
<target>iframe_1</target>
</undermenupunkt>
</undermenupunkter>
</menupunkt>
<menupunkt id="000003">
<tekst>Index alle sider</tekst>
<link>pages/page_index_allpages.xml</link>
<target>iframe_1</target>
</menupunkt>
<menupunkt id="000004">
<tekst>Browser</tekst>
<link>modules/VR2Lbrowser/VR2Lbrowser_frameset.htm</link>
<target>iframe_1</target>
</menupunkt>
<menupunkt id="000005">
<tekst>Admin</tekst>
<link>admin/VR2Ladmin_frameset.htm</link>
<target>iframe_1</target>
</menupunkt>
</navigationsmodul>
OG
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="
http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:include href="modules/module_navigation.xsl" />
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- Navmodul-->
<table width="100%" height="100%" border="0" bgcolor="#FGFGFG" cellpadding="0" cellspacing="0">
<table height="32" border="1" align="right">
<tr>
<xsl:apply-templates select="$navigationsmodul/menupunkt" />
</tr>
</table>
Her kommer det individuelle afsnit for hver sideskabelon..
</body>
</html>
</xsl:template>
</xsl:stylesheet>
OG
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="
http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html"/>
<xsl:variable name="navigationsmodul" select="document('module_navigation.xml')/navigationsmodul"/>
<xsl:template match="menupunkt">
<td onmouseover="bgColor='#EFEFEF'" onmouseout="bgColor='red'"><xsl:attribute name="nowrap"/>
<a>
<xsl:attribute name="href">
<xsl:value-of select="link"/>
</xsl:attribute>
<xsl:attribute name="target">
<xsl:value-of select="target"/>
</xsl:attribute>
<xsl:value-of select="tekst"/>
</a>
</td>
</xsl:template>
</xsl:stylesheet>
Hvis du gider at kalde variablen for "$Active" eller deromkring vil jeg blive glad :)