 |
| XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

July 23rd, 2009, 04:32 AM
|
|
Friend of Wrox
|
|
Join Date: Feb 2009
Posts: 119
Thanks: 25
Thanked 3 Times in 3 Posts
|
|
Blank webpage output but view source and html is all there
Everytime I transform xml with this file i get a blank webpage, but when I view the source all the html is there??? Any ideas?
Code:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" version="1.0" encoding="utf-8" omit-xml-declaration="no"
standalone="yes" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
cdata-section-elements="namelist" indent="yes" media-type="string"/>
<xsl:param name="paramPath"/>
<xsl:param name="param1"/>
<xsl:param name="param2"/>
<xsl:param name="param3"/>
<xsl:param name="param4"/>
<xsl:param name="docname" select="substring-before(/article/chapter/info/releaseinfo,'.pdf')"/>
<xsl:param name="orig" select="concat('../XML/',$docname,'.xml')"/>
<xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable>
<xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>
<xsl:variable name="letters">abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>
<!-- Root template -->
<xsl:template match="/">
<xsl:variable name="pdf" select="article/chapter/info/releaseinfo"/>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>TIC</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<style media="all" type="text/css">@import "../css/all.css";</style>
<script type="text/javascript" src="../js/menu.js"></script>
<script type="text/javascript" src="../js/main.js"></script>
</head>
<body>
<div id="main">
<!-- BEGIN HEADER BLOCK -->
<div id="header">
<strong class="logo">
<a href="#">TIC - THE INVESTORS CLUB</a>
</strong>
<h1>POLICIES AND PROCEDURES</h1>
</div>
<!-- END HEADER BLOCK -->
<!-- BEGIN CONTENT BLOCK -->
<div id="content">
<div id="left-part">
<!-- BEGIN SERCH BLOCK -->
<form action="">
<div class="search">
<label for="search-field">SEARCH</label>
<input type="text" id="search-field"/>
<input type="image" src="../images/button-go.gif"
class="button-go"/>
</div>
</form>
<!-- END SERCH BLOCK -->
<h3>CONTENTS</h3>
<!-- BEGIN NAVIGATION BLOCK-->
<ul class="navigation" id="navigation">
<xsl:if
test="document('../XML/navigation.xml')/article/contents/part/heading = 'DISCLAIMER'">
<li/>
<li>
<a href="disclaimer.html">
<span style="background:url() no-repeat 100% 0;">
<xsl:value-of
select="document('../XML/navigation.xml')/article/contents/part/heading"
/>
</span>
</a>
</li>
</xsl:if>
<xsl:for-each
select="document('../XML/navigation.xml')/article/contents/part">
<xsl:if test="heading != 'DISCLAIMER' and heading != 'GLOSSARY'">
<li/>
<!--if article/chapter/title = processes then li class=open-->
<xsl:if test="heading = 'PROCESSES'">
<li>
<xsl:if
test="document($orig)/article/chapter/title='PROCESSES'">
<xsl:attribute name="class">open</xsl:attribute>
</xsl:if>
<a href="processes.html">
<span>
<xsl:value-of select="heading"/>
</span>
</a>
<xsl:for-each select="section">
<xsl:variable name="link1" select="releaseinfo"/>
<ul class="navigation" style="margin-left:10px;">
<li>
<a href="{$link1}">
<xsl:value-of select="heading"/>
</a>
<xsl:for-each select="subsection">
<xsl:variable name="link2" select="releaseinfo"/>
<ul class="subsubnav" style="margin-left:20px;">
<li>
<a href="{$link2}">
<xsl:value-of select="subheading"/>
</a>
</li>
</ul>
</xsl:for-each>
</li>
</ul>
</xsl:for-each>
</li>
</xsl:if>
<xsl:if test="heading = 'PEOPLE'">
<li>
<xsl:if
test="document($orig)/article/chapter/title='PEOPLE'">
<xsl:attribute name="class">open</xsl:attribute>
</xsl:if>
<a href="people.html">
<span>
<xsl:value-of select="heading"/>
</span>
</a>
<xsl:for-each select="section">
<xsl:variable name="link1" select="releaseinfo"/>
<ul class="navigation" style="margin-left:10px;">
<li>
<a href="{$link1}">
<xsl:value-of select="heading"/>
</a>
<xsl:for-each select="subsection">
<xsl:variable name="link2" select="releaseinfo"/>
<ul class="subsubnav" style="margin-left:20px;">
<li>
<a href="{$link2}">
<xsl:value-of select="subheading"/>
</a>
</li>
</ul>
</xsl:for-each>
</li>
</ul>
</xsl:for-each>
</li>
</xsl:if>
<xsl:if test="heading = 'HEAD OFFICE'">
<li>
<xsl:if
test="document($orig)/article/chapter/title='HEAD OFFICE'">
<xsl:attribute name="class">open</xsl:attribute>
</xsl:if>
<a href="head-office.html">
<span>
<xsl:value-of select="heading"/>
</span>
</a>
<xsl:for-each select="section">
<xsl:variable name="link1" select="releaseinfo"/>
<ul class="navigation" style="margin-left:10px;">
<li>
<a href="{$link1}">
<xsl:value-of select="heading"/>
</a>
<xsl:for-each select="subsection">
<xsl:variable name="link2" select="releaseinfo"/>
<ul class="subsubnav" style="margin-left:20px;">
<li>
<a href="{$link2}">
<xsl:value-of select="subheading"/>
</a>
</li>
</ul>
</xsl:for-each>
</li>
</ul>
</xsl:for-each>
</li>
</xsl:if>
<xsl:if test="heading = 'IT / COMMUNICATION'">
<li>
<xsl:if
test="document($orig)/article/chapter/title='TECHNOLOGY AND COMMUNICATION'">
<xsl:attribute name="class">open</xsl:attribute>
</xsl:if>
<a href="technology-communication.html">
<span>
<xsl:value-of select="heading"/>
</span>
</a>
<xsl:for-each select="section">
<xsl:variable name="link1" select="releaseinfo"/>
<ul class="navigation" style="margin-left:10px;">
<li>
<a href="{$link1}">
<xsl:value-of select="heading"/>
</a>
<xsl:for-each select="subsection">
<xsl:variable name="link2" select="releaseinfo"/>
<ul class="subsubnav" style="margin-left:20px;">
<li>
<a href="{$link2}">
<xsl:value-of select="subheading"/>
</a>
</li>
</ul>
</xsl:for-each>
</li>
</ul>
</xsl:for-each>
</li>
</xsl:if>
</xsl:if>
</xsl:for-each>
<xsl:if
test="document('../XML/navigation.xml')/article/contents/part/heading = 'GLOSSARY'">
<li/>
<li>
<a href="glossary.html">
<span style="background:url() no-repeat 100% 0;"
>GLOSSARY</span>
</a>
</li>
</xsl:if>
</ul>
<!-- END NAVIGATION BLOCK-->
<!-- BEGIN BOTTOM BLOCK -->
<div class="bottom-part">
<ul class="button-list">
<li>
<a href="#">
<span>Contact Us</span>
</a>
</li>
<li>
<a href="#">
<span>Report Error</span>
</a>
</li>
</ul>
<span class="copyright">Copyright 2008 The Investors Club</span>
</div>
<!-- END BOTTOM BLOCK -->
</div>
<div id="right-part">
<xsl:if test="article/chapter/info/releaseinfo/@userlevel = 'draft'">
<xsl:attribute name="style">background:#F9FAB6;</xsl:attribute>
<!--yellow-->
</xsl:if>
<xsl:if
test="article/chapter/info/releaseinfo/@userlevel = 'documentcommittee'">
<xsl:attribute name="style">background:#FADDB6;</xsl:attribute>
<!--orange-->
</xsl:if>
<xsl:if
test="article/chapter/info/releaseinfo/@userlevel = 'generalmanager'">
<xsl:attribute name="style">background:#FABEB6;</xsl:attribute>
<!--red-->
</xsl:if>
<xsl:if test="article/chapter/info/releaseinfo/@userlevel = 'final'">
<xsl:attribute name="style">background:#eef6fb; </xsl:attribute>
<!--blue-->
</xsl:if>
<!-- BEGIN Header and Abstract BLOCK -->
<xsl:if test="article/chapter/title = 'PROCESSES'">
<div class="header"
style="background:url(../images/bg-pro.gif) repeat-y;">
<strong class="section"
style="background:url(../images/bg-pro-section.gif) no-repeat;">Section<span>
<xsl:value-of select="article/chapter/info/author"/>
</span></strong>
<h3>
<xsl:value-of select="article/chapter/info/title"/>
</h3>
<p>
<xsl:value-of select="article/chapter/info/abstract/para"/>
</p>
</div>
</xsl:if>
<xsl:if test="article/chapter/title = 'PEOPLE'">
<div class="header"
style="background:url(../images/bg-people.gif) repeat-y;">
<strong class="section"
style="background:url(../images/bg-people-section.gif) no-repeat; ">Section<span>
<xsl:value-of select="article/chapter/info/author"/>
</span></strong>
<h3>
<xsl:value-of select="article/chapter/info/title"/>
</h3>
<p>
<xsl:value-of select="article/chapter/info/abstract/para"/>
</p>
</div>
</xsl:if>
<xsl:if test="article/chapter/title = 'TECHNOLOGY AND COMMUNICATION'">
<div class="header"
style="background:url(../images/bg-tech.gif) repeat-y;">
<strong class="section"
style="background:url(../images/bg-tech-section.gif) no-repeat; ">Section<span>
<xsl:value-of select="article/chapter/info/author"/>
</span></strong>
<h3>
<xsl:value-of select="article/chapter/info/title"/>
</h3>
<p>
<xsl:value-of select="article/chapter/info/abstract/para"/>
</p>
</div>
</xsl:if>
<xsl:if test="article/chapter/title = 'HEAD OFFICE'">
<div class="header"
style="background:url(../images/bg-ho.gif) repeat-y;">
<strong class="section"
style="background:url(../images/bg-ho-section.gif) no-repeat; ">Section<span>
<xsl:value-of select="article/chapter/info/author"/>
</span></strong>
<h3>
<xsl:value-of select="article/chapter/info/title"/>
</h3>
<p>
<xsl:value-of select="article/chapter/info/abstract/para"/>
</p>
</div>
</xsl:if>
<!-- END Header and Abstract BLOCK -->
<xsl:variable name="id" select="article/chapter/info/releaseinfo/@id"/>
<!--xsl:for-each select="document('../XML/navigation.xml')/article/contents/part/section/releaseinfo">
<xsl:if test="document('../XML/navigation.xml')/article/contents/part/section/releaseinfo/@id=$id">
<xsl:variable name="next" select="document('../XML/navigation.xml')/article/contents/part/section/releaseinfo"/>
</xsl:if>
<!xsl:if test="document('../XML/navigation.xml')/article/contents/part/section/releaseinfo/@id=$id">
<xsl:variable name="next" select="document('../XML/navigation.xml')/article/contents/part/section/releaseinfo"/>
</xsl:if>
</xsl:for-each-->
<ul class="button-list">
<li>
<a href="disclaimer.html">
<span>HOME</span>
</a>
</li>
<!--NAV SECTION - Previous / Next-->
<xsl:if test="$id = 'disclaimer'">
<xsl:variable name="next">lead-distribution.html</xsl:variable>
<xsl:variable name="previous">glossary.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>NEXT</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A'">
<xsl:variable name="next">lead-distribution.html</xsl:variable>
<xsl:variable name="previous">disclaimer.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A1'">
<xsl:variable name="next">finance-capacity.html</xsl:variable>
<xsl:variable name="previous">processes.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A2'">
<xsl:variable name="next">general-roi.html</xsl:variable>
<xsl:variable name="previous"
>lead-distribution.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A3'">
<xsl:variable name="next">specific-roi.html</xsl:variable>
<xsl:variable name="previous"
>finance-capacity.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A4'">
<xsl:variable name="next">eoi.html</xsl:variable>
<xsl:variable name="previous">general-roi.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A5'">
<xsl:variable name="next">fallover.html</xsl:variable>
<xsl:variable name="previous">specific-roi.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A6'">
<xsl:variable name="next">settlement.html</xsl:variable>
<xsl:variable name="previous">eoi.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A7'">
<xsl:variable name="next"
>complaints-disputes.html</xsl:variable>
<xsl:variable name="previous">fallover.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A8'">
<xsl:variable name="next">complaints.html</xsl:variable>
<xsl:variable name="previous">settlement.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A8.1'">
<xsl:variable name="next">red-flag.html</xsl:variable>
<xsl:variable name="previous"
>complaints-disputes.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A9'">
<xsl:variable name="next">people.html</xsl:variable>
<xsl:variable name="previous">complaints.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B'">
<xsl:variable name="next">members.html</xsl:variable>
<xsl:variable name="previous">red-flag.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B1'">
<xsl:variable name="next"
>member-registration.html</xsl:variable>
<xsl:variable name="previous">people.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B1.1'">
<xsl:variable name="next">member-transfer.html</xsl:variable>
<xsl:variable name="previous">members.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B1.2'">
<xsl:variable name="next">member-poaching.html</xsl:variable>
<xsl:variable name="previous"
>member-registration.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B1.3'">
<xsl:variable name="next">support-members.html</xsl:variable>
<xsl:variable name="previous"
>>member-transfer.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B2'">
<xsl:variable name="next"
>support-member-transfer.html</xsl:variable>
<xsl:variable name="previous"
>member-poaching.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B2.1'">
<xsl:variable name="next"
>support-member-poaching.html</xsl:variable>
<xsl:variable name="previous"
>support-members.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B2.2'">
<xsl:variable name="next">team-leaders.html</xsl:variable>
<xsl:variable name="previous"
>support-member-transfer.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B3'">
<xsl:variable name="next">branch-managers.html</xsl:variable>
<xsl:variable name="previous"
>support-member-poaching.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B4'">
<xsl:variable name="next">researchers.html</xsl:variable>
<xsl:variable name="previous">team-leaders.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B5'">
<xsl:variable name="next">researchers-sop.html</xsl:variable>
<xsl:variable name="previous"
>branch-managers.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B5.1'">
<xsl:variable name="next">property-guides.html</xsl:variable>
<xsl:variable name="previous">researchers.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B6'">
<xsl:variable name="next"
>property-guide-tour.html</xsl:variable>
<xsl:variable name="previous"
>researchers-sop.html</xsl:variable>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B6.1'">
<xsl:variable name="next">club-affiliates.html</xsl:variable>
<xsl:variable name="previous"
>property-guides.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B7'">
<xsl:variable name="next">solicitors.html</xsl:variable>
<xsl:variable name="previous"
>property-guide-tour.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B8'">
<xsl:variable name="next"
>technology-communication.html</xsl:variable>
<xsl:variable name="previous"
>club-affiliates.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id ='C'">
<xsl:variable name="next">memberlink.html</xsl:variable>
<xsl:variable name="previous">solicitors.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id ='C1'">
<xsl:variable name="next"
>spam-email-communication.html</xsl:variable>
<xsl:variable name="previous"
>technology-communication.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'C2'">
<xsl:variable name="next">spam-ho-guidelines.html</xsl:variable>
<xsl:variable name="previous">memberlink.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'C2.1'">
<xsl:variable name="next">club-reports.html</xsl:variable>
<xsl:variable name="previous"
>spam-email-communication.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'C3'">
<xsl:variable name="next"
>depreciation-schedule.html</xsl:variable>
<xsl:variable name="previous"
>spam-ho-guidelines.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'C3.1'">
<xsl:variable name="next">workshops-conduct.html</xsl:variable>
<xsl:variable name="previous">club-reports.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'C4'">
<xsl:variable name="next">newsletters.html</xsl:variable>
<xsl:variable name="previous"
>depreciation-schedule.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'C5'">
<xsl:variable name="next">advertising.html</xsl:variable>
<xsl:variable name="previous"
>workshops-conduct.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'C6'">
<xsl:variable name="next">head-office.html</xsl:variable>
<xsl:variable name="previous">newsletters.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D'">
<xsl:variable name="next"
>organisational-structure.html</xsl:variable>
<xsl:variable name="previous">advertising.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D1'">
<xsl:variable name="next">policy-procedure.html</xsl:variable>
<xsl:variable name="previous">head-office.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D2'">
<xsl:variable name="next"
>intellectual-property.html</xsl:variable>
<xsl:variable name="previous"
>organisational-structure.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D3'">
<xsl:variable name="next">copyright-policy.html</xsl:variable>
<xsl:variable name="previous"
>policy-procedures.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D3.1'">
<xsl:variable name="next"
>public-liability-insurance.html</xsl:variable>
<xsl:variable name="previous"
>intellectual-property.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D3.2'">
<xsl:variable name="next">tic-brand-logo.html</xsl:variable>
<xsl:variable name="previous"
>copyright-policy.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D4'">
<xsl:variable name="next">departments.html</xsl:variable>
<xsl:variable name="previous"
>public-liability-insurance.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D5'">
<xsl:variable name="next">leasing-department.html</xsl:variable>
<xsl:variable name="previous">tic-brand-logo.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D5.1'">
<xsl:variable name="next"
>renting-settled-properties.html</xsl:variable>
<xsl:variable name="previous">departments.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D5.2'">
<xsl:variable name="next">forming-committees.html</xsl:variable>
<xsl:variable name="previous"
>leasing-department.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D6'">
<xsl:variable name="next">map-committee.html</xsl:variable>
<xsl:variable name="previous"
>renting-settled-properties.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D6.1'">
<xsl:variable name="next">document-committee.html</xsl:variable>
<xsl:variable name="previous"
>forming-committees.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D6.2'">
<xsl:variable name="next">fallover-committee.html</xsl:variable>
<xsl:variable name="previous">map-committee.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D6.3'">
<xsl:variable name="next">payments.html</xsl:variable>
<xsl:variable name="previous"
>document-committee.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D7'">
<xsl:variable name="next">weekends-policy.html</xsl:variable>
<xsl:variable name="previous"
>fallover-committee.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D8'">
<xsl:variable name="next">glossary.html</xsl:variable>
<xsl:variable name="previous">payments.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'Glossary'">
<xsl:variable name="next">disclaimer.html</xsl:variable>
<xsl:variable name="previous"
>weekends-policy.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<!--END NAV SECTION - Previous / Next -->
<li>
<a href="{concat('../pdf/', $pdf)}" class="button-pdf">PDF</a>
</li>
</ul>
<div class="content-text">
<xsl:apply-templates/>
</div>
<!-- BEGIN BOTTOM BLOCK -->
<div class="bottom-part">
<ul class="button-list">
<li>
<a href="#">
<span>HOME</span>
</a>
</li>
<li>
<a href="#">
<span>TOP</span>
</a>
</li>
<!--NAV SECTION - Previous / Next-->
<xsl:if test="$id = 'disclaimer'">
<xsl:variable name="next"
>lead-distribution.html</xsl:variable>
<xsl:variable name="previous">glossary.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>NEXT</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A'">
<xsl:variable name="next"
>lead-distribution.html</xsl:variable>
<xsl:variable name="previous">disclaimer.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A1'">
<xsl:variable name="next"
>finance-capacity.html</xsl:variable>
<xsl:variable name="previous">processes.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A2'">
<xsl:variable name="next">general-roi.html</xsl:variable>
<xsl:variable name="previous"
>lead-distribution.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A3'">
<xsl:variable name="next">specific-roi.html</xsl:variable>
<xsl:variable name="previous"
>finance-capacity.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A4'">
<xsl:variable name="next">eoi.html</xsl:variable>
<xsl:variable name="previous"
>general-roi.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A5'">
<xsl:variable name="next">fallover.html</xsl:variable>
<xsl:variable name="previous"
>specific-roi.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A6'">
<xsl:variable name="next">settlement.html</xsl:variable>
<xsl:variable name="previous">eoi.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A7'">
<xsl:variable name="next"
>complaints-disputes.html</xsl:variable>
<xsl:variable name="previous">fallover.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A8'">
<xsl:variable name="next">complaints.html</xsl:variable>
<xsl:variable name="previous">settlement.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A8.1'">
<xsl:variable name="next">red-flag.html</xsl:variable>
<xsl:variable name="previous"
>complaints-disputes.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'A9'">
<xsl:variable name="next">people.html</xsl:variable>
<xsl:variable name="previous">complaints.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B'">
<xsl:variable name="next">members.html</xsl:variable>
<xsl:variable name="previous">red-flag.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B1'">
<xsl:variable name="next"
>member-registration.html</xsl:variable>
<xsl:variable name="previous">people.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B1.1'">
<xsl:variable name="next"
>member-transfer.html</xsl:variable>
<xsl:variable name="previous">members.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B1.2'">
<xsl:variable name="next"
>member-poaching.html</xsl:variable>
<xsl:variable name="previous"
>member-registration.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B1.3'">
<xsl:variable name="next"
>support-members.html</xsl:variable>
<xsl:variable name="previous"
>>member-transfer.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B2'">
<xsl:variable name="next"
>support-member-transfer.html</xsl:variable>
<xsl:variable name="previous"
>member-poaching.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B2.1'">
<xsl:variable name="next"
>support-member-poaching.html</xsl:variable>
<xsl:variable name="previous"
>support-members.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B2.2'">
<xsl:variable name="next">team-leaders.html</xsl:variable>
<xsl:variable name="previous"
>support-member-transfer.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B3'">
<xsl:variable name="next"
>branch-managers.html</xsl:variable>
<xsl:variable name="previous"
>support-member-poaching.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B4'">
<xsl:variable name="next">researchers.html</xsl:variable>
<xsl:variable name="previous"
>team-leaders.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B5'">
<xsl:variable name="next"
>researchers-sop.html</xsl:variable>
<xsl:variable name="previous"
>branch-managers.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B5.1'">
<xsl:variable name="next"
>property-guides.html</xsl:variable>
<xsl:variable name="previous"
>researchers.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B6'">
<xsl:variable name="next"
>property-guide-tour.html</xsl:variable>
<xsl:variable name="previous"
>researchers-sop.html</xsl:variable>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B6.1'">
<xsl:variable name="next"
>club-affiliates.html</xsl:variable>
<xsl:variable name="previous"
>property-guides.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B7'">
<xsl:variable name="next">solicitors.html</xsl:variable>
<xsl:variable name="previous"
>property-guide-tour.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'B8'">
<xsl:variable name="next"
>technology-communication.html</xsl:variable>
<xsl:variable name="previous"
>club-affiliates.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id ='C'">
<xsl:variable name="next">memberlink.html</xsl:variable>
<xsl:variable name="previous">solicitors.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id ='C1'">
<xsl:variable name="next"
>spam-email-communication.html</xsl:variable>
<xsl:variable name="previous"
>technology-communication.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'C2'">
<xsl:variable name="next"
>spam-ho-guidelines.html</xsl:variable>
<xsl:variable name="previous">memberlink.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'C2.1'">
<xsl:variable name="next">club-reports.html</xsl:variable>
<xsl:variable name="previous"
>spam-email-communication.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'C3'">
<xsl:variable name="next"
>depreciation-schedule.html</xsl:variable>
<xsl:variable name="previous"
>spam-ho-guidelines.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'C3.1'">
<xsl:variable name="next"
>workshops-conduct.html</xsl:variable>
<xsl:variable name="previous"
>club-reports.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'C4'">
<xsl:variable name="next">newsletters.html</xsl:variable>
<xsl:variable name="previous"
>depreciation-schedule.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'C5'">
<xsl:variable name="next">advertising.html</xsl:variable>
<xsl:variable name="previous"
>workshops-conduct.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'C6'">
<xsl:variable name="next">head-office.html</xsl:variable>
<xsl:variable name="previous"
>newsletters.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D'">
<xsl:variable name="next"
>organisational-structure.html</xsl:variable>
<xsl:variable name="previous"
>advertising.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D1'">
<xsl:variable name="next"
>policy-procedure.html</xsl:variable>
<xsl:variable name="previous"
>head-office.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D2'">
<xsl:variable name="next"
>intellectual-property.html</xsl:variable>
<xsl:variable name="previous"
>organisational-structure.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D3'">
<xsl:variable name="next"
>copyright-policy.html</xsl:variable>
<xsl:variable name="previous"
>policy-procedures.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D3.1'">
<xsl:variable name="next"
>public-liability-insurance.html</xsl:variable>
<xsl:variable name="previous"
>intellectual-property.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D3.2'">
<xsl:variable name="next">tic-brand-logo.html</xsl:variable>
<xsl:variable name="previous"
>copyright-policy.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D4'">
<xsl:variable name="next">departments.html</xsl:variable>
<xsl:variable name="previous"
>public-liability-insurance.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D5'">
<xsl:variable name="next"
>leasing-department.html</xsl:variable>
<xsl:variable name="previous"
>tic-brand-logo.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D5.1'">
<xsl:variable name="next"
>renting-settled-properties.html</xsl:variable>
<xsl:variable name="previous"
>departments.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D5.2'">
<xsl:variable name="next"
>forming-committees.html</xsl:variable>
<xsl:variable name="previous"
>leasing-department.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D6'">
<xsl:variable name="next">map-committee.html</xsl:variable>
<xsl:variable name="previous"
>renting-settled-properties.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D6.1'">
<xsl:variable name="next"
>document-committee.html</xsl:variable>
<xsl:variable name="previous"
>forming-committees.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D6.2'">
<xsl:variable name="next"
>fallover-committee.html</xsl:variable>
<xsl:variable name="previous"
>map-committee.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D6.3'">
<xsl:variable name="next">payments.html</xsl:variable>
<xsl:variable name="previous"
>document-committee.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D7'">
<xsl:variable name="next"
>weekends-policy.html</xsl:variable>
<xsl:variable name="previous"
>fallover-committee.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'D8'">
<xsl:variable name="next">glossary.html</xsl:variable>
<xsl:variable name="previous">payments.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<xsl:if test="$id = 'Glossary'">
<xsl:variable name="next">disclaimer.html</xsl:variable>
<xsl:variable name="previous"
>weekends-policy.html</xsl:variable>
<li>
<a href="{$next}">
<span>NEXT</span>
</a>
</li>
<li>
<a href="{$previous}">
<span>PREVIOUS</span>
</a>
</li>
</xsl:if>
<!--END NAV SECTION - Previous / Next -->
<li>
<a href="{concat('../pdf/', $pdf)}" class="button-pdf"
>PDF</a>
</li>
</ul>
</div>
<!-- END BOTTOM BLOCK -->
</div>
</div>
<!-- END CONTENT BLOCK -->
</div>
</body>
</html>
</xsl:template>
<!--Content BLOCK-->
<xsl:template match="br">
<br/>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="info"/>
<xsl:template match="chapter/title"/>
<xsl:template match="section/title">
<h3>
<xsl:apply-templates/>
</h3>
</xsl:template>
<xsl:template match="qandaset/title">
<h3>
<xsl:apply-templates/>
</h3>
</xsl:template>
<xsl:template match="appendix/title">
<h3>
<xsl:apply-templates/>
</h3>
</xsl:template>
<xsl:template match="section/subtitle">
<h4>
<xsl:apply-templates/>
</h4>
</xsl:template>
<xsl:template match="appendix/subtitle">
<h4>
<xsl:apply-templates/>
</h4>
</xsl:template>
<xsl:template match="section/para">
<p class="para">
<xsl:apply-templates/>
</p>
</xsl:template>
<xsl:template match="appendix/para">
<p class="para">
<xsl:apply-templates/>
</p>
</xsl:template>
<xsl:template match="qandaset/para">
<p class="para">
<xsl:apply-templates/>
</p>
</xsl:template>
<xsl:template match="question/para">
<p class="question" style="font-weight:bold; font-style:italic;">
<xsl:apply-templates/>
</p>
</xsl:template>
<xsl:template match="answer/para">
<p class="answer">
<xsl:apply-templates/>
</p>
</xsl:template>
<!--END Content BLOCK-->
<!--TABLES-->
<xsl:template match="table">
<xsl:call-template name="tgroup"/>
</xsl:template>
<xsl:template name="tgroup">
<xsl:variable name="ColCount" select="count(./tgroup/colspec)"/>
<table>
<xsl:for-each select="./tgroup/colspec">
<col>
<xsl:if test="@colwidth">
<xsl:choose>
<xsl:when test="contains(@colwidth, '*')">
<xsl:variable name="ColRatio" select="translate(@colwidth, '*', '')"/>
<xsl:attribute name="width">proportional-column-width(<xsl:value-of
select="round($ColRatio * 100)"/>)</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="width">
<xsl:value-of select="@colwidth"/>
</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</col>
</xsl:for-each>
<xsl:call-template name="table-title"/>
</table>
</xsl:template>
<xsl:template name="table-title">
<thead>
<!--tr>
<td>
<xsl:attribute name="number-columns-spanned"><xsl:value-of select="count(./tgroup/colspec)"/></xsl:attribute>
<xsl:value-of select="./title/text()"/>
</td>
</tr-->
<xsl:for-each select="./tgroup/thead/row">
<tr class="caption">
<xsl:call-template name="row"/>
</tr>
</xsl:for-each>
</thead>
<tbody>
<xsl:for-each select="./tgroup/tbody/row">
<tr>
<xsl:call-template name="row"/>
</tr>
</xsl:for-each>
</tbody>
</xsl:template>
<xsl:template name="row">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="entry" name="entry">
<xsl:if test="ancestor::thead">
<th
colspan="{count(ancestor::table[1]/*/colspec[@colname=current()/@nameend]/preceding-sibling::colspec ) - count(ancestor::table[1]/*/colspec[@colname=current()/@namest]/preceding-sibling::colspec) + 1 }">
<xsl:if test="@valign = 'top'">
<xsl:attribute name="valign">top</xsl:attribute>
</xsl:if>
<p class="thead">
<xsl:if test="@align = 'left'">
<xsl:attribute name="align">left</xsl:attribute>
</xsl:if>
<xsl:if test="@align = 'right'">
<xsl:attribute name="align">right</xsl:attribute>
</xsl:if>
<xsl:if test="@align = 'center'">
<xsl:attribute name="align">center</xsl:attribute>
</xsl:if>
<xsl:if test="@align = 'justify'">
<xsl:attribute name="align">justify</xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</p>
</th>
</xsl:if>
<xsl:if test="ancestor::tbody">
<td
colspan="{count(ancestor::table[1]/*/colspec[@colname=current()/@nameend]/preceding-sibling::colspec ) - count(ancestor::table[1]/*/colspec[@colname=current()/@namest]/preceding-sibling::colspec) + 1 }">
<xsl:if test="ancestor::table/@tabstyle='glossary'">
<xsl:attribute name="valign">top</xsl:attribute>
</xsl:if>
<xsl:if test="@valign = 'top'">
<xsl:attribute name="valign">top</xsl:attribute>
</xsl:if>
<xsl:if test="ancestor::table/@tabstyle=''">
<xsl:attribute name="valign">middle</xsl:attribute>
</xsl:if>
<p class="entry">
<xsl:if test="@align = 'left'">
<xsl:attribute name="align">left</xsl:attribute>
</xsl:if>
<xsl:if test="@align = 'right'">
<xsl:attribute name="align">right</xsl:attribute>
</xsl:if>
<xsl:if test="@align = 'center'">
<xsl:attribute name="align">center</xsl:attribute>
</xsl:if>
<xsl:if test="@align = 'justify'">
<xsl:attribute name="align">justify</xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</p>
</td>
</xsl:if>
</xsl:template>
<!--END TABLES-->
<!--FIGURES-->
<xsl:template match="mediaobject/imageobject">
<div>
<img>
<xsl:attribute name="src">
<xsl:value-of select="imagedata/@fileref"/>
</xsl:attribute>
</img>
</div>
</xsl:template>
<!--END FIGURES-->
<!--LIST's-->
<!--xsl:template match="itemizedlist/listitem/itemizedlist" name="nestedlist">
<ul>
<xsl:for-each select="listitem">
<li>
<xsl:for-each select="para">
<p class="para">
<xsl:value-of select="."/>
<xsl:apply-templates/>
</p>
</xsl:for-each>
</li>
</xsl:for-each>
</ul>
</xsl:template-->
<xsl:template match="itemizedlist" name="itemizedlist">
<ul>
<xsl:for-each select="listitem">
<li>
<xsl:for-each select="para">
<xsl:choose>
<xsl:when test="child::itemizedlist">
<ul>
<xsl:for-each select="itemizedlist/listitem">
<li>
<xsl:for-each select="para">
<p class="para">
<xsl:value-of select="."/>
</p>
</xsl:for-each>
</li>
</xsl:for-each>
</ul>
</xsl:when>
<xsl:otherwise>
<p class="para">
<xsl:value-of select="."/>
</p>
</xsl:otherwise>
</xsl:choose>
</xsl:for-each>
</li>
</xsl:for-each>
</ul>
</xsl:template>
<!--xsl:template match="listitem/para"/-->
<!--Numbered LISTS-->
<xsl:template match="orderedlist">
<ol>
<xsl:for-each select="listitem">
<li>
<p class="para">
<xsl:apply-templates/>
</p>
</li>
</xsl:for-each>
</ol>
</xsl:template>
<!--END LIST's BLOCK-->
<!--References BLOCK-->
<xsl:template match="link">
<a>
<xsl:attribute name="href">
<xsl:value-of select="@href"/>
</xsl:attribute>
<xsl:apply-templates/>
</a>
</xsl:template>
<!--END References BLOCK-->
<!--Glossary Terms & Definition-->
<xsl:template match="glossterm">
<p class="glossterm" align="right">
<xsl:apply-templates/>
</p>
</xsl:template>
<xsl:template name="glossdef" match="glossdef/para">
<p align="left" class="glossdef">
<xsl:apply-templates/>
</p>
</xsl:template>
<!--END Glossary Terms & Definition-->
</xsl:stylesheet>
|
|

