false
Generic 3-Column
brief
false
htmlQuirksMode
fixed-layout
Dynamically displays horizontal breadcrumb navigation based on the Site Map.
Default
BreadCrumbs
BreadCrumbs
false
0
456
48
10
10
0
true
/
true
Boeing Home
true
displayBreadcrumb
Default
<!DOCTYPE html-entities SYSTEM "http://www.interwoven.com/livesite/xsl/xsl-html.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Skin: Default (Default Browser Type) -->
<xsl:include href="http://www.interwoven.com/livesite/xsl/HTMLTemplates.xsl"/>
<xsl:include href="http://www.interwoven.com/livesite/xsl/StringTemplates.xsl"/>
<xsl:include href="http://www.interwoven.com/custom/iwov-resources/xsl/BreadCrumbs.xsl"/>
</xsl:stylesheet>
.NET
<autn:XslControl runat="server" ComponentId="$CONTEXT{componentId}">
<Xsl>
<!DOCTYPE html-entities SYSTEM "http://www.interwoven.com/livesite/xsl/xsl-html.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="http://www.interwoven.com/livesite/xsl/navigation/HorizontalBreadcrumb.xsl"/>
<xsl:template match="/">
<xsl:call-template name="horizontal-breadcrumb"></xsl:call-template>
</xsl:template>
</xsl:stylesheet>
</Xsl>
</autn:XslControl>
Default
LeftNavigation
LeftNavigation
false
0
200
200
10
10
0
true
true
getSiteMap
Default
<!DOCTYPE html-entities SYSTEM "http://www.interwoven.com/livesite/xsl/xsl-html.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Skin: Default XSL -->
<xsl:include href="http://www.interwoven.com/livesite/xsl/HTMLTemplates.xsl"/>
<xsl:include href="http://www.interwoven.com/livesite/xsl/StringTemplates.xsl"/>
<xsl:include href="http://www.interwoven.com/custom/iwov-resources/xsl/LeftNavigation.xsl"/>
</xsl:stylesheet>
This component will provide personality banner content.
Default
Personalitystatic
Personalitystatic
false
-1
200
200
10
10
0
true
templatedata/utility/banner_class/data/About Us
Default
<!DOCTYPE html-entities SYSTEM "http://www.interwoven.com/livesite/xsl/xsl-html.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Skin: Default XSL -->
<xsl:include href="http://www.interwoven.com/livesite/xsl/HTMLTemplates.xsl"/>
<xsl:include href="http://www.interwoven.com/livesite/xsl/StringTemplates.xsl"/>
<xsl:template match="/">
<xsl:choose>
<!-- Display a message if the DCR is not selected -->
<xsl:when test="0 = string-length(/Properties/Data/Datum[@Name='Banner Class DCR']/DCR[@Type='banner_class'])" >
<div style="text-align:center;font-style:italic;">Select a Banner Class DCR</div>
</xsl:when>
<xsl:otherwise>
<div id="banner" class="{Properties/Data/Datum[@Name='Banner Class DCR']/DCR[@Type='banner_class']/BoeingContent/bannerclass/bannercssclass}">
<h1>
<span class="hide_b"><xsl:value-of select="Properties/Data/Datum[@Name='Banner Class DCR']/DCR[@Type='banner_class']/BoeingContent/bannerclass/bannertext" /></span>
</h1>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
This XSL based component is boeings Header to appear on all pages and consists of Top Nav links, Boeing Logo , Logon Div and search text box.
Default
Header
Header
false
-1
980
50
10
10
0
true
Default
<!DOCTYPE html-entities SYSTEM "http://www.interwoven.com/livesite/xsl/xsl-html.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Skin: Default XSL -->
<xsl:include href="http://www.interwoven.com/livesite/xsl/HTMLTemplates.xsl"/>
<xsl:include href="http://www.interwoven.com/livesite/xsl/StringTemplates.xsl"/>
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:variable name="includesFile" select="Properties/Data/Datum[@ID='includesHeaderFile']" />
<xsl:template match="/">
<span id="header_include">
</span>
<script language="JavaScript" type="text/javascript">
$(document).ready(function(){
$.ajax({
type : "GET",
url: '<xsl:value-of select="$includesFile" />',
success: function(data) {
$('#header_include').html(data);
},
error : function() {
alert("Sorry, The requested property could not be found.");
},
complete: function() {
HeaderApp.init()
}
});
});
</script>
</xsl:template>
<xsl:template match="External/Parameters/Datum" />
</xsl:stylesheet>
Displays a footer including multiple links.
Default
Footernav
Footernav
false
-1
1000
30
200
10
0
true
Default
<!DOCTYPE html-entities SYSTEM "http://www.interwoven.com/livesite/xsl/xsl-html.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Skin: Default XSL -->
<xsl:include href="http://www.interwoven.com/livesite/xsl/HTMLTemplates.xsl"/>
<xsl:include href="http://www.interwoven.com/livesite/xsl/StringTemplates.xsl"/>
<xsl:variable name="includesFile" select="Properties/Data/Datum[@ID='includesFooterFile']" />
<xsl:template match="/">
<span id="footer_include">
</span>
<script language="JavaScript" type="text/javascript">
$(document).ready(function(){
$.ajax({
type : "GET",
url: '<xsl:value-of select="$includesFile" />',
success: function(data) {
//alert( data ); // shows whole dom
$("#footer_include").html(data);
},
error : function() {
alert("Sorry, The requested property could not be found.");
}
});
});
</script>
</xsl:template>
<xsl:template match="External/Parameters/Datum" />
</xsl:stylesheet>
This is the Boeing's top navigation component which appears below Boeing's Header Components and displays Max of 3 levels of Navigation.
topnav
TopNav
TopNav
false
-1
980
50
10
10
0
true
true
getSiteMap
Default
<!DOCTYPE html-entities SYSTEM "http://www.interwoven.com/livesite/xsl/xsl-html.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:include href="http://www.interwoven.com/livesite/xsl/HTMLTemplates.xsl"/>
<xsl:include href="http://www.interwoven.com/livesite/xsl/StringTemplates.xsl"/>
<xsl:include href="http://www.interwoven.com/livesite/xsl/navigation/VerticalJsFlyout.xsl"/>
<xsl:template match="/">
<xsl:call-template name="vertical-js-flyout"></xsl:call-template>
</xsl:template>
</xsl:stylesheet>
topnav
<!DOCTYPE html-entities SYSTEM "http://www.interwoven.com/livesite/xsl/xsl-html.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Skin: Default (Default Browser Type) -->
<xsl:include href="http://www.interwoven.com/livesite/xsl/HTMLTemplates.xsl"/>
<xsl:include href="http://www.interwoven.com/livesite/xsl/StringTemplates.xsl"/>
<xsl:include href="http://www.interwoven.com/custom/iwov-resources/xsl/TopNav.xsl"/>
</xsl:stylesheet>
This component will provide utility footer navigation.
Default
Utilityfooter
Utilityfooter
false
-1
200
200
10
10
0
true
Default
<!DOCTYPE html-entities SYSTEM "http://www.interwoven.com/livesite/xsl/xsl-html.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Skin: Default XSL -->
<xsl:include href="http://www.interwoven.com/livesite/xsl/HTMLTemplates.xsl"/>
<xsl:include href="http://www.interwoven.com/livesite/xsl/StringTemplates.xsl"/>
<xsl:variable name="includesFile" select="Properties/Data/Datum[@ID='includesUtilityFooterFile']" />
<xsl:template match="/">
<span id="utility_footer_include">
</span>
<script language="JavaScript" type="text/javascript">
var d = new Date();
var year = d.getFullYear();
$(document).ready(function(){
$.ajax({
type : "GET",
url: '<xsl:value-of select="$includesFile" />',
success: function(data) {
$("#utility_footer_include").html(data);
},
error : function() {
alert("Sorry, The requested property could not be found.");
},
complete: function() {
var d = new Date();
var year = d.getFullYear();
$("#footer_date").html(year);
}
});
});
</script>
</xsl:template>
<xsl:template match="External/Parameters/Datum" />
</xsl:stylesheet>
This component will provide rendition for default content with links DCR
Default
Content
Content
false
-1
200
200
10
10
0
true
Content DCR
templatedata/boeing/content/data/corporate/Boeing_in_Brief.xml
iwov-resources/xsl/metatags.xsl
D02
boeing
content
insertMetaTags
Default
<!DOCTYPE html-entities SYSTEM "http://www.interwoven.com/livesite/xsl/xsl-html.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Skin: Default XSL -->
<xsl:include href="http://www.interwoven.com/livesite/xsl/HTMLTemplates.xsl"/>
<xsl:include href="http://www.interwoven.com/livesite/xsl/StringTemplates.xsl"/>
<xsl:template match="/">
<xsl:choose>
<!-- Display a message if the DCR is not selected -->
<xsl:when test="0 = string-length(/Properties/Data/Result/Content/DCR)" >
<div style="text-align:center;font-style:italic;">Select a Content DCR</div>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="Properties/Data/Result/Content/DCR/BoeingContent/Pragraphs"/>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="Pragraphs">
<xsl:variable name="paragraphHeader" select="paragraphheader" />
<xsl:variable name="paragraphSubHeader" select="paragraphsubheader" />
<xsl:variable name="paragraphSubSubHeader" select="paragraphsubsubheader" />
<xsl:variable name="paragraphContent" select="Paragraphcontent" />
<xsl:variable name="largeImage" select="largeimage" />
<xsl:variable name="imageCaption" select="imagecaption" />
<xsl:variable name="imageCredit" select="imagecredit" />
<xsl:variable name="imageSize" select="imagesize" />
<xsl:variable name="altLargeImage" select="altlargeimage" />
<xsl:variable name="imageLocation" select="imagelocation" />
<xsl:if test="string-length($paragraphHeader) > 0" >
<h1>
<span in-context-edit= "{/Properties/Data/Result/Content/DCR[@name='Content DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/Pragraphs[{position()}]/paragraphheader">
<xsl:value-of select="$paragraphHeader" />
</span>
</h1>
</xsl:if>
<xsl:if test="string-length($paragraphSubHeader) > 0" >
<h2>
<span in-context-edit= "{/Properties/Data/Result/Content/DCR[@name='Content DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/Pragraphs[{position()}]/paragraphsubheader">
<xsl:value-of select="$paragraphSubHeader" />
</span>
</h2>
</xsl:if>
<xsl:if test="string-length($paragraphSubSubHeader) > 0" >
<h3>
<span in-context-edit= "{/Properties/Data/Result/Content/DCR[@name='Content DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/Pragraphs[{position()}]/paragraphsubsubheader">
<xsl:value-of select="$paragraphSubSubHeader" />
</span>
</h3>
</xsl:if>
<xsl:choose>
<xsl:when test="string-length($largeImage) > 0 and $imageLocation='left'" >
<xsl:choose>
<xsl:when test="string-length($imageCaption) > 0" >
<div class="photo_w_caption_{$imageSize}" in-context-edit= "{/Properties/Data/Result/Content/DCR[@name='Content DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/Pragraphs[{position()}]/largeimage">
<img>
<xsl:attribute name="src">
<xsl:value-of select="$largeImage" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$altLargeImage" />
</xsl:attribute>
</img>
<div class="photocaption_{$imageSize}">
<xsl:value-of select="$imageCaption" />
</div>
</div>
</xsl:when>
<xsl:otherwise>
<p>
<span in-context-edit= "{/Properties/Data/Result/Content/DCR[@name='Content DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/Pragraphs[{position()}]/largeimage">
<img>
<xsl:attribute name="src">
<xsl:value-of select="$largeImage" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$altLargeImage" />
</xsl:attribute>
</img>
</span> </p>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:when test="string-length($largeImage) > 0 and $imageLocation='right'" >
<xsl:choose>
<xsl:when test="string-length($imageCaption) > 0" >
<div class="photo_w_caption_alt_{$imageSize}" in-context-edit= "{/Properties/Data/Result/Content/DCR[@name='Content DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/Pragraphs[{position()}]/largeimage">
<img>
<xsl:attribute name="src">
<xsl:value-of select="$largeImage" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$altLargeImage" />
</xsl:attribute>
</img>
<div class="photocaption_{$imageSize}">
<xsl:value-of select="$imageCaption" />
</div>
</div>
</xsl:when>
<xsl:otherwise>
<span in-context-edit= "{/Properties/Data/Result/Content/DCR[@name='Content DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/Pragraphs[{position()}]/largeimage">
<img class="img_alt">
<xsl:attribute name="src">
<xsl:value-of select="$largeImage" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$altLargeImage" />
</xsl:attribute>
</img>
</span>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
</xsl:choose>
<span in-context-edit= "{/Properties/Data/Result/Content/DCR[@name='Content DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/Pragraphs[{position()}]/Paragraphcontent">
<xsl:value-of select="$paragraphContent" disable-output-escaping="yes" />
</span>
</xsl:template>
<!-- normalizes an href to make sure it's valid within LiveSite -->
<xsl:template name="normalize-href">
<xsl:param name="href" />
<xsl:choose>
<!-- translate a /sites vpath to a $PAGE_LINK path -->
<xsl:when test="contains($href, '/sites/') and contains($href, '.page')">
<xsl:text>$PAGE_LINK[</xsl:text>
<xsl:value-of select="substring-before(substring-after(substring-after($href, '/sites/'), '/'), '.page')" />
<xsl:text>]</xsl:text>
<xsl:value-of select="substring-after($href, '?')" />
</xsl:when>
<!-- translate a full vpath to a workarea-relative path -->
<xsl:when test="contains($href, 'WORKAREA')">
<xsl:text>$URL_PREFIX</xsl:text>
<xsl:call-template name="vpath-to-relative">
<xsl:with-param name="vpath" select="$href" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="normalize-space($href)" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- converts a full vpath to a workarea-relative path -->
<xsl:template name="vpath-to-relative">
<xsl:param name="vpath" />
<xsl:text>/</xsl:text>
<xsl:value-of select="substring-after(substring-after($vpath, 'WORKAREA/'), '/')" />
</xsl:template>
<xsl:template match="External/Parameters/Datum" />
</xsl:stylesheet>
Page Name
genericlabel
genericlabel
false
-1
200
200
10
10
0
true
Boeing in Brief
Default
<!DOCTYPE html-entities SYSTEM "http://www.interwoven.com/livesite/xsl/xsl-html.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Skin: Default XSL -->
<xsl:include href="http://www.interwoven.com/livesite/xsl/HTMLTemplates.xsl"/>
<xsl:include href="http://www.interwoven.com/livesite/xsl/StringTemplates.xsl"/>
<xsl:template match="/">
<xsl:variable name="headingType" select="Properties/Datum[@Name='Label Type']/Option[@Selected='true']/Value" />
<xsl:variable name="label" select="Properties/Data/Datum[@Name='Generic Label']" />
<div>
<xsl:choose>
<xsl:when test="$headingType='h1'">
<h1>
<xsl:value-of select="$label" />
</h1>
</xsl:when>
<xsl:when test="$headingType='h2'">
<h2>
<xsl:value-of select="$label" />
</h2>
</xsl:when>
<xsl:when test="$headingType='h3'">
<h3>
<xsl:value-of select="$label" />
</h3>
</xsl:when>
<xsl:when test="$headingType='h4'">
<h4>
<xsl:value-of select="$label" />
</h4>
</xsl:when>
<xsl:when test="$headingType='h5'">
<h5>
<xsl:value-of select="$label" />
</h5>
</xsl:when>
<xsl:when test="$headingType='h6'">
<h6>
<xsl:value-of select="$label" />
</h6>
</xsl:when>
</xsl:choose>
<div class="clear"></div>
</div>
</xsl:template>
</xsl:stylesheet>
Page Name
<!DOCTYPE html-entities SYSTEM "http://www.interwoven.com/livesite/xsl/xsl-html.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Skin: Page Name -->
<xsl:include href="http://www.interwoven.com/livesite/xsl/HTMLTemplates.xsl"/>
<xsl:include href="http://www.interwoven.com/livesite/xsl/StringTemplates.xsl"/>
<xsl:template match="/">
<xsl:variable name="label" select="Properties/Data/Datum[@Name='Generic Label']" />
<div xmlns:fo="http://www.w3.org/1999/XSL/Format" id="pageName">
<xsl:value-of select="$label" />
</div>
</xsl:template>
</xsl:stylesheet>
This component will provide rendition for links DCR.
There are two skins on this component.
1. “Links only”
2. “Links with Content”
Links with Content
Links
Links
false
-1
200
200
10
10
0
true
templatedata/boeing/links/data/corporate/Boeing_in_Brief.xml
Links with Content
<!DOCTYPE html-entities SYSTEM "http://www.interwoven.com/livesite/xsl/xsl-html.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Skin: Default XSL -->
<xsl:include href="http://www.interwoven.com/livesite/xsl/HTMLTemplates.xsl"/>
<xsl:include href="http://www.interwoven.com/livesite/xsl/StringTemplates.xsl"/>
<xsl:template match="/">
<xsl:choose>
<!-- Display a message if the DCR is not selected -->
<xsl:when test="0 = string-length(/Properties/Data/Datum[@Name='Links DCR']/DCR[@Type='links'])" >
<div style="text-align:center;font-style:italic;">Select a Links DCR</div>
</xsl:when>
<xsl:otherwise>
<div id="quicklinks">
<!-- Display the links from the 'Links' DCR -->
<xsl:apply-templates select="Properties/Data/Datum[@Name='Links DCR']/DCR/BoeingContent/linkset"/>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- Loop thru the 'linkset' container from the 'links' dcr -->
<xsl:template match="linkset">
<xsl:variable name="linkType" select="linktype" />
<xsl:variable name="linkListTitle" select="linklisttitle" />
<xsl:variable name="Link" select="link" />
<xsl:variable name="linkListSummary" select="linklistsummary" />
<xsl:variable name="position" select="position()" />
<div class="quicklinks_default">
<!-- Display the title from the 'links' dcr -->
<xsl:choose>
<xsl:when test="string-length($Link) > 0" >
<xsl:if test="string-length($linkListTitle) > 0">
<h3>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$position}]/linklisttitle">
<a>
<xsl:variable name="linkPath">
<xsl:call-template name="normalize-href">
<xsl:with-param name="href" select="$Link" />
</xsl:call-template>
</xsl:variable>
<xsl:attribute name="href">
<xsl:value-of select="$linkPath" />
</xsl:attribute>
<xsl:value-of select="$linkListTitle" />
</a>
</span>
</h3>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:if test="string-length($linkListTitle) > 0">
<h3>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$position}]/linklisttitle">
<xsl:value-of select="$linkListTitle" />
</span>
</h3>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<!-- Display link set summary from the 'links' dcr -->
<xsl:if test="string-length($linkListSummary) > 0" >
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/Boeingcontent/Content/linkset[{$position}]/linklistsummary">
<xsl:value-of select="$linkListSummary" disable-output-escaping="yes" />
</span>
</xsl:if>
<!-- Display links of the linkset from the 'links' dcr -->
<xsl:choose>
<xsl:when test="string-length(links) > 0">
<!-- div class="listbox_quicklinks" -->
<!-- div -->
<xsl:choose>
<!-- Display links as numbered list of the linkset from the 'links' dcr -->
<xsl:when test="$linkType = '2'">
<ol>
<xsl:apply-templates select="links">
<xsl:with-param name="linksType" select="$linkType" />
<xsl:with-param name="linkSetPosition" select="$position" />
</xsl:apply-templates>
</ol>
</xsl:when>
<!-- Display links as numbered list of the linkset from the 'links' dcr -->
<xsl:when test="$linkType = '1'">
<ul>
<xsl:apply-templates select="links">
<xsl:with-param name="linksType" select="$linkType" />
<xsl:with-param name="linkSetPosition" select="$position" />
</xsl:apply-templates>
</ul>
</xsl:when>
<!-- Display links as bullet list of the linkset from the 'links' dcr -->
<xsl:otherwise>
<xsl:apply-templates select="links">
<xsl:with-param name="linksType" select="$linkType" />
<xsl:with-param name="linkSetPosition" select="$position" />
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
<!-- /div -->
</xsl:when>
</xsl:choose>
</div>
<div class="clear"> </div>
</xsl:template>
<!-- Loop thru the 'links' container from the 'links' dcr -->
<xsl:template match="links">
<xsl:param name="linksType" />
<xsl:param name="linkSetPosition" />
<xsl:variable name="linkText" select="linktext" />
<xsl:variable name="linkLink" select="link" />
<xsl:variable name="linkTarget" select="linktarget" />
<xsl:variable name="linkImage" select="image" />
<xsl:variable name="linkAltText" select="alttext" />
<xsl:variable name="linkSummary" select="linksummary" />
<xsl:variable name="textLocation" select="textlocation" />
<xsl:variable name="position" select="position()" />
<!-- Display link summary above the link from the 'links' dcr -->
<xsl:if test="string-length($linkSummary) > 0 and $textLocation = '1'" >
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/Boeingcontent/Content/linkset[{$linkSetPosition}]/links[{$position}]/linksummary">
<xsl:value-of select="$linkSummary" disable-output-escaping="yes" />
</span>
</xsl:if>
<!-- Display the links from the 'links' dcr -->
<xsl:choose>
<xsl:when test="$linksType='1' or $linksType='2'" >
<li>
<!-- begin change here -->
<xsl:choose>
<xsl:when test="string-length($linkLink) > 0" >
<a>
<xsl:variable name="linkLinkPath">
<xsl:call-template name="normalize-href">
<xsl:with-param name="href" select="$linkLink" />
</xsl:call-template>
</xsl:variable>
<xsl:attribute name="href">
<xsl:value-of select="$linkLinkPath" />
</xsl:attribute>
<xsl:choose>
<xsl:when test="string-length($linkTarget) > 0">
<xsl:attribute name="target">_BLANK</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<!-- <xsl:attribute name="target">_PARENT</xsl:attribute> -->
</xsl:otherwise>
</xsl:choose>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$linkSetPosition}]/links[{position()}]">
<xsl:value-of select="$linkText" />
</span>
<xsl:if test="string-length($linkImage) > 0" >
<div class="clear"> </div>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$linkSetPosition}]/links[{$position}]">
<img>
<xsl:attribute name="src">
<xsl:value-of select="$linkImage" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$linkAltText" />
</xsl:attribute>
</img>
</span>
</xsl:if>
</a>
</xsl:when>
<xsl:otherwise>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$linkSetPosition}]/links[{position()}]">
<xsl:value-of select="$linkText" />
</span>
<xsl:if test="string-length($linkImage) > 0" >
<div class="clear"> </div>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$linkSetPosition}]/links[{$position}]">
<img>
<xsl:attribute name="src">
<xsl:value-of select="$linkImage" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$linkAltText" />
</xsl:attribute>
</img>
</span>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<!-- End Change here -->
<xsl:if test="string-length(sublinks) > 0" >
<xsl:choose>
<!-- Display sub links as numbered list of the links from the 'links' dcr -->
<xsl:when test="$linksType = '2'">
<ol>
<xsl:apply-templates select="sublinks" >
<xsl:with-param name="lsPosition" select="$linkSetPosition" />
<xsl:with-param name="linkPosition" select="$position" />
<xsl:with-param name="subLinksType" select="$linksType" />
</xsl:apply-templates>
</ol>
</xsl:when>
<!-- Display sub links as numbered list of the links from the 'links' dcr -->
<xsl:when test="$linksType = '1'">
<ul>
<xsl:apply-templates select="sublinks" >
<xsl:with-param name="lsPosition" select="$linkSetPosition" />
<xsl:with-param name="linkPosition" select="$position" />
<xsl:with-param name="subLinksType" select="$linksType" />
</xsl:apply-templates>
</ul>
</xsl:when>
<!-- Display sub links as bullet list of the links from the 'links' dcr -->
<xsl:otherwise>
<xsl:apply-templates select="sublinks" >
<xsl:with-param name="lsPosition" select="$linkSetPosition" />
<xsl:with-param name="linkPosition" select="$position" />
<xsl:with-param name="subLinksType" select="$linksType" />
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</li>
</xsl:when>
<xsl:otherwise>
<p>
<!-- begin change here -->
<xsl:choose>
<xsl:when test="string-length($linkLink) > 0" >
<a>
<xsl:variable name="linkLinkPath">
<xsl:call-template name="normalize-href">
<xsl:with-param name="href" select="$linkLink" />
</xsl:call-template>
</xsl:variable>
<xsl:attribute name="href">
<xsl:value-of select="$linkLinkPath" />
</xsl:attribute>
<xsl:choose>
<xsl:when test="string-length($linkTarget) > 0">
<xsl:attribute name="target">_BLANK</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<!-- <xsl:attribute name="target">_PARENT</xsl:attribute> -->
</xsl:otherwise>
</xsl:choose>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$linkSetPosition}]/links[{position()}]">
<xsl:value-of select="$linkText" />
</span>
<xsl:if test="string-length($linkImage) > 0" >
<div class="clear"> </div>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$linkSetPosition}]/links[{$position}]">
<img>
<xsl:attribute name="src">
<xsl:value-of select="$linkImage" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$linkAltText" />
</xsl:attribute>
</img>
</span>
</xsl:if>
</a>
</xsl:when>
<xsl:otherwise>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$linkSetPosition}]/links[{position()}]">
<xsl:value-of select="$linkText" />
</span>
<xsl:if test="string-length($linkImage) > 0" >
<div class="clear"> </div>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$linkSetPosition}]/links[{$position}]">
<img>
<xsl:attribute name="src">
<xsl:value-of select="$linkImage" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$linkAltText" />
</xsl:attribute>
</img>
</span>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<!-- End Change here -->
<xsl:if test="string-length(sublinks) > 0" >
<xsl:choose>
<!-- Display sub links as numbered list of the links from the 'links' dcr -->
<xsl:when test="$linksType = '2'">
<ol>
<xsl:apply-templates select="sublinks" >
<xsl:with-param name="lsPosition" select="$linkSetPosition" />
<xsl:with-param name="linkPosition" select="$position" />
<xsl:with-param name="subLinksType" select="$linksType" />
</xsl:apply-templates>
</ol>
</xsl:when>
<!-- Display sub links as numbered list of the links from the 'links' dcr -->
<xsl:when test="$linksType = '1'">
<ul>
<xsl:apply-templates select="sublinks" >
<xsl:with-param name="lsPosition" select="$linkSetPosition" />
<xsl:with-param name="linkPosition" select="$position" />
<xsl:with-param name="subLinksType" select="$linksType" />
</xsl:apply-templates>
</ul>
</xsl:when>
<!-- Display sub links as bullet list of the links from the 'links' dcr -->
<xsl:otherwise>
<xsl:apply-templates select="sublinks" >
<xsl:with-param name="lsPosition" select="$linkSetPosition" />
<xsl:with-param name="linkPosition" select="$position" />
<xsl:with-param name="subLinksType" select="$linksType" />
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</p>
</xsl:otherwise>
</xsl:choose>
<!-- Display link summary below the link from the 'links' dcr -->
<xsl:if test="string-length($linkSummary) > 0 and ($textLocation = '0' or $textLocation = '')" >
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/Boeingcontent/Content/linkset[{$linkSetPosition}]/links[{$position}]/linksummary">
<xsl:value-of select="$linkSummary" disable-output-escaping="yes" />
</span>
</xsl:if>
</xsl:template>
<!-- Loop thru the 'sublinks' container from the 'links' dcr -->
<xsl:template match="sublinks">
<xsl:param name="lsPosition" />
<xsl:param name="linkPosition" />
<xsl:param name="subLinksType" />
<xsl:variable name="subLinkText" select="sublinktext" />
<xsl:variable name="subLink" select="sublink" />
<xsl:variable name="subImage" select="subimage" />
<xsl:variable name="subAltText" select="subalttext" />
<xsl:variable name="subLinkSummary" select="sublinksummary" />
<xsl:variable name="textLocation" select="textlocation" />
<xsl:variable name="position" select="position()" />
<!-- Display sub link summary above the sub link from the 'links' dcr -->
<xsl:if test="string-length($subLinkSummary) > 0 and $textLocation = '1'" >
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/Boeingcontent/Content/linkset[{$lsPosition}]/links[{$linkPosition}]/Sublinks[{$position}]/sublinksummary">
<xsl:value-of select="$subLinkSummary" disable-output-escaping="yes" />
</span>
</xsl:if>
<!-- Display sub link from the 'links' dcr -->
<xsl:choose>
<xsl:when test="$subLinksType = '1' or $subLinksType = '2'">
<li>
<a>
<xsl:variable name="subLinkPath">
<xsl:call-template name="normalize-href">
<xsl:with-param name="href" select="$subLink" />
</xsl:call-template>
</xsl:variable>
<xsl:attribute name="href">
<xsl:value-of select="$subLinkPath" />
</xsl:attribute>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/Boeingcontent/Content/linkset[{$lsPosition}]/links[{$linkPosition}]/Sublinks[{$position}]/sublinktext">
<xsl:value-of select="$subLinkText" />
</span>
<xsl:if test="string-length($subImage) > 0" >
<div class="clear"> </div>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/Boeingcontent/Content/linkset[{$lsPosition}]/links[{$linkPosition}]/Sublinks[{$position}]/subimage">
<img>
<xsl:attribute name="src">
<xsl:value-of select="$subImage" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$subAltText" />
</xsl:attribute>
</img>
</span>
</xsl:if>
</a>
</li>
</xsl:when>
<xsl:otherwise>
<p>
<a>
<xsl:variable name="subLinkPath">
<xsl:call-template name="normalize-href">
<xsl:with-param name="href" select="$subLink" />
</xsl:call-template>
</xsl:variable>
<xsl:attribute name="href">
<xsl:value-of select="$subLinkPath" />
</xsl:attribute>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/Boeingcontent/Content/linkset[{$lsPosition}]/links[{$linkPosition}]/Sublinks[{$position}]/sublinktext">
<xsl:value-of select="$subLinkText" />
</span>
<xsl:if test="string-length($subImage) > 0" >
<div class="clear"> </div>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/Boeingcontent/Content/linkset[{$lsPosition}]/links[{$linkPosition}]/Sublinks[{$position}]/subimage">
<img>
<xsl:attribute name="src">
<xsl:value-of select="$subImage" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$subAltText" />
</xsl:attribute>
</img>
</span>
</xsl:if>
</a>
</p>
</xsl:otherwise>
</xsl:choose>
<!-- Display sub link summary below the sub link from the 'links' dcr -->
<xsl:if test="string-length($subLinkSummary) > 0 and ($textLocation = '0' or $textLocation = '')" >
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/Boeingcontent/Content/linkset[{$lsPosition}]/links[{$linkPosition}]/Sublinks[{$position}]/sublinksummary">
<xsl:value-of select="$subLinkSummary" disable-output-escaping="yes" />
</span>
</xsl:if>
</xsl:template>
<!-- normalizes an href to make sure it's valid within LiveSite -->
<xsl:template name="normalize-href">
<xsl:param name="href" />
<xsl:choose>
<!-- translate a /sites vpath to a $PAGE_LINK path -->
<xsl:when test="contains($href, '/sites/') and contains($href, '.page')">
<xsl:text>$PAGE_LINK[</xsl:text>
<xsl:value-of select="substring-before(substring-after(substring-after($href, '/sites/'), '/'), '.page')" />
<xsl:text>]</xsl:text>
<xsl:value-of select="substring-after($href, '?')" />
</xsl:when>
<!-- translate a full vpath to a workarea-relative path -->
<xsl:when test="contains($href, 'WORKAREA')">
<xsl:text>$URL_PREFIX</xsl:text>
<xsl:call-template name="vpath-to-relative">
<xsl:with-param name="vpath" select="$href" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="normalize-space($href)" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- converts a full vpath to a workarea-relative path -->
<xsl:template name="vpath-to-relative">
<xsl:param name="vpath" />
<xsl:text>/</xsl:text>
<xsl:value-of select="substring-after(substring-after($vpath, 'WORKAREA/'), '/')" />
</xsl:template>
<xsl:template match="External/Parameters/Datum" />
</xsl:stylesheet>
Links only
<!DOCTYPE html-entities SYSTEM "http://www.interwoven.com/livesite/xsl/xsl-html.dtd">
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Skin: Default XSL -->
<xsl:include href="http://www.interwoven.com/livesite/xsl/HTMLTemplates.xsl"/>
<xsl:include href="http://www.interwoven.com/livesite/xsl/StringTemplates.xsl"/>
<xsl:template match="/">
<xsl:choose>
<!-- Display a message if the DCR is not selected -->
<xsl:when test="0 = string-length(/Properties/Data/Datum[@Name='Links DCR']/DCR[@Type='links'])" >
<div style="text-align:center;font-style:italic;">Select a Links DCR</div>
</xsl:when>
<xsl:otherwise>
<div id="quicklinks">
<!-- div xmlns="" class="listbox" -->
<!-- Display the links from the 'Links' DCR -->
<xsl:apply-templates select="Properties/Data/Datum[@Name='Links DCR']/DCR/BoeingContent/linkset"/>
</div>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="linkset">
<xsl:variable name="linkType" select="linktype" />
<xsl:variable name="linkListTitle" select="linklisttitle" />
<xsl:variable name="Link" select="link" />
<xsl:variable name="position" select="position()" />
<div class="quicklinks_default">
<xsl:choose>
<xsl:when test="string-length($Link) > 0" >
<xsl:if test="string-length($linkListTitle) > 0">
<h3>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$position}]/linklisttitle">
<a>
<xsl:variable name="linkPath">
<xsl:call-template name="normalize-href">
<xsl:with-param name="href" select="$Link" />
</xsl:call-template>
</xsl:variable>
<xsl:attribute name="href">
<xsl:value-of select="$linkPath" />
</xsl:attribute>
<xsl:value-of select="$linkListTitle" />
</a>
</span>
</h3>
</xsl:if>
</xsl:when>
<xsl:otherwise>
<xsl:if test="string-length($linkListTitle) > 0">
<h3>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$position}]/linklisttitle">
<xsl:value-of select="$linkListTitle" />
</span>
</h3>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="string-length(links) > 0">
<!-- div class="listbox_quicklinks" -->
<!-- div -->
<xsl:choose>
<xsl:when test="$linkType = '1'">
<ul>
<xsl:apply-templates select="links">
<xsl:with-param name="linksType" select="$linkType" />
<xsl:with-param name="linkSetPosition" select="$position" />
</xsl:apply-templates>
</ul>
</xsl:when>
<xsl:when test="$linkType = '2'">
<ol>
<xsl:apply-templates select="links">
<xsl:with-param name="linksType" select="$linkType" />
<xsl:with-param name="linkSetPosition" select="$position" />
</xsl:apply-templates>
</ol>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="links">
<xsl:with-param name="linksType" select="$linkType" />
<xsl:with-param name="linkSetPosition" select="$position" />
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
<!-- /div -->
</xsl:when>
</xsl:choose>
</div>
<div class="clear"> </div>
</xsl:template>
<xsl:template match="links">
<xsl:param name="linksType" />
<xsl:param name="linkSetPosition" />
<xsl:variable name="linkText" select="linktext" />
<xsl:variable name="linkLink" select="link" />
<xsl:variable name="linkTarget" select="linktarget" />
<xsl:variable name="linkImage" select="image" />
<xsl:variable name="linkAltText" select="alttext" />
<xsl:variable name="position" select="position()" />
<xsl:choose>
<xsl:when test="$linksType = '0'">
<p>
<!-- begin change here -->
<xsl:choose>
<xsl:when test="string-length($linkLink) > 0" >
<a>
<xsl:variable name="linkLinkPath">
<xsl:call-template name="normalize-href">
<xsl:with-param name="href" select="$linkLink" />
</xsl:call-template>
</xsl:variable>
<xsl:attribute name="href">
<xsl:value-of select="$linkLinkPath" />
</xsl:attribute>
<xsl:choose>
<xsl:when test="string-length($linkTarget) > 0">
<xsl:attribute name="target">_BLANK</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<!-- <xsl:attribute name="target">_PARENT</xsl:attribute> -->
</xsl:otherwise>
</xsl:choose>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$linkSetPosition}]/links[{position()}]">
<xsl:value-of select="$linkText" />
</span>
<xsl:if test="string-length($linkImage) > 0" >
<div class="clear"> </div>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$linkSetPosition}]/links[{$position}]">
<img>
<xsl:attribute name="src">
<xsl:value-of select="$linkImage" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$linkAltText" />
</xsl:attribute>
</img>
</span>
</xsl:if>
</a>
</xsl:when>
<xsl:otherwise>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$linkSetPosition}]/links[{position()}]">
<xsl:value-of select="$linkText" />
</span>
<xsl:if test="string-length($linkImage) > 0" >
<div class="clear"> </div>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$linkSetPosition}]/links[{$position}]">
<img>
<xsl:attribute name="src">
<xsl:value-of select="$linkImage" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$linkAltText" />
</xsl:attribute>
</img>
</span>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<!-- End Change here -->
<xsl:if test="string-length(sublinks) > 0">
<xsl:choose>
<xsl:when test="$linksType = '1'">
<ul>
<xsl:apply-templates select="sublinks" >
<xsl:with-param name="lsPosition" select="$linkSetPosition" />
<xsl:with-param name="linkPosition" select="$position" />
<xsl:with-param name="lType" select="$linksType " />
</xsl:apply-templates>
</ul>
</xsl:when>
<xsl:when test="$linksType = '2'">
<ol>
<xsl:apply-templates select="sublinks" >
<xsl:with-param name="lsPosition" select="$linkSetPosition" />
<xsl:with-param name="linkPosition" select="$position" />
<xsl:with-param name="lType" select="$linksType " />
</xsl:apply-templates>
</ol>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="sublinks" >
<xsl:with-param name="lsPosition" select="$linkSetPosition" />
<xsl:with-param name="linkPosition" select="$position" />
<xsl:with-param name="lType" select="$linksType " />
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</p>
</xsl:when>
<xsl:otherwise>
<li>
<!-- begin change here -->
<xsl:choose>
<xsl:when test="string-length($linkLink) > 0" >
<a>
<xsl:variable name="linkLinkPath">
<xsl:call-template name="normalize-href">
<xsl:with-param name="href" select="$linkLink" />
</xsl:call-template>
</xsl:variable>
<xsl:attribute name="href">
<xsl:value-of select="$linkLinkPath" />
</xsl:attribute>
<xsl:choose>
<xsl:when test="string-length($linkTarget) > 0">
<xsl:attribute name="target">_BLANK</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<!-- <xsl:attribute name="target">_PARENT</xsl:attribute> -->
</xsl:otherwise>
</xsl:choose>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$linkSetPosition}]/links[{position()}]">
<xsl:value-of select="$linkText" />
</span>
<xsl:if test="string-length($linkImage) > 0" >
<div class="clear"> </div>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$linkSetPosition}]/links[{$position}]">
<img>
<xsl:attribute name="src">
<xsl:value-of select="$linkImage" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$linkAltText" />
</xsl:attribute>
</img>
</span>
</xsl:if>
</a>
</xsl:when>
<xsl:otherwise>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$linkSetPosition}]/links[{position()}]">
<xsl:value-of select="$linkText" />
</span>
<xsl:if test="string-length($linkImage) > 0" >
<div class="clear"> </div>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$linkSetPosition}]/links[{$position}]">
<img>
<xsl:attribute name="src">
<xsl:value-of select="$linkImage" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$linkAltText" />
</xsl:attribute>
</img>
</span>
</xsl:if>
</xsl:otherwise>
</xsl:choose>
<!-- End Change here -->
<xsl:if test="string-length(sublinks) > 0">
<xsl:choose>
<xsl:when test="$linksType = '1'">
<ul>
<xsl:apply-templates select="sublinks" >
<xsl:with-param name="lsPosition" select="$linkSetPosition" />
<xsl:with-param name="linkPosition" select="$position" />
<xsl:with-param name="lType" select="$linksType " />
</xsl:apply-templates>
</ul>
</xsl:when>
<xsl:when test="$linksType = '2'">
<ol>
<xsl:apply-templates select="sublinks" >
<xsl:with-param name="lsPosition" select="$linkSetPosition" />
<xsl:with-param name="linkPosition" select="$position" />
<xsl:with-param name="lType" select="$linksType " />
</xsl:apply-templates>
</ol>
</xsl:when>
<xsl:otherwise>
<xsl:apply-templates select="sublinks" >
<xsl:with-param name="lsPosition" select="$linkSetPosition" />
<xsl:with-param name="linkPosition" select="$position" />
<xsl:with-param name="lType" select="$linksType " />
</xsl:apply-templates>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</li>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="sublinks">
<xsl:param name="lsPosition" />
<xsl:param name="linkPosition" />
<xsl:param name="lType" />
<xsl:variable name="subLinkText" select="sublinktext" />
<xsl:variable name="subLink" select="sublink" />
<xsl:variable name="subImage" select="subimage" />
<xsl:variable name="subAltText" select="subalttext" />
<xsl:variable name="position" select="position()" />
<xsl:choose>
<xsl:when test="$lType = '0'">
<p>
<a>
<xsl:variable name="subLinkPath">
<xsl:call-template name="normalize-href">
<xsl:with-param name="href" select="$subLink" />
</xsl:call-template>
</xsl:variable>
<xsl:attribute name="href">
<xsl:value-of select="$subLinkPath" />
</xsl:attribute>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$lsPosition}]/links[{$linkPosition}]/Sublinks[{$position}]">
<xsl:value-of select="$subLinkText" />
</span>
<xsl:if test="string-length($subImage) > 0" >
<div class="clear"> </div>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$lsPosition}]/links[{$linkPosition}]/Sublinks[{$position}]">
<img>
<xsl:attribute name="src">
<xsl:value-of select="$subImage" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$subAltText" />
</xsl:attribute>
</img>
</span>
</xsl:if>
</a>
</p>
</xsl:when>
<xsl:otherwise>
<li>
<a>
<xsl:variable name="subLinkPath">
<xsl:call-template name="normalize-href">
<xsl:with-param name="href" select="$subLink" />
</xsl:call-template>
</xsl:variable>
<xsl:attribute name="href">
<xsl:value-of select="$subLinkPath" />
</xsl:attribute>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$lsPosition}]/links[{$linkPosition}]/Sublinks[{$position}]">
<xsl:value-of select="$subLinkText" />
</span>
<xsl:if test="string-length($subImage) > 0" >
<div class="clear"> </div>
<span in-context-edit= "{/Properties/Data/Datum[@Name='Links DCR']/@ID}" dcr-item-paths="/BoeingContent/Content/linkset[{$lsPosition}]/links[{$linkPosition}]/Sublinks[{$position}]">
<img>
<xsl:attribute name="src">
<xsl:value-of select="$subImage" />
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$subAltText" />
</xsl:attribute>
</img>
</span>
</xsl:if>
</a>
</li>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- normalizes an href to make sure it's valid within LiveSite -->
<xsl:template name="normalize-href">
<xsl:param name="href" />
<xsl:choose>
<!-- translate a /sites vpath to a $PAGE_LINK path -->
<xsl:when test="contains($href, '/sites/') and contains($href, '.page')">
<xsl:text>$PAGE_LINK[</xsl:text>
<xsl:value-of select="substring-before(substring-after(substring-after($href, '/sites/'), '/'), '.page')" />
<xsl:text>]</xsl:text>
<xsl:value-of select="substring-after($href, '?')" />
</xsl:when>
<!-- translate a full vpath to a workarea-relative path -->
<xsl:when test="contains($href, 'WORKAREA')">
<xsl:text>$URL_PREFIX</xsl:text>
<xsl:call-template name="vpath-to-relative">
<xsl:with-param name="vpath" select="$href" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="normalize-space($href)" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<!-- converts a full vpath to a workarea-relative path -->
<xsl:template name="vpath-to-relative">
<xsl:param name="vpath" />
<xsl:text>/</xsl:text>
<xsl:value-of select="substring-after(substring-after($vpath, 'WORKAREA/'), '/')" />
</xsl:template>
<xsl:template match="External/Parameters/Datum" />
</xsl:stylesheet>