Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create Image Map with XSLT

Status
Not open for further replies.

smillieha

Technical User
Aug 24, 2007
7
0
0
US
Hi,

I am attempting to create hotspots using xslt. Can this be done? I have done several searches on the web and have come up with nada. I am very new to xslt and I am still learning the rules.

Here is a sample of the xml:
Code:
<figure id="fig-0001">
   <title>Module #1</title>
   <graphic boardno="ICN-NSSMS-A-C2-30-50-1-53711-00057-A-01-S.gif" xlink:type="simple">
      <hotspot coords="103,218,172,232" id="fig-0001-hot-0001" title="Module 6" visibility="visible">
         <xref xlink:actuate="onRequest" xlink:href="NSSMS-A-C2-30-50-34A-054A-Z_001-" xlink:show="other" xlink:type="simple"/>
      </hotspot>
    </graphic>
</figure>

Here is a sample of the xslt:
Code:
<xsl:stylesheet version="1.0" xmlns:xlink="[URL unfurl="true"]http://www.w3.org/1999/xlink"[/URL] xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform"[/URL] xmlns:xq="[URL unfurl="true"]http://namespaces.softwareag.com/tamino/XQuery/result">[/URL]
<xsl:template match="graphic" mode="PageBody">
  <xsl:attribute name="id">
    <xsl:value-of select="$module-code"/>_
    <xsl:value-of select="../@id"/>
  </xsl:attribute>
  <a name="{@id}"/>
  <xsl:choose>
    <xsl:when test="contains(@boardno,'.cgm')">
      <xsl:call-template name="isoviewer"/>
    </xsl:when>
    <xsl:when test="contains(@boardno,'.avi')">
      <a href="images/dmimages/{@boardno}">
        Click here to play video.
      </a>
    </xsl:when>[COLOR=blue]
  <xsl:when test="count(hotspot)&gt;0">
    <map id="map-0001" name="map-0001">
	<xsl:for-each select="hotspot">
	  <area alt="@title" href="xref/@xlink:href" shape="rect" coords="@coords"/>
        </xsl:for-each>
    </map>
    <img src="images/dmimages/{@boardno}" usemap="map-0001"/>
  </xsl:when>[/color blue]
  <xsl:otherwise>
    <img src="images/dmimages/{@boardno}"/>
	<br/>
  </xsl:otherwise>
</xsl:choose>
</xsl:template>

Thanks.
 
What's the problem? What's the desired output? To output the attribute values you need to use AVT's:
Code:
<area alt="{@title}" href="{xref/@xlink:href}" shape="rect" coords="{@coords}"/>

Jon

"I don't regret this, but I both rue and lament it.
 
Right now when I view the output (using IE as the browser) I see the graphic and when I move the mouse over the graphic, where the hotspots should be, I see no indication of a link. I want the output to change the cursor, to show that there is a link, and take the user to the link when the hotspot is clicked on.

I incorporated the changes you mentioned.

Appreciate any help.

 
[1] ><a name="{@id}"/>
[tt]<a name="{[red]../[/red]@id}"/>[/tt]
[2] ><area alt="@title" href="xref/@xlink:href" shape="rect" coords="@coords"/>
Advised.
 
What is the HTML output you are getting, what do you want and what are your full XML/XSL?

Jon

"I don't regret this, but I both rue and lament it.
 
Jon,

I found one problem with my initial attempt, I was missing the # in the usemap attribute. With that fix I am now getting the cursor to change when it hovers over a link and the title appears, now my problem is that when you click on the link it brings you to a blank page. So it looks like my href is incorrect. As requested I've posted the html, xsl and xml below.

