<?xml version="1.0" encoding="windows-1252"?>
<node id="666916" title="To Findout Prime number" created="2008-02-08 01:59:35" updated="2008-02-07 20:59:35">
<type id="115">
perlquestion</type>
<author id="574997">
babug_prg</author>
<data>
<field name="doctext">
&lt;code&gt;
&lt;!--ChapterHistory?, ChapterClassification?, ChapterGrants?, ChapterContext?)--&gt;
&lt;xsl:template match="PublisherName | PublisherLocation"&gt;&lt;/xsl:template&gt;

&lt;xsl:template match="Section1/Heading"&gt;
&lt;p style="background-color: green;"&gt;&lt;font size="6" color="white"&gt;&amp;#x25BA;

&lt;xsl:variable name="c"&gt;
&lt;xsl:value-of select="substring-after(ancestor::Body/preceding-sibling::ChapterInfo/child::ChapterNumber, 'Chapter ')"/&gt;
&lt;/xsl:variable&gt;


&lt;xsl:variable name="cns"&gt;
&lt;xsl:value-of select="ancestor::Body/preceding-sibling::ChapterInfo/@NumberingStyle"/&gt;
&lt;/xsl:variable&gt;

&lt;xsl:if test="$cns='ChapterContent'"&gt;

&lt;xsl:variable name="possec" select="parent::Section1"/&gt;
&lt;xsl:variable name="posc" select="parent::Section1/preceding-sibling::Section1"/&gt;
&lt;font color="white"&gt;&lt;xsl:value-of select="$c"/&gt;.&lt;xsl:value-of select="count($possec)+count($posc)"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;

&lt;xsl:if test="$cns='ChapterContentSeparately'"&gt;

&lt;xsl:variable name="possec" select="parent::Section1"/&gt;
&lt;xsl:variable name="posc" select="parent::Section1/preceding-sibling::Section1"/&gt;
&lt;font color="cyan"&gt;&lt;xsl:value-of select="count($possec)+count($posc)"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;

&lt;xsl:if test="$cns='ContentOnly'"&gt;

&lt;xsl:variable name="possec" select="parent::Section1"/&gt;
&lt;xsl:variable name="posc" select="parent::Section1/preceding-sibling::Section1"/&gt;
&lt;font color="cyan"&gt;&lt;xsl:value-of select="count($possec)+count($posc)"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;


&lt;/font&gt;&lt;font face="Palatino Linotype" size="6" color="white"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;&amp;#x00A0;&lt;/p&gt;
&lt;/xsl:template&gt;



&lt;xsl:template match="Section2/Heading"&gt;

&lt;p style="background-color: green;"&gt;&lt;font size="5" color="white"&gt;&amp;#x25BA;

&lt;xsl:variable name="c"&gt;
&lt;xsl:value-of select="substring-after(ancestor::Body/preceding-sibling::ChapterInfo/child::ChapterNumber, 'Chapter ')"/&gt;
&lt;/xsl:variable&gt;


&lt;xsl:variable name="cns"&gt;
&lt;xsl:value-of select="ancestor::Body/preceding-sibling::ChapterInfo/@NumberingStyle"/&gt;
&lt;/xsl:variable&gt;

&lt;xsl:variable name="possec" select="parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;

&lt;xsl:if test="$cns='ChapterContent'"&gt;
&lt;xsl:variable name="posc" select="parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;
&lt;xsl:variable name="posc2" select="parent::Section2/preceding-sibling::Section2"/&gt;
&lt;font color="white"&gt;&lt;xsl:value-of select="$c"/&gt;.&lt;xsl:value-of select="count($possec)+1"/&gt;.&lt;xsl:value-of select="count($posc2)+1"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;

&lt;xsl:if test="$cns='ChapterContentSeparately'"&gt;
&lt;xsl:variable name="posc" select="parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;
&lt;xsl:variable name="posc2" select="parent::Section2/preceding-sibling::Section2"/&gt;
&lt;font color="cyan"&gt;&lt;xsl:value-of select="count($possec)+1"/&gt;.&lt;xsl:value-of select="count($posc2)+1"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;

&lt;xsl:if test="$cns='ContentOnly'"&gt;
&lt;xsl:variable name="posc" select="parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;
&lt;xsl:variable name="posc2" select="parent::Section2/preceding-sibling::Section2"/&gt;
&lt;font color="cyan"&gt;&lt;xsl:value-of select="count($possec)+1"/&gt;.&lt;xsl:value-of select="count($posc2)+1"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;


&lt;/font&gt;&lt;font face="Palatino Linotype" size="5" color="white"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;&lt;/p&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Section3/Heading"&gt;
&lt;p style="background-color: green;"&gt;&lt;font size="5" color="white"&gt;&amp;#x25BA;


&lt;xsl:variable name="c"&gt;
&lt;xsl:value-of select="substring-after(ancestor::Body/preceding-sibling::ChapterInfo/child::ChapterNumber, 'Chapter ')"/&gt;
&lt;/xsl:variable&gt;


&lt;xsl:variable name="cns"&gt;
&lt;xsl:value-of select="ancestor::Body/preceding-sibling::ChapterInfo/@NumberingStyle"/&gt;
&lt;/xsl:variable&gt;

&lt;xsl:variable name="possec" select="parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;

&lt;xsl:if test="$cns='ChapterContent'"&gt;
&lt;xsl:variable name="posc" select="parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;
&lt;xsl:variable name="posc2" select="parent::Section3/parent::Section2/preceding-sibling::Section2"/&gt;
&lt;xsl:variable name="posc3" select="parent::Section3/preceding-sibling::Section3"/&gt;
&lt;font color="white"&gt;&lt;xsl:value-of select="$c"/&gt;.&lt;xsl:value-of select="count($possec)+1"/&gt;.&lt;xsl:value-of select="count($posc2)+1"/&gt;.&lt;xsl:value-of select="count($posc3)+1"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;

&lt;xsl:if test="$cns='ChapterContentSeparately'"&gt;
&lt;xsl:variable name="posc" select="parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;
&lt;xsl:variable name="posc2" select="parent::Section3/parent::Section2/preceding-sibling::Section2"/&gt;
&lt;xsl:variable name="posc3" select="parent::Section3/preceding-sibling::Section3"/&gt;
&lt;font color="cyan"&gt;&lt;xsl:value-of select="count($possec)+1"/&gt;.&lt;xsl:value-of select="count($posc2)+1"/&gt;.&lt;xsl:value-of select="count($posc3)+1"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;

&lt;xsl:if test="$cns='ContentOnly'"&gt;
&lt;xsl:variable name="posc" select="parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;
&lt;xsl:variable name="posc2" select="parent::Section3/parent::Section2/preceding-sibling::Section2"/&gt;
&lt;xsl:variable name="posc3" select="parent::Section3/preceding-sibling::Section3"/&gt;
&lt;font color="cyan"&gt;&lt;xsl:value-of select="count($possec)+1"/&gt;.&lt;xsl:value-of select="count($posc2)+1"/&gt;.&lt;xsl:value-of select="count($posc3)+1"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;



&lt;/font&gt;&lt;font face="Palatino Linotype" size="5" color="white"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;&lt;/p&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Section4/Heading"&gt;

&lt;p style="background-color: green;"&gt;&lt;font size="5" color="white"&gt;&amp;#x25BA;

&lt;xsl:variable name="c"&gt;
&lt;xsl:value-of select="substring-after(ancestor::Body/preceding-sibling::ChapterInfo/child::ChapterNumber, 'Chapter ')"/&gt;
&lt;/xsl:variable&gt;


&lt;xsl:variable name="cns"&gt;
&lt;xsl:value-of select="ancestor::Body/preceding-sibling::ChapterInfo/@NumberingStyle"/&gt;
&lt;/xsl:variable&gt;

&lt;xsl:variable name="possec" select="parent::Section4/parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;

&lt;xsl:if test="$cns='ChapterContent'"&gt;
&lt;xsl:variable name="posc" select="parent::Section4/parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;
&lt;xsl:variable name="posc2" select="parent::Section4/parent::Section3/parent::Section2/preceding-sibling::Section2"/&gt;
&lt;xsl:variable name="posc3" select="parent::Section4/parent::Section3/preceding-sibling::Section3"/&gt;
&lt;xsl:variable name="posc4" select="parent::Section4/preceding-sibling::Section4"/&gt;
&lt;font color="white"&gt;&lt;xsl:value-of select="$c"/&gt;.&lt;xsl:value-of select="count($possec)+1"/&gt;.&lt;xsl:value-of select="count($posc2)+1"/&gt;.&lt;xsl:value-of select="count($posc3)+1"/&gt;.&lt;xsl:value-of select="count($posc4)+1"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;

&lt;xsl:if test="$cns='ChapterContentSeparately'"&gt;
&lt;xsl:variable name="posc" select="parent::Section4/parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;
&lt;xsl:variable name="posc2" select="parent::Section4/parent::Section3/parent::Section2/preceding-sibling::Section2"/&gt;
&lt;xsl:variable name="posc3" select="parent::Section4/parent::Section3/preceding-sibling::Section3"/&gt;
&lt;xsl:variable name="posc4" select="parent::Section4/preceding-sibling::Section4"/&gt;
&lt;font color="cyan"&gt;&lt;xsl:value-of select="count($possec)+1"/&gt;.&lt;xsl:value-of select="count($posc2)+1"/&gt;.&lt;xsl:value-of select="count($posc3)+1"/&gt;.&lt;xsl:value-of select="count($posc4)+1"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;


&lt;xsl:if test="$cns='ContentOnly'"&gt;
&lt;xsl:variable name="posc" select="parent::Section4/parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;
&lt;xsl:variable name="posc2" select="parent::Section4/parent::Section3/parent::Section2/preceding-sibling::Section2"/&gt;
&lt;xsl:variable name="posc3" select="parent::Section4/parent::Section3/preceding-sibling::Section3"/&gt;
&lt;xsl:variable name="posc4" select="parent::Section4/preceding-sibling::Section4"/&gt;
&lt;font color="cyan"&gt;&lt;xsl:value-of select="count($possec)+1"/&gt;.&lt;xsl:value-of select="count($posc2)+1"/&gt;.&lt;xsl:value-of select="count($posc3)+1"/&gt;.&lt;xsl:value-of select="count($posc4)+1"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;

&lt;/font&gt;&lt;font face="Palatino Linotype" size="5" color="white"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;&lt;/p&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Section5/Heading"&gt;

&lt;p style="background-color: green;"&gt;&lt;font size="5" color="white"&gt;&amp;#x25BA;


&lt;xsl:variable name="c"&gt;
&lt;xsl:value-of select="substring-after(ancestor::Body/preceding-sibling::ChapterInfo/child::ChapterNumber, 'Chapter ')"/&gt;
&lt;/xsl:variable&gt;


&lt;xsl:variable name="cns"&gt;
&lt;xsl:value-of select="ancestor::Body/preceding-sibling::ChapterInfo/@NumberingStyle"/&gt;
&lt;/xsl:variable&gt;

&lt;xsl:variable name="possec" select="parent::Section5/parent::Section4/parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;