July 23rd, 2009, 04:39 AM
|
|
Friend of Wrox
|
|
Join Date: Feb 2009
Posts: 119
Thanks: 25
Thanked 3 Times in 3 Posts
|
|
I figured it out don't worry
|
|

July 23rd, 2009, 04:52 AM
|
 |
Wrox Author
|
|
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
|
|
If you solved the problem, it's always useful to post the answer so that people finding this in the archives (or people who spent a minute looking at the problem before seeing you had solved it) can learn from your experience.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|
|

July 23rd, 2009, 05:02 AM
|
|
Friend of Wrox
|
|
Join Date: Feb 2009
Posts: 119
Thanks: 25
Thanked 3 Times in 3 Posts
|
|
Well i haven't really solved the problem, i cut out the html script tags and I got output. But i need them and when they are left there there is no output???
|
|

July 23rd, 2009, 05:13 AM
|
|
Friend of Wrox
|
|
Join Date: Feb 2009
Posts: 119
Thanks: 25
Thanked 3 Times in 3 Posts
|
|
any ideas?
|
|

July 23rd, 2009, 07:03 AM
|
|
Friend of Wrox
|
|
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
|
|
I see two potential problems, you seem to be using XSLT 1.0 to try to create XHTML. XSLT 1.0 has no special output method for XHTML to be sent as text/html to HTML browsers like IE so the empty script elements you have might be serialized as e.g. <script type="text/javacript" src="foo. js"/> which is fine for XML rules but can lead to problems with an HTML parser a browser like IE might use to parse the transformation result. The only workaround as long as you use XSLT 1.0 is to put a comment into the script element e.g.
Code:
<script type="text/javascript" src="file.js">
<xsl:comment>enforce proper serialization</xsl:comment>
</script>
The second problem is that you have put the XHTML namespace declaration only on the html element inside one template but you have other templates also supposed to create XHTML elements. To ensure that all result elements are in the XHTML namespace you would need to move the namespace declaration xmlns="http://www.w3.org/1999/XSL/Transform" on the xsl:stylesheet element. Your current stylesheet would however only cause problems if the transformation result would be parsed by the browser as XML.
If that does not help then please provide more details as to where you transform (in the browser or on the server), the MIME type you send the transformation result to the browser if you transform on the server, which browser does not render the content.
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog
|
|
The Following User Says Thank You to Martin Honnen For This Useful Post:
|
|
|