Here is the html output:
Code:
<table xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:xlink="[URL unfurl="true"]http://www.w3.org/1999/xlink"[/URL] xmlns:xq="[URL unfurl="true"]http://namespaces.softwareag.com/tamino/XQuery/result"[/URL] border="0" cellpadding="0" cellspacing="0" width="100%">
	<tr>
		<td>
			<img src="images/blank.gif" width="10">
		</td>
		<td>
			<table border="0" cellpadding="0" cellspacing="0" width="100%" ID="Table1">
				<tr>
					<td>
						<img src="images/top_left_corner.gif">
					</td>
					<td bgcolor="white" width="100%" style="border-top: 1px solid #CCCCCC;">
						<img src="images/blank.gif">
					</td>
					<td>
						<img src="images/top_right_corner.gif">
					</td>
				</tr>
				<tr>
					<td bgcolor="white" style="border-left: 1px solid #CCCCCC;padding-left: 10px;">
						<img src="images/blank.gif">
					</td>
					<td bgcolor="white">
						<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
							<tr>
								<td height="20">
		<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-bottom: 1px solid black;">
										<tr>
				<td>
												<strong style="font-size: 11pt;">IRP-1A3A9 Radar Interface CCA - Module #1 (E2) Traverse Pseudo Scan
													<input type="hidden" id="bookmarkname" value="1A3A9 Radar Interface CCA - Module #1 (E2) Traverse Pseudo Scan">
												</strong>
											</td>
										</tr>
										<tr>
											<td class="page-header" style="color:#999999;">
												<small>DMC-NSSMS-A-C2-30-50-39A-054A-Z</small>
											</td>
											<td class="page-header" style="color: #999999;">
												<small>Class: 01</small>
											</td>
										</tr>
										<tr>
										<td>
											<img src="images/blank.gif" height="10">
										</td>
									</tr>
								</table>
							</td>
						</tr>
						<tr>
							<td valign="top">
								<br>
								<br>
								<a name="fig-0001"></a>
								<span class="para-header">1A3A9 Radar Interface CCA With Rear Transition Module - Module #1</span>
								<br>
								<a name="fig-0001"></a>
	[b]							<map id="map-0001" name="map-0001">
									<area alt="Module 6" href="NSSMS-A-C2-30-50-34A-054A-Z_001-" shape="rect" coords="103,218,172,232">
									<area alt="Module 5" href="NSSMS-A-C2-30-50-35A-054A-Z_001-" shape="rect" coords="103,272,172,285">
								</map>
								<img src="C:/Documents and Settings/Administrator.IETP/Desktop/final TMs/IRP SLC MCP viewer/images/dmimages/ICN-NSSMS-A-C2-30-50-1-53711-00057-A-01-S.gif" usemap="#map-0001">[/b]
								<br><br>
								<a name=""></a>
								<strong style="font-size: 10pt;"></strong>
								<br><a name="tab-0001"></a>
								<span class="para-header">1A3A9 Module #1 Signals</span>
								<br>
								<table border="1">
									<table-column column-width="0.25in" />
									<table-column column-width="0.45in" />
									<table-column column-width="0.25in" />
									<table-column column-width="0.45in" />
									<table-column column-width="0.25in" />
									<table-column column-width="0.45in" />
									<table-column column-width="0.25in" />
									<table-column column-width="0.45in" />
									<table-column column-width="0.25in" />
									<th font-weight="bold">
										<tr>
											<td style="border: 1px solid black; padding: 5px;" colspan="NaN">SIGNAL NAME</td>
											<td style="border: 1px solid black; padding: 5px;" colspan="NaN">SIGNAL SPECIFICS</td>
											<td style="border: 1px solid black; padding: 5px;" colspan="NaN">MODULE #1 E2</td>
											<td style="border: 1px solid black; padding: 5px;" colspan="NaN">1A3A9</td>
											<td style="border: 1px solid black; padding: 5px;" colspan="NaN">1A7A12</td>
											<td style="border: 1px solid black; padding: 5px;" colspan="NaN">1A7A12</td>
											<td style="border: 1px solid black; padding: 5px;" colspan="NaN">1</td>
											<td style="border: 1px solid black; padding: 5px;" colspan="NaN">External Unit</td>
											<td style="border: 1px solid black; padding: 5px;" colspan="NaN">SW261-TR-MMO-030</td>
										</tr>
									</th>
									<tbody>
										<tr>
											<td style="border: 1px solid black; padding: 5px;" colspan="NaN">Traverse Pseudo Scan TSSS</td>
											<td style="border: 1px solid black; padding: 5px;" colspan="NaN">15 Vp-p</td>
											<td style="border: 1px solid black; padding: 5px;" colspan="NaN">M1Ch03</td>
											<td style="border: 1px solid black; padding: 5px;" colspan="NaN">P2-29c</td>
											<td style="border: 1px solid black; padding: 5px;" colspan="NaN">RP2-29c</td>
											<td style="border: 1px solid black; padding: 5px;" colspan="NaN">J5-12</td>
											<td style="border: 1px solid black; padding: 5px;" colspan="NaN">J3-47</td>
											<td style="border: 1px solid black; padding: 5px;" colspan="NaN"></td>
											<td style="border: 1px solid black; padding: 5px;" colspan="NaN"></td>
										</tr>
									</tbody>
								</table>
							</td>
						</tr>
						<tr>
							<td height="1"> </td>
						</tr>
						<tr>
							<td style="border-top: 1px solid black;">
								<table border="0" cellpadding="0" cellspacing="0" width="100%">
									<tr>
										<td class="page-header">DMC-NSSMS-A-C2-30-50-39A-054A-Z</td>
										<td class="page-header">          Class: 01</td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</td>
				<td bgcolor="white" style="border-right: 1px solid #CCCCCC;padding-left: 10px;">
					<img src="images/blank.gif">
				</td>
			</tr>
			<tr>
				<td>
					<img src="images/bottom_left_corner.gif">
				</td>
				<td bgcolor="white" width="100%" style="border-bottom: 1px solid #CCCCCC;">
					<img src="images/blank.gif">
				</td>
				<td>
					<img src="images/bottom_right_corner.gif"></td>
				</tr>
			</table>
		</td>
		<td>
			<img src="images/blank.gif" width="10">
			</td>
		</tr>
		<tr>
			<td colspan="3">
				<img src="images/blank.gif" width="10">
			</td>
		</tr>
	</table>
	<div xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:xlink="[URL unfurl="true"]http://www.w3.org/1999/xlink"[/URL] xmlns:xq="[URL unfurl="true"]http://namespaces.softwareag.com/tamino/XQuery/result"[/URL] style="display: ;position: absolute;" id="alerts">
		<table width="100%" height="50" border="0" cellpadding="0" cellspacing="0" bgcolor="">
			<tr>
				<td />
			</tr>
		</table>
	</div>
	<div xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:xlink="[URL unfurl="true"]http://www.w3.org/1999/xlink"[/URL] xmlns:xq="[URL unfurl="true"]http://namespaces.softwareag.com/tamino/XQuery/result"[/URL] style="display:none;">#C#;#C#</div><div xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:xlink="[URL unfurl="true"]http://www.w3.org/1999/xlink"[/URL] xmlns:xq="[URL unfurl="true"]http://namespaces.softwareag.com/tamino/XQuery/result"[/URL] style="display:none;">#W#;#W#</div><div xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:xlink="[URL unfurl="true"]http://www.w3.org/1999/xlink"[/URL] xmlns:xq="[URL unfurl="true"]http://namespaces.softwareag.com/tamino/XQuery/result"[/URL] style="display:none;">#N#;#N#</div>