&lt;xsl:if test="$cns='ChapterContent'"&gt;
&lt;xsl:variable name="posc" select="parent::Section5/parent::Section4/parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;
&lt;xsl:variable name="posc2" select="parent::Section5/parent::Section4/parent::Section3/parent::Section2/preceding-sibling::Section2"/&gt;
&lt;xsl:variable name="posc3" select="parent::Section5/parent::Section4/parent::Section3/preceding-sibling::Section3"/&gt;
&lt;xsl:variable name="posc4" select="parent::Section5/parent::Section4/preceding-sibling::Section4"/&gt;
&lt;xsl:variable name="posc5" select="parent::Section5/preceding-sibling::Section5"/&gt;
&lt;font color="white"&gt;&lt;xsl:value-of select="$c"/&gt;.&lt;xsl:value-of select="count($possec)+1"/&gt;.&lt;xsl:value-of select="count($posc2)+1"/&gt;.&lt;xsl:value-of select="count($posc3)+1"/&gt;.&lt;xsl:value-of select="count($posc4)+1"/&gt;.&lt;xsl:value-of select="count($posc5)+1"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;

&lt;xsl:if test="$cns='ChapterContentSeparately'"&gt;
&lt;xsl:variable name="posc" select="parent::Section5/parent::Section4/parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;
&lt;xsl:variable name="posc2" select="parent::Section5/parent::Section4/parent::Section3/parent::Section2/preceding-sibling::Section2"/&gt;
&lt;xsl:variable name="posc3" select="parent::Section5/parent::Section4/parent::Section3/preceding-sibling::Section3"/&gt;
&lt;xsl:variable name="posc4" select="parent::Section5/parent::Section4/preceding-sibling::Section4"/&gt;
&lt;xsl:variable name="posc5" select="parent::Section5/preceding-sibling::Section5"/&gt;
&lt;font color="cyan"&gt;&lt;xsl:value-of select="count($possec)+1"/&gt;.&lt;xsl:value-of select="count($posc2)+1"/&gt;.&lt;xsl:value-of select="count($posc3)+1"/&gt;.&lt;xsl:value-of select="count($posc4)+1"/&gt;.&lt;xsl:value-of select="count($posc5)+1"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;

&lt;xsl:if test="$cns='ContentOnly'"&gt;
&lt;xsl:variable name="posc" select="parent::Section5/parent::Section4/parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;
&lt;xsl:variable name="posc2" select="parent::Section5/parent::Section4/parent::Section3/parent::Section2/preceding-sibling::Section2"/&gt;
&lt;xsl:variable name="posc3" select="parent::Section5/parent::Section4/parent::Section3/preceding-sibling::Section3"/&gt;
&lt;xsl:variable name="posc4" select="parent::Section5/parent::Section4/preceding-sibling::Section4"/&gt;
&lt;xsl:variable name="posc5" select="parent::Section5/preceding-sibling::Section5"/&gt;
&lt;font color="cyan"&gt;&lt;xsl:value-of select="count($possec)+1"/&gt;.&lt;xsl:value-of select="count($posc2)+1"/&gt;.&lt;xsl:value-of select="count($posc3)+1"/&gt;.&lt;xsl:value-of select="count($posc4)+1"/&gt;.&lt;xsl:value-of select="count($posc5)+1"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;


&lt;/font&gt;&lt;font face="Palatino Linotype" size="5" color="white"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;&lt;/p&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Section6/Heading"&gt;

&lt;p style="background-color: green;"&gt;&lt;font size="5" color="white"&gt;&amp;#x25BA;



&lt;xsl:variable name="c"&gt;
&lt;xsl:value-of select="substring-after(ancestor::Body/preceding-sibling::ChapterInfo/child::ChapterNumber, 'Chapter ')"/&gt;
&lt;/xsl:variable&gt;


&lt;xsl:variable name="cns"&gt;
&lt;xsl:value-of select="ancestor::Body/preceding-sibling::ChapterInfo/@NumberingStyle"/&gt;
&lt;/xsl:variable&gt;

&lt;xsl:variable name="possec" select="parent::Section6/parent::Section5/parent::Section4/parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;

&lt;xsl:if test="$cns='ChapterContent'"&gt;
&lt;xsl:variable name="posc" select="parent::Section6/parent::Section5/parent::Section4/parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;
&lt;xsl:variable name="posc2" select="parent::Section6/parent::Section5/parent::Section4/parent::Section3/parent::Section2/preceding-sibling::Section2"/&gt;
&lt;xsl:variable name="posc3" select="parent::Section6/parent::Section5/parent::Section4/parent::Section3/preceding-sibling::Section3"/&gt;
&lt;xsl:variable name="posc4" select="parent::Section6/parent::Section5/parent::Section4/preceding-sibling::Section4"/&gt;
&lt;xsl:variable name="posc5" select="parent::Section6/parent::Section5/preceding-sibling::Section5"/&gt;
&lt;xsl:variable name="posc6" select="parent::Section6/preceding-sibling::Section6"/&gt;
&lt;font color="white"&gt;&lt;xsl:value-of select="$c"/&gt;.&lt;xsl:value-of select="count($possec)+1"/&gt;.&lt;xsl:value-of select="count($posc2)+1"/&gt;.&lt;xsl:value-of select="count($posc3)+1"/&gt;.&lt;xsl:value-of select="count($posc4)+1"/&gt;.&lt;xsl:value-of select="count($posc5)+1"/&gt;.&lt;xsl:value-of select="count($posc6)+1"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;


&lt;xsl:if test="$cns='ChapterContentSeparately'"&gt;
&lt;xsl:variable name="posc" select="parent::Section6/parent::Section5/parent::Section4/parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;
&lt;xsl:variable name="posc2" select="parent::Section6/parent::Section5/parent::Section4/parent::Section3/parent::Section2/preceding-sibling::Section2"/&gt;
&lt;xsl:variable name="posc3" select="parent::Section6/parent::Section5/parent::Section4/parent::Section3/preceding-sibling::Section3"/&gt;
&lt;xsl:variable name="posc4" select="parent::Section6/parent::Section5/parent::Section4/preceding-sibling::Section4"/&gt;
&lt;xsl:variable name="posc5" select="parent::Section6/parent::Section5/preceding-sibling::Section5"/&gt;
&lt;xsl:variable name="posc6" select="parent::Section6/preceding-sibling::Section6"/&gt;
&lt;font color="cyan"&gt;&lt;xsl:value-of select="count($possec)+1"/&gt;.&lt;xsl:value-of select="count($posc2)+1"/&gt;.&lt;xsl:value-of select="count($posc3)+1"/&gt;.&lt;xsl:value-of select="count($posc4)+1"/&gt;.&lt;xsl:value-of select="count($posc5)+1"/&gt;.&lt;xsl:value-of select="count($posc6)+1"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;

&lt;xsl:if test="$cns='ContentOnly'"&gt;
&lt;xsl:variable name="posc" select="parent::Section6/parent::Section5/parent::Section4/parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;
&lt;xsl:variable name="posc2" select="parent::Section6/parent::Section5/parent::Section4/parent::Section3/parent::Section2/preceding-sibling::Section2"/&gt;
&lt;xsl:variable name="posc3" select="parent::Section6/parent::Section5/parent::Section4/parent::Section3/preceding-sibling::Section3"/&gt;
&lt;xsl:variable name="posc4" select="parent::Section6/parent::Section5/parent::Section4/preceding-sibling::Section4"/&gt;
&lt;xsl:variable name="posc5" select="parent::Section6/parent::Section5/preceding-sibling::Section5"/&gt;
&lt;xsl:variable name="posc6" select="parent::Section6/preceding-sibling::Section6"/&gt;
&lt;font color="cyan"&gt;&lt;xsl:value-of select="count($possec)+1"/&gt;.&lt;xsl:value-of select="count($posc2)+1"/&gt;.&lt;xsl:value-of select="count($posc3)+1"/&gt;.&lt;xsl:value-of select="count($posc4)+1"/&gt;.&lt;xsl:value-of select="count($posc5)+1"/&gt;.&lt;xsl:value-of select="count($posc6)+1"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;
&lt;/font&gt;&lt;font face="Palatino Linotype" size="5" color="white"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;&lt;/p&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Section7/Heading"&gt;
&lt;p style="background-color: green;"&gt;&lt;font size="5" color="white"&gt;&amp;#x25BA;


&lt;xsl:variable name="c"&gt;
&lt;xsl:value-of select="substring-after(ancestor::Body/preceding-sibling::ChapterInfo/child::ChapterNumber, 'Chapter ')"/&gt;
&lt;/xsl:variable&gt;


&lt;xsl:variable name="cns"&gt;
&lt;xsl:value-of select="ancestor::Body/preceding-sibling::ChapterInfo/@NumberingStyle"/&gt;
&lt;/xsl:variable&gt;

&lt;xsl:variable name="possec" select="parent::Section7/parent::Section6/parent::Section5/parent::Section4/parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;

&lt;xsl:if test="$cns='ChapterContent'"&gt;
&lt;xsl:variable name="posc" select="parent::Section7/parent::Section6/parent::Section5/parent::Section4/parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;
&lt;xsl:variable name="posc2" select="parent::Section7/parent::Section6/parent::Section5/parent::Section4/parent::Section3/parent::Section2/preceding-sibling::Section2"/&gt;
&lt;xsl:variable name="posc3" select="parent::Section7/parent::Section6/parent::Section5/parent::Section4/parent::Section3/preceding-sibling::Section3"/&gt;
&lt;xsl:variable name="posc4" select="parent::Section7/parent::Section6/parent::Section5/parent::Section4/preceding-sibling::Section4"/&gt;
&lt;xsl:variable name="posc5" select="parent::Section7/parent::Section6/parent::Section5/preceding-sibling::Section5"/&gt;
&lt;xsl:variable name="posc6" select="parent::Section7/parent::Section6/preceding-sibling::Section6"/&gt;
&lt;xsl:variable name="posc7" select="parent::Section7/preceding-sibling::Section7"/&gt;
&lt;font color="white"&gt;&lt;xsl:value-of select="$c"/&gt;.&lt;xsl:value-of select="count($possec)+1"/&gt;.&lt;xsl:value-of select="count($posc2)+1"/&gt;.&lt;xsl:value-of select="count($posc3)+1"/&gt;.&lt;xsl:value-of select="count($posc4)+1"/&gt;.&lt;xsl:value-of select="count($posc5)+1"/&gt;.&lt;xsl:value-of select="count($posc6)+1"/&gt;.&lt;xsl:value-of select="count($posc7)+1"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;
&lt;xsl:if test="$cns='ChapterContentSeparately'"&gt;
&lt;xsl:variable name="posc" select="parent::Section7/parent::Section6/parent::Section5/parent::Section4/parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;
&lt;xsl:variable name="posc2" select="parent::Section7/parent::Section6/parent::Section5/parent::Section4/parent::Section3/parent::Section2/preceding-sibling::Section2"/&gt;
&lt;xsl:variable name="posc3" select="parent::Section7/parent::Section6/parent::Section5/parent::Section4/parent::Section3/preceding-sibling::Section3"/&gt;
&lt;xsl:variable name="posc4" select="parent::Section7/parent::Section6/parent::Section5/parent::Section4/preceding-sibling::Section4"/&gt;
&lt;xsl:variable name="posc5" select="parent::Section7/parent::Section6/parent::Section5/preceding-sibling::Section5"/&gt;
&lt;xsl:variable name="posc6" select="parent::Section7/parent::Section6/preceding-sibling::Section6"/&gt;
&lt;xsl:variable name="posc7" select="parent::Section7/preceding-sibling::Section7"/&gt;
&lt;font color="cyan"&gt;&lt;xsl:value-of select="count($possec)+1"/&gt;.&lt;xsl:value-of select="count($posc2)+1"/&gt;.&lt;xsl:value-of select="count($posc3)+1"/&gt;.&lt;xsl:value-of select="count($posc4)+1"/&gt;.&lt;xsl:value-of select="count($posc5)+1"/&gt;.&lt;xsl:value-of select="count($posc6)+1"/&gt;.&lt;xsl:value-of select="count($posc7)+1"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;

