<?xml version="1.0" encoding="iso-8859-1"?><xsl:stylesheet version="1.0" xmlns:xsl='http://www.w3.org/1999/XSL/Transform'  	xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" 	xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" 	xmlns:rs="urn:schemas-microsoft-com:rowset" 	xmlns:z="#RowsetSchema"><xsl:output 	method="xml" 	version="1.0" 	indent="yes"/><!-- data fsd index xslt will be applied to --><!--<xml xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">	<params>		<pagetype index_style="horizontal" index="true" coe="false" type="unit" param="oet"/>	</params>	<rs:data>		<z:row people_id="207" username="alexande" NAME="Alexander, Linda" email="alexande@uiuc.edu" photo_url="http://w4.ed.uiuc.edu/oet/pictures/Staff2001/linda_alexander.jpg" emp_class="C" unit_specific_title="Assistant to the Director" unit_name_real="Office of Educational Technology" name_50Char="Office of Educational Technology" UNIT_NAME="Office of Educational Technology" Parent_Unit_Name="Educational Administration" Room="32" Building="Education Building" address="1310 S. 6th St." mc="708" city="Champaign" state="IL" zip="61820" Office_Fax="333-6662" Public_Phone="244-7005" sub_unit_order="1" lvl="2" hierarchy=".11.17.39."/>		<z:row people_id="51" username="eunokkim" NAME="Kim, Eunok" email="eunokkim@uiuc.edu" photo_url="http://students.ed.uiuc.edu/eunokkim/public_htm/images/eunokkim.jpg" emp_class="S" emp_subclass="GA" unit_specific_title="Consultant" unit_name_real="Technology Lifeline Center" name_50Char="Technology Lifeline Center" UNIT_NAME="Professional Development" Parent_Unit_Name="Professional Development" Room="25" Building="Education Building" address="1310 S. 6th St." mc="708" city="Champaign" state="IL" zip="61820" Public_Phone="244-7005" sub_unit_order="13" lvl="4" hierarchy=".11.17.39.78.79."/>		<z:row people_id="446" username="seong" NAME="Seong, Guiboke" email="seong@uiuc.edu" photo_url="http://w4.ed.uiuc.edu/oet/Pictures/pt3/andie_seong.jpg" emp_class="S" unit_specific_title="Consultant" unit_name_real="Technology Lifeline Center" name_50Char="Technology Lifeline Center" UNIT_NAME="Professional Development" Parent_Unit_Name="Professional Development" Room="25" Building="Education Building" address="1310 S. 6th St." mc="708" city="Champaign" state="IL" zip="61820" Public_Phone="244-7005" sub_unit_order="13" lvl="4" hierarchy=".11.17.39.78.79."/>	</rs:data>	<rs:data>		<z:row ed_units_id="39" active_unit="True" unit_id="OET" bldg_id="Education" college_code="20" dept_code="01" 				unit_name="Office of Educational Technology" name_15char="OET" name_50char="Office of Educational Technology" 				root_url="http://www.ed.uiuc.edu/oet/" category="Administrative Office" unit_type="Administrative Office" 				office_phone="244-7005" office_fax="333-6662" office_email="oet@mail.ed.uiuc.edu" office_room="32" 				office_hours="8:00 a.m. – 5:00 p.m.&#xA;" incl_www_index="Y" sub_unit_order="1" employees="1" 				parent_unit_id="OET" parent_unit="39" lvl="2" hierarchy=".11.17.39." 				unit_admin="ED DBS OET" modified_date="2003-10-01T08:38:50.147000000" 				modified_by="knystrom" c31="Education" ed_bldg_id="14" 				building_no="0160" name_10char="Education " name_20char="Education Building" c36="" 				zip="61820" mc="708" city="Champaign" state="IL" c41="Education Building" 				address="1310 S. 6th St." name="Ed Bldg" c44="1999-01-15T00:00:00" 				c46="2003-07-30T12:00:05.710000000" timestamp="000000000000069b"/>					</rs:data></xml>--><xsl:template match="/">	<xsl:choose>		<xsl:when test="/xml/params/pagetype/@index_style='labelsandpicts'">			<xsl:apply-templates select="/" mode="labelsandpicts" />		</xsl:when>		<xsl:when test="/xml/params/pagetype/@index_style='labels'">			<xsl:apply-templates select="/" mode="labels" />		</xsl:when>		<xsl:when test="/xml/params/pagetype/@index_style='horizontal'">			<xsl:apply-templates select="/" mode="horizontal" />		</xsl:when>		<xsl:otherwise>			<xsl:apply-templates select="/" mode="horizontal" />		</xsl:otherwise>	</xsl:choose></xsl:template><!--- ###################################################################### --><!--- ### horizontal index                                                  ### --><!--- ###################################################################### --><xsl:template match="/" mode="horizontal">	<xsl:variable name="coe" select="/xml/params/pagetype/@coe"/>	<xsl:variable name="type" select="/xml/params/pagetype/@type"/>	<xsl:variable name="param" select="/xml/params/pagetype/@param"/>	<xsl:variable name="groupby" select="/xml/params/pagetype/@groupby"/>	<xsl:variable name="detailbaseURL" >		<xsl:choose>			<xsl:when test="/xml/params/pagetype/@coe='true' and /xml/params/pagetype/@type='alpha'"><xsl:value-of select="$param"/>/</xsl:when>			<xsl:when test="/xml/params/pagetype/@coe='true' and /xml/params/pagetype/@type='unit'"><xsl:value-of select="$param"/>/</xsl:when>			<xsl:when test="/xml/params/pagetype/@frpfsd='fsd' and /xml/params/pagetype/@type='search' and /xml/params/pagetype/@post='false' "><xsl:value-of select="$param"/>/</xsl:when>			<xsl:when test="/xml/params/pagetype/@coe='true' and /xml/params/pagetype/@type='search'">results/<xsl:value-of select="$param"/>/</xsl:when>			<xsl:otherwise>./fsd/</xsl:otherwise>		</xsl:choose>	</xsl:variable>	<xsl:variable name="showunitheadings">		<xsl:choose>			<xsl:when test="/xml/params/pagetype/@coe='true' and /xml/params/pagetype/@type='alpha'">false</xsl:when>			<xsl:when test="/xml/params/pagetype/@coe='true' and /xml/params/pagetype/@type='unit'">true</xsl:when>			<xsl:when test=" /xml/params/pagetype/@type='search'">false</xsl:when>			<xsl:otherwise>true</xsl:otherwise>		</xsl:choose>	</xsl:variable>	<div id="maincontent" class="mmhide_content">		<div class="fsd_index_horizontal" id="fsd_index_horizontal">			<h1>Faculty Staff Directory</h1>			<h2><xsl:value-of select="/xml/rs:data[2]/z:row[1]/@unit_name"/></h2>			<xsl:choose>				<xsl:when test="count(/xml/rs:data[1]/z:row) > 0 ">					<table id="fsd_index_entries">						<tr id="fsd_index_entries_header_row"><th>Name</th><th>Title</th><th>Phone</th><th>Email</th></tr>						<tr id="fsd_index_entries_post_header_spacing_row"><td colspan="4"></td></tr>									<xsl:for-each select="/xml/rs:data[1]/z:row">							<xsl:variable name="pos" select="position()" />							<xsl:variable name="tdclass">								<xsl:choose>									<xsl:when test="position() mod 2 = 0 ">TableRowEven</xsl:when>									<xsl:otherwise>TableRowOdd</xsl:otherwise>								</xsl:choose>							</xsl:variable>							<xsl:choose>								<xsl:when test="$groupby = 'unit'">									<xsl:if test="($pos = 1 or not(@unit_name = /xml/rs:data[1]/z:row[$pos - 1]/@unit_name)) and $showunitheadings = 'true'"> 										<tr class="header_spacer"><td colspan="5"><br/></td></tr>										<tr class="unit_name"><td colspan="5" ><h3><xsl:value-of select="@unit_name" /></h3></td></tr>									</xsl:if>								</xsl:when>								<xsl:when test="$groupby = 'tenure'">									<xsl:if test="($pos = 1 or not(@emp_subclass = /xml/rs:data[1]/z:row[$pos - 1]/@emp_subclass)) and $showunitheadings = 'true'"> 											<xsl:choose>												<xsl:when test="@emp_subclass">										<tr class="header_spacer"><td colspan="5"><br/></td></tr>													<tr class="unit_name"><td colspan="5" >													<h3>													<xsl:value-of select="@emp_subclass" />													</h3></td></tr>												</xsl:when>												<xsl:otherwise></xsl:otherwise>											</xsl:choose>									</xsl:if>								</xsl:when>								<xsl:when test="$groupby = 'class'">									<xsl:if test="($pos = 1 or not(@emp_class = /xml/rs:data[1]/z:row[$pos - 1]/@emp_class)) and $showunitheadings = 'true'"> 										<tr class="header_spacer"><td colspan="5"><br/></td></tr>										<tr class="unit_name"><td colspan="5" ><h3>										<xsl:choose>											<xsl:when test="@emp_class = 'A'">Academic Professionals</xsl:when>											<xsl:when test="@emp_class = 'F'">Faculty</xsl:when>											<xsl:when test="@emp_class = 'C'">Staff</xsl:when>										</xsl:choose>										</h3></td></tr>									</xsl:if>								</xsl:when>								<xsl:otherwise></xsl:otherwise>									</xsl:choose>											<tr class="fsd_entry">								<td width="204"  class="{$tdclass}" ><a href="{$detailbaseURL}{@username}"><xsl:value-of select="@name_lf" /></a></td>								<td width="168"  class="{$tdclass}"><xsl:value-of select="@unit_specific_title" /></td>								<td width="98"  class="{$tdclass}"><xsl:value-of select="@public_phone" /></td>								<td width="106"  class="{$tdclass}"><a href="mailto:{@email}" shape="rect"><xsl:value-of select="@email" /></a></td>							</tr>						</xsl:for-each>						 					</table>			</xsl:when>			<xsl:otherwise>				<p class="nofsdentriesindex">				<xsl:choose>					<xsl:when test="$type = 'search'">						No results found					</xsl:when>					<xsl:when test="$type = 'alpha'">						No results for &quot;<xsl:value-of select="$param" />&quot;					</xsl:when>					<xsl:otherwise>						No entries for unit &quot;<xsl:value-of select="$param" />&quot;					</xsl:otherwise>				</xsl:choose>			</p>			</xsl:otherwise>		</xsl:choose>		</div>	</div></xsl:template><xsl:template match="/xml/rs:data[2]/z:row[1]"> <!-- unit name and address -->	<p class="TextContact">Room&#160;<xsl:value-of select="@office_room"/>&#160;<xsl:value-of select="@name_10char"/>,&#160;MC&#160;<xsl:value-of select="@mc"/></p>	<p class="TextContact"><xsl:value-of select="@address"/></p>	<p class="TextContact"><xsl:value-of select="@city"/>,&#160;<xsl:value-of select="@state"/>&#160;<xsl:value-of select="@zip"/></p>	<p class="TextContact">Phone: (217) <xsl:value-of select="@office_phone"/></p>	<p class="TextContact">Fax: (217) <xsl:value-of select="@office_fax"/></p></xsl:template><!--- ###################################################################### --><!--- ### labels  index                                                  ### --><!--- ###################################################################### --><xsl:template match="/" mode="labels">	<div id="maincontent" class="mmhide_content">		<div class="fsdindex_labels" id="fsdindex_labels">			<h1><xsl:value-of select="/xml/rs:data[2]/z:row[1]/@unit_name"/></h1>		<!--	<div class="unit_address">			<xsl:apply-templates select="/xml/rs:data[2]/z:row[1]" />			</div>  -->			<xsl:for-each select="/xml/rs:data[1]/z:row">				<div class="fsd_entry">					<xsl:apply-templates select="." mode="labelcontactinfo"/>				</div>			</xsl:for-each>		</div>	</div></xsl:template><xsl:template match="/xml/rs:data[1]/z:row" mode="labelcontactinfo">			<div class="name"><h2><xsl:value-of select="@name_fl" /></h2></div>			<div class="title"><xsl:value-of select="@unit_specific_title" /></div>			<xsl:if test="concat(@building,@room)" ><div class="addressline1"><xsl:value-of select="@room" />&#160;<xsl:value-of select="@building" /></div></xsl:if>			<xsl:if test="concat(@address,@mc)" ><div class="addressline2"><xsl:value-of select="@address" />&#160;MC&#160;<xsl:value-of select="@mc" /></div></xsl:if>			<xsl:if test="@email" ><div class="email"><a href="mailto:{@email}" shape="rect"><xsl:value-of select="@email" /></a><br clear="none"/></div></xsl:if>			<xsl:if test="@public_phone" ><div class="phone">(217) <xsl:value-of select="@public_phone" /></div></xsl:if></xsl:template><!--- ###################################################################### --><!--- ### labelsandpicts  index                                          ### --><!--- ###################################################################### --><xsl:template match="/" mode="labelsandpicts">	<div id="maincontent" class="mmhide_content">		<div class="fsd_index_labelsandpicts" id="fsd_index_labelsandpicts">			<h1>Faculty Staff Directory</h1>			<h2><xsl:value-of select="/xml/rs:data[2]/z:row[1]/@unit_name"/></h2>		<!--	<div class="unit_address">			<xsl:apply-templates select="/xml/rs:data[2]/z:row[1]" />			</div>  -->			<table id="fsd_index_entries">	<xsl:for-each select="/xml/rs:data[1]/z:row">			<tr class="fsd_entry">				<td class="image" width="131">					<xsl:choose>						<xsl:when test="@photo_url"><img src="{@photo_url}" alt="{@name}" /></xsl:when>						<xsl:otherwise></xsl:otherwise>					</xsl:choose>				</td>				<td class="contact_info"><xsl:apply-templates select="." mode="labelcontactinfo"/></td>			</tr>		</xsl:for-each>		</table>		</div>	</div></xsl:template></xsl:stylesheet>