July 23rd, 2009, 07:40 AM
|
|
Friend of Wrox
|
|
Join Date: Feb 2009
Posts: 119
Thanks: 25
Thanked 3 Times in 3 Posts
|
|
Hi Martin, your a true guru!
<script type="text/javascript" src="file. js">
<xsl:comment>enforce proper serialization</xsl:comment>
</script>that worked and I got output.
But my css and images don't come out??
I transform on the server with asp.net, i have an images and css folders and the xsl file is in the xsl folder and the xml files are in an xml folder. In the root of the application is the default.aspx that runs.
Any ideas about the images and css?
When i run it through my xml editor i now get the desired result but with asp.net the css and images are missing?
Any ideas
Your help is greatly appreciated
|
|

July 23rd, 2009, 07:51 AM
|
|
Friend of Wrox
|
|
Join Date: Nov 2007
Posts: 1,243
Thanks: 0
Thanked 245 Times in 244 Posts
|
|
If images are not found and CSS (in an external stylesheet?) is not applied then I don't think that is a problem with the XSLT stylesheet, that simply means the paths are not correct. If the default.aspx in the application root runs the transformation then I would expect the paths to look like this:
Code:
<style media="all" type="text/css">@import "css/all.css";</style>
<script type="text/javascript" src="js/menu.js"></script>
<script type="text/javascript" src="js/main.js"></script>
where there should be subdirectories name 'css' and ' js' inside the application's root folder.
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog
|
|
The Following User Says Thank You to Martin Honnen For This Useful Post:
|
|
|

July 23rd, 2009, 10:58 AM
|
|
Friend of Wrox
|
|
Join Date: Feb 2009
Posts: 119
Thanks: 25
Thanked 3 Times in 3 Posts
|
|
When running the application in .net the paths that you suggested were right to have the html display on the screen properly with the images, javascript and css.
The reason why I was confused about the paths was because the application writes the html to a file in another directory and then when viewing that html file that original paths that I had worked.
So while in development mode your paths work, in actual deployment the original paths are needed.
Thanks anyway.
|
|
 |