&lt;xsl:if test="$cns='ContentOnly'"&gt;
&lt;xsl:variable name="posc" select="parent::Section7/parent::Section6/parent::Section5/parent::Section4/parent::Section3/parent::Section2/parent::Section1/preceding-sibling::Section1"/&gt;
&lt;xsl:variable name="posc2" select="parent::Section7/parent::Section6/parent::Section5/parent::Section4/parent::Section3/parent::Section2/preceding-sibling::Section2"/&gt;
&lt;xsl:variable name="posc3" select="parent::Section7/parent::Section6/parent::Section5/parent::Section4/parent::Section3/preceding-sibling::Section3"/&gt;
&lt;xsl:variable name="posc4" select="parent::Section7/parent::Section6/parent::Section5/parent::Section4/preceding-sibling::Section4"/&gt;
&lt;xsl:variable name="posc5" select="parent::Section7/parent::Section6/parent::Section5/preceding-sibling::Section5"/&gt;
&lt;xsl:variable name="posc6" select="parent::Section7/parent::Section6/preceding-sibling::Section6"/&gt;
&lt;xsl:variable name="posc7" select="parent::Section7/preceding-sibling::Section7"/&gt;
&lt;font color="cyan"&gt;&lt;xsl:value-of select="count($possec)+1"/&gt;.&lt;xsl:value-of select="count($posc2)+1"/&gt;.&lt;xsl:value-of select="count($posc3)+1"/&gt;.&lt;xsl:value-of select="count($posc4)+1"/&gt;.&lt;xsl:value-of select="count($posc5)+1"/&gt;.&lt;xsl:value-of select="count($posc6)+1"/&gt;.&lt;xsl:value-of select="count($posc7)+1"/&gt;&lt;/font&gt;&amp;#x00A0;

&lt;/xsl:if&gt;


&lt;/font&gt;&lt;font face="Palatino Linotype" size="5" color="white"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;&lt;/p&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Para"&gt;
&lt;p&gt;&lt;xsl:apply-templates/&gt;&lt;/p&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Literal"&gt;&lt;div title="Literal" style="border-left: 1pt solid pink; border-right: 1pt solid pink; border-bottom: 1pt solid pink; border-top: 1pt solid pink"&gt;&lt;pre xml:space="preserve"&gt;&lt;font color="blue" size="3" face="Courier"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/xsl:template&gt;

&lt;xsl:template match="Para/Emphasis[@FontCategory='NonProportional']"&gt;
&lt;br/&gt;&lt;p style="margin-top: 0pt; margin-bottom: -12pt"&gt;&lt;font color="maroon" size="2" face="Geneva"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;&lt;/p&gt;&lt;br/&gt;
&lt;/xsl:template&gt;


&lt;xsl:template match="Emphasis[@Type='Italic']"&gt;
&lt;font color="blue"&gt;&lt;i&gt;&lt;xsl:apply-templates/&gt;&lt;/i&gt;&lt;/font&gt;&lt;/xsl:template&gt;

&lt;xsl:template match="Emphasis[@Type='Italic']"&gt;
&lt;font color="blue"&gt;&lt;i&gt;&lt;xsl:apply-templates/&gt;&lt;/i&gt;&lt;/font&gt;&amp;#32;&lt;xsl:choose&gt;
&lt;xsl:when test="following-sibling::Bold"&gt;&lt;b&gt;&lt;xsl:apply-templates/&gt;&lt;/b&gt;&lt;/xsl:when&gt;
&lt;/xsl:choose&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Emphasis[@Type='Bold']"&gt;
&lt;b&gt;&lt;xsl:apply-templates/&gt;&lt;/b&gt;
&lt;xsl:choose&gt;
&lt;xsl:when test="following-sibling::InternalRef[1]"&gt;
&amp;#x00A0;
&lt;/xsl:when&gt;
&lt;/xsl:choose&gt;

&lt;/xsl:template&gt;

&lt;xsl:template match="Emphasis[@Type='BoldItalic']"&gt;
&lt;b&gt;&lt;i&gt;&lt;xsl:apply-templates/&gt;&lt;/i&gt;&lt;/b&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Emphasis[@Type='SmallCaps']"&gt;
&lt;small&gt;&lt;xsl:apply-templates/&gt;&lt;/small&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Superscript"&gt;
&lt;sup&gt;&lt;xsl:apply-templates/&gt;&lt;/sup&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Subscript"&gt;
&lt;sub&gt;&lt;xsl:apply-templates/&gt;&lt;/sub&gt;
&lt;/xsl:template&gt;

&lt;!-- table  --&gt;

&lt;xsl:template name="c_setRules"&gt;
&lt;xsl:choose&gt;
 &lt;xsl:when test="tgroup/@rowsep='0' and (.//thead/row[@rowsep='1'] or .//tfooter/row[@rowsep='1'])"&gt;
  &lt;xsl:attribute name="RULES"&gt;groups&lt;/xsl:attribute&gt;
  &lt;xsl:attribute name="cellpadding"&gt;5&lt;/xsl:attribute&gt;
 &lt;/xsl:when&gt;
 &lt;xsl:when test="tgroup/@colsep='1' and tgroup/@rowsep='0'"&gt;
  &lt;xsl:attribute name="RULES"&gt;cols&lt;/xsl:attribute&gt;
  &lt;xsl:attribute name="cellpadding"&gt;5&lt;/xsl:attribute&gt;
 &lt;/xsl:when&gt;
 &lt;xsl:when test="tgroup/@colsep='0' and tgroup/@rowsep='0'"&gt;
  &lt;xsl:attribute name="RULES"&gt;none&lt;/xsl:attribute&gt;
  &lt;xsl:attribute name="cellpadding"&gt;5&lt;/xsl:attribute&gt;
 &lt;/xsl:when&gt;
 &lt;xsl:when test="tgroup/@colsep='0' and tgroup/@rowsep='1'"&gt;
  &lt;xsl:attribute name="RULES"&gt;rows&lt;/xsl:attribute&gt;
  &lt;xsl:attribute name="cellpadding"&gt;4&lt;/xsl:attribute&gt;
 &lt;/xsl:when&gt;
 &lt;xsl:otherwise&gt;
&lt;!--
  &lt;xsl:attribute name="RULES"&gt;all&lt;/xsl:attribute&gt;    
  &lt;xsl:attribute name="cellpadding"&gt;4&lt;/xsl:attribute&gt;
--&gt;
 &lt;/xsl:otherwise&gt;
&lt;/xsl:choose&gt;
&lt;/xsl:template&gt;
&lt;!-- djm test of new table rendering --&gt;
&lt;xsl:template match="entry" mode="getClass"&gt;
  &lt;xsl:variable name="needsColSep"&gt;&lt;xsl:apply-templates select="." mode="needsColSep"/&gt;&lt;/xsl:variable&gt;
  &lt;xsl:variable name="needsRowSep"&gt;&lt;xsl:apply-templates select="." mode="needsRowSep"/&gt;&lt;/xsl:variable&gt;
    
  &lt;xsl:variable name="colSep"&gt;&lt;xsl:if test="$needsColSep = '1'"&gt;&lt;xsl:text&gt;rightBorder&lt;/xsl:text&gt;&lt;/xsl:if&gt;&lt;/xsl:variable&gt;
  &lt;xsl:variable name="rowSep"&gt;&lt;xsl:if test="$needsRowSep = '1'"&gt;&lt;xsl:text&gt;bottomBorder&lt;/xsl:text&gt;&lt;/xsl:if&gt;&lt;/xsl:variable&gt;
  &lt;xsl:variable name="thead"&gt;&lt;xsl:if test="parent::row/parent::thead"&gt;&lt;xsl:text&gt;thead&lt;/xsl:text&gt;&lt;/xsl:if&gt;&lt;/xsl:variable&gt;
  
  &lt;xsl:variable name="styles"&gt;
    &lt;xsl:value-of select="concat($colSep, ' ', $rowSep, ' ', $thead)"/&gt;
  &lt;/xsl:variable&gt;

  &lt;xsl:value-of select="$styles"/&gt;
&lt;/xsl:template&gt;
&lt;!--

ENTRY MODE="NEEDSCOLSEP"

  Contains the logic for figuring out if an entry needs a right border to it.

  Returns '1' if a colsep is needed
  otherwise returns '0'.

--&gt;
&lt;xsl:template match="entry" mode="needsColSep"&gt;
  &lt;xsl:variable name="colID"&gt;&lt;xsl:value-of select="@colname"/&gt;&lt;/xsl:variable&gt;
  &lt;xsl:choose&gt;
    &lt;!--
         WE NEED A COLSEP IF ANY OF THE THREE FOLLOWING CONDITIONS ARE TRUE

         1. (@colsep = '1') - if the colsep of this cell is turned on.
         2. (not(@colsep) and ancestor::tgroup/colspec[(@colnum = $colID) and @colsep = '1'])
         - The cell's colsep is not specified and the colspec that matches this cell has its colsep turned on.
         3. (not(@colsep) and ancestor::tgroup/colspec[(@colnum = $colID) and not(@colsep)])
         - Both the cell and the corresponding colspec's colseps are not set therefore default to showing
         a border.
     --&gt;
    &lt;xsl:when test="(@colsep = '1') or
                    (not(@colsep) and ancestor::tgroup/colspec[(@colnum = $colID) and @colsep = '1']) or
                    (not(@colsep) and ancestor::tgroup/colspec[(@colnum = $colID) and not(@colsep)])"&gt;
      &lt;xsl:value-of select="'1'"/&gt;
    &lt;/xsl:when&gt;
    &lt;!-- Otherwise no border needed --&gt;
    &lt;xsl:otherwise&gt;
      &lt;xsl:value-of select="'0'"/&gt;
    &lt;/xsl:otherwise&gt;
  &lt;/xsl:choose&gt;
&lt;/xsl:template&gt;

&lt;!--

ENTRY MODE="NEEDSROWSEP"

     Contains the logic for figuring out if an entry needs a bottom border to it.

     Returns '1' if a rowsep is needed
     otherwise returns '0'.
     --&gt;
