sololb45
08-28-2006, 05:40 PM
It is XML, which I am a noob too, but everything works fine in Explorer but when I use Firefox I get this error message:
Error loading stylesheet: Parsing an XSLT stylesheet failed.
Here is the start of the code but not everything:
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<!-- Navistar ISIS-2 Stylesheet -->
<!-- Version 0.01 2/1/00 -->
<!-- Copyright 2003 International Truck and Engine Corporation -->
<!-- change November, 2000 to add support for <sub> and <sup> -->
<!-- change January, 2001 to fix hotlnk to only use # if the xrefid is valued -->
<!-- change January, 2001 to remove the support for the con_toc which would add link to TOC -->
<!-- change February, 2001 to add support for <partsinfo> -->
<!-- change March, 2001 to have exhotlnk open a new window -->
<!-- change April, 2001 to fix numbering and initializing of step1 and step2 -->
<!-- change May, 2001 to fix spacing of steps -->
<!-- change May, 2001 to add logo to SFN header -->
<!-- change July, 2001 for optional auto numbers on callouts -->
<!-- change October, 2001 to remove generated text from recall because user had been hardcoding it in SGML -->
<!-- change January, 2002 to revise how much space a graphic and figure take up -->
<!-- change March, 2002 to add an stitle element for the search routine to find. This style sheet hides it from the browser. -->
<!-- change April, 2002 to add SSM. -->
<!-- change April, 2002 to get randlist to work in entry -->
<!-- change May, 2002 to get para to work in entry -->
<!-- change May, 2002 to display the foreword -->
<!-- change Jan, 2003 to revise the copyright to 2003 -->
<!-- change Feb, 2003 to remove exclamation graphic from Caution (only want for Warning) -->
<!-- change Feb, 2003 subjectfile has been added to svcsection but we don't want it displayed so put in change -->
<!-- change March, 2003 to add verbatim and line -->
<!-- change April, 2003 to add circle R to logo on SFN header change was actually made to graphic, not here -->
<!-- change March, 2004 to revise the copyright to 2004 -->
<!-- change July, 2004 to include new <regulation> tag -->
<!-- change Jan 24, 2005 to include ID for para and svcproc -->
<!-- change Feb, 2005 to revise the copyright to 2005 -->
<!-- change Feb 11, 2005 to fix include ID for para and svcproc so that it only does it if ID exists -->
<!-- change Jan, 2006 to revise the copyright to 2006 -->
<!-- change April, 2006 to test a meta tag that can be used to include information for the search but not display it -->
<xsl:script><![CDATA[
var singleq
singleq = "\'"
var counter = 0
var alphact = 0
var letterct = ""
var callout1Counter = 0
var callout1Alphact = 0
var callout2Counter = 0
var callout2Alphact = 0
function resetCallout1() {
callout1Counter = 0;
callout1Alphact = 0;
}
function countCallout1() {
callout1Counter = callout1Counter + 1;
return callout1Counter;
}
function countCallout1alpha() {
callout1Counter = callout1Counter + 1;
letterct = formatIndex(callout1Counter, "a");
return letterct;
}
function resetCallout2() {
callout2Counter = 0;
callout2Alphact = 0;
}
function countCallout2() {
callout2Counter = callout2Counter + 1;
return callout2Counter;
}
function countCallout2alpha() {
callout2Counter = callout2Counter + 1;
letterct = formatIndex(callout2Counter, "a");
return letterct;
}
function count() {
counter = counter + 1;
return counter;
}
function reset() {
counter = 0;
}
function alphaCount() {
alphact = alphact + 1;
letterct = formatIndex(alphact, "a");
return letterct;
}
function alphaReset() {
alphact = 0;
letterct = "";
}
]]></xsl:script>
<!-- This script sets up variables and functions that will be used to support this stylesheet. -->
<!-- The singleq variable is used in when passing parameter values that need an additional level -->
<!-- of quoting that is evaluated at run-time. Use with eval tags. -->
<!-- The count and alpha count functions are used to support the numbering and lettering of steps. -->
<!-- ******************** GENERAL STYLES ********************* -->
<xsl:template><xsl:apply-templates/></xsl:template>
<!-- This is the basic "apply the templates" template -->
<xsl:template match="//isis">
<xsl:element name="HTML">
<xsl:attribute name="lang"><xsl:value-of select="@lang"/></xsl:attribute>
<!-- March 12, 2002 - add title -->
<!-- <HEAD><TITLE><xsl:value-of select="//sgmlhead/stitle"/></TITLE> -->
<HEAD><TITLE><xsl:value-of select="//stitle"/></TITLE>
<LINK rel="STYLESHEET" type="text/css" href="../style.css"/></HEAD>
<BODY STYLE="font-size:10pt;margin-left:15px;font-family:arial;">
<BR/><xsl:apply-templates/>
<BR/><BR/><P ALIGN="CENTER" STYLE="font-size:8pt;font-family:arial;">© 2006 International Truck and Engine Corporation</P><BR/>
</BODY>
</xsl:element>
</xsl:template>
<!-- This is the top-level rule for ISIS-II XML. -->
<!-- I think that this standard wrapper tag should begin and end all of your XML files -->
<!-- so that general styles can be applied to all the documents. -->
<!-- This template also adds a footer with the copyright statement. -->
<xsl:template match="text()">
<xsl:value-of/>
</xsl:template>
<!-- Emit the actual text between the tags. -->
<!-- Jan 24, 2005 -->
<xsl:template match="para">
<xsl:choose>
<xsl:when test="@id[.>' ']">
<xsl:element name="DIV">
<xsl:attribute name="ID"><xsl:value-of select="@id"/></xsl:attribute>
</xsl:element>
</xsl:when>
</xsl:choose>
<!-- end Jan 24, 2005 -->
<P>
<xsl:apply-templates/>
</P>
</xsl:template>
<!-- Std. paragraph template. -->
<xsl:template match="hotlnk">
<!-- new January 23, 2001
-->
<xsl:choose>
<xsl:when test="con_toc">
</xsl:when>
<xsl:otherwise>
<xsl:element name="A">
<!-- new January 23, 2001
-->
<!-- only use the # if the xrefid is valued January 5, 2001 -->
<xsl:choose>
<xsl:when test="@xrefid[.>' ']">
<xsl:attribute name="HREF"><xsl:value-of select="@document"/>#<xsl:value-of select="@xrefid"/></xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="HREF"><xsl:value-of select="@document"/></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<!-- Phil added the following one line -->
<xsl:attribute name="target"><xsl:value-of select="@target"/></xsl:attribute>
<xsl:apply-templates/>
</xsl:element>
<!-- new January 23, 2001
-->
</xsl:otherwise>
</xsl:choose>
<!-- new January 23, 2001
-->
</xsl:template>
<!-- Assume that xrefid attr value will contain # character and/or URL if needed. -->
<!-- Phil added the following code for exhotlnk -->
<xsl:template match="exhotlnk">
<xsl:element name="A">
<xsl:choose>
<xsl:when test="@xrefid[.>' ']">
<xsl:attribute name="HREF"><xsl:value-of select="@document"/>#<xsl:value-of select="@xrefid"/></xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="HREF"><xsl:value-of select="@document"/></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<!-- <xsl:attribute name="target">_top</xsl:attribute> -->
<!-- change March 15, 2001 to open in different window -->
<xsl:attribute name="target">exhotlnk</xsl:attribute>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template match="figure">
<P/>
<!-- taking out center January 31, 2002
<xsl:element name="CENTER">
-->
<xsl:element name="DIV">
<xsl:attribute name="ID"><xsl:value-of select="@id"/></xsl:attribute>
<xsl:attribute name="STYLE">text-align:center;z-index:0;border:1px solid gray;</xsl:attribute>
<xsl:choose>
<xsl:when test="@figsize[.='col-wide']">
<xsl:attribute name="STYLE">width:520px;text-align:center;z-index:0;border:1px solid gray;</xsl:attribute>
</xsl:when>
<!-- January 31, 2002
<xsl:when test="@figsize[.='pg-wide']">
<xsl:attribute name="STYLE">width:520px;text-align:center;z-index:0;border:1px solid gray;</xsl:attribute>
</xsl:when>
<xsl:when test="@figsize[.='full-pg']">
<xsl:attribute name="STYLE">width:520px;text-align:center;z-index:0;border:1px solid gray;</xsl:attribute>
</xsl:when>
-->
<xsl:otherwise>
<!-- January 31, 2002 -->
<xsl:attribute name="STYLE">width:650px;text-align:center;z-index:0;border:1px solid gray;</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<!-- the following was changed by Phil to use <IMG> when the graphic is jpeg -->
<xsl:choose>
<xsl:when test="graphic/@type[.='jpeg']">
<xsl:element name="IMG">
<xsl:attribute name="SRC"><xsl:value-of select="graphic/@filename"/></xsl:attribute>
</xsl:element>
</xsl:when>
<xsl:when test="graphic/@type[.='gif']">
<xsl:element name="IMG">
<xsl:attribute name="SRC"><xsl:value-of select="graphic/@filename"/></xsl:attribute>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<!-- <xsl:if test="graphic/@type[.$ne$'jpeg']"> -->
<!-- end of phil change - look for end if below also -->
<!-- new Phil change for buttons -->
<!-- some graphics do not have id attribute. Try using it with figure id -->
<xsl:element name="OBJECT">
<xsl:attribute name="ID">CGM<xsl:value-of select="@id"/><xsl:value-of select="graphic/@id"/></xsl:attribute>
<xsl:choose>
<!-- the following added december 13, 2000 -->
<!-- the following for width commented out May 22, 2002 because too many small sizes appeared -->
<!-- <xsl:when test="graphic/@scalefitwidth[.>' ']">
<xsl:attribute name="WIDTH"><xsl:value-of select="graphic/@scalefitwidth"/></xsl:attribute>
</xsl:when> -->
<!-- <xsl:when test="graphic/@scalefitheight[.>' ']">
</xsl:when> -->
<xsl:when test="@figsize[.='col-wide']">
<xsl:attribute name="WIDTH">514px</xsl:attribute>
</xsl:when>
<xsl:when test="@figsize[.='pg-wide']">
<xsl:attribute name="WIDTH">650px</xsl:attribute>
</xsl:when>
<xsl:when test="@figsize[.='full-pg']">
<xsl:attribute name="WIDTH">650px</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="WIDTH">514px</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="graphic/@scalefitheight[.>' ']">
<xsl:attribute name="HEIGHT"><xsl:value-of select="graphic/@scalefitheight"/></xsl:attribute>
</xsl:when>
<!-- <xsl:when test="graphic/@scalefitwidth[.>' ']">
</xsl:when> -->
<xsl:when test="@figsize[.='col-wide']">
<xsl:attribute name="HEIGHT">500px</xsl:attribute>
</xsl:when>
<xsl:when test="@figsize[.='pg-wide']">
<xsl:attribute name="HEIGHT">500px</xsl:attribute>
</xsl:when>
<xsl:when test="@figsize[.='full-pg']">
<xsl:attribute name="HEIGHT">800px</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="HEIGHT">500px</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="CLASSID">clsid:F5D98C43-DB16-11CF-8ECA-0000C0FD59C7</xsl:attribute>
<!-- <xsl:attribute name="CODEBASE">http://www.intercap.com/acgm/code/Acgm.cab</xsl:attribute> -->
<!-- <xsl:attribute name="CODEBASE">http://wwwapp.ntc.navistar.com/Pharos/Acgm.cab#Version=7,0,4,0</xsl:attribute> -->
<xsl:attribute name="CODEBASE">/downloads/Acgm.cab#Version=7,0,5,0</xsl:attribute>
<xsl:element name="PARAM">
<xsl:attribute name="NAME">FileName</xsl:attribute>
<xsl:attribute name="VALUE">./<xsl:value-of select="graphic/@filename"/>#zoom -fit</xsl:attribute>
<!-- <xsl:attribute name="VALUE"><xsl:value-of select="graphic/@filename"/></xsl:attribute> -->
</xsl:element>
</xsl:element>
<P size="-2">(Right click on graphic to bring up an option list)</P>
<!-- Phil -->
<!-- </xsl:if> -->
<!-- Phil -->
</xsl:otherwise>
</xsl:choose>
<SPAN> </SPAN>
<xsl:apply-templates/>
</xsl:element>
<P/><BR/>
<!-- </xsl:element>
-->
</xsl:template>
<!-- This template sets the CGM display size based on the "figsize" attr. value. -->
<xsl:template match="caption">
<P STYLE="padding-left:10px;padding-right:10px;text-align:center;margin-top:3px;">
<FONT SIZE="+1" STYLE="color:black;font-weight:normal;"><xsl:apply-templates/></FONT></P>
</xsl:template>
<!-- Add "Figure <xsl:eval>count()</xsl:eval>." for figure auto numbering. -->
<xsl:template match="calloutgroup">
<xsl:eval>resetCallout1()</xsl:eval>
<xsl:eval>resetCallout2()</xsl:eval>
<xsl:apply-templates/><BR/>
</xsl:template>
<xsl:template match="callout1">
<xsl:eval>resetCallout2()</xsl:eval>
<P STYLE="margin-left:10px;margin-top:3px;margin-bottom:0px;text-align:left;font-size:8pt;"><xsl:apply-templates/></P>
</xsl:template>
<xsl:template match="callout1[@type = 'arabic']">
<xsl:eval>resetCallout2()</xsl:eval>
<P STYLE="margin-left:10px;margin-top:3px;margin-bottom:0px;text-align:left;font-size:8pt;">
<xsl:eval>countCallout1()</xsl:eval>. <xsl:apply-templates/></P>
</xsl:template>
<xsl:template match="callout1[@type = 'alpha']">
<xsl:eval>resetCallout2()</xsl:eval>
<P STYLE="margin-left:10px;margin-top:3px;margin-bottom:0px;text-align:left;font-size:8pt;">
<xsl:eval>countCallout1alpha()</xsl:eval>. <xsl:apply-templates/></P>
</xsl:template>
<xsl:template match="callout2">
<BR/><FONT STYLE="position:relative;left:11px;margin-top:0px;margin-bottom:0px;"><xsl:apply-templates/></FONT>
</xsl:template>
<!-- I am assuming that this is an indented sub-component callout -->
<xsl:template match="callout2[@type = 'arabic']">
<BR/><FONT STYLE="position:relative;left:11px;margin-top:0px;margin-bottom:0px;"><xsl:eval>countCallout2()</xsl:eval>. <xsl:apply-templates/></FONT>
</xsl:template>
<xsl:template match="callout2[@type = 'alpha']">
<BR/><FONT STYLE="position:relative;left:11px;margin-top:0px;margin-bottom:0px;"><xsl:eval>countCallout2alpha()</xsl:eval>. <xsl:apply-templates/></FONT>
</xsl:template>
<xsl:template match="emph">
<B><xsl:apply-templates/></B>
</xsl:template>
<xsl:template match="emph[@type = 'italic']">
<I><xsl:apply-templates/></I>
</xsl:template>
<xsl:template match="emph[@type = 'italundersc']">
<I><U><xsl:apply-templates/></U></I>
</xsl:template>
<xsl:template match="emph[@type = 'boldundersc']">
<B><U><xsl:apply-templates/></U></B>
</xsl:template>
<xsl:template match="emph[@type = 'boldital']">
<B><I><xsl:apply-templates/></I></B>
</xsl:template>
<xsl:template match="emph[@type = 'underscr']">
<U><xsl:apply-templates/></U>
</xsl:template>
<xsl:template match="emph[@type = 'boldundersc']">
<B><U><xsl:apply-templates/></U></B>
</xsl:template>
....there is more to the code but I think the error is in the begining somewhere. Please help, I have to finish this project today.
Jamie Coomes
Error loading stylesheet: Parsing an XSLT stylesheet failed.
Here is the start of the code but not everything:
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<!-- Navistar ISIS-2 Stylesheet -->
<!-- Version 0.01 2/1/00 -->
<!-- Copyright 2003 International Truck and Engine Corporation -->
<!-- change November, 2000 to add support for <sub> and <sup> -->
<!-- change January, 2001 to fix hotlnk to only use # if the xrefid is valued -->
<!-- change January, 2001 to remove the support for the con_toc which would add link to TOC -->
<!-- change February, 2001 to add support for <partsinfo> -->
<!-- change March, 2001 to have exhotlnk open a new window -->
<!-- change April, 2001 to fix numbering and initializing of step1 and step2 -->
<!-- change May, 2001 to fix spacing of steps -->
<!-- change May, 2001 to add logo to SFN header -->
<!-- change July, 2001 for optional auto numbers on callouts -->
<!-- change October, 2001 to remove generated text from recall because user had been hardcoding it in SGML -->
<!-- change January, 2002 to revise how much space a graphic and figure take up -->
<!-- change March, 2002 to add an stitle element for the search routine to find. This style sheet hides it from the browser. -->
<!-- change April, 2002 to add SSM. -->
<!-- change April, 2002 to get randlist to work in entry -->
<!-- change May, 2002 to get para to work in entry -->
<!-- change May, 2002 to display the foreword -->
<!-- change Jan, 2003 to revise the copyright to 2003 -->
<!-- change Feb, 2003 to remove exclamation graphic from Caution (only want for Warning) -->
<!-- change Feb, 2003 subjectfile has been added to svcsection but we don't want it displayed so put in change -->
<!-- change March, 2003 to add verbatim and line -->
<!-- change April, 2003 to add circle R to logo on SFN header change was actually made to graphic, not here -->
<!-- change March, 2004 to revise the copyright to 2004 -->
<!-- change July, 2004 to include new <regulation> tag -->
<!-- change Jan 24, 2005 to include ID for para and svcproc -->
<!-- change Feb, 2005 to revise the copyright to 2005 -->
<!-- change Feb 11, 2005 to fix include ID for para and svcproc so that it only does it if ID exists -->
<!-- change Jan, 2006 to revise the copyright to 2006 -->
<!-- change April, 2006 to test a meta tag that can be used to include information for the search but not display it -->
<xsl:script><![CDATA[
var singleq
singleq = "\'"
var counter = 0
var alphact = 0
var letterct = ""
var callout1Counter = 0
var callout1Alphact = 0
var callout2Counter = 0
var callout2Alphact = 0
function resetCallout1() {
callout1Counter = 0;
callout1Alphact = 0;
}
function countCallout1() {
callout1Counter = callout1Counter + 1;
return callout1Counter;
}
function countCallout1alpha() {
callout1Counter = callout1Counter + 1;
letterct = formatIndex(callout1Counter, "a");
return letterct;
}
function resetCallout2() {
callout2Counter = 0;
callout2Alphact = 0;
}
function countCallout2() {
callout2Counter = callout2Counter + 1;
return callout2Counter;
}
function countCallout2alpha() {
callout2Counter = callout2Counter + 1;
letterct = formatIndex(callout2Counter, "a");
return letterct;
}
function count() {
counter = counter + 1;
return counter;
}
function reset() {
counter = 0;
}
function alphaCount() {
alphact = alphact + 1;
letterct = formatIndex(alphact, "a");
return letterct;
}
function alphaReset() {
alphact = 0;
letterct = "";
}
]]></xsl:script>
<!-- This script sets up variables and functions that will be used to support this stylesheet. -->
<!-- The singleq variable is used in when passing parameter values that need an additional level -->
<!-- of quoting that is evaluated at run-time. Use with eval tags. -->
<!-- The count and alpha count functions are used to support the numbering and lettering of steps. -->
<!-- ******************** GENERAL STYLES ********************* -->
<xsl:template><xsl:apply-templates/></xsl:template>
<!-- This is the basic "apply the templates" template -->
<xsl:template match="//isis">
<xsl:element name="HTML">
<xsl:attribute name="lang"><xsl:value-of select="@lang"/></xsl:attribute>
<!-- March 12, 2002 - add title -->
<!-- <HEAD><TITLE><xsl:value-of select="//sgmlhead/stitle"/></TITLE> -->
<HEAD><TITLE><xsl:value-of select="//stitle"/></TITLE>
<LINK rel="STYLESHEET" type="text/css" href="../style.css"/></HEAD>
<BODY STYLE="font-size:10pt;margin-left:15px;font-family:arial;">
<BR/><xsl:apply-templates/>
<BR/><BR/><P ALIGN="CENTER" STYLE="font-size:8pt;font-family:arial;">© 2006 International Truck and Engine Corporation</P><BR/>
</BODY>
</xsl:element>
</xsl:template>
<!-- This is the top-level rule for ISIS-II XML. -->
<!-- I think that this standard wrapper tag should begin and end all of your XML files -->
<!-- so that general styles can be applied to all the documents. -->
<!-- This template also adds a footer with the copyright statement. -->
<xsl:template match="text()">
<xsl:value-of/>
</xsl:template>
<!-- Emit the actual text between the tags. -->
<!-- Jan 24, 2005 -->
<xsl:template match="para">
<xsl:choose>
<xsl:when test="@id[.>' ']">
<xsl:element name="DIV">
<xsl:attribute name="ID"><xsl:value-of select="@id"/></xsl:attribute>
</xsl:element>
</xsl:when>
</xsl:choose>
<!-- end Jan 24, 2005 -->
<P>
<xsl:apply-templates/>
</P>
</xsl:template>
<!-- Std. paragraph template. -->
<xsl:template match="hotlnk">
<!-- new January 23, 2001
-->
<xsl:choose>
<xsl:when test="con_toc">
</xsl:when>
<xsl:otherwise>
<xsl:element name="A">
<!-- new January 23, 2001
-->
<!-- only use the # if the xrefid is valued January 5, 2001 -->
<xsl:choose>
<xsl:when test="@xrefid[.>' ']">
<xsl:attribute name="HREF"><xsl:value-of select="@document"/>#<xsl:value-of select="@xrefid"/></xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="HREF"><xsl:value-of select="@document"/></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<!-- Phil added the following one line -->
<xsl:attribute name="target"><xsl:value-of select="@target"/></xsl:attribute>
<xsl:apply-templates/>
</xsl:element>
<!-- new January 23, 2001
-->
</xsl:otherwise>
</xsl:choose>
<!-- new January 23, 2001
-->
</xsl:template>
<!-- Assume that xrefid attr value will contain # character and/or URL if needed. -->
<!-- Phil added the following code for exhotlnk -->
<xsl:template match="exhotlnk">
<xsl:element name="A">
<xsl:choose>
<xsl:when test="@xrefid[.>' ']">
<xsl:attribute name="HREF"><xsl:value-of select="@document"/>#<xsl:value-of select="@xrefid"/></xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="HREF"><xsl:value-of select="@document"/></xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<!-- <xsl:attribute name="target">_top</xsl:attribute> -->
<!-- change March 15, 2001 to open in different window -->
<xsl:attribute name="target">exhotlnk</xsl:attribute>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template match="figure">
<P/>
<!-- taking out center January 31, 2002
<xsl:element name="CENTER">
-->
<xsl:element name="DIV">
<xsl:attribute name="ID"><xsl:value-of select="@id"/></xsl:attribute>
<xsl:attribute name="STYLE">text-align:center;z-index:0;border:1px solid gray;</xsl:attribute>
<xsl:choose>
<xsl:when test="@figsize[.='col-wide']">
<xsl:attribute name="STYLE">width:520px;text-align:center;z-index:0;border:1px solid gray;</xsl:attribute>
</xsl:when>
<!-- January 31, 2002
<xsl:when test="@figsize[.='pg-wide']">
<xsl:attribute name="STYLE">width:520px;text-align:center;z-index:0;border:1px solid gray;</xsl:attribute>
</xsl:when>
<xsl:when test="@figsize[.='full-pg']">
<xsl:attribute name="STYLE">width:520px;text-align:center;z-index:0;border:1px solid gray;</xsl:attribute>
</xsl:when>
-->
<xsl:otherwise>
<!-- January 31, 2002 -->
<xsl:attribute name="STYLE">width:650px;text-align:center;z-index:0;border:1px solid gray;</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<!-- the following was changed by Phil to use <IMG> when the graphic is jpeg -->
<xsl:choose>
<xsl:when test="graphic/@type[.='jpeg']">
<xsl:element name="IMG">
<xsl:attribute name="SRC"><xsl:value-of select="graphic/@filename"/></xsl:attribute>
</xsl:element>
</xsl:when>
<xsl:when test="graphic/@type[.='gif']">
<xsl:element name="IMG">
<xsl:attribute name="SRC"><xsl:value-of select="graphic/@filename"/></xsl:attribute>
</xsl:element>
</xsl:when>
<xsl:otherwise>
<!-- <xsl:if test="graphic/@type[.$ne$'jpeg']"> -->
<!-- end of phil change - look for end if below also -->
<!-- new Phil change for buttons -->
<!-- some graphics do not have id attribute. Try using it with figure id -->
<xsl:element name="OBJECT">
<xsl:attribute name="ID">CGM<xsl:value-of select="@id"/><xsl:value-of select="graphic/@id"/></xsl:attribute>
<xsl:choose>
<!-- the following added december 13, 2000 -->
<!-- the following for width commented out May 22, 2002 because too many small sizes appeared -->
<!-- <xsl:when test="graphic/@scalefitwidth[.>' ']">
<xsl:attribute name="WIDTH"><xsl:value-of select="graphic/@scalefitwidth"/></xsl:attribute>
</xsl:when> -->
<!-- <xsl:when test="graphic/@scalefitheight[.>' ']">
</xsl:when> -->
<xsl:when test="@figsize[.='col-wide']">
<xsl:attribute name="WIDTH">514px</xsl:attribute>
</xsl:when>
<xsl:when test="@figsize[.='pg-wide']">
<xsl:attribute name="WIDTH">650px</xsl:attribute>
</xsl:when>
<xsl:when test="@figsize[.='full-pg']">
<xsl:attribute name="WIDTH">650px</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="WIDTH">514px</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:choose>
<xsl:when test="graphic/@scalefitheight[.>' ']">
<xsl:attribute name="HEIGHT"><xsl:value-of select="graphic/@scalefitheight"/></xsl:attribute>
</xsl:when>
<!-- <xsl:when test="graphic/@scalefitwidth[.>' ']">
</xsl:when> -->
<xsl:when test="@figsize[.='col-wide']">
<xsl:attribute name="HEIGHT">500px</xsl:attribute>
</xsl:when>
<xsl:when test="@figsize[.='pg-wide']">
<xsl:attribute name="HEIGHT">500px</xsl:attribute>
</xsl:when>
<xsl:when test="@figsize[.='full-pg']">
<xsl:attribute name="HEIGHT">800px</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="HEIGHT">500px</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
<xsl:attribute name="CLASSID">clsid:F5D98C43-DB16-11CF-8ECA-0000C0FD59C7</xsl:attribute>
<!-- <xsl:attribute name="CODEBASE">http://www.intercap.com/acgm/code/Acgm.cab</xsl:attribute> -->
<!-- <xsl:attribute name="CODEBASE">http://wwwapp.ntc.navistar.com/Pharos/Acgm.cab#Version=7,0,4,0</xsl:attribute> -->
<xsl:attribute name="CODEBASE">/downloads/Acgm.cab#Version=7,0,5,0</xsl:attribute>
<xsl:element name="PARAM">
<xsl:attribute name="NAME">FileName</xsl:attribute>
<xsl:attribute name="VALUE">./<xsl:value-of select="graphic/@filename"/>#zoom -fit</xsl:attribute>
<!-- <xsl:attribute name="VALUE"><xsl:value-of select="graphic/@filename"/></xsl:attribute> -->
</xsl:element>
</xsl:element>
<P size="-2">(Right click on graphic to bring up an option list)</P>
<!-- Phil -->
<!-- </xsl:if> -->
<!-- Phil -->
</xsl:otherwise>
</xsl:choose>
<SPAN> </SPAN>
<xsl:apply-templates/>
</xsl:element>
<P/><BR/>
<!-- </xsl:element>
-->
</xsl:template>
<!-- This template sets the CGM display size based on the "figsize" attr. value. -->
<xsl:template match="caption">
<P STYLE="padding-left:10px;padding-right:10px;text-align:center;margin-top:3px;">
<FONT SIZE="+1" STYLE="color:black;font-weight:normal;"><xsl:apply-templates/></FONT></P>
</xsl:template>
<!-- Add "Figure <xsl:eval>count()</xsl:eval>." for figure auto numbering. -->
<xsl:template match="calloutgroup">
<xsl:eval>resetCallout1()</xsl:eval>
<xsl:eval>resetCallout2()</xsl:eval>
<xsl:apply-templates/><BR/>
</xsl:template>
<xsl:template match="callout1">
<xsl:eval>resetCallout2()</xsl:eval>
<P STYLE="margin-left:10px;margin-top:3px;margin-bottom:0px;text-align:left;font-size:8pt;"><xsl:apply-templates/></P>
</xsl:template>
<xsl:template match="callout1[@type = 'arabic']">
<xsl:eval>resetCallout2()</xsl:eval>
<P STYLE="margin-left:10px;margin-top:3px;margin-bottom:0px;text-align:left;font-size:8pt;">
<xsl:eval>countCallout1()</xsl:eval>. <xsl:apply-templates/></P>
</xsl:template>
<xsl:template match="callout1[@type = 'alpha']">
<xsl:eval>resetCallout2()</xsl:eval>
<P STYLE="margin-left:10px;margin-top:3px;margin-bottom:0px;text-align:left;font-size:8pt;">
<xsl:eval>countCallout1alpha()</xsl:eval>. <xsl:apply-templates/></P>
</xsl:template>
<xsl:template match="callout2">
<BR/><FONT STYLE="position:relative;left:11px;margin-top:0px;margin-bottom:0px;"><xsl:apply-templates/></FONT>
</xsl:template>
<!-- I am assuming that this is an indented sub-component callout -->
<xsl:template match="callout2[@type = 'arabic']">
<BR/><FONT STYLE="position:relative;left:11px;margin-top:0px;margin-bottom:0px;"><xsl:eval>countCallout2()</xsl:eval>. <xsl:apply-templates/></FONT>
</xsl:template>
<xsl:template match="callout2[@type = 'alpha']">
<BR/><FONT STYLE="position:relative;left:11px;margin-top:0px;margin-bottom:0px;"><xsl:eval>countCallout2alpha()</xsl:eval>. <xsl:apply-templates/></FONT>
</xsl:template>
<xsl:template match="emph">
<B><xsl:apply-templates/></B>
</xsl:template>
<xsl:template match="emph[@type = 'italic']">
<I><xsl:apply-templates/></I>
</xsl:template>
<xsl:template match="emph[@type = 'italundersc']">
<I><U><xsl:apply-templates/></U></I>
</xsl:template>
<xsl:template match="emph[@type = 'boldundersc']">
<B><U><xsl:apply-templates/></U></B>
</xsl:template>
<xsl:template match="emph[@type = 'boldital']">
<B><I><xsl:apply-templates/></I></B>
</xsl:template>
<xsl:template match="emph[@type = 'underscr']">
<U><xsl:apply-templates/></U>
</xsl:template>
<xsl:template match="emph[@type = 'boldundersc']">
<B><U><xsl:apply-templates/></U></B>
</xsl:template>
....there is more to the code but I think the error is in the begining somewhere. Please help, I have to finish this project today.
Jamie Coomes