174 lines
5.9 KiB
XML
174 lines
5.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<xsl:stylesheet
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
xmlns:bebop="http://www.arsdigita.com/bebop/1.0"
|
|
xmlns:aplaws="http://www.arsdigita.com/aplaws/1.0"
|
|
xmlns:ui="http://www.arsdigita.com/ui/1.0"
|
|
xmlns:cms="http://www.arsdigita.com/cms/1.0"
|
|
xmlns:nav="http://ccm.redhat.com/london/navigation"
|
|
xmlns:search="http://rhea.redhat.com/search/1.0"
|
|
xmlns:portal="http://www.uk.arsdigita.com/portal/1.0"
|
|
exclude-result-prefixes="xsl bebop aplaws ui cms nav search portal"
|
|
version="1.0">
|
|
|
|
<xsl:import href="../../../../ROOT/__ccm__/apps/workspace/xsl/index.xsl"/>
|
|
<xsl:import href="portal/lib.xsl"/>
|
|
<xsl:import href="portal/portlets.xsl"/>
|
|
<xsl:import href="lib/header.xsl"/>
|
|
<xsl:import href="lib/lib.xsl"/>
|
|
<xsl:import href="../../../../ROOT/packages/bebop/xsl/dcp.xsl"/>
|
|
|
|
<xsl:param name="context-prefix"></xsl:param>
|
|
<xsl:param name="dispatcher-prefix" />
|
|
<xsl:param name="theme-prefix" />
|
|
|
|
|
|
<xsl:output
|
|
method="html"
|
|
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
|
|
doctype-system="http://www.w3.org/TR/html4/loose.dtd"
|
|
indent="yes"
|
|
/>
|
|
|
|
|
|
<xsl:template match="bebop:page[@application='portal']">
|
|
<html lang="en">
|
|
<head>
|
|
<title>APLAWS+: <xsl:call-template name="Title"/></title>
|
|
<!--<xsl:call-template name="aplaws:headerMetaData"/>-->
|
|
<xsl:call-template name="cssStyles"/>
|
|
</head>
|
|
|
|
<body>
|
|
<xsl:call-template name="bebop:dcpJavascript"/>
|
|
<a class="navHide" href="#startcontent" title="Go directly to main content" accesskey="S">Skip over navigation</a>
|
|
<span class="hide">|</span>
|
|
<xsl:call-template name="header"/>
|
|
<xsl:call-template name="wsBreadcrumb"/>
|
|
<xsl:choose>
|
|
<xsl:when test="count(/bebop:page/portal:homepageWorkspace) > 0">
|
|
<xsl:call-template name="wsBody"/>
|
|
</xsl:when>
|
|
<xsl:otherwise>
|
|
<xsl:apply-templates select="portal:workspace"/>
|
|
<xsl:call-template name="footer"/>
|
|
</xsl:otherwise>
|
|
</xsl:choose>
|
|
</body>
|
|
</html>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template name="wsBreadcrumb">
|
|
|
|
<!--BREADCRUMB -->
|
|
|
|
<div id="bread">
|
|
<p>
|
|
<b><a href="{$dispatcher-prefix}/portal/" title="home">home</a></b>
|
|
</p>
|
|
</div>
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template name="wsBody">
|
|
|
|
<table id="mainLayout" width="100%" border="0" cellspacing="0" cellpadding="5" summary="This table is used for a three-column page layout">
|
|
<tr>
|
|
<td width="20%" align="left" valign="top" >
|
|
<!--VOID LHS Column -->
|
|
</td>
|
|
<td colspan="2" align="left" valign="top" id="portalTitle">
|
|
<!--TITLE -->
|
|
<h1>APLAWS+ Plus</h1>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="20%" align="left" valign="top" id="portalLHS">
|
|
<!--LHS Column -->
|
|
<a id="startcontent" title="Start of content"></a>
|
|
<xsl:apply-templates select="//portal:homepageWorkspace[@id='left']/portal:portal"/>
|
|
<xsl:for-each select="//portal:homepageWorkspace[@id='left']/bebop:link">
|
|
<div class="custLink"><xsl:apply-templates select="."/></div>
|
|
</xsl:for-each>
|
|
</td>
|
|
<td width="60%" height="100%" align="left" valign="top" id="mainContent">
|
|
<!--Middle Column -->
|
|
<xsl:apply-templates select="//portal:homepageWorkspace[@id='middle']/portal:portal"/>
|
|
<xsl:for-each select="//portal:homepageWorkspace[@id='middle']/bebop:link">
|
|
<div class="custLink"><xsl:apply-templates select="."/></div>
|
|
</xsl:for-each>
|
|
</td>
|
|
<td width="20%" height="400" align="left" valign="top" id="RHS">
|
|
<!--RHS Column -->
|
|
<xsl:apply-templates select="//portal:homepageWorkspace[@id='right']/portal:portal"/>
|
|
<xsl:for-each select="//portal:homepageWorkspace[@id='right']/bebop:link">
|
|
<div class="custLink"><xsl:apply-templates select="."/></div>
|
|
</xsl:for-each>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<xsl:call-template name="footer"/>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
<xsl:template match="portal:homepageWorkspace/bebop:link">
|
|
<xsl:choose>
|
|
<xsl:when test="./bebop:label='browse'"><a href="{@href}" class="adminReturn" title="Return to the standard page view">back to user's view</a></xsl:when>
|
|
<xsl:when test="./bebop:label='reset'"><a href="{@href}" class="adminWarning" title="WARNING!!: This link will delete the whole area!">delete area</a></xsl:when>
|
|
<xsl:when test="./bebop:label='customize'"><a href="{@href}" title="Customise this part of the page">customise area</a></xsl:when>
|
|
<xsl:otherwise><xsl:apply-templates /></xsl:otherwise>
|
|
</xsl:choose>
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template match="bebop:link">
|
|
<a href="{@href}"><xsl:value-of select="bebop:label"/>
|
|
<xsl:apply-templates select="bebop:image"/>
|
|
</a>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="bebop:label">
|
|
<xsl:value-of select="."/>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template match="bebop:image">
|
|
<img>
|
|
<xsl:attribute name="alt"><xsl:value-of select="@alt"/></xsl:attribute>
|
|
<xsl:attribute name="src">
|
|
<xsl:call-template name="imagePath">
|
|
<xsl:with-param name="link" select="@src" />
|
|
</xsl:call-template>
|
|
</xsl:attribute>
|
|
</img>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
<xsl:template name="imagePath">
|
|
<xsl:param name="link" />
|
|
<xsl:value-of select="$context-prefix"/><xsl:value-of select="$link"/>
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</xsl:stylesheet>
|
|
<!-- Stylus Studio meta-information - (c)1998-2003. Sonic Software Corporation. All rights reserved.
|
|
<metaInformation>
|
|
<scenarios ><scenario default="yes" name="Scenario2" userelativepaths="yes" externalpreview="no" url="..\XML\newHomepagePortal.xml" htmlbaseurl="http://194.202.210.43:9005/theme/ibm-generic/" outputurl="" processortype="internal" profilemode="0" urlprofilexml="" commandline="" additionalpath="" additionalclasspath="" postprocessortype="none" postprocesscommandline="" postprocessadditionalpath="" postprocessgeneratedext=""/></scenarios><MapperInfo srcSchemaPath="" srcSchemaRoot="" srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/>
|
|
</metaInformation>
|
|
-->
|