&lt;xsl:template match="entry" mode="needsRowSep"&gt;
  &lt;xsl:choose&gt;
    &lt;!--
         WE NEED A ROWSEP IF ANY OF THE THREE FOLLOWING CONDITIONS ARE TRUE

         1. @rowsep = '1' - if the rowsep of this cell is turned on.
         2. (not(@rowsep) and parent::row[@rowsep = '1']) - the cell's rowsep is not specified but the row the cell
         is in is turned on.
         3. (not(@rowsep) and parent::row[not(@rowsep)])  - neither the cell or the row the cell is in have their
         rowseps set therefore default to showing the border.
         --&gt;
    &lt;xsl:when test="(@rowsep = '1') or
                    (not(@rowsep) and parent::row[@rowsep = '1'])"&gt; &lt;!-- or
                    (not(@rowsep) and parent::row[not(@rowsep)])"&gt; --&gt;
      &lt;xsl:value-of select="'1'"/&gt;
    &lt;/xsl:when&gt;
    &lt;!-- Otherwise don't show a border --&gt;
    &lt;xsl:otherwise&gt;
      &lt;xsl:value-of select="'0'"/&gt;
    &lt;/xsl:otherwise&gt;
  &lt;/xsl:choose&gt;
&lt;/xsl:template&gt;

&lt;!-- djm END test of new table rendering --&gt;

&lt;xsl:template name="c_TableColspan1"&gt;
&lt;xsl:variable name="vartgroup" select="ancestor::tgroup"/&gt;
&lt;xsl:variable name="varspanspec" select="$vartgroup/spanspec[@spanname=current()/@spanname]"/&gt;
&lt;xsl:if test="$varspanspec/@namest and $varspanspec/@nameend"&gt;
 &lt;xsl:variable name="varcolumnst" select="$vartgroup/colspec[@colname=$varspanspec/@namest]/@colnum"/&gt;
 &lt;xsl:variable name="varcolumnend" select="$vartgroup/colspec[@colname=$varspanspec/@nameend]/@colnum"/&gt;
 &lt;xsl:choose&gt;
  &lt;xsl:when test="$varcolumnst and $varcolumnend"&gt;&lt;xsl:value-of select="$varcolumnend - $varcolumnst + 1"/&gt;&lt;/xsl:when&gt;
  &lt;xsl:otherwise&gt;1&lt;/xsl:otherwise&gt;
 &lt;/xsl:choose&gt;
&lt;/xsl:if&gt;
&lt;/xsl:template&gt;
&lt;xsl:template name="c_TableColspan2"&gt;
&lt;xsl:variable name="vartgroup" select="ancestor::tgroup"/&gt;
&lt;xsl:variable name="varspanspec" select="current()"/&gt;
&lt;xsl:if test="$varspanspec/@namest and $varspanspec/@nameend"&gt;
 &lt;xsl:variable name="varcolumnst" select="$vartgroup/colspec[@colname=$varspanspec/@namest]/@colnum"/&gt;
 &lt;xsl:variable name="varcolumnend" select="$vartgroup/colspec[@colname=$varspanspec/@nameend]/@colnum"/&gt;
 &lt;xsl:choose&gt;
  &lt;xsl:when test="$varcolumnst and $varcolumnend"&gt;&lt;xsl:value-of select="$varcolumnend - $varcolumnst + 1"/&gt;&lt;/xsl:when&gt;
  &lt;xsl:otherwise&gt;1&lt;/xsl:otherwise&gt;
 &lt;/xsl:choose&gt;
&lt;/xsl:if&gt;
&lt;/xsl:template&gt;
&lt;xsl:template name="c_TableTR"&gt;
  &lt;xsl:if test="../@align"&gt;&lt;xsl:attribute name="align"&gt;&lt;xsl:value-of select="../@align"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:if&gt;
  &lt;xsl:choose&gt;  
   &lt;xsl:when test="../@valign"&gt;&lt;xsl:attribute name="valign"&gt;&lt;xsl:value-of select="../@valign"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:when&gt;
   &lt;xsl:when test="@valign"&gt;&lt;xsl:attribute name="valign"&gt;&lt;xsl:value-of select="@valign"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:when&gt;
  &lt;/xsl:choose&gt;
  &lt;xsl:if test="@align"&gt;&lt;xsl:attribute name="align"&gt;&lt;xsl:value-of select="@align"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:if&gt;
&lt;/xsl:template&gt;

&lt;xsl:template name="c_TableTD"&gt;
  &lt;xsl:variable name="colname"&gt;&lt;xsl:value-of select="@colname"/&gt;&lt;/xsl:variable&gt;
  &lt;xsl:variable name="styles"&gt;
    &lt;!-- get a space delimited set of styles to apply --&gt;
    &lt;xsl:variable name="temp"&gt;&lt;xsl:apply-templates select="." mode="getClass"/&gt;&lt;/xsl:variable&gt;
    &lt;!-- strip extra spaces --&gt;
    &lt;xsl:value-of select="normalize-space($temp)"/&gt;
  &lt;/xsl:variable&gt;
  &lt;xsl:variable name="colWidth"&gt;
    &lt;xsl:choose&gt;
      &lt;xsl:when test="@colwidth"&gt;&lt;xsl:value-of select="@colwidth"/&gt;&lt;/xsl:when&gt;
      &lt;xsl:otherwise&gt;&lt;xsl:value-of select="ancestor::tgroup/colspec[@colnum = $colname]/@colwidth"/&gt;&lt;/xsl:otherwise&gt;
    &lt;/xsl:choose&gt;
  &lt;/xsl:variable&gt;
  &lt;xsl:variable name="width"&gt;&lt;xsl:value-of select="$colWidth"/&gt;&lt;/xsl:variable&gt;

  &lt;xsl:if test="$styles != ''"&gt;&lt;xsl:attribute name="class"&gt;docTableCell &lt;xsl:value-of select="$styles"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:if&gt;

  &lt;xsl:choose&gt;
    &lt;xsl:when test="@align"&gt;
    &lt;xsl:attribute name="align"&gt;&lt;xsl:value-of select="@align"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:when&gt;
    &lt;xsl:when test="ancestor::tgroup/@align"&gt;&lt;xsl:attribute name="align"&gt;&lt;xsl:value-of select="ancestor::tgroup/@align"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:when&gt;
  &lt;/xsl:choose&gt;
   &lt;xsl:if test="@valign"&gt;&lt;xsl:attribute name="valign"&gt;&lt;xsl:value-of select="@valign"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:if&gt;
   &lt;xsl:if test="@morerows"&gt;&lt;xsl:attribute name="rowspan"&gt;&lt;xsl:value-of select="@morerows + 1"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:if&gt;
   &lt;xsl:if test="@spanname"&gt;&lt;xsl:attribute name="colspan"&gt;&lt;xsl:call-template name="c_TableColspan1"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:if&gt;
   &lt;xsl:if test="@namest"&gt;&lt;xsl:attribute name="colspan"&gt;&lt;xsl:call-template name="c_TableColspan2"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:if&gt;
      &lt;xsl:choose&gt;
     &lt;xsl:when test="child::text()"&gt;&lt;xsl:apply-templates select="."/&gt;&lt;/xsl:when&gt;
    &lt;xsl:when test="child::*"&gt;&lt;xsl:apply-templates/&gt;&lt;/xsl:when&gt;
    &lt;xsl:otherwise&gt;&amp;#160;&lt;/xsl:otherwise&gt;
   &lt;/xsl:choose&gt;
&lt;/xsl:template&gt;

&lt;xsl:template name="c_Table"&gt;

	&lt;!-- output the page number(s) above the table --&gt;
	&lt;p&gt;&lt;table cellspacing="0"&gt;
	&lt;xsl:choose&gt;
  &lt;xsl:when test="@frame = 'all'"&gt;&lt;xsl:attribute name="class"&gt;allBorders&lt;/xsl:attribute&gt;
  &lt;xsl:attribute name="border"&gt;1&lt;/xsl:attribute&gt;
    &lt;xsl:call-template name="c_setRules"/&gt;
	&lt;/xsl:when&gt;

  &lt;xsl:when test="@frame='none'"&gt;
    &lt;xsl:attribute name="FRAME"&gt;void&lt;/xsl:attribute&gt;
    &lt;xsl:call-template name="c_setRules"/&gt;    
  &lt;/xsl:when&gt;
  &lt;xsl:when test="@frame='topbot'"&gt;
    &lt;xsl:attribute name="FRAME"&gt;hsides&lt;/xsl:attribute&gt;
    &lt;xsl:call-template name="c_setRules"/&gt;
  &lt;/xsl:when&gt;
  &lt;xsl:when test="@frame='sides'"&gt;
    &lt;xsl:attribute name="FRAME"&gt;border&lt;/xsl:attribute&gt;
    &lt;xsl:call-template name="c_setRules"/&gt;
  &lt;/xsl:when&gt;
  &lt;xsl:when test="@frame='top'"&gt;
    &lt;xsl:attribute name="FRAME"&gt;above&lt;/xsl:attribute&gt;
    &lt;xsl:call-template name="c_setRules"/&gt;
  &lt;/xsl:when&gt;
  &lt;xsl:when test="@frame='bottom'"&gt;
    &lt;xsl:attribute name="FRAME"&gt;below&lt;/xsl:attribute&gt;
    &lt;xsl:call-template name="c_setRules"/&gt;
  &lt;/xsl:when&gt;
  &lt;xsl:otherwise&gt;
    &lt;xsl:attribute name="border"&gt;1&lt;/xsl:attribute&gt;
    &lt;xsl:call-template name="c_setRules"/&gt;
  &lt;/xsl:otherwise&gt;
	&lt;/xsl:choose&gt;
	&lt;xsl:choose&gt;
 
 &lt;xsl:when test=".//colspec/@colwidth"/&gt;
 &lt;xsl:when test="ancestor::orderedlist[1]|ancestor::itemizedlist[1]"&gt;
  &lt;xsl:choose&gt;
   &lt;xsl:when test="ancestor::procedure[1]"&gt;
    &lt;xsl:attribute name="width"&gt;85%&lt;/xsl:attribute&gt;
   &lt;/xsl:when&gt;
   &lt;xsl:when test="ancestor::glossdef"&gt;
    &lt;xsl:attribute name="width"&gt;85%&lt;/xsl:attribute&gt;
   &lt;/xsl:when&gt;
   &lt;xsl:otherwise&gt;  
    &lt;xsl:attribute name="width"&gt;90%&lt;/xsl:attribute&gt;
   &lt;/xsl:otherwise&gt;
  &lt;/xsl:choose&gt;
 &lt;/xsl:when&gt;
 &lt;xsl:when test="ancestor::partintro[1]"&gt;&lt;xsl:attribute name="width"&gt;90%&lt;/xsl:attribute&gt;&lt;/xsl:when&gt;
 &lt;xsl:when test="ancestor::note[1]|ancestor::sidebar[1]"&gt;&lt;xsl:attribute name="width"&gt;90%&lt;/xsl:attribute&gt;&lt;/xsl:when&gt;
 &lt;xsl:when test="ancestor::procedure[1]"&gt;&lt;xsl:attribute name="width"&gt;90%&lt;/xsl:attribute&gt;&lt;/xsl:when&gt;
 &lt;xsl:when test="ancestor::glossdef"&gt;&lt;xsl:attribute name="width"&gt;85%&lt;/xsl:attribute&gt;&lt;/xsl:when&gt;
 &lt;xsl:otherwise&gt;&lt;xsl:attribute name="width"&gt;100%&lt;/xsl:attribute&gt;&lt;/xsl:otherwise&gt;
	&lt;/xsl:choose&gt;

