XSL


XSL Stylesheet

<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

<!--
Colors:

background: F3F3FD
text: 0000A0

yellow: 252, 250, 204
blue: 163, 200, 250
green: 224, 250, 226
red: 254, 219, 219

-->

<!-- **************************************  -->
<!-- **************************************  -->

<xsl:import href="D:/MyServers/WebSphereApps/OOC/system/xsl/buttons.xsl"/>
<xsl:import href="D:/MyServers/WebSphereApps/OOC/system/xsl/button-groups.xsl"/>
<xsl:import href="D:/MyServers/WebSphereApps/OOC/system/xsl/components.xsl"/>
<xsl:import href="D:/MyServers/WebSphereApps/OOC/system/xsl/forms.xsl"/>
<xsl:import href="D:/MyServers/WebSphereApps/OOC/system/xsl/windows.xsl"/>

<!-- **************************************  -->
<!-- **************************************  -->

<xsl:variable name="light_green">rgb(252,250,204)</xsl:variable>


<!-- **************************************  -->
<!-- **************************************  -->

<xsl:template match="/">

<HTML>

<HEAD>
<TITLE>ooc user interface</TITLE>
</HEAD>

<xsl:choose>

<xsl:when test="./window_main_frameset">
<xsl:apply-templates/>
</xsl:when>

<xsl:otherwise>
<BODY text="0000A0" BGCOLOR="F3F3FD">
<H2 align="center">
<font color="#AA0000">Object-Oriented Content System</font>
</H2>
<xsl:apply-templates/>
</BODY>
</xsl:otherwise>

</xsl:choose>

</HTML> 

</xsl:template>


<!-- ************************* -->
<!-- ************************* -->
<xsl:template match="window_main_frameset">

<frameset rows="40" framespacing="1" border="1">
  <frameset cols="151,*">
    <frameset rows="29,38%,*">
      <frame name="banner" scrolling="no" src="/ooc/sys?get=32" target="contents" marginwidth="1" marginheight="1"/>
      <frame name="user_types" target="user_options"  src="/ooc/sys?get=33"/>
      <frame name="user_options" target="work_area" src="/ooc/sys?get=34" />
    </frameset>
    <frame name="work_area" src="/ooc/sys?get=35" target="_self"/>
  </frameset>
  <noframes>
  <body>

  <p>This page uses frames, but your browser doesn't support them.</p>

  </body>
  </noframes>
</frameset>

</xsl:template>
<!-- ************************* -->
<!-- ************************* -->

<xsl:template match="return_report">

<H2>Report</H2>

<xsl:apply-templates/>

<HR/>
<xsl:call-template name="form_get_form"/>

</xsl:template>


<!-- ************************* -->
<!-- ************************* -->

<xsl:template match="report_person">

<xsl:for-each select="report_item">

<xsl:sort select="nameFirst"/>

<xsl:call-template name="report_item"/>

</xsl:for-each>

</xsl:template>

<!-- ************************* -->


<!-- ************************* -->

<xsl:template match="report_item" name="report_item">

<xsl:value-of select="nameFirst"/><xsl:text> </xsl:text>
<xsl:value-of select="nameMiddle"/><xsl:text> </xsl:text>
<xsl:value-of select="nameLast"/><br/>
<br/>
<xsl:value-of select="address"/><br/>
<xsl:value-of select="city"/>,
<xsl:value-of select="state"/>,
<xsl:value-of select="zip"/><br/>
<br/>
<xsl:value-of select="phoneHome"/><br/>
<xsl:value-of select="phoneWork"/><br/>
<xsl:value-of select="phoneFax"/><br/>
<xsl:value-of select="phoneCell"/><br/>
<br/>
<xsl:value-of select="email"/><br/>
<xsl:value-of select="url"/><br/>
<br/>
<xsl:value-of select="personID"/><br/>
<xsl:value-of select="type"/><br/>
<xsl:value-of select="dateCreated"/><br/>
<xsl:value-of select="dateModified"/><br/>

</xsl:template>






</xsl:stylesheet>