Here is the xml:
Code:
<dmodule xmlns:ino="[URL unfurl="true"]http://namespaces.softwareag.com/tamino/response2"[/URL] xmlns:rdf="[URL unfurl="true"]http://www.w3.org/1999/02/22-rdf-syntax-ns#"[/URL] xmlns:tsd="[URL unfurl="true"]http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition"[/URL] xmlns:xlink="[URL unfurl="true"]http://www.w3.org/1999/xlink"[/URL] xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance"[/URL] xsi:noNamespaceSchemaLocation="[URL unfurl="true"]http://www.sesi-cad.com/IETPS/Schemas/S1000D_DM_descript.xsd">[/URL]
	<rdf:Description xmlns:dc="[URL unfurl="true"]http://www.purl.org/dc/elements/1.1/"[/URL] xmlns:rdf="[URL unfurl="true"]http://www.w3.org/1999/02/22-rdf-syntax-ns#"[/URL] xmlns:tsd="[URL unfurl="true"]http://namespaces.softwareag.com/tamino/TaminoSchemaDefinition">[/URL]
		<dc:Title>IRP</dc:Title>
		<dc:Creator>NSWC PHD S53</dc:Creator>
		<dc:Subject>MK57</dc:Subject>
		<dc:Publisher>53711</dc:Publisher>
		<dc:Contributor>NSWC PHD S53</dc:Contributor>
		<dc:Date>2006-02-23</dc:Date>
		<dc:Type>text</dc:Type>
		<dc:Format>text/xml</dc:Format>
		<dc:Language>en</dc:Language>
		<dc:Rights>01</dc:Rights>
	</rdf:Description>
	<idstatus>
		<dmaddres>
			<dmc>
				<avee>
					<modelic>NSSMS</modelic>
					<sdc>A</sdc>
					<chapnum>C2</chapnum>
					<section>3</section>
					<subsect>0</subsect>
					<subject>50</subject>
					<discode>39</discode>
					<discodev>A</discodev>
					<incode>054</incode>
					<incodev>A</incodev>
					<itemloc>Z</itemloc>
				</avee>
			</dmc>
			<dmtitle>
				<techname>IRP</techname>
				<infoname>1A3A9 Radar Interface CCA - Module #1 (E2) Traverse Pseudo Scan</infoname>
			</dmtitle>
			<issno issno="001" type="new"/>
			<issdate day="23" month="02" year="2006"/>
		</dmaddres>
		<status>
			<security caveat="cv01" class="01" commcls="cc01"/>
			<dmsize/>
			<rpc rpcname=""/>
			<orig origname=""/>
			<applic change="add" level="" mark="" rfc="">
				<model model="">
					<csnref change="add" level="" mark="" refcsn="" refipp="" refisn="" refrpc="" rfc="" xlink:actuate="onRequest" xlink:show="new" xlink:type="simple"/>
				</model>
			</applic>
			<techstd>
				<authblk/>
				<authex/>
				<notes/>
			</techstd>
			<brexref>
				<refdm change="add" level="" mark="" rfc="" target="" xlink:actuate="onRequest" xlink:show="replace" xlink:type="simple"/>
			</brexref>
			<qa>
				<unverif/>
			</qa>
			<sbc/>
			<skill skill="sk01"/>
			<remarks>None</remarks>
		</status>
	</idstatus>
	<content>
		<descript>
			<para0>[b]
				<figure id="fig-0001">
					<title>1A3A9 Radar Interface CCA With Rear Transition Module - Module #1</title>
					<graphic boardno="ICN-NSSMS-A-C2-30-50-1-53711-00057-A-01-S.gif" reprohgt="1648" reprowid="3111" xlink:type="simple">
						<hotspot coords="103,218,172,232" id="fig-0001-hot-0001" title="Module 6" visibility="visible">
							<xref xlink:actuate="onRequest" xlink:href="NSSMS-A-C2-30-50-34A-054A-Z_001-" xlink:show="other" xlink:type="simple"/>
						</hotspot>
						<hotspot coords="103,272,172,285" id="fig-0001-hot-0016" title="Module 5" visibility="visible">
							<xref xlink:actuate="onRequest" xlink:href="NSSMS-A-C2-30-50-35A-054A-Z_001-" xlink:show="other" xlink:type="simple"/>
						</hotspot>
					</graphic>
				</figure>[/b]
				<subpara1>
					<table frame="all" id="tab-0001" tocentry="1">
						<title>1A3A9 Module #1 Signals</title>
						<tgroup align="left" charoff="50" cols="9">
							<colspec colname="1" colwidth="0.25in"/>
							<colspec colname="2" colwidth="0.45in"/>
							<colspec colname="3" colwidth="0.25in"/>
							<colspec colname="4" colwidth="0.45in"/>
							<colspec colname="5" colwidth="0.25in"/>
							<colspec colname="6" colwidth="0.45in"/>
							<colspec colname="7" colwidth="0.25in"/>
							<colspec colname="8" colwidth="0.45in"/>
							<colspec colname="9" colwidth="0.25in"/>
							<thead valign="bottom">
								<row rowsep="1">
									<entry align="center" colname="1" colsep="1" morerows="0" rotate="0" valign="top">SIGNAL NAME</entry>
									<entry align="center" colname="2" colsep="1" morerows="0" rotate="0" valign="top">SIGNAL SPECIFICS</entry>
									<entry align="center" colname="3" colsep="1" morerows="0" rotate="0" valign="top">MODULE #1 E2</entry>
									<entry align="center" colname="4" colsep="1" morerows="0" rotate="0" valign="top">1A3A9</entry>
									<entry align="center" colname="5" colsep="1" morerows="0" rotate="0" valign="top">1A7A12</entry>
									<entry align="center" colname="6" colsep="1" morerows="0" rotate="0" valign="top">1A7A12</entry>
									<entry align="center" colname="7" colsep="1" morerows="0" rotate="0" valign="top">1</entry>
									<entry align="center" colname="8" colsep="1" morerows="0" rotate="0" valign="top">External Unit</entry>
									<entry align="center" colname="9" colsep="1" morerows="0" rotate="0" valign="top">SW261-TR-MMO-030</entry>
								</row>
							</thead>
							<tbody valign="top">
								<row>
									<entry colname="1" morerows="0" rotate="0" valign="top">Traverse Pseudo Scan TSSS</entry>
									<entry colname="2" morerows="0" rotate="0" valign="top">15 Vp-p</entry>
									<entry colname="3" morerows="0" rotate="0" valign="top">M1Ch03</entry>
									<entry colname="4" morerows="0" rotate="0" valign="top">P2-29c</entry>
									<entry colname="5" morerows="0" rotate="0" valign="top">RP2-29c</entry>
									<entry colname="6" morerows="0" rotate="0" valign="top">J5-12</entry>
									<entry colname="7" morerows="0" rotate="0" valign="top">J3-47</entry>
									<entry colname="8" morerows="0" rotate="0" valign="top"/>
									<entry colname="9" morerows="0" rotate="0" valign="top"/>
								</row>
							</tbody>
						</tgroup>
					</table>
				</subpara1>
				<subpara1>
					<title>Notes:</title>
					<para>
						<seqlist>
							<item>Gnd connects to Chassis Ground.</item>
							<item>DC Rtn connects to +25V PS Return.</item>
						</seqlist>
					</para>
				</subpara1>
			</para0>
		</descript>
	</content>