&lt;xsl:for-each select="tgroup"&gt;
 &lt;colgroup&gt;
 &lt;xsl:if test="@align"&gt;&lt;xsl:attribute name="align"&gt;&lt;xsl:value-of select="@align"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:if&gt;
 &lt;xsl:if test="@valign"&gt;&lt;xsl:attribute name="valign"&gt;&lt;xsl:value-of select="@valign"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:if&gt;
 &lt;xsl:if test="@cols"&gt;&lt;xsl:attribute name="span"&gt;&lt;xsl:value-of select="@cols"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:if&gt;
 &lt;xsl:for-each select="colspec"&gt;
  &lt;col&gt;
   &lt;xsl:if test="@colwidth"&gt;
     &lt;xsl:attribute name="width"&gt;&lt;xsl:call-template name="c_colwidth"&gt;&lt;xsl:with-param name="attrval" select="@colwidth"/&gt;&lt;/xsl:call-template&gt;&lt;/xsl:attribute&gt;
   &lt;/xsl:if&gt;

   &lt;xsl:if test="@align"&gt;
     &lt;xsl:attribute name="align"&gt;&lt;xsl:value-of select="@align"/&gt;&lt;/xsl:attribute&gt;
   &lt;/xsl:if&gt;

  &lt;/col&gt;
 &lt;/xsl:for-each&gt;
 &lt;/colgroup&gt;
 &lt;thead&gt;
 &lt;xsl:for-each select="thead/row"&gt;
  &lt;tr&gt;  &lt;xsl:call-template name="c_TableTR"/&gt;
  &lt;xsl:if test="@id"&gt;&lt;a&gt;&lt;xsl:attribute name="name"&gt;&lt;xsl:value-of select="@id"/&gt;&lt;/xsl:attribute&gt;&lt;xsl:value-of select="''"/&gt;&lt;/a&gt;&lt;/xsl:if&gt;

  &lt;xsl:for-each select="entry"&gt;
   &lt;th class="docTableHeader" scope="col"&gt;
   &lt;xsl:choose&gt;
     &lt;xsl:when test="@align"&gt;&lt;xsl:attribute name="style"&gt;text-align:&lt;xsl:value-of select="@align"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:when&gt;
     &lt;xsl:when test="ancestor::tgroup/@align"&gt;&lt;xsl:attribute name="style"&gt;text-align:&lt;xsl:value-of select="ancestor::tgroup/@align"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:when&gt;
   &lt;/xsl:choose&gt;
   &lt;xsl:call-template name="c_TableTD"/&gt;
 &lt;/th&gt;
  &lt;/xsl:for-each&gt;
  &lt;/tr&gt;
 &lt;/xsl:for-each&gt;
 &lt;/thead&gt;
 &lt;xsl:for-each select="tbody/row"&gt;
  &lt;tr&gt;  &lt;xsl:call-template name="c_TableTR"/&gt;
  &lt;xsl:if test="@id"&gt;&lt;a&gt;&lt;xsl:attribute name="name"&gt;&lt;xsl:value-of select="@id"/&gt;&lt;/xsl:attribute&gt;&lt;xsl:value-of select="''"/&gt;&lt;/a&gt;&lt;/xsl:if&gt;
  &lt;xsl:for-each select="entry"&gt;
    &lt;td class="docTableCell"&gt;
      &lt;xsl:call-template name="c_TableTD"/&gt;
    &lt;/td&gt;      
  &lt;/xsl:for-each&gt;
  &lt;/tr&gt;
 &lt;/xsl:for-each&gt;

&lt;xsl:for-each select="tfooter"&gt;
  &lt;tr&gt;  &lt;xsl:call-template name="c_TableTR"/&gt;
  &lt;xsl:if test="@id"&gt;&lt;a&gt;&lt;xsl:attribute name="name"&gt;&lt;xsl:value-of select="@id"/&gt;&lt;/xsl:attribute&gt;&lt;xsl:value-of select="''"/&gt;&lt;/a&gt;&lt;/xsl:if&gt;
  &lt;xsl:for-each select="SimplePara"&gt;
    &lt;td class="docTableFooter"&gt;
      &lt;xsl:call-template name="c_TableTD"/&gt;
    &lt;/td&gt;      
  &lt;/xsl:for-each&gt;
  &lt;/tr&gt;
 &lt;/xsl:for-each&gt;
 &lt;!-- The old way...New way added above. Leaving this comment while testing
 &lt;xsl:for-each select="tfooter/row"&gt;
  &lt;tr&gt;  &lt;xsl:if test="../@align"&gt;&lt;xsl:attribute name="align"&gt;&lt;xsl:value-of select="../@align"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:if&gt;
  &lt;xsl:choose&gt;  
   &lt;xsl:when test="../@valign"&gt;&lt;xsl:attribute name="valign"&gt;&lt;xsl:value-of select="../@valign"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:when&gt;
   &lt;xsl:when test="@valign"&gt;&lt;xsl:attribute name="valign"&gt;&lt;xsl:value-of select="@valign"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:when&gt;
  &lt;/xsl:choose&gt;
  &lt;xsl:if test="@align"&gt;&lt;xsl:attribute name="align"&gt;&lt;xsl:value-of select="@align"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:if&gt;
  &lt;xsl:for-each select="entry"&gt;
   &lt;td class="docTableFooter"&gt;
   &lt;xsl:if test="@align"&gt;&lt;xsl:attribute name="align"&gt;&lt;xsl:value-of select="@align"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:if&gt;
   &lt;xsl:if test="@valign"&gt;&lt;xsl:attribute name="valign"&gt;&lt;xsl:value-of select="@valign"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:if&gt;
   &lt;xsl:if test="@morerows"&gt;&lt;xsl:attribute name="rowspan"&gt;&lt;xsl:value-of select="@morerows + 1"/&gt;&lt;/xsl:attribute&gt;&lt;/xsl:if&gt;
   &lt;xsl:call-template name="c_checkStyle"/&gt;
   &lt;xsl:attribute name="colspan"&gt;
   &lt;xsl:choose&gt;
    &lt;xsl:when test="ancestor::tgroup[1]/@cols"&gt;&lt;xsl:value-of select="ancestor::tgroup[1]/@cols"/&gt;&lt;/xsl:when&gt;
    &lt;xsl:otherwise&gt;&lt;xsl:value-of select="count(ancestor::informaltable/tgroup/tbody/row[1]/entry|ancestor::table/tgroup/tbody/row[1]/entry)"/&gt;&lt;/xsl:otherwise&gt;
   &lt;/xsl:choose&gt;
   &lt;/xsl:attribute&gt;&lt;xsl:apply-templates select="."/&gt;
   &lt;/td&gt;
  &lt;/xsl:for-each&gt;
  &lt;/tr&gt;
 &lt;/xsl:for-each&gt;
--&gt;

	&lt;/xsl:for-each&gt;
	&lt;/table&gt;

	&lt;xsl:if test="creditline"&gt;
  &lt;p class="docText"&gt;&lt;xsl:apply-templates select="creditline"/&gt;&lt;/p&gt;
	&lt;/xsl:if&gt;

	&lt;xsl:if test="source"&gt;
  &lt;p class="docText"&gt;&lt;xsl:apply-templates select="source"/&gt;&lt;/p&gt;
	&lt;/xsl:if&gt;

&lt;!-- process any textobjects which are only added if restricted content
     has been removed from this table --&gt;
	&lt;xsl:if test="mediaobject/textobject[not(@role='alt')]"&gt;
  &lt;xsl:apply-templates select="mediaobject/textobject[not(@role='alt')]"/&gt;
	&lt;/xsl:if&gt;
	&lt;/p&gt;&lt;br/&gt;
  &lt;xsl:for-each select=".//footnote"&gt;&lt;xsl:apply-templates/&gt;&lt;/xsl:for-each&gt;

&lt;/xsl:template&gt;
&lt;xsl:template name="c_Tablefooter"&gt;

&lt;xsl:for-each select="tfooter/SimplePara"&gt;
    &lt;p&gt;&lt;span class="tagn"&gt;&lt;xsl:text&gt;Tfooter &lt;/xsl:text&gt;&lt;/span&gt;&lt;xsl:apply-templates/&gt;&lt;!--&lt;xsl:value-of select="."/&gt;--&gt;&lt;/p&gt;
  &lt;/xsl:for-each&gt;
&lt;!--&lt;/xsl:for-each&gt;--&gt;
&lt;/xsl:template&gt;
&lt;xsl:template name="c_colwidth"&gt;
  &lt;xsl:param name="attrval"/&gt;
  &lt;xsl:value-of select="round($attrval)"/&gt;
&lt;/xsl:template&gt;
&lt;xsl:template match="entry"&gt;
	&lt;xsl:choose&gt;
 &lt;xsl:when test="*"&gt;&lt;xsl:apply-templates/&gt;&lt;/xsl:when&gt;
 &lt;xsl:when test="normalize-space(.)=''"&gt;&amp;#160;&lt;/xsl:when&gt;
 &lt;xsl:otherwise&gt;&lt;xsl:value-of select="."/&gt;&lt;/xsl:otherwise&gt;
	&lt;/xsl:choose&gt;
&lt;/xsl:template&gt;

&lt;!--- Calling empty templates --&gt;

&lt;xsl:template match="//Chapter/ChapterInfo/ChapterCopyright/CopyrightHolderName"&gt;&lt;/xsl:template&gt;

&lt;xsl:template match="//Chapter/ChapterInfo/ChapterCopyright/CopyrightYear"&gt;&lt;/xsl:template&gt;

&lt;xsl:template match="//Part"&gt;
&lt;div&gt;
&lt;p style="background-color: #00008B"&gt;&lt;font color="white"&gt;&lt;b&gt;PartInfo&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;
&lt;xsl:apply-templates/&gt;&lt;/div&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="//PartInfo"&gt;
&lt;table width="100%"&gt;
&lt;xsl:apply-templates/&gt;&lt;/table&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="//PartInfo/PartID"&gt;
&lt;tr&gt;&lt;td width="20%"&gt;&lt;font color="#000080"&gt;&lt;xsl:text&gt;PartID&lt;/xsl:text&gt;&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;xsl:apply-templates/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="//PartInfo/PartNumber"&gt;
&lt;tr&gt;&lt;td width="20%"&gt;&lt;font color="#000080"&gt;&lt;xsl:text&gt;PartNumber&lt;/xsl:text&gt;&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;xsl:apply-templates/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/xsl:template&gt;
&lt;xsl:template match="//PartInfo/PartSequenceNumber"&gt;
&lt;tr&gt;&lt;td width="20%"&gt;&lt;font color="#000080"&gt;&lt;xsl:text&gt;PartSequenceNumber&lt;/xsl:text&gt;&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;xsl:apply-templates/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="//PartInfo/PartTitle"&gt;
&lt;tr&gt;&lt;td width="20%"&gt;&lt;font color="#000080"&gt;&lt;xsl:text&gt;PartTitle&lt;/xsl:text&gt;&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;xsl:apply-templates/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="//PartInfo/PartChapterCount"&gt;
&lt;tr&gt;&lt;td width="20%"&gt;&lt;font color="#000080"&gt;&lt;xsl:text&gt;PartChapterCount&lt;/xsl:text&gt;&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;xsl:apply-templates/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="//PartInfo//PartContext/BookID"&gt;
&lt;tr&gt;&lt;td width="20%"&gt;&lt;font color="#000080"&gt;&lt;xsl:text&gt;PartContext-BookID&lt;/xsl:text&gt;&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;xsl:apply-templates/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="//PartInfo//PartContext/BookTitle"&gt;
&lt;tr&gt;&lt;td width="20%"&gt;&lt;font color="#000080"&gt;&lt;xsl:text&gt;PartContext-BookTitle&lt;/xsl:text&gt;&lt;/font&gt;&lt;/td&gt;
&lt;td&gt;&lt;xsl:apply-templates/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="//IndexTerm"&gt;
&lt;font size="+3"&gt;{&lt;/font&gt;&lt;span class="indexTerm"&gt;&lt;xsl:apply-templates/&gt;&lt;/span&gt;&lt;font size="+3"&gt;}&lt;/font&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="//IndexTerm//*"&gt;
&amp;#x00A0;&lt;xsl:value-of select="name()"/&gt;:&amp;#x00A0;&lt;font face="Courier New"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;&amp;#x00A0;
&lt;/xsl:template&gt;

&lt;xsl:template match="ExternalRef"&gt;
&lt;a style="text-decoration: none"&gt;&lt;xsl:attribute name="href"&gt;&lt;xsl:value-of select="@Address"/&gt;&lt;xsl:apply-templates/&gt;&lt;/xsl:attribute&gt;&lt;xsl:apply-templates/&gt;&lt;/a&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Colophon"&gt;
&lt;br/&gt;&lt;div title="Colophon" style="border-left: 1pt solid pink; border-right: 1pt solid pink; border-bottom: 1pt solid pink; border-top: 1pt solid pink"&gt;
&lt;p align="center" style="background-color: #00008B"&gt;&lt;font color="white"&gt;&lt;b&gt;Colophon&lt;/b&gt;&lt;/font&gt;&lt;/p&gt;
&lt;xsl:apply-templates/&gt;&lt;/div&gt;&lt;br/&gt;
&lt;/xsl:template&gt;


&lt;xsl:template match="//ChapterBackmatter/*[position()=last()]"&gt;
&lt;xsl:apply-templates/&gt;
&lt;p style="margin-top: 60pt; background-color: orange" align="center"&gt;&lt;font face="Palatino Linotype"&gt;&amp;#x00A9; Integra Software Services Pvt. Ltd. All rights reserved.&lt;/font&gt;&lt;/p&gt;
&lt;/xsl:template&gt;

&lt;/xsl:stylesheet&gt;

[[/Springer_FT.xsl]]
[[springer.xsl]]
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://dtd.cambridge.org/2002/CamML-content"&gt;

&lt;xsl:variable name="uc" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZ'"/&gt;
&lt;xsl:variable name="lc" select="'abcdefghijklmnopqrstuvwxyz'"/&gt;
&lt;xsl:variable name="cc" select="'col'"/&gt;
&lt;xsl:variable name="c" select="''"/&gt;
&lt;xsl:variable name="xlh" select="'#'"/&gt;
&lt;xsl:variable name="xlv" select="''"/&gt;


&lt;xsl:template match="/"&gt;&lt;xsl:apply-templates/&gt;&lt;/xsl:template&gt;


&lt;xsl:template match="text()"&gt;&lt;xsl:value-of select="."/&gt;&lt;/xsl:template&gt;

&lt;xsl:template match="Publisher"&gt;
&lt;table border="0" width="100%"&gt;
&lt;tr&gt;
&lt;td width="20%" align="center" bgcolor="darkblue"&gt;&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\svlogo2.gif"/&gt;&lt;/td&gt;
&lt;td align="center" bgcolor="darkblue"&gt;&lt;font color="white" size="+3"&gt;&lt;b&gt;Springer XML Viewer&lt;/b&gt;&lt;/font&gt;
&lt;br/&gt;&lt;br/&gt;
&lt;font color="silver" size="+2"&gt;&lt;b&gt;[Header and References]&lt;/b&gt;&lt;/font&gt;
&lt;/td&gt;
&lt;td width="20%" align="center" bgcolor="darkblue"&gt;&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\Logo.gif"/&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;br/&gt;
&lt;hr size="2"/&gt;
&lt;br/&gt;
&lt;table border="1" width="75%"&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Publisher Name:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/PublisherName"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Publisher Location:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/PublisherLocation"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;div&gt;&lt;xsl:apply-templates/&gt;&lt;/div&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Series"&gt;
&lt;br/&gt;&lt;hr/&gt;
&lt;table border="1" width="75%"&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Series ID:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/SeriesID"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Series Print ISSN:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/SeriesPrintISSN"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Series Title:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/SeriesTitle"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Series Sub Title:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/SeriesSubTitle"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Series Abbreviated Title:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/SeriesAbbreviatedTitle"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;div&gt;&lt;xsl:apply-templates/&gt;&lt;/div&gt;
&lt;/xsl:template&gt;


&lt;xsl:template match="Book"&gt;
&lt;br/&gt;&lt;hr/&gt;&lt;table border="1" width="75%"&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Book ID:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/BookID"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Book Title:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/BookTitle"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Book Sub Title:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/BookSubTitle"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Book Volume Number:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/BookVolumeNumber"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Book DOI:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/BookDOI"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Book Title ID:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/BookTitleID"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Book Print ISBN:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/BookPrintISBN"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Book Electronic ISBN:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/BookElectronicISBN"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Book Chapter Count&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/BookChapterCount"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Copyright Holder:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/CopyrightHolderName"/&gt;&amp;#160;&amp;#160;&lt;xsl:value-of select="//*/CopyrightYear"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;BookBackmatter Pages:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/BookBackmatterFirstPage"/&gt;&amp;#160;&amp;#x2013;&amp;#160;&lt;xsl:value-of select="//*/BookBackmatterLastPage"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;BookFrontmatter Pages:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/BookFrontmatterFirstPage"/&gt;&amp;#160;&amp;#x2013;&amp;#160;&lt;xsl:value-of select="//*/BookFrontmatterLastPage"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;div&gt;&lt;xsl:apply-templates/&gt;&lt;/div&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Part"&gt;
&lt;br/&gt;&lt;hr/&gt;&lt;table border="1" width="75%"&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Part:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/PartID"/&gt;&lt;/font&gt;&amp;#160;&amp;#160;&lt;font color="blue" size="+1"&gt;Part Number:&lt;/font&gt;&amp;#160;&amp;#160;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/PartNumber"/&gt;&lt;/font&gt;&amp;#160;&amp;#160;&lt;font color="blue" size="+1"&gt;Part Sequence Number:&lt;/font&gt;&amp;#160;&amp;#160;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/PartSequenceNumber"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Part Title:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/PartTitle"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Part SubTitle:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/PartSubTitle"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Part Chapter Count:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/PartChapterCount"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;div&gt;&lt;xsl:apply-templates/&gt;&lt;/div&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Chapter"&gt;
&lt;br/&gt;&lt;hr/&gt;&lt;table border="1" width="75%"&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Chapter:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="@ChapterType"/&gt;&lt;/font&gt;&amp;#160;&amp;#160;&lt;font color="blue" size="+1"&gt;Chapter ID:&lt;/font&gt;&amp;#160;&amp;#160;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/ChapterID"/&gt;&lt;/font&gt;&amp;#160;&amp;#160;&lt;font color="blue" size="+1"&gt;Chapter Number:&lt;/font&gt;&amp;#160;&amp;#160;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/ChapterNumber"/&gt;&lt;/font&gt;&amp;#160;&amp;#160;&lt;font color="blue" size="+1"&gt;Chapter Sequence Number:&lt;/font&gt;&amp;#160;&amp;#160;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/ChapterSequenceNumber"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Chapter Title:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/ChapterTitle"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Chapter SubTitle:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/ChapterSubTitle"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Chapter Pages:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/ChapterFirstPage"/&gt;&amp;#160;&amp;#x2013;&amp;#160;&lt;xsl:value-of select="//*/ChapterLastPage"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Chapter Copyright:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/ChapterCopyright/CopyrightHolderName"/&gt;&amp;#160;&amp;#160;&lt;xsl:value-of select="//*/ChapterCopyright/CopyrightYear"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Copyright Year:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//article-meta/copyright-year"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;div&gt;&lt;xsl:apply-templates/&gt;&lt;/div&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="BodyRef"&gt;
&lt;table border="1" width="75%"&gt;
&lt;tr&gt;&lt;td&gt;&lt;font color="blue" size="+1"&gt;Body Ref:&lt;/font&gt;&lt;/td&gt;&lt;td&gt;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/BodyRef/@FileRef"/&gt;&lt;/font&gt;&lt;br/&gt;&lt;font color="blue" size="+1"&gt;OutputMedium:&lt;/font&gt;&amp;#160;&amp;#160;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/BodyRef/@OutputMedium"/&gt;&lt;/font&gt;&amp;#160;&amp;#160;&lt;font color="blue" size="+1"&gt;PDFType:&lt;/font&gt;&amp;#160;&amp;#160;&lt;font size="+1"&gt;&lt;xsl:value-of select="//*/BodyRef/@PDFType"/&gt;&lt;/font&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;
&lt;div&gt;&lt;xsl:apply-templates/&gt;&lt;/div&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="//*/ChapterCopyright/CopyrightYear|//*/ChapterCopyright/CopyrightHolderName|//*/PublisherName|//*/PublisherLocation|//*/SeriesID|//*/SeriesPrintISSN|//*/SeriesTitle|//*/BookID|//*/BookTitle|//*/BookVolumeNumber|//*/BookDOI|//*/BookTitleID|//*/BookPrintISBN|//*/BookElectronicISBN|//*/BookChapterCount|//*/CopyrightHolderName|//*/CopyrightYear|ChapterID|ChapterNumber|ChapterSequenceNumber|//*/ChapterTitle|//*/ChapterFirstPage|//*/ChapterLastPage|//*/BookBackmatterFirstPage|//*/BookBackmatterLastPage|//*/BookFrontmatterFirstPage|//*/BookFrontmatterLastPage|//*/BookSubTitle|//*/PartChapterCount|//*/PartSubTitle|//*/PartTitle|//*/PartNumber|//*/PartSequenceNumber|//*/PartID|//*/ChapterSubTitle|//*/SeriesAbbreviatedTitle|//*/SeriesSubTitle"&gt;&lt;/xsl:template&gt;

&lt;xsl:template match="SeriesHeader"&gt;
&lt;h2&gt;Series Header&lt;/h2&gt;&lt;br/&gt;&lt;xsl:apply-templates/&gt;&lt;hr/&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="BookHeader"&gt;
&lt;h2&gt;Book Header&lt;/h2&gt;&lt;br/&gt;&lt;xsl:apply-templates/&gt;&lt;hr/&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="PartHeader"&gt;
&lt;h2&gt;Part Header&lt;/h2&gt;&lt;br/&gt;&lt;xsl:apply-templates/&gt;&lt;hr/&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="ChapterHeader"&gt;
&lt;h2&gt;Chapter Header&lt;/h2&gt;&lt;br/&gt;&lt;xsl:apply-templates/&gt;&lt;hr/&gt;
&lt;/xsl:template&gt;


&lt;xsl:template match="EditorGroup"&gt;Editor Group&lt;br/&gt;&lt;xsl:apply-templates/&gt;&lt;/xsl:template&gt;

&lt;xsl:template match="AuthorGroup"&gt;Author Group&lt;br/&gt;&lt;xsl:apply-templates/&gt;&lt;/xsl:template&gt;

&lt;xsl:template match="Editor|Author"&gt;
&lt;a&gt;&lt;xsl:attribute name="href"&gt;#&lt;xsl:value-of select="@AffiliationIDS"/&gt;&lt;/xsl:attribute&gt;&lt;/a&gt;
&lt;xsl:apply-templates/&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Editor/EditorName|Author|AuthorName"&gt;
&lt;p&gt;&lt;xsl:apply-templates/&gt;&lt;/p&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="GivenName"&gt;&amp;#160;&lt;font color="green" size="+1"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;&lt;/xsl:template&gt;

&lt;xsl:template match="GivenName[1]"&gt;&lt;font color="brown" size="+1"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;&lt;/xsl:template&gt;

&lt;xsl:template match="FamilyName"&gt;&amp;#160;&lt;font color="blue" size="+1"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;&lt;/xsl:template&gt;

&lt;xsl:template match="Suffix"&gt;&amp;#160;&lt;font color="red" size="+1"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;&lt;/xsl:template&gt;

&lt;xsl:template match="Affiliation"&gt;
&lt;a&gt;&lt;xsl:attribute name="name"&gt;&lt;xsl:value-of select="@ID"/&gt;&lt;/xsl:attribute&gt;&lt;/a&gt;
&lt;p&gt;&lt;br/&gt;&lt;font color="orange" size="+1"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;&lt;/p&gt;------------------------&lt;/xsl:template&gt;

&lt;xsl:template match="OrgName"&gt;
&lt;p style="margin-top: -15pt"&gt;&lt;font color="darkblue"&gt;Organisation Name:&lt;/font&gt;&amp;#160;&lt;xsl:apply-templates/&gt;&lt;/p&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="OrgDivision"&gt;&lt;p style="margin-top: -15pt"&gt;&lt;font color="darkblue"&gt;Organisation Division:&lt;/font&gt;&amp;#160;&lt;xsl:apply-templates/&gt;&lt;/p&gt;&lt;/xsl:template&gt;

&lt;xsl:template match="OrgAddress/Street"&gt;&lt;p style="margin-top: -15pt"&gt;&lt;font color="darkblue"&gt;Street:&lt;/font&gt;&amp;#160;&lt;xsl:apply-templates/&gt;&lt;/p&gt;&lt;/xsl:template&gt;

&lt;xsl:template match="OrgAddress/City"&gt;&lt;p style="margin-top: -15pt"&gt;&lt;font color="darkblue"&gt;City:&lt;/font&gt;&amp;#160;&lt;xsl:apply-templates/&gt;&lt;/p&gt;&lt;/xsl:template&gt;

&lt;xsl:template match="OrgAddress/State"&gt;&lt;p style="margin-top: -15pt"&gt;&lt;font color="darkblue"&gt;State:&lt;/font&gt;&amp;#160;&lt;xsl:apply-templates/&gt;&lt;/p&gt;&lt;/xsl:template&gt;

&lt;xsl:template match="OrgAddress/Country"&gt;&lt;p style="margin-top: -15pt"&gt;&lt;font color="darkblue"&gt;Country:&lt;/font&gt;&amp;#160;&lt;xsl:apply-templates/&gt;&lt;/p&gt;&lt;/xsl:template&gt;

&lt;xsl:template match="Bibliography"&gt;
&lt;hr/&gt;
&lt;xsl:apply-templates/&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Heading"&gt;
&lt;h2&gt;&lt;xsl:apply-templates/&gt;&lt;/h2&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Citation"&gt;
&lt;xsl:value-of select="@ID"/&gt;
&lt;p&gt;&lt;font size="+1"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;&lt;/p&gt;
&lt;hr/&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Citation/*/ArticleTitle"&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\starttag.gif"&gt;&lt;/img&gt;
&lt;font color="red"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\endtag.gif"&gt;&lt;/img&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Citation/*/BookTitle"&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\starttag.gif"&gt;&lt;/img&gt;
&lt;font color="blue"&gt;&lt;i&gt;&lt;xsl:apply-templates/&gt;&lt;/i&gt;&lt;/font&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\endtag.gif"&gt;&lt;/img&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Citation/*/ChapterTitle"&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\starttag.gif"&gt;&lt;/img&gt;
&lt;font color="green"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\endtag.gif"&gt;&lt;/img&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="BibAuthorName"&gt;
&lt;xsl:apply-templates select="FamilyName"/&gt;, &lt;xsl:apply-templates select="Initials"/&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="BibAuthorName/Initials"&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\starttag.gif"&gt;&lt;/img&gt;
&lt;font color="orange"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\endtag.gif"&gt;&lt;/img&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="BibAuthorName/FamilyName"&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\starttag.gif"&gt;&lt;/img&gt;
&lt;font color="blue"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\endtag.gif"&gt;&lt;/img&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="InstitutionalAuthorName"&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\starttag.gif"&gt;&lt;/img&gt;
&lt;font color="darkviolet"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\endtag.gif"&gt;&lt;/img&gt;
&lt;/xsl:template&gt;


&lt;xsl:template match="BibEditorName"&gt;
&lt;xsl:apply-templates/&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="BibEditorName/Initials"&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\starttag.gif"&gt;&lt;/img&gt;
&lt;font color="red"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\endtag.gif"&gt;&lt;/img&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="BibEditorName/FamilyName"&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\starttag.gif"&gt;&lt;/img&gt;
&lt;font color="brown"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\endtag.gif"&gt;&lt;/img&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Citation/*/PublisherName"&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\starttag.gif"&gt;&lt;/img&gt;
&lt;font color="darkteal"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\endtag.gif"&gt;&lt;/img&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Citation/*/PublisherLocation"&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\starttag.gif"&gt;&lt;/img&gt;
&lt;font color="orange"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\endtag.gif"&gt;&lt;/img&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="JournalTitle"&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\starttag.gif"&gt;&lt;/img&gt;
&lt;font color="green"&gt;&lt;i&gt;&lt;xsl:apply-templates/&gt;&lt;/i&gt;&lt;/font&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\endtag.gif"&gt;&lt;/img&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Year"&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\starttag.gif"&gt;&lt;/img&gt;
&lt;font color="brown"&gt;(&lt;xsl:apply-templates/&gt;)&lt;/font&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\endtag.gif"&gt;&lt;/img&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="VolumeID"&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\starttag.gif"&gt;&lt;/img&gt;
&lt;font color="pink"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\endtag.gif"&gt;&lt;/img&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="IssueID"&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\starttag.gif"&gt;&lt;/img&gt;
&lt;font color="lightblue"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\endtag.gif"&gt;&lt;/img&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="FirstPage"&gt;
&lt;font color="blue"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="BibUnstructured"&gt;
&lt;p&gt;&lt;font color="darkblue" size="3"&gt;&lt;xsl:apply-templates/&gt;&lt;/font&gt;&lt;/p&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Emphasis[@Type='Italic']"&gt;
&lt;i&gt;&lt;xsl:apply-templates/&gt;&lt;/i&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Superscript"&gt;
&lt;sup&gt;&lt;xsl:apply-templates/&gt;&lt;/sup&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Subscript"&gt;
&lt;sub&gt;&lt;xsl:apply-templates/&gt;&lt;/sub&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Particle"&gt;
&lt;xsl:text&gt;&amp;#xa;&lt;/xsl:text&gt;&lt;xsl:apply-templates/&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Prefix"&gt;
&lt;xsl:apply-templates/&gt;&lt;xsl:text&gt;&amp;#xa;&lt;/xsl:text&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="LastPage"&gt;
&lt;font color="violet"&gt;-&lt;xsl:apply-templates/&gt;&lt;/font&gt;
&lt;/xsl:template&gt;

&lt;xsl:template match="Eds"&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\starttag.gif"&gt;&lt;/img&gt;
&lt;xsl:if test="count(preceding-sibling::BibEditorName) &gt; 1"&gt;(Eds.)&lt;/xsl:if&gt;
&lt;xsl:if test="count(preceding-sibling::BibEditorName) = 1"&gt;(Ed.)&lt;/xsl:if&gt;
&lt;img src="D:\Springer_FullText\Demo_FIles_Preparation\Springer_Header_References\Tools\endtag.gif"&gt;&lt;/img&gt;
&lt;/xsl:template&gt;

&lt;/xsl:stylesheet&gt;
[[/springer.xsl]]
[[check.ent]]
&lt;!ENTITY ape        "&amp;#8778;"  &gt;&lt;!--U224A /approxeq R: approximate, equals --&gt;
&lt;!ENTITY apE        "&amp;#8778;"  &gt;&lt;!--U224A approximately equal or equal to --&gt;
&lt;!ENTITY apid       "&amp;#8779;"  &gt;&lt;!--U224B approximately identical to --&gt;
&lt;!ENTITY asymp      "&amp;#8781;"  &gt;&lt;!--U224D /asymp R: asymptotically equal to --&gt;
&lt;!ENTITY bcong      "&amp;#8780;"  &gt;&lt;!--U224C /backcong R: reverse congruent --&gt;
&lt;!ENTITY bepsi      "&amp;#59392;" &gt;&lt;!--UE800 /backepsilon R: such that --&gt;
&lt;!ENTITY bowtie     "&amp;#8904;"  &gt;&lt;!--U22C8 /bowtie R: --&gt;
&lt;!ENTITY bsim       "&amp;#8765;"  &gt;&lt;!--U223D /backsim R: reverse similar --&gt;
&lt;!ENTITY bsime      "&amp;#8909;"  &gt;&lt;!--U22CD /backsimeq R: reverse similar, eq --&gt;
&lt;!ENTITY bsolhsub   "&amp;#58189;" &gt;&lt;!--UE34D reverse solidus, subset --&gt;
&lt;!ENTITY bump       "&amp;#8782;"  &gt;&lt;!--U224E /Bumpeq R: bumpy equals --&gt;
&lt;!ENTITY bumpe      "&amp;#8783;"  &gt;&lt;!--U224F /bumpeq R: bumpy equals, equals --&gt;
&lt;!ENTITY bumpE      "&amp;#58134;" &gt;&lt;!--UE316 bump, equals --&gt;
&lt;!ENTITY Barv       "&amp;#58129;" &gt;&lt;!--UE311 vert, dbl bar (over) --&gt;
&lt;!ENTITY cire       "&amp;#8791;"  &gt;&lt;!--U2257 /circeq R: circle, equals --&gt;
&lt;!ENTITY colone     "&amp;#8788;"  &gt;&lt;!--U2254 /coloneq R: colon, equals --&gt;
&lt;!ENTITY congdot    "&amp;#58132;" &gt;&lt;!--UE314 congruent, dot --&gt;
&lt;!ENTITY csub       "&amp;#58193;" &gt;&lt;!--UE351 subset, closed --&gt;
&lt;!ENTITY csube      "&amp;#58195;" &gt;&lt;!--UE353 subset, closed, equals --&gt;
&lt;!ENTITY csup       "&amp;#58194;" &gt;&lt;!--UE352 superset, closed --&gt;
&lt;!ENTITY csupe      "&amp;#58196;" &gt;&lt;!--UE354 superset, closed, equals --&gt;
&lt;!ENTITY Cuepr      "&amp;#8926;"  &gt;&lt;!--U22DE /curlyeqprec R: curly eq, precedes --&gt;
&lt;!ENTITY cuesc      "&amp;#8927;"  &gt;&lt;!--U22DF /curlyeqsucc R: curly eq, succeeds --&gt;
&lt;!ENTITY Colon      "&amp;#8759;"  &gt;&lt;!--U2237 /Colon, two colons --&gt;
&lt;!ENTITY Colone     "&amp;#58126;" &gt;&lt;!--UE30E double colon, equals --&gt;
&lt;!ENTITY dashv      "&amp;#8867;"  &gt;&lt;!--U22A3 /dashv R: dash, vertical --&gt;
&lt;!ENTITY Dashv      "&amp;#58127;" &gt;&lt;!--UE30F dbl dash, vertical --&gt;
&lt;!ENTITY easter     "&amp;#8795;"  &gt;&lt;!--U225B equal, asterisk above --&gt;
&lt;!ENTITY ecir       "&amp;#8790;"  &gt;&lt;!--U2256 /eqcirc R: circle on equals sign --&gt;
&lt;!ENTITY ecolon     "&amp;#8789;"  &gt;&lt;!--U2255 /eqcolon R: equals, colon --&gt;
&lt;!ENTITY eDDot      "&amp;#58121;" &gt;&lt;!--UE309 /ddotseq R: equal with four dots --&gt;
&lt;!ENTITY eDot       "&amp;#8785;"  &gt;&lt;!--U2251 /doteqdot /Doteq R: eq, even dots --&gt;
&lt;!ENTITY efDot      "&amp;#8786;"  &gt;&lt;!--U2252 /fallingdotseq R: eq, falling dots --&gt;
&lt;!ENTITY eg         "&amp;#58152;" &gt;&lt;!--UE328 equal-or-greater --&gt;
&lt;!ENTITY egs        "&amp;#8925;"  &gt;&lt;!--U22DD /eqslantgtr R: equal-or-gtr, slanted --&gt;
&lt;!ENTITY egsdot     "&amp;#58148;" &gt;&lt;!--UE324 equal-or-greater, slanted, dot inside --&gt;
&lt;!ENTITY el         "&amp;#58151;" &gt;&lt;!--UE327 equal-or-less --&gt;
&lt;!ENTITY els        "&amp;#8924;"  &gt;&lt;!--U22DC /eqslantless R: eq-or-less, slanted --&gt;
&lt;!ENTITY elsdot     "&amp;#58147;" &gt;&lt;!--UE323 equal-or-less, slanted, dot inside --&gt;
&lt;!ENTITY equest     "&amp;#8799;"  &gt;&lt;!--U225F /questeq R: equal with questionmark --&gt;
&lt;!ENTITY equivDD    "&amp;#58136;" &gt;&lt;!--UE318 equivalent, four dots above --&gt;
&lt;!ENTITY erDot      "&amp;#8787;"  &gt;&lt;!--U2253 /risingdotseq R: eq, rising dots --&gt;
&lt;!ENTITY esdot      "&amp;#8784;"  &gt;&lt;!--U2250 /doteq R: equals, single dot above --&gt;
&lt;!ENTITY esim       "&amp;#8770;"  &gt;&lt;!--U2242 /esim R: equals, similar --&gt;
&lt;!ENTITY Esim       "&amp;#58135;" &gt;&lt;!--UE317 equal, similar --&gt;
&lt;!ENTITY fork       "&amp;#8916;"  &gt;&lt;!--U22D4 /pitchfork R: pitchfork --&gt;
&lt;!ENTITY forkv      "&amp;#58139;" &gt;&lt;!--UE31B fork, variant --&gt;
&lt;!ENTITY frown      "&amp;#8994;"  &gt;&lt;!--U2322 /frown R: down curve --&gt;
&lt;!ENTITY gap        "&amp;#8819;"  &gt;&lt;!--U2273 /gtrapprox R: greater, approximate --&gt;
&lt;!ENTITY gel        "&amp;#8923;"  &gt;&lt;!--U22DB /gtreqless R: greater, equals, less --&gt;
&lt;!ENTITY ges        "&amp;#58102;" &gt;&lt;!--UE2F6 /geqslant R: gt-or-equal, slanted --&gt;
&lt;!ENTITY gescc      "&amp;#58200;" &gt;&lt;!--UE358 greater than, closed by curve, equal, slanted --&gt;
&lt;!ENTITY gesdot     "&amp;#58142;" &gt;&lt;!--UE31E greater-than-or-equal, slanted, dot inside --&gt;
&lt;!ENTITY gesdoto    "&amp;#58144;" &gt;&lt;!--UE320 greater-than-or-equal, slanted, dot above --&gt;
&lt;!ENTITY gesdotol   "&amp;#58146;" &gt;&lt;!--UE322 greater-than-or-equal, slanted, dot above left --&gt;
&lt;!ENTITY gesl       "&amp;#58156;" &gt;&lt;!--UE32C greater, equal, slanted, less --&gt;
&lt;!ENTITY gesles     "&amp;#58162;" &gt;&lt;!--UE332 greater, equal, slanted, less, equal, slanted --&gt;
&lt;!ENTITY gE         "&amp;#8807;"  &gt;&lt;!--U2267 /geqq R: greater, double equals --&gt;
&lt;!ENTITY gEl        "&amp;#8923;"  &gt;&lt;!--U22DB /gtreqqless R: gt, dbl equals, less --&gt;
&lt;!ENTITY gl         "&amp;#8823;"  &gt;&lt;!--U2277 /gtrless R: greater, less --&gt;
&lt;!ENTITY gla        "&amp;#58160;" &gt;&lt;!--UE330 greater, less, apart --&gt;
&lt;!ENTITY glE        "&amp;#58158;" &gt;&lt;!--UE32E greater, less, equal --&gt;
&lt;!ENTITY glj        "&amp;#58159;" &gt;&lt;!--UE32F greater, less, overlapping --&gt;
&lt;!ENTITY gsim       "&amp;#8819;"  &gt;&lt;!--U2273 /gtrsim R: greater, similar --&gt;
&lt;!ENTITY gsime      "&amp;#58164;" &gt;&lt;!--UE334 greater, similar, equal --&gt;
&lt;!ENTITY gsiml      "&amp;#58166;" &gt;&lt;!--UE336 greater, similar, less --&gt;
&lt;!ENTITY gtcc       "&amp;#58198;" &gt;&lt;!--UE356 greater than, closed by curve --&gt;
&lt;!ENTITY gtcir      "&amp;#58150;" &gt;&lt;!--UE326 greater than, circle inside --&gt;
&lt;!ENTITY gtdot      "&amp;#8919;"  &gt;&lt;!--U22D7 /gtrdot R: greater than, with dot --&gt;
&lt;!ENTITY gtquest    "&amp;#58154;" &gt;&lt;!--UE32A greater than, questionmark above --&gt;
&lt;!ENTITY gtrarr     "&amp;#58207;" &gt;&lt;!--UE35F greater than, right arrow --&gt;
&lt;!ENTITY Gg         "&amp;#8921;"  &gt;&lt;!--U22D9 /ggg /Gg /gggtr R: triple gtr-than --&gt;
&lt;!ENTITY Gt         "&amp;#8811;"  &gt;&lt;!--U226B /gg R: dbl greater-than sign --&gt;
&lt;!ENTITY homtht     "&amp;#8763;"  &gt;&lt;!--U223B homothetic --&gt;
&lt;!ENTITY lap        "&amp;#8818;"  &gt;&lt;!--U2272 /lessapprox R: less, approximate --&gt;
&lt;!ENTITY lat        "&amp;#58170;" &gt;&lt;!--UE33A larger than --&gt;
&lt;!ENTITY late       "&amp;#58172;" &gt;&lt;!--UE33C larger than or equal --&gt;
&lt;!ENTITY lates      "&amp;#58174;" &gt;&lt;!--UE33E larger than or equal, slanted --&gt;
&lt;!ENTITY leg        "&amp;#8922;"  &gt;&lt;!--U22DA /lesseqgtr R: less, eq, greater --&gt;
&lt;!ENTITY les        "&amp;#58106;" &gt;&lt;!--UE2FA /leqslant R: less-than-or-eq, slant --&gt;
&lt;!ENTITY lescc      "&amp;#58199;" &gt;&lt;!--UE357 less than, closed by curve, equal, slanted --&gt;
&lt;!ENTITY lesdot     "&amp;#58141;" &gt;&lt;!--UE31D less-than-or-equal, slanted, dot inside --&gt;
&lt;!ENTITY lesdoto    "&amp;#58143;" &gt;&lt;!--UE31F less-than-or-equal, slanted, dot above --&gt;
&lt;!ENTITY lesdotor   "&amp;#58145;" &gt;&lt;!--UE321 less-than-or-equal, slanted, dot above right --&gt;
&lt;!ENTITY lesg       "&amp;#58155;" &gt;&lt;!--UE32B less, equal, slanted, greater --&gt;
&lt;!ENTITY lesges     "&amp;#58161;" &gt;&lt;!--UE331 less, equal, slanted, greater, equal, slanted --&gt;
&lt;!ENTITY lE         "&amp;#8806;"  &gt;&lt;!--U2266 /leqq R: less, double equals --&gt;
&lt;!ENTITY lEg        "&amp;#8922;"  &gt;&lt;!--U22DA /lesseqqgtr R: less, dbl eq, greater --&gt;
&lt;!ENTITY lg         "&amp;#8822;"  &gt;&lt;!--U2276 /lessgtr R: less, greater --&gt;
&lt;!ENTITY lgE        "&amp;#58157;" &gt;&lt;!--UE32D less, greater, equal --&gt;
&lt;!ENTITY lsim       "&amp;#8818;"  &gt;&lt;!--U2272 /lesssim R: less, similar --&gt;
&lt;!ENTITY lsime      "&amp;#58163;" &gt;&lt;!--UE333 less, similar, equal --&gt;
&lt;!ENTITY lsimg      "&amp;#58165;" &gt;&lt;!--UE335 less, similar, greater --&gt;
&lt;!ENTITY ltcc       "&amp;#58197;" &gt;&lt;!--UE35</field>
</data>
</node>