</dmodule>

Here is the xsl
Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xlink="[URL unfurl="true"]http://www.w3.org/1999/xlink"[/URL] xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:xsl="[URL unfurl="true"]http://www.w3.org/1999/XSL/Transform"[/URL] xmlns:xq="[URL unfurl="true"]http://namespaces.softwareag.com/tamino/XQuery/result">[/URL]
	<xsl:output method="html" version="1.0" encoding="UTF-8" omit-xml-declaration="yes" indent="no"/>
	<xsl:strip-space elements="*"/>
	<xsl:param name="module-code">
		<xsl:apply-templates select="//dmc/age | //dmc/avee" mode="link"/>
	</xsl:param>
	<xsl:param name="img-url">..</xsl:param>
	<xsl:template match="text()"/>
	<xsl:template match="text()" mode="PageHeader"/>
	<xsl:template match="*[not(ancestor-or-self::para)]/text()" mode="PageBody"/>
	<xsl:template match="text()" mode="PageFooter"/>
	<xsl:template match="/">
		<table border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr>
				<td>
					<img src="images/blank.gif" width="10"/>
				</td>
				<td>
					<table border="0" cellpadding="0" cellspacing="0" width="100%" ID="Table1">
						<tr>
							<td>
								<img src="images/top_left_corner.gif"/>
							</td>
							<td bgcolor="white" width="100%" style="border-top: 1px solid #CCCCCC;">
								<img src="images/blank.gif"/>
							</td>
							<td>
								<img src="images/top_right_corner.gif"/>
							</td>
						</tr>
						<tr>
							<td bgcolor="white" style="border-left: 1px solid #CCCCCC;padding-left: 10px;">
								<img src="images/blank.gif"/>
							</td>
							<td bgcolor="white">
								<table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
									<tr>
										<td height="20">
											<xsl:apply-templates select="*" mode="PageHeader"/>
										</td>
									</tr>
									<tr>
										<td valign="top">
											<xsl:apply-templates select="*" mode="PageBody"/>
										</td>
									</tr>
									<tr>
										<td height="1">&#160;</td>
									</tr>
									<tr>
										<td style="border-top: 1px solid black;">
											<xsl:call-template name="PageFooter"/>
										</td>
									</tr>
								</table>
							</td>
							<td bgcolor="white" style="border-right: 1px solid #CCCCCC;padding-left: 10px;">
								<img src="images/blank.gif"/>
							</td>
						</tr>
						<tr>
							<td>
								<img src="images/bottom_left_corner.gif"/>
							</td>
							<td bgcolor="white" width="100%" style="border-bottom: 1px solid #CCCCCC;">
								<img src="images/blank.gif"/>
							</td>
							<td>
								<img src="images/bottom_right_corner.gif"/>
							</td>
						</tr>
					</table>
				</td>
				<td>
					<img src="images/blank.gif" width="10"/>
				</td>
			</tr>
			<tr>
				<td colspan="3">
					<img src="images/blank.gif" width="10"/>
				</td>
			</tr>
		</table>
		<!-- LOAD CAUTIONS/WARNINGS/NOTES -->
		<div style="display: ;position: absolute;" id="alerts">
			<table width="100%" height="50" border="0" cellpadding="0" cellspacing="0" bgcolor="">
				<tr>
					<td/>
				</tr>
			</table>
		</div>
		<div style="display:none;">
			<xsl:variable name="delimited-caution-text">
				<xsl:apply-templates select="//caution" mode="HiddenValues"/>
			</xsl:variable>
			<xsl:text>#C#</xsl:text>
			<xsl:value-of select="substring($delimited-caution-text,1,string-length($delimited-caution-text)-1)"/>
			<xsl:text>;#C#</xsl:text>
		</div>
		<div style="display:none;">
			<xsl:variable name="delimited-warning-text">
				<xsl:apply-templates select="//warning" mode="HiddenValues"/>
			</xsl:variable>
			<xsl:text>#W#</xsl:text>
			<xsl:value-of select="substring($delimited-warning-text,1,string-length($delimited-warning-text)-1)"/>
			<xsl:text>;#W#</xsl:text>
		</div>
		<div style="display:none;">
			<xsl:variable name="delimited-notes-text">
				<xsl:apply-templates select="//note" mode="HiddenValues"/>
			</xsl:variable>
			<xsl:text>#N#</xsl:text>
			<xsl:value-of select="substring($delimited-notes-text,1,string-length($delimited-notes-text)-1)"/>
			<xsl:text>;#N#</xsl:text>
		</div>
	</xsl:template>
	<xsl:template match="dmc[parent::dmaddres]" mode="PageHeader">
		<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-bottom: 1px solid black;">
			<tr>
				<td>
					<strong style="font-size: 11pt;">
						<xsl:value-of select="//techname"/>-<xsl:value-of select="//infoname"/>
						<input type="hidden" id="bookmarkname" value="{//infoname}"/>
					</strong>
				</td>
			</tr>
			<tr>
				<td class="page-header" style="color:#999999;">
					<small>
						<xsl:apply-templates select="age" mode="PageHeader"/>
						<xsl:apply-templates select="avee" mode="PageHeader"/>
					</small>
				</td>
				<td class="page-header" style="color: #999999;">
					<small>
						Class: <xsl:apply-templates select="//security[parent::status]/@class"/>
					</small>
				</td>
			</tr>
			<tr>
				<td>
					<img src="images/blank.gif" height="10"/>
				</td>
			</tr>
		</table>
	</xsl:template>
	<xsl:template match="age" mode="PageHeader">
		<xsl:text>DMC-</xsl:text>
		<xsl:value-of select="modelic"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="supeqvc"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="ecscs"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="eidc"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="cidc"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="discode"/>
		<xsl:value-of select="discodev"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="incode"/>
		<xsl:value-of select="incodev"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="itemloc"/>
	</xsl:template>
	<!-- *********************************************************************************************** -->
	<!-- PageHeader Template Matches  -->
	<!-- *********************************************************************************************** -->
	<xsl:template match="avee[parent::dmc]" mode="PageHeader">
		<xsl:text>DMC-</xsl:text>
		<xsl:value-of select="modelic"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="sdc"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="chapnum"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="section"/>
		<xsl:value-of select="subsect"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="subject"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="discode"/>
		<xsl:value-of select="discodev"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="incode"/>
		<xsl:value-of select="incodev"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="itemloc"/>
	</xsl:template>
	<!--<xsl:template match="issdate[parent::status]" mode="PageHeader">
		<td>
			Revision Date:
			<xsl:value-of select="@day"/>
			<xsl:text>-</xsl:text>
			<xsl:value-of select="@month"/>
			<xsl:text>-</xsl:text>
			<xsl:value-of select="@year"/>
		</td>
	</xsl:template>-->
	<!-- *********************************************************************************************** -->
	<!-- PageBody Template Matches -->
	<!-- *********************************************************************************************** -->
	<xsl:template match="subpara1" mode="PageBody">
		<br/>
		<br/>
		<a name="{@id}"/>
		<strong style="font-size: 10pt;">
			<xsl:value-of select="title"/>
		</strong>
		<br/>
		<xsl:apply-templates mode="PageBody"/>
	</xsl:template>
	<xsl:template match="subpara2" mode="PageBody">
		<br/>
		<br/>
		<a name="{@id}"/>
		<span class="para-header">
			<xsl:value-of select="title"/>
		</span>
		<br/>
		<xsl:apply-templates mode="PageBody"/>
	</xsl:template>
	<xsl:template match="subpara3" mode="PageBody">
		<br/>
		<br/>
		<a name="{@id}"/>
		<span class="para-header">
			<xsl:value-of select="title"/>
		</span>
		<br/>
		<xsl:apply-templates mode="PageBody"/>
	</xsl:template>
	<xsl:template match="subpara4" mode="PageBody">
		<br/>
		<br/>
		<a name="{@id}"/>
		<span class="para-header">
			<xsl:value-of select="title"/>
		</span>
		<br/>
		<xsl:apply-templates mode="PageBody"/>
	</xsl:template>
	<xsl:template match="//para" mode="PageBody">
		<br/>
		<br/>
		<xsl:apply-templates mode="PageBody"/>
	</xsl:template>
	<!--***************************************-->
	<!-- LINKING FUNCTIONALITY -->
	<!--***************************************-->
	<xsl:template match="xref" mode="PageBody">
		<xsl:variable name="doc-name">
			<xsl:choose>
				<xsl:when test="string-length(@xlink:href) &gt; 0">
					<xsl:choose>
						<xsl:when test="contains(@xlink:href,'.xml')">
							<xsl:value-of select="substring-before(@xlink:href,'.xml')"/>
						</xsl:when>
						<xsl:otherwise>
							<xsl:value-of select="@xlink:href"/>
						</xsl:otherwise>
					</xsl:choose>
				</xsl:when>
				<xsl:otherwise>
					<xsl:value-of select="$module-code"/>
				</xsl:otherwise>
			</xsl:choose>
		</xsl:variable>
		<xsl:variable name="doc-name-with-fragment-id">
			<xsl:value-of select="$doc-name"/>
			<xsl:if test="not(contains($doc-name,'#'))">
				<xsl:text>#</xsl:text>
				<xsl:value-of select="@xrefid"/>
			</xsl:if>
		</xsl:variable>
		<a href="transform.html?dmc={$doc-name-with-fragment-id}">
			<xsl:attribute name="title"><xsl:value-of select="."/></xsl:attribute>
			<xsl:attribute name="onclick"><xsl:text>InsertTraversedLink '</xsl:text><xsl:value-of select="concat(normalize-space(//infoname),' - ', normalize-space(.))"/><xsl:text>','</xsl:text><xsl:value-of select="$doc-name-with-fragment-id"/><xsl:text>'</xsl:text></xsl:attribute>
			<xsl:value-of select="."/>
		</a>
	</xsl:template>
	<!--***************************************-->
	<!--***************************************-->
	<xsl:template match="emphasis" mode="PageBody">
		<b>
			<xsl:value-of select="."/>
		</b>
	</xsl:template>
	<xsl:template match="supscrpt" mode="PageBody">
	<sup>
		<xsl:value-of select="."/>
		</sup>
	</xsl:template>
	<xsl:template match="p" mode="PageBody">
		<xsl:value-of select="."/>
	</xsl:template>
	<xsl:template match="subscrpt" mode="PageBody">
	<sub>
		<xsl:value-of select="."/>
		</sub>
	</xsl:template>[b]
	<!--***************************************-->
	<!-- FIGURES AND HOTSPOTS -->
	<!--***************************************-->
	<xsl:template match="figure" mode="PageBody">
		<br/>
		<br/>
		<a name="{@id}"/>
		<span class="para-header">
			<xsl:value-of select="title"/>
		</span>
		<br/>
		<xsl:apply-templates mode="PageBody"/>
	</xsl:template>
	<xsl:template match="sheet" mode="PageBody">
		<br/>
		<p>
			<b>Sheet No. 
				<xsl:value-of select="@sheetno"/> of <xsl:value-of select="@total"/>
			</b>
		</p>
		<xsl:apply-templates mode="PageBody"/>
	</xsl:template>
	<xsl:template match="graphic" mode="PageBody">
		<xsl:attribute name="id"><xsl:value-of select="$module-code"/>_
			<xsl:value-of select="../@id"/></xsl:attribute>
		<a name="{../@id}"/>
		<xsl:choose>
			<xsl:when test="contains(@boardno,'.cgm')">
				<xsl:call-template name="isoviewer"/>
			</xsl:when>
			<xsl:when test="contains(@boardno,'.avi')">
				<a href="images/dmimages/{@boardno}">Click here to play video.</a>
			</xsl:when>
			<xsl:when test="count(hotspot)&gt;0">
			<map id="map-0001" name="map-0001">
			<xsl:for-each select="hotspot">
				<area alt="{@title}" href="{xref/@xlink:href}" shape="rect" coords="{@coords}">
				</area>
			</xsl:for-each>
			</map>
				<img src="images/dmimages/{@boardno}" usemap="{map-0001}"/>
			</xsl:when>
			<xsl:otherwise>
				<img src="images/dmimages/{@boardno}"/>
				<br/>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:template>[/b]
	<!--***************************************-->
	<!--*******WARNINGS*CAUTIONS*NOTES*****-->
	<!--***************************************-->
	<xsl:template match="warning" mode="HiddenValues">
		<xsl:apply-templates mode="PageBody"/>
		<xsl:text>|</xsl:text>
	</xsl:template>
	<xsl:template match="caution" mode="HiddenValues">
		<xsl:apply-templates mode="PageBody"/>
		<xsl:text>|</xsl:text>
	</xsl:template>
	<xsl:template match="note" mode="HiddenValues">
		<xsl:apply-templates mode="PageBody"/>
		<xsl:text>|</xsl:text>
	</xsl:template>
	<xsl:template match="notes" mode="HiddenValues">
		<xsl:apply-templates mode="PageBody"/>
		<xsl:text>|</xsl:text>
	</xsl:template>
	<!--***************************************-->
	<!--********IPC*****-->
	<!--***************************************-->
	<xsl:template match="ipc" mode="PageBody">
		<table cellspacing="0" cellpadding="6" width="100%" style="border-top:solid black .75pt;border-left:none;border-bottom:solid black .75pt;border-right:none;">
			<xsl:attribute name="id"><xsl:value-of select="../@id"/></xsl:attribute>
			<tr>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
					Find no.
				</td>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
					Item seq. no.
				</td>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
  					Quantity
  				</td>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
  					Unit of Issue
  				</td>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
  					CAGE
  				</td>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
  					Part no.
  				</td>
				<td valign="top" width="100px" style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
  					Description
  				</td>
				<xsl:if test="csn/isn/nsn">
					<td style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
					    Nato stock no
				    </td>
				</xsl:if>
				<xsl:if test="csn/isn/rfd">
					<td valign="top" style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
					    Ref. designator
				    </td>
				</xsl:if>
			</tr>
			<xsl:apply-templates mode="PageBody"/>
		</table>
	</xsl:template>
	<xsl:template match="csn" mode="PageBody">
		<tr>
			<xsl:for-each select="isn">
				<td valign="top" style="border-left:none;border-bottom:none;">
					<xsl:if test="position()=1">
						<nobr>
							<xsl:value-of select="parent::csn/@item"/>
						</nobr>
					</xsl:if>
				</td>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
					<nobr>
						<xsl:value-of select="@isn"/>
					</nobr>
				</td>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
					<nobr>
						<xsl:value-of select="qna"/>
					</nobr>
				</td>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
					<nobr>
						<xsl:value-of select="pas/uoi"/>
					</nobr>
				</td>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
					<nobr>
						<xsl:value-of select="mfc"/>
					</nobr>
				</td>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
					<nobr>
						<xsl:value-of select="pnr"/>
					</nobr>
				</td>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
					<nobr>
						<xsl:value-of select="pas/dfp"/>
					</nobr>
				</td>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
					<nobr>
						<xsl:value-of select="rfd"/>
					</nobr>
				</td>
				<xsl:apply-templates mode="PageBody"/>
			</xsl:for-each>
		</tr>
	</xsl:template>
	<!-- 
	<xsl:template match="para0">
		<xsl:value-of select="."/>
	</xsl:template>
	<xsl:template match="legend">
		<xsl:value-of select="."/>
	</xsl:template>
	<xsl:template match="tgroup">
		<xsl:value-of select="."/>
	</xsl:template>
	<xsl:template match="spanspec">
		<xsl:value-of select="."/>
	</xsl:template>
	<xsl:template match="tfoot">
		<xsl:value-of select="."/>
	</xsl:template>
  -->
	<!--***************************************-->
	<!--************ TABLE DATA*************** -->
	<!--***************************************-->
	<xsl:template match="table" mode="PageBody">
		<a name="{@id}"/>
		<span class="para-header">
			<xsl:value-of select="title"/>
		</span>
		<br/>
		<table border="1">
			<xsl:apply-templates mode="PageBody"/>
		</table>
	</xsl:template>
	<xsl:template match="thead" mode="PageBody">
		<th>
			<xsl:attribute name="font-weight">bold</xsl:attribute>
			<xsl:apply-templates mode="PageBody"/>
		</th>
	</xsl:template>
	<xsl:template match="tbody" mode="PageBody">
		<tbody>
			<xsl:apply-templates mode="PageBody"/>
		</tbody>
	</xsl:template>
	<xsl:template match="row" mode="PageBody">
		<tr>
			<xsl:apply-templates mode="PageBody"/>
		</tr>
	</xsl:template>
	<xsl:template match="entry" mode="PageBody">
		<td style="border: 1px solid black; padding: 5px;">
			<xsl:attribute name="colspan"><xsl:value-of select="@nameend - @namest +1"/></xsl:attribute>
			<xsl:value-of select="text()"/>
			<xsl:apply-templates mode="PageBody"/>
		</td>
	</xsl:template>
	<xsl:template match="colspec" mode="PageBody">
		<table-column column-width="{@colwidth}"/>
		<xsl:apply-templates mode="PageBody"/>
	</xsl:template>
	<!--***************************************-->
	<!-- **************Procedure*************** -->
	<!--***************************************-->
	<xsl:template match="proced[text() != '']" mode="PageBody">
		<xsl:apply-templates mode="PageBody"/>
	</xsl:template>
	<xsl:template match="csnref[text() != '']" mode="PageBody">
		<a href="transform.html?dmc={@refcsn}">
			<xsl:value-of select="."/>
			<br/>
		</a>
	</xsl:template>
	<xsl:template match="reqconds" mode="PageBody">
		<table cellspacing="0" cellpadding="6" width="100%" style="border-top:solid black 1.5pt;border-left:none;border-bottom:solid black .75pt;border-right:none;">
			<xsl:for-each select="reqcond">
				<tr>
					<td>
						<xsl:value-of select="text()"/>
						<xsl:apply-templates mode="PageBody"/>
					</td>
				</tr>
			</xsl:for-each>
		</table>
	</xsl:template>
	<xsl:template match="supeqli" mode="PageBody">
		<h5>Support Equipment</h5>
		<table cellspacing="0" cellpadding="6" width="100%" style="border-top:none;border-left:none;border-bottom:solid black 1.5pt;border-right:none;">
			<xsl:attribute name="id"><xsl:value-of select="../@id"/></xsl:attribute>
			<tr>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:solid black .75pt;border-right:none;">
  					Quantity
  				</td>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:solid black .75pt;border-right:none;">
  					CAGE
  				</td>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:solid black .75pt;border-right:none;">
  					Part no.
  				</td>
				<td valign="top" width="100px" style="border-top:none;border-left:none;border-bottom:solid black .75pt;border-right:none;">
  					Description
  				</td>
				<td style="border-top:none;border-left:none;border-bottom:solid black .75pt;border-right:none;">
					    NSN
				    </td>
			</tr>
			<xsl:apply-templates mode="PageBody"/>
			<xsl:for-each select="supequi">
				<tr>
					<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
						<nobr>
							<xsl:value-of select="qty"/>
						</nobr>
					</td>
					<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
						<nobr>
							<xsl:value-of select="identno/mfc"/>
						</nobr>
					</td>
					<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
						<nobr>
							<xsl:value-of select="identno/pnr"/>
						</nobr>
					</td>
					<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
						<nobr>
							<xsl:value-of select="nomen"/>
						</nobr>
					</td>
					<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
						<nobr>
							<xsl:value-of select="nsn/@nsn"/>
						</nobr>
					</td>
					<xsl:apply-templates mode="PageBody"/>
				</tr>
			</xsl:for-each>
		</table>
	</xsl:template>
	<xsl:template match="supplyli" mode="PageBody">
		<h5>Supplies</h5>
		<table cellspacing="0" cellpadding="6" width="100%" style="border-top:none;border-left:none;border-bottom:solid black 1.5pt;border-right:none;">
			<xsl:attribute name="id"><xsl:value-of select="../@id"/></xsl:attribute>
			<tr>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
  					Quantity
  				</td>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
  					CAGE
  				</td>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
  					Part no.
  				</td>
				<td valign="top" width="100px" style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
  					Description
  				</td>
				<td style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
					    NSN
				    </td>
			</tr>
			<xsl:apply-templates mode="PageBody"/>
			<xsl:for-each select="supply">
				<tr>
					<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
						<nobr>
							<xsl:value-of select="qty"/>
						</nobr>
					</td>
					<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
						<nobr>
							<xsl:value-of select="identno/mfc"/>
						</nobr>
					</td>
					<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
						<nobr>
							<xsl:value-of select="identno/pnr"/>
						</nobr>
					</td>
					<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
						<nobr>
							<xsl:value-of select="nomen"/>
						</nobr>
					</td>
					<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
						<nobr>
							<xsl:value-of select="nsn/@nsn"/>
						</nobr>
					</td>
					<xsl:apply-templates mode="PageBody"/>
				</tr>
			</xsl:for-each>
		</table>
	</xsl:template>
	<xsl:template match="sparesli" mode="PageBody">
		<h5>Spares</h5>
		<table cellspacing="0" cellpadding="6" width="100%" style="border-top:none;border-left:none;border-bottom:solid black 1.5pt;border-right:none;">
			<xsl:attribute name="id"><xsl:value-of select="../@id"/></xsl:attribute>
			<tr>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
  					Quantity
  				</td>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
  					CAGE
  				</td>
				<td valign="top" style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
  					Part no.
  				</td>
				<td valign="top" width="100px" style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
  					Description
  				</td>
				<td style="border-top:none;border-left:none;border-bottom:solid black 0.75pt;border-right:none;">
					    NSN
				    </td>
			</tr>
			<xsl:apply-templates mode="PageBody"/>
			<xsl:for-each select="spare">
				<tr>
					<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
						<nobr>
							<xsl:value-of select="qty"/>
						</nobr>
					</td>
					<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
						<nobr>
							<xsl:value-of select="identno/mfc"/>
						</nobr>
					</td>
					<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
						<nobr>
							<xsl:value-of select="identno/pnr"/>
						</nobr>
					</td>
					<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
						<nobr>
							<xsl:value-of select="nomen"/>
						</nobr>
					</td>
					<td valign="top" style="border-top:none;border-left:none;border-bottom:none;border-right:none;">
						<nobr>
							<xsl:value-of select="nsn/@nsn"/>
						</nobr>
					</td>
					<xsl:apply-templates mode="PageBody"/>
				</tr>
			</xsl:for-each>
		</table>
	</xsl:template>
	<xsl:template match="safecond" mode="PageBody">
		<xsl:apply-templates mode="PageBody"/>
	</xsl:template>
	<!-- Main function -->
	<xsl:template match="step1" mode="PageBody">
		<a name="{@id}"/>
		<strong style="font-size: 10pt;">
			<xsl:value-of select="title"/>
		</strong>
		<xsl:apply-templates mode="PageBody"/>
	</xsl:template>
	<!--***************************************-->
	<!-- ***************LISTS ***************** -->
	<!--***************************************-->
	<xsl:template match="seqlist/item" mode="PageBody">
		<li style="list-style-type: none;">
			<table>
				<tr valign="top">
					<td width="15">
						<xsl:choose>
							<xsl:when test="ancestor::item">
								<xsl:number format="a"/>
							</xsl:when>
							<xsl:otherwise>
								<xsl:number/>
							</xsl:otherwise>
						</xsl:choose>
					</td>
					<td>
						<xsl:apply-templates mode="PageBody"/>
					</td>
				</tr>
			</table>
		</li>
	</xsl:template>
	<xsl:template match="randlist/item" mode="PageBody">
		<ul>
			<li style="list-style-type: none;">
				<xsl:apply-templates mode="PageBody"/>
			</li>
		</ul>
	</xsl:template>
	<xsl:template match="acronym" mode="PageBody">
		<li style="list-style-type: none;">
			<strong>
				<xsl:value-of select="acroterm"/>
			</strong>
			<li style="list-style-type: none;">
				<xsl:value-of select="acrodef"/>
			</li>
			<p/>
		</li>
	</xsl:template>
	<xsl:template match="note" mode="PageBody">
		<p/>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border: 5px solid #000099;" align="center">
			<tr>
				<td>&#160;</td>
			</tr>
			<tr>
				<td align="center" height="1">
					<img src="images/note.gif"/>
				</td>
			</tr>
			<tr>
				<td>&#160;</td>
			</tr>
			<tr>
				<td height="100%" style="padding-left: 10px; padding-right: 10px;">
					<strong>
						<xsl:apply-templates mode="PageBody"/>
					</strong>
				</td>
			</tr>
			<tr>
				<td>&#160;</td>
			</tr>
		</table>
		<p/>
	</xsl:template>
	<xsl:template match="warning" mode="PageBody">
		<p/>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border: 5px solid #CC0000;" align="center">
			<tr>
				<td>&#160;</td>
			</tr>
			<tr>
				<td align="center" height="1">
					<img src="images/warning.gif"/>
				</td>
			</tr>
			<tr>
				<td>&#160;</td>
			</tr>
			<tr>
				<td height="100%" style="padding-left: 10px; padding-right: 10px;">
					<strong>
						<xsl:apply-templates mode="PageBody"/>
					</strong>
				</td>
			</tr>
			<tr>
				<td>&#160;</td>
			</tr>
		</table>
		<p/>
	</xsl:template>
	<xsl:template match="caution" mode="PageBody">
		<p/>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" style="border: 5px solid Yellow;" align="center">
			<tr>
				<td>&#160;</td>
			</tr>
			<tr>
				<td align="center" height="1">
					<img src="images/caution.gif"/>
				</td>
			</tr>
			<tr>
				<td>&#160;</td>
			</tr>
			<tr>
				<td height="100%" style="padding-left: 10px; padding-right: 10px;">
					<strong>
						<xsl:apply-templates mode="PageBody"/>
					</strong>
				</td>
			</tr>
			<tr>
				<td>&#160;</td>
			</tr>
		</table>
		<p/>
	</xsl:template>
	<!-- *********************************************************************************************** -->
	<!-- PageFooter Template Matches -->
	<!-- *********************************************************************************************** -->
	<xsl:template name="PageFooter">
		<table border="0" cellpadding="0" cellspacing="0" width="100%">
			<tr>
				<td class="page-header">
					<xsl:apply-templates select="//age | //avee" mode="PageHeader"/>
				</td>
				<td class="page-header">
          Class: <xsl:apply-templates select="//security[parent::status]/@class"/>
				</td>
			</tr>
		</table>
	</xsl:template>
	<xsl:template name="isoviewer">
		<OBJECT id="Disoviewx1" style="WIDTH: 752px; HEIGHT: 720px" classid="clsid:865B2280-2B71-11D1-BC01-006097AC382A" VIEWASTEXT="true">
			<param name="src" value="images/dmimages/{@boardno}"/>
		</OBJECT>
	</xsl:template>
	<xsl:template match="avee" mode="display">
		<xsl:text>DMC-</xsl:text>
		<xsl:value-of select="modelic"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="sdc"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="chapnum"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="section"/>
		<xsl:value-of select="subsect"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="subject"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="discode"/>
		<xsl:value-of select="discodev"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="incode"/>
		<xsl:value-of select="incodev"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="itemloc"/>
		<xsl:text>_</xsl:text>
		<xsl:value-of select="../../issno/@issno"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="../../issno/@inwork"/>
	</xsl:template>
	<xsl:template match="age" mode="link">
		<xsl:value-of select="modelic"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="supeqvc"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="ecscs"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="eidc"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="cidc"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="discode"/>
		<xsl:value-of select="discodev"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="incode"/>
		<xsl:value-of select="incodev"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="itemloc"/>
		<xsl:text>_</xsl:text>
		<xsl:value-of select="../../issno/@issno"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="../../issno/@inwork"/>
	</xsl:template>
	<xsl:template match="avee" mode="link">
		<xsl:value-of select="modelic"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="sdc"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="chapnum"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="section"/>
		<xsl:value-of select="subsect"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="subject"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="discode"/>
		<xsl:value-of select="discodev"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="incode"/>
		<xsl:value-of select="incodev"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="itemloc"/>
		<xsl:text>_</xsl:text>
		<xsl:value-of select="../../issno/@issno"/>
		<xsl:text>-</xsl:text>
		<xsl:value-of select="../../issno/@inwork"/>
	</xsl:template>
</xsl:stylesheet>
 
I got it to work. I changed the href attribute in the area element. The href is using variables similar to those used in the xref section.

Not sure if this is the cleanest way to do it but it works.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top