8. Araxis Merge File Comparison Report

Produced by Araxis Merge on Fri Nov 21 17:21:38 2008 UTC. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

8.1 Files compared

# Location File Last Modified
1 C:\Documents and Settings\allums\Desktop\2008.1.20396.b\Formats\Microsoft HTML Help 1.x\Transforms content.xsl Fri Feb 29 22:43:42 2008 UTC
2 C:\Documents and Settings\allums\Desktop\2008.2.20597.p2\Formats\Microsoft HTML Help 1.x\Transforms content.xsl Wed Jul 2 00:18:22 2008 UTC

8.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 91 5536
Changed 73 977
Inserted 14 66
Removed 3 14

8.3 Comparison options

Whitespace Differences in whitespace are significant
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

8.4 Active regular expressions

Expression Description
\$(Author|Date|Header|Id|Locker|Name|RCSfile|Revision|Source|State):[^$]*\$ CVS comments

8.5 Comparison detail

1   <?xml vers ion="1.0"  encoding=" UTF-8"?>   1   <?xml vers ion="1.0"  encoding=" UTF-8"?>
2   <xsl:style sheet vers ion="1.0"  xmlns="htt p://www.w3 .org/1999/ xhtml"   2   <xsl:style sheet vers ion="1.0"  xmlns="htt p://www.w3 .org/1999/ xhtml"
3                                    xmlns:html ="http://w ww.w3.org/ 1999/xhtml "   3                                    xmlns:html ="http://w ww.w3.org/ 1999/xhtml "
4                                    xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform"   4                                    xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform"
5                                    xmlns:msxs l="urn:sch emas-micro soft-com:x slt"   5                                    xmlns:msxs l="urn:sch emas-micro soft-com:x slt"
6                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode"   6                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode"
7                                    xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema"   7                                    xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema"
8                                    xmlns:wwal inks="urn: WebWorks-A Links-Sche ma"   8                                    xmlns:wwal inks="urn: WebWorks-A Links-Sche ma"
9                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema"   9                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema"
10                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a"   10                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a"
11                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema"   11                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema"
12                                    xmlns:wwto c="urn:Web Works-Engi ne-TOC-Sch ema"   12                                    xmlns:wwto c="urn:Web Works-Engi ne-TOC-Sch ema"
13                                    xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema"   13                                    xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema"
14                                    xmlns:wwno tes="urn:W ebWorks-Fo otnote-Sch ema"   14                                    xmlns:wwno tes="urn:W ebWorks-Fo otnote-Sch ema"
15                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject"   15                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject"
16                                    xmlns:wwpa ge="urn:We bWorks-Pag e-Template -Schema"   16                                    xmlns:wwpa ge="urn:We bWorks-Pag e-Template -Schema"
17                                    xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma"   17                                    xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma"
18                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress"   18                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress"
19                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log"   19                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log"
20                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem"   20                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem"
21                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI"   21                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI"
22                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities"   22                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities"
23                                    xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units"   23                                    xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units"
24                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s"   24                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s"
25                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct"   25                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct"
26                                    xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng"   26                                    xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng"
27                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent"   27                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent"
28                                    exclude-re sult-prefi xes="xsl m sxsl wwmod e wwlinks  wwalinks w wfiles wwd oc wwsplit s wwtoc ww behaviors  wwnotes ww project ww page wwloc ale wwprog ress wwlog  wwfilesys tem wwuri  wwstring w wunits wwf ilesext ww projext ww imaging ww exsldoc"   28                                    exclude-re sult-prefi xes="xsl m sxsl wwmod e wwlinks  wwalinks w wfiles wwd oc wwsplit s wwtoc ww behaviors  wwnotes ww project ww page wwloc ale wwprog ress wwlog  wwfilesys tem wwuri  wwstring w wunits wwf ilesext ww projext ww imaging ww exsldoc"
29   >   29   >
30    <xsl:key  name="wwsp lits-files -by-groupi d-type" ma tch="wwspl its:File"  use="conca t(@groupID , ':', @ty pe)" />   30    <xsl:key  name="wwsp lits-files -by-groupi d-type" ma tch="wwspl its:File"  use="conca t(@groupID , ':', @ty pe)" />
31    <xsl:key  name="wwsp lits-files -by-source -lowercase " match="w wsplits:Fi le" use="@ source-low ercase" />   31    <xsl:key  name="wwsp lits-files -by-source -lowercase " match="w wsplits:Fi le" use="@ source-low ercase" />
32    <xsl:key  name="wwsp lits-frame s-by-id" m atch="wwsp lits:Frame " use="@id " />   32    <xsl:key  name="wwsp lits-frame s-by-id" m atch="wwsp lits:Frame " use="@id " />
33    <xsl:key  name="wwsp lits-popup s-by-id" m atch="wwsp lits:Popup " use="@id " />   33    <xsl:key  name="wwsp lits-popup s-by-id" m atch="wwsp lits:Popup " use="@id " />
34    <xsl:key  name="wwto c-entry-by -id" match ="wwtoc:En try" use=" @id" />   34    <xsl:key  name="wwto c-entry-by -id" match ="wwtoc:En try" use=" @id" />
35    <xsl:key  name="wwbe haviors-pa ragraphs-b y-id" matc h="wwbehav iors:Parag raph" use= "@id" />   35    <xsl:key  name="wwbe haviors-pa ragraphs-b y-id" matc h="wwbehav iors:Parag raph" use= "@id" />
36    <xsl:key  name="wwbe haviors-pa ragraphs-b y-relatedt opic" matc h="wwbehav iors:Parag raph" use= "@relatedt opic" />   36    <xsl:key  name="wwbe haviors-pa ragraphs-b y-relatedt opic" matc h="wwbehav iors:Parag raph" use= "@relatedt opic" />
        37    <xsl:key  name="wwbe haviors-fr ames-by-id " match="w wbehaviors :Frame" us e="@id" />
37    <xsl:key  name="wwbe haviors-ta bles-by-id " match="w wbehaviors :Table" us e="@id" />   38    <xsl:key  name="wwbe haviors-ta bles-by-id " match="w wbehaviors :Table" us e="@id" />
38    <xsl:key  name="wwdo c-paragrap hs-by-id"  match="wwd oc:Paragra ph" use="@ id" />   39    <xsl:key  name="wwdo c-paragrap hs-by-id"  match="wwd oc:Paragra ph" use="@ id" />
39    <xsl:key  name="wwno tes-notes- by-id" mat ch="wwnote s:Note" us e="@id" />   40    <xsl:key  name="wwno tes-notes- by-id" mat ch="wwnote s:Note" us e="@id" />
40    <xsl:key  name="wwfi les-files- by-path" m atch="wwfi les:File"  use="@path " />   41    <xsl:key  name="wwfi les-files- by-path" m atch="wwfi les:File"  use="@path " />
41    <xsl:key  name="wwpr oject-prop erty-by-na me" match= "wwproject :Property"  use="@Nam e"/>   42    <xsl:key  name="wwpr oject-prop erty-by-na me" match= "wwproject :Property"  use="@Nam e"/>
42     43  
43     44  
44    <xsl:temp late name= "Breadcrum bs">   45    <xsl:temp late name= "Breadcrum bs">
45     <xsl:par am name="P aramPageRu le" />   46     <xsl:par am name="P aramPageRu le" />
46     <xsl:par am name="P aramSplit"  />   47     <xsl:par am name="P aramSplit"  />
47     <xsl:par am name="P aramBreadc rumbTOCEnt ry" />   48     <xsl:par am name="P aramBreadc rumbTOCEnt ry" />
48     49  
49     <xsl:for -each sele ct="$Param Breadcrumb TOCEntry/. ./ancestor -or-self:: wwtoc:Entr y">   50     <xsl:for -each sele ct="$Param Breadcrumb TOCEntry/. ./ancestor -or-self:: wwtoc:Entr y">
50      <xsl:va riable nam e="VarTOCE ntry" sele ct="." />   51      <xsl:va riable nam e="VarTOCE ntry" sele ct="." />
51     52  
52      <!-- Em it entry - ->   53      <!-- Em it entry - ->
53      <!--             - ->   54      <!--             - ->
54      <xsl:ch oose>   55      <xsl:ch oose>
55       <xsl:w hen test=" string-len gth($VarTO CEntry/@pa th) &gt; 0 ">   56       <xsl:w hen test=" string-len gth($VarTO CEntry/@pa th) &gt; 0 ">
56        <!--  Entry with  link -->   57        <!--  Entry with  link -->
57        <!--                   -->   58        <!--                   -->
58        <xsl: variable n ame="VarRe lativePath " select=" wwuri:GetR elativeTo( $VarTOCEnt ry/@path,  $ParamSpli t/@path)"  />   59        <xsl: variable n ame="VarRe lativePath " select=" wwuri:GetR elativeTo( $VarTOCEnt ry/@path,  $ParamSpli t/@path)"  />
59     60  
60        <html :a class=" WebWorks_B readcrumb_ Link" href ="{$VarRel ativePath} #{$ParamBr eadcrumbTO CEntry/@li nkid}">   61        <html :a class=" WebWorks_B readcrumb_ Link" href ="{$VarRel ativePath} #{$ParamBr eadcrumbTO CEntry/@li nkid}">
61         <xsl :call-temp late name= "Breadcrum bEntry">   62         <xsl :call-temp late name= "Breadcrum bEntry">
62          <xs l:with-par am name="P aramTOCEnt ry" select ="$VarTOCE ntry" />   63          <xs l:with-par am name="P aramTOCEnt ry" select ="$VarTOCE ntry" />
63         </xs l:call-tem plate>   64         </xs l:call-tem plate>
64        </htm l:a>   65        </htm l:a>
65       </xsl: when>   66       </xsl: when>
66     67  
67       <xsl:o therwise>   68       <xsl:o therwise>
68        <!--  Entry with out link - ->   69        <!--  Entry with out link - ->
69        <!--                      - ->   70        <!--                      - ->
70        <xsl: call-templ ate name=" Breadcrumb Entry">   71        <xsl: call-templ ate name=" Breadcrumb Entry">
71         <xsl :with-para m name="Pa ramTOCEntr y" select= "$VarTOCEn try" />   72         <xsl :with-para m name="Pa ramTOCEntr y" select= "$VarTOCEn try" />
72        </xsl :call-temp late>   73        </xsl :call-temp late>
73       </xsl: otherwise>   74       </xsl: otherwise>
74      </xsl:c hoose>   75      </xsl:c hoose>
75     76  
76      <!-- Em it separat or -->   77      <!-- Em it separat or -->
77      <!--                  -->   78      <!--                  -->
78      <xsl:va riable nam e="VarBrea dcrumbsSep arator" se lect="$Par amPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' breadcrumb s-separato r']/@Value " />   79      <xsl:va riable nam e="VarBrea dcrumbsSep arator" se lect="$Par amPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' breadcrumb s-separato r']/@Value " />
79      <xsl:ch oose>   80      <xsl:ch oose>
80       <xsl:w hen test=" string-len gth($VarBr eadcrumbsS eparator)  &gt; 0">   81       <xsl:w hen test=" string-len gth($VarBr eadcrumbsS eparator)  &gt; 0">
81        <xsl: value-of s elect="$Va rBreadcrum bsSeparato r" />   82        <xsl: value-of s elect="$Va rBreadcrum bsSeparato r" />
82       </xsl: when>   83       </xsl: when>
83     84  
84       <xsl:o therwise>   85       <xsl:o therwise>
85        <xsl: text> : </ xsl:text>   86        <xsl: text> : </ xsl:text>
86       </xsl: otherwise>   87       </xsl: otherwise>
87      </xsl:c hoose>   88      </xsl:c hoose>
88     </xsl:fo r-each>   89     </xsl:fo r-each>
89     90  
90     <!-- Emi t entry -- >   91     <!-- Emi t entry -- >
91     <!--             -- >   92     <!--             -- >
92     <xsl:cal l-template  name="Bre adcrumbEnt ry">   93     <xsl:cal l-template  name="Bre adcrumbEnt ry">
93      <xsl:wi th-param n ame="Param TOCEntry"  select="$P aramBreadc rumbTOCEnt ry" />   94      <xsl:wi th-param n ame="Param TOCEntry"  select="$P aramBreadc rumbTOCEnt ry" />
94     </xsl:ca ll-templat e>   95     </xsl:ca ll-templat e>
95    </xsl:tem plate>   96    </xsl:tem plate>
96     97  
97     98  
98    <xsl:temp late name= "Breadcrum bEntry">   99    <xsl:temp late name= "Breadcrum bEntry">
99     <xsl:par am name="P aramTOCEnt ry" />   100     <xsl:par am name="P aramTOCEnt ry" />
100     101  
101     <xsl:for -each sele ct="$Param TOCEntry/w wdoc:Parag raph/wwdoc :Number/ww doc:Text |  $ParamTOC Entry/wwdo c:Paragrap h/wwdoc:Te xtRun/wwdo c:Text">   102     <xsl:for -each sele ct="$Param TOCEntry/w wdoc:Parag raph/wwdoc :Number/ww doc:Text |  $ParamTOC Entry/wwdo c:Paragrap h/wwdoc:Te xtRun/wwdo c:Text">
102      <xsl:va riable nam e="VarText " select=" ." />   103      <xsl:va riable nam e="VarText " select=" ." />
103     104  
104      <xsl:va lue-of sel ect="$VarT ext/@value " />   105      <xsl:va lue-of sel ect="$VarT ext/@value " />
105     </xsl:fo r-each>   106     </xsl:fo r-each>
106    </xsl:tem plate>   107    </xsl:tem plate>
107     108  
108     109  
109    <xsl:temp late name= "Content-C ontent">   110    <xsl:temp late name= "Content-C ontent">
110     <xsl:par am name="P aramConten t" />   111     <xsl:par am name="P aramConten t" />
111     <xsl:par am name="P aramSplits " />   112     <xsl:par am name="P aramSplits " />
112     <xsl:par am name="P aramCargo"  />   113     <xsl:par am name="P aramCargo"  />
113     <xsl:par am name="P aramLinks"  />   114     <xsl:par am name="P aramLinks"  />
114     <xsl:par am name="P aramTOCDat a" />   115     <xsl:par am name="P aramTOCDat a" />
115     <xsl:par am name="P aramSplit"  />   116     <xsl:par am name="P aramSplit"  />
116     117  
117     <!-- Con tent -->   118     <!-- Con tent -->
118     <!--          -->   119     <!--          -->
119     <xsl:app ly-templat es select= "$ParamCon tent" mode ="wwmode:c ontent">   120     <xsl:app ly-templat es select= "$ParamCon tent" mode ="wwmode:c ontent">
120      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  />   121      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  />
121      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" />   122      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" />
122      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />   123      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />
123      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " />   124      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " />
124      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />   125      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
125     </xsl:ap ply-templa tes>   126     </xsl:ap ply-templa tes>
126     127  
127     <!-- Rel ated Topic s -->   128     <!-- Rel ated Topic s -->
128     <!--                  -->   129     <!--                  -->
129     <xsl:cal l-template  name="Rel atedTopics ">   130     <xsl:cal l-template  name="Rel atedTopics ">
130      <xsl:wi th-param n ame="Param Content" s elect="$Pa ramContent " />   131      <xsl:wi th-param n ame="Param Content" s elect="$Pa ramContent " />
131      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  />   132      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  />
132      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" />   133      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" />
133      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />   134      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />
134      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />   135      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
135     </xsl:ca ll-templat e>   136     </xsl:ca ll-templat e>
136    </xsl:tem plate>   137    </xsl:tem plate>
137     138  
138     139  
139    <xsl:temp late name= "RelatedTo pics">   140    <xsl:temp late name= "RelatedTo pics">
140     <xsl:par am name="P aramConten t" />   141     <xsl:par am name="P aramConten t" />
141     <xsl:par am name="P aramSplits " />   142     <xsl:par am name="P aramSplits " />
142     <xsl:par am name="P aramCargo"  />   143     <xsl:par am name="P aramCargo"  />
143     <xsl:par am name="P aramLinks"  />   144     <xsl:par am name="P aramLinks"  />
144     <xsl:par am name="P aramSplit"  />   145     <xsl:par am name="P aramSplit"  />
145     146  
146     <xsl:var iable name ="VarRelat edTopicPar agraphsAsX ML">   147     <xsl:var iable name ="VarRelat edTopicPar agraphsAsX ML">
147      <xsl:ca ll-templat e name="Re latedTopic Paragraphs ">   148      <xsl:ca ll-templat e name="Re latedTopic Paragraphs ">
148       <xsl:w ith-param  name="Para mContent"  select="$P aramConten t" />   149       <xsl:w ith-param  name="Para mContent"  select="$P aramConten t" />
149       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >   150       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >
150       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >   151       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >
151      </xsl:c all-templa te>   152      </xsl:c all-templa te>
152     </xsl:va riable>   153     </xsl:va riable>
153     <xsl:var iable name ="VarRelat edTopicPar agraphs" s elect="msx sl:node-se t($VarRela tedTopicPa ragraphsAs XML)/wwdoc :Paragraph " />   154     <xsl:var iable name ="VarRelat edTopicPar agraphs" s elect="msx sl:node-se t($VarRela tedTopicPa ragraphsAs XML)/wwdoc :Paragraph " />
154     155  
155     <xsl:if  test="coun t($VarRela tedTopicPa ragraphs)  &gt; 0">   156     <xsl:if  test="coun t($VarRela tedTopicPa ragraphs)  &gt; 0">
156      <html:p >   157      <html:p >
157       <html: object id= "candomble " type="ap plication/ x-oleobjec t" classid ="clsid:ad b880a6-d8f f-11cf-937 7-00aa003b 7a11" code base="Hhct rl.ocx#Ver sion=4\,72 \,8252\,0"  width="10 0" height= "100">   158       <html: object id= "candomble " type="ap plication/ x-oleobjec t" classid ="clsid:ad b880a6-d8f f-11cf-937 7-00aa003b 7a11" code base="Hhct rl.ocx#Ver sion=4\,72 \,8252\,0"  width="10 0" height= "100">
158        <html :param nam e="Command " value="R elated Top ics\, MENU " />   159        <html :param nam e="Command " value="R elated Top ics\, MENU " />
159        <html :param nam e="Button"  value="{c oncat('Tex t:', $Glob alLocale/w wlocale:Lo cale/wwloc ale:String s/wwlocale :String[@n ame = 'Rel atedTopics ']/@value) }" />   160        <html :param nam e="Button"  value="{c oncat('Tex t:', $Glob alLocale/w wlocale:Lo cale/wwloc ale:String s/wwlocale :String[@n ame = 'Rel atedTopics ']/@value) }" />
160     161  
161        <xsl: for-each s elect="$Va rRelatedTo picParagra phs">   162        <xsl: for-each s elect="$Va rRelatedTo picParagra phs">
162         <xsl :variable  name="VarR elatedTopi cParagraph " select=" ." />   163         <xsl :variable  name="VarR elatedTopi cParagraph " select=" ." />
163     164  
164         <xsl :variable  name="VarE ntryValue" >   165         <xsl :variable  name="VarE ntryValue" >
165          <xs l:for-each  select="$ VarRelated TopicParag raph/wwdoc :TextRun/w wdoc:Text" >   166          <xs l:for-each  select="$ VarRelated TopicParag raph/wwdoc :TextRun/w wdoc:Text" >
166           <x sl:value-o f select=" @value" />   167           <x sl:value-o f select=" @value" />
167          </x sl:for-eac h>   168          </x sl:for-eac h>
168         </xs l:variable >   169         </xs l:variable >
169     170  
170         <xsl :variable  name="VarL inkInfoAsX ML">   171         <xsl :variable  name="VarL inkInfoAsX ML">
171          <xs l:call-tem plate name ="LinkInfo ">   172          <xs l:call-tem plate name ="LinkInfo ">
172           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />   173           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
173           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />   174           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
174           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />   175           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
175           <x sl:with-pa ram name=" ParamDocum entLink" s elect="$Va rRelatedTo picParagra ph/wwdoc:L ink" />   176           <x sl:with-pa ram name=" ParamDocum entLink" s elect="$Va rRelatedTo picParagra ph/wwdoc:L ink" />
176          </x sl:call-te mplate>   177          </x sl:call-te mplate>
177         </xs l:variable >   178         </xs l:variable >
178         <xsl :variable  name="VarL inkInfo" s elect="msx sl:node-se t($VarLink InfoAsXML) /wwlinks:L inkInfo" / >   179         <xsl :variable  name="VarL inkInfo" s elect="msx sl:node-se t($VarLink InfoAsXML) /wwlinks:L inkInfo" / >
179     180  
180         <htm l:param na me="{conca t('Item',  position() )}" value= "{concat($ VarEntryVa lue, ';',  $VarLinkIn fo/@href,  ';', $VarL inkInfo/@h ref)}" />   181         <htm l:param na me="{conca t('Item',  position() )}" value= "{concat($ VarEntryVa lue, ';',  $VarLinkIn fo/@href,  ';', $VarL inkInfo/@h ref)}" />
181        </xsl :for-each>   182        </xsl :for-each>
182       </html :object>   183       </html :object>
183      </html: p>   184      </html: p>
184     </xsl:if >   185     </xsl:if >
185    </xsl:tem plate>   186    </xsl:tem plate>
186     187  
187     188  
188    <xsl:temp late name= "RelatedTo picParagra phs">   189    <xsl:temp late name= "RelatedTo picParagra phs">
189     <xsl:par am name="P aramConten t" />   190     <xsl:par am name="P aramConten t" />
190     <xsl:par am name="P aramCargo"  />   191     <xsl:par am name="P aramCargo"  />
191     <xsl:par am name="P aramSplit"  />   192     <xsl:par am name="P aramSplit"  />
192     193  
193     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] ">   194     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] ">
194      <xsl:va riable nam e="VarRela tedTopicBe haviorPara graphs" se lect="key( 'wwbehavio rs-paragra phs-by-rel atedtopic' , 'define' ) | key('w wbehaviors -paragraph s-by-relat edtopic',  'define-no -output')"  />   195      <xsl:va riable nam e="VarRela tedTopicBe haviorPara graphs" se lect="key( 'wwbehavio rs-paragra phs-by-rel atedtopic' , 'define' ) | key('w wbehaviors -paragraph s-by-relat edtopic',  'define-no -output')"  />
195     196  
196      <xsl:fo r-each sel ect="$VarR elatedTopi cBehaviorP aragraphs[ (@document position & gt;= $Para mSplit/@do cumentstar tposition)  and (@doc umentposit ion &lt;=  $ParamSpli t/@documen tendpositi on)]">   197      <xsl:fo r-each sel ect="$VarR elatedTopi cBehaviorP aragraphs[ (@document position & gt;= $Para mSplit/@do cumentstar tposition)  and (@doc umentposit ion &lt;=  $ParamSpli t/@documen tendpositi on)]">
197       <xsl:v ariable na me="VarBeh aviorParag raph" sele ct="." />   198       <xsl:v ariable na me="VarBeh aviorParag raph" sele ct="." />
198     199  
199       <xsl:f or-each se lect="$Par amContent[ 1]">   200       <xsl:f or-each se lect="$Par amContent[ 1]">
200        <xsl: for-each s elect="key ('wwdoc-pa ragraphs-b y-id', $Va rBehaviorP aragraph/@ id)[1]">   201        <xsl: for-each s elect="key ('wwdoc-pa ragraphs-b y-id', $Va rBehaviorP aragraph/@ id)[1]">
201         <xsl :variable  name="VarP aragraph"  select="."  />   202         <xsl :variable  name="VarP aragraph"  select="."  />
202     203  
203         <!--  Paragraph  has link?  -->   204         <!--  Paragraph  has link?  -->
204         <!--                        -->   205         <!--                        -->
205         <xsl :variable  name="VarC hildLinks"  select="$ VarParagra ph//wwdoc: Link[count ($VarParag raph | anc estor::wwd oc:Paragra ph[1]) = 1 ]" />   206         <xsl :variable  name="VarC hildLinks"  select="$ VarParagra ph//wwdoc: Link[count ($VarParag raph | anc estor::wwd oc:Paragra ph[1]) = 1 ]" />
206         <xsl :variable  name="VarC hildLinksC ount" sele ct="count( $VarChildL inks)" />   207         <xsl :variable  name="VarC hildLinksC ount" sele ct="count( $VarChildL inks)" />
207         <xsl :if test=" $VarChildL inksCount  &gt; 0">   208         <xsl :if test=" $VarChildL inksCount  &gt; 0">
208          <!- - Emit par agraph -->   209          <!- - Emit par agraph -->
209          <!- -                 -->   210          <!- -                 -->
210          <ww doc:Paragr aph>   211          <ww doc:Paragr aph>
211           <x sl:copy-of  select="$ VarParagra ph/@*" />   212           <x sl:copy-of  select="$ VarParagra ph/@*" />
212     213  
213           <! -- Insure  link is de fined -->   214           <! -- Insure  link is de fined -->
214           <! --                          -->   215           <! --                          -->
215           <x sl:if test ="count($V arParagrap h/wwdoc:Li nk) = 0">   216           <x sl:if test ="count($V arParagrap h/wwdoc:Li nk) = 0">
216            < xsl:copy-o f select=" $VarChildL inks[1]" / >   217            < xsl:copy-o f select=" $VarChildL inks[1]" / >
217           </ xsl:if>   218           </ xsl:if>
218     219  
219           <x sl:copy-of  select="$ VarParagra ph/*" />   220           <x sl:copy-of  select="$ VarParagra ph/*" />
220          </w wdoc:Parag raph>   221          </w wdoc:Parag raph>
221         </xs l:if>   222         </xs l:if>
222        </xsl :for-each>   223        </xsl :for-each>
223       </xsl: for-each>   224       </xsl: for-each>
224      </xsl:f or-each>   225      </xsl:f or-each>
225     </xsl:fo r-each>   226     </xsl:fo r-each>
226    </xsl:tem plate>   227    </xsl:tem plate>
227     228  
228     229  
229    <xsl:temp late name= "Content-N otes">   230    <xsl:temp late name= "Content-N otes">
230     <xsl:par am name="P aramNotes"  />   231     <xsl:par am name="P aramNotes"  />
231     <xsl:par am name="P aramSplits " />   232     <xsl:par am name="P aramSplits " />
232     <xsl:par am name="P aramCargo"  />   233     <xsl:par am name="P aramCargo"  />
233     <xsl:par am name="P aramLinks"  />   234     <xsl:par am name="P aramLinks"  />
234     <xsl:par am name="P aramTOCDat a" />   235     <xsl:par am name="P aramTOCDat a" />
235     <xsl:par am name="P aramSplit"  />   236     <xsl:par am name="P aramSplit"  />
236     237  
237     <xsl:if  test="coun t($ParamNo tes[1]) =  1">   238     <xsl:if  test="coun t($ParamNo tes[1]) =  1">
238      <html:h r />   239      <html:h r />
239      <xsl:fo r-each sel ect="$Para mNotes">   240      <xsl:fo r-each sel ect="$Para mNotes">
240       <xsl:v ariable na me="VarNot e" select= "." />   241       <xsl:v ariable na me="VarNot e" select= "." />
241     242  
242       <xsl:v ariable na me="VarNot eNumber" s elect="$Pa ramCargo/w wnotes:Not eNumbering /wwnotes:N ote[@id =  $VarNote/@ id]/@numbe r" />   243       <xsl:v ariable na me="VarNot eNumber" s elect="$Pa ramCargo/w wnotes:Not eNumbering /wwnotes:N ote[@id =  $VarNote/@ id]/@numbe r" />
243     244  
244       <xsl:i f test="st ring-lengt h($VarNote Number) &g t; 0">   245       <xsl:i f test="st ring-lengt h($VarNote Number) &g t; 0">
245        <html :div style ="font-siz e: smaller ; float: l eft; paddi ng-right:  10px;">   246        <html :div style ="font-siz e: smaller ; float: l eft; paddi ng-right:  10px;">
246         <htm l:a name=" {$VarNote/ @id}">   247         <htm l:a name=" {$VarNote/ @id}">
247          <xs l:attribut e name="hr ef">   248          <xs l:attribut e name="hr ef">
248           <x sl:text>#w wfootnote_ inline_</x sl:text>   249           <x sl:text>#w wfootnote_ inline_</x sl:text>
249           <x sl:value-o f select=" $VarNote/@ id" />   250           <x sl:value-o f select=" $VarNote/@ id" />
250          </x sl:attribu te>   251          </x sl:attribu te>
251     252  
252          <xs l:value-of  select="$ VarNoteNum ber"/>   253          <xs l:value-of  select="$ VarNoteNum ber"/>
253         </ht ml:a>   254         </ht ml:a>
254        </htm l:div>   255        </htm l:div>
255     256  
256        <xsl: apply-temp lates sele ct="$VarNo te/*" mode ="wwmode:c ontent">   257        <xsl: apply-temp lates sele ct="$VarNo te/*" mode ="wwmode:c ontent">
257         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   258         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
258         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   259         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
259         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   260         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
260         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" />   261         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" />
261         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   262         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
262        </xsl :apply-tem plates>   263        </xsl :apply-tem plates>
263        <html :br style= "clear: al l;" />   264        <html :br style= "clear: al l;" />
264       </xsl: if>   265       </xsl: if>
265      </xsl:f or-each>   266      </xsl:f or-each>
266     </xsl:if >   267     </xsl:if >
267    </xsl:tem plate>   268    </xsl:tem plate>
268     269  
269     270  
270    <xsl:temp late name= "Content-B ullet">   271    <xsl:temp late name= "Content-B ullet">
271     <xsl:par am name="P aramSplits " />   272     <xsl:par am name="P aramSplits " />
272     <xsl:par am name="P aramSplit"  />   273     <xsl:par am name="P aramSplit"  />
273     <xsl:par am name="P aramParagr aph" />   274     <xsl:par am name="P aramParagr aph" />
274     <xsl:par am name="P aramCharac ter" />   275     <xsl:par am name="P aramCharac ter" />
275     <xsl:par am name="P aramImage"  />   276     <xsl:par am name="P aramImage"  />
276     <xsl:par am name="P aramSepara tor" />   277     <xsl:par am name="P aramSepara tor" />
277     <xsl:par am name="P aramStyle"  />   278     <xsl:par am name="P aramStyle"  />
278     279  
279     <xsl:cho ose>   280     <xsl:cho ose>
280      <xsl:wh en test="s tring-leng th($ParamS tyle) &gt;  0">   281      <xsl:wh en test="s tring-leng th($ParamS tyle) &gt;  0">
281     282  
282       <!-- G et rule -- >   283       <!-- G et rule -- >
283       <!--           -- >   284       <!--           -- >
284       <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Character' , $ParamSt yle)" />   285       <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Character' , $ParamSt yle)" />
285     286  
286       <!-- R esolve pro ject prope rties -->   287       <!-- R esolve pro ject prope rties -->
287       <!--                               -->   288       <!--                               -->
288       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML">   289       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML">
289        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" >   290        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" >
290         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramParagr aph" />   291         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramParagr aph" />
291         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRul e/wwprojec t:Properti es/wwproje ct:Propert y" />   292         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRul e/wwprojec t:Properti es/wwproje ct:Propert y" />
292         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yle" />   293         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yle" />
293         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" />   294         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" />
294         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mParagraph /wwdoc:Num ber[1]/wwd oc:Style"  />   295         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mParagraph /wwdoc:Num ber[1]/wwd oc:Style"  />
295        </xsl :call-temp late>   296        </xsl :call-temp late>
296       </xsl: variable>   297       </xsl: variable>
297       <xsl:v ariable na me="VarRes olvedConte xtProperti es" select ="msxsl:no de-set($Va rResolvedC ontextProp ertiesAsXM L)/wwproje ct:Propert y" />   298       <xsl:v ariable na me="VarRes olvedConte xtProperti es" select ="msxsl:no de-set($Va rResolvedC ontextProp ertiesAsXM L)/wwproje ct:Propert y" />
298     299  
299       <!-- C SS propert ies -->   300       <!-- C SS propert ies -->
300       <!--                  -->   301       <!--                  -->
301       <xsl:v ariable na me="VarCSS Properties AsXML">   302       <xsl:v ariable na me="VarCSS Properties AsXML">
302        <xsl: call-templ ate name=" CSS-Transl ateProject Properties ">   303        <xsl: call-templ ate name=" CSS-Transl ateProject Properties ">
303         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" />   304         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" />
304         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" />   305         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" />
305         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   306         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
306        </xsl :call-temp late>   307        </xsl :call-temp late>
307       </xsl: variable>   308       </xsl: variable>
308       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / >   309       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / >
309     310  
310       <!-- S tyle attri bute -->   311       <!-- S tyle attri bute -->
311       <!--                   -->   312       <!--                   -->
312       <xsl:v ariable na me="VarSty leAttribut e">   313       <xsl:v ariable na me="VarSty leAttribut e">
313        <xsl: call-templ ate name=" CSS-Inline Properties ">   314        <xsl: call-templ ate name=" CSS-Inline Properties ">
314         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " />   315         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " />
315        </xsl :call-temp late>   316        </xsl :call-temp late>
316       </xsl: variable>   317       </xsl: variable>
317     318  
318       <xsl:v ariable na me="VarTag Property"  select="$V arRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'tag' ]/@Value"  />   319       <xsl:v ariable na me="VarTag Property"  select="$V arRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'tag' ]/@Value"  />
319       <xsl:v ariable na me="VarTag ">   320       <xsl:v ariable na me="VarTag ">
320        <xsl: choose>   321        <xsl: choose>
321         <xsl :when test ="string-l ength($Var TagPropert y) &gt; 0" >   322         <xsl :when test ="string-l ength($Var TagPropert y) &gt; 0" >
322          <xs l:value-of  select="$ VarTagProp erty" />   323          <xs l:value-of  select="$ VarTagProp erty" />
323         </xs l:when>   324         </xs l:when>
324     325  
325         <xsl :otherwise >   326         <xsl :otherwise >
326          <xs l:value-of  select="' span'" />   327          <xs l:value-of  select="' span'" />
327         </xs l:otherwis e>   328         </xs l:otherwis e>
328        </xsl :choose>   329        </xsl :choose>
329       </xsl: variable>   330       </xsl: variable>
330     331  
331       <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} ">   332       <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} ">
332        <!--  Style attr ibute -->   333        <!--  Style attr ibute -->
333        <!--                   -->   334        <!--                   -->
334        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" >   335        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" >
335         <xsl :attribute  name="sty le">   336         <xsl :attribute  name="sty le">
336          <xs l:value-of  select="$ VarStyleAt tribute" / >   337          <xs l:value-of  select="$ VarStyleAt tribute" / >
337         </xs l:attribut e>   338         </xs l:attribut e>
338        </xsl :if>   339        </xsl :if>
339     340  
340        <xsl: if test="s tring-leng th($ParamI mage) &gt;  0">   341        <xsl: if test="s tring-leng th($ParamI mage) &gt;  0">
341         <!--  Get absol ute path f or imaging  info -->   342         <!--  Get absol ute path f or imaging  info -->
342         <!--                                        -->   343         <!--                                        -->
343         <xsl :variable  name="VarI mageFileSy stemPath"  select="ww filesystem :Combine(w wprojext:G etTargetOu tputDirect oryPath(),  wwprojext :GetGroupN ame($Param Split/@gro upID), $Pa ramImage)"  />   344         <xsl :variable  name="VarI mageFileSy stemPath"  select="ww filesystem :Combine(w wprojext:G etTargetOu tputDirect oryPath(),  wwprojext :GetGroupN ame($Param Split/@gro upID), $Pa ramImage)"  />
344         <xsl :variable  name="VarI mageInfo"  select="ww imaging:Ge tInfo($Var ImageFileS ystemPath) " />   345         <xsl :variable  name="VarI mageInfo"  select="ww imaging:Ge tInfo($Var ImageFileS ystemPath) " />
345     346  
346         <xsl :variable  name="VarI magePath">   347         <xsl :variable  name="VarI magePath">
347          <xs l:call-tem plate name ="URI-Reso lveProject FileURI">   348          <xs l:call-tem plate name ="URI-Reso lveProject FileURI">
348           <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamSpli t/@path" / >   349           <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamSpli t/@path" / >
349           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />   350           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
350           <x sl:with-pa ram name=" ParamURI"  select="$P aramImage"  />   351           <x sl:with-pa ram name=" ParamURI"  select="$P aramImage"  />
351          </x sl:call-te mplate>   352          </x sl:call-te mplate>
352         </xs l:variable >   353         </xs l:variable >
353     354  
354         <!--  Image -->   355         <!--  Image -->
355         <!--        -->   356         <!--        -->
356         <htm l:img src= "{$VarImag ePath}" al t="*" bord er="0" wid th="{$VarI mageInfo/@ width}" he ight="{$Va rImageInfo /@height}"  />   357         <htm l:img src= "{$VarImag ePath}" al t="*" bord er="0" wid th="{$VarI mageInfo/@ width}" he ight="{$Va rImageInfo /@height}"  />
357        </xsl :if>   358        </xsl :if>
358     359  
359        <!--  Characters  -->   360        <!--  Characters  -->
360        <!--              -->   361        <!--              -->
361        <xsl: value-of s elect="$Pa ramCharact er" />   362        <xsl: value-of s elect="$Pa ramCharact er" />
362     363  
363        <!--  Separator  -->   364        <!--  Separator  -->
364        <!--             -->   365        <!--             -->
365        <xsl: value-of s elect="$Pa ramSeparat or" />   366        <xsl: value-of s elect="$Pa ramSeparat or" />
366       </xsl: element>   367       </xsl: element>
367      </xsl:w hen>   368      </xsl:w hen>
368     369  
369      <xsl:ot herwise>   370      <xsl:ot herwise>
370       <xsl:i f test="st ring-lengt h($ParamIm age) &gt;  0">   371       <xsl:i f test="st ring-lengt h($ParamIm age) &gt;  0">
371        <!--  Get absolu te path fo r imaging  info -->   372        <!--  Get absolu te path fo r imaging  info -->
372        <!--                                        -->   373        <!--                                        -->
373        <xsl: variable n ame="VarIm ageFileSys temPath" s elect="wwf ilesystem: Combine(ww projext:Ge tTargetOut putDirecto ryPath(),  wwprojext: GetGroupNa me($ParamS plit/@grou pID), $Par amImage)"  />   374        <xsl: variable n ame="VarIm ageFileSys temPath" s elect="wwf ilesystem: Combine(ww projext:Ge tTargetOut putDirecto ryPath(),  wwprojext: GetGroupNa me($ParamS plit/@grou pID), $Par amImage)"  />
374        <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Get Info($VarI mageFileSy stemPath)"  />   375        <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Get Info($VarI mageFileSy stemPath)"  />
375     376  
376        <xsl: variable n ame="VarIm agePath">   377        <xsl: variable n ame="VarIm agePath">
377         <xsl :call-temp late name= "URI-Resol veProjectF ileURI">   378         <xsl :call-temp late name= "URI-Resol veProjectF ileURI">
378          <xs l:with-par am name="P aramFromAb soluteURI"  select="$ ParamSplit /@path" />   379          <xs l:with-par am name="P aramFromAb soluteURI"  select="$ ParamSplit /@path" />
379          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />   380          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />
380          <xs l:with-par am name="P aramURI" s elect="$Pa ramImage"  />   381          <xs l:with-par am name="P aramURI" s elect="$Pa ramImage"  />
381         </xs l:call-tem plate>   382         </xs l:call-tem plate>
382        </xsl :variable>   383        </xsl :variable>
383     384  
384        <!--  Image -->   385        <!--  Image -->
385        <!--        -->   386        <!--        -->
386        <html :img src=" {$VarImage Path}" alt ="*" borde r="0" widt h="{$VarIm ageInfo/@w idth}" hei ght="{$Var ImageInfo/ @height}"  />   387        <html :img src=" {$VarImage Path}" alt ="*" borde r="0" widt h="{$VarIm ageInfo/@w idth}" hei ght="{$Var ImageInfo/ @height}"  />
387       </xsl: if>   388       </xsl: if>
388     389  
389       <!-- C haracters  -->   390       <!-- C haracters  -->
390       <!--              -->   391       <!--              -->
391       <xsl:v alue-of se lect="$Par amCharacte r" />   392       <xsl:v alue-of se lect="$Par amCharacte r" />
392     393  
393       <!-- S eparator - ->   394       <!-- S eparator - ->
394       <!--            - ->   395       <!--            - ->
395       <xsl:v alue-of se lect="$Par amSeparato r" />   396       <xsl:v alue-of se lect="$Par amSeparato r" />
396      </xsl:o therwise>   397      </xsl:o therwise>
397     </xsl:ch oose>   398     </xsl:ch oose>
398    </xsl:tem plate>   399    </xsl:tem plate>
399     400  
400     401  
401    <xsl:temp late name= "Notes-Num ber">   402    <xsl:temp late name= "Notes-Num ber">
402     <xsl:par am name="P aramNotes"  />   403     <xsl:par am name="P aramNotes"  />
403     404  
404     <wwnotes :NoteNumbe ring versi on="1.0">   405     <wwnotes :NoteNumbe ring versi on="1.0">
405      <xsl:fo r-each sel ect="$Para mNotes">   406      <xsl:fo r-each sel ect="$Para mNotes">
406       <xsl:v ariable na me="VarNot e" select= "." />   407       <xsl:v ariable na me="VarNot e" select= "." />
407     408  
408       <wwnot es:Note id ="{$VarNot e/@id}" nu mber="{pos ition()}"  />   409       <wwnot es:Note id ="{$VarNot e/@id}" nu mber="{pos ition()}"  />
409      </xsl:f or-each>   410      </xsl:f or-each>
410     </wwnote s:NoteNumb ering>   411     </wwnote s:NoteNumb ering>
411    </xsl:tem plate>   412    </xsl:tem plate>
412     413  
413     414  
414    <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:content" >   415    <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:content" >
415     <xsl:par am name="P aramSplits " />   416     <xsl:par am name="P aramSplits " />
416     <xsl:par am name="P aramCargo"  />   417     <xsl:par am name="P aramCargo"  />
417     <xsl:par am name="P aramLinks"  />   418     <xsl:par am name="P aramLinks"  />
418     <xsl:par am name="P aramTOCDat a" />   419     <xsl:par am name="P aramTOCDat a" />
419     <xsl:par am name="P aramSplit"  />   420     <xsl:par am name="P aramSplit"  />
420     421  
421     <xsl:var iable name ="VarParag raph" sele ct="." />   422     <xsl:var iable name ="VarParag raph" sele ct="." />
422     423  
423     <!-- Abo rted? -->   424     <!-- Abo rted? -->
424     <!--           -->   425     <!--           -->
425     <xsl:if  test="not( wwprogress :Abort())" >   426     <xsl:if  test="not( wwprogress :Abort())" >
426      <xsl:va riable nam e="VarOver rideRule"  select="ww projext:Ge tOverrideR ule('Parag raph', $Va rParagraph /@stylenam e, $ParamS plit/@docu mentID, $V arParagrap h/@id)" />   427      <xsl:va riable nam e="VarOver rideRule"  select="ww projext:Ge tOverrideR ule('Parag raph', $Va rParagraph /@stylenam e, $ParamS plit/@docu mentID, $V arParagrap h/@id)" />
427      <xsl:va riable nam e="VarGene rateOutput Option" se lect="$Var OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'gen erate-outp ut']/@Valu e" />   428      <xsl:va riable nam e="VarGene rateOutput Option" se lect="$Var OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'gen erate-outp ut']/@Valu e" />
428      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" />   429      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" />
429      <xsl:if  test="$Va rGenerateO utput">   430      <xsl:if  test="$Va rGenerateO utput">
430       <!-- R elated Top ic Only or  Popup Onl y? -->   431       <!-- R elated Top ic Only or  Popup Onl y? -->
431       <!--                                       -->   432       <!--                                       -->
432       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]">   433       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]">
433        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="key(' wwbehavior s-paragrap hs-by-id',  $VarParag raph/@id)[ 1]" />   434        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="key(' wwbehavior s-paragrap hs-by-id',  $VarParag raph/@id)[ 1]" />
434        <xsl: variable n ame="VarIn PopupPage"  select="c ount($Para mCargo/wwb ehaviors:P opupPage)  &gt; 0" />   435        <xsl: variable n ame="VarIn PopupPage"  select="c ount($Para mCargo/wwb ehaviors:P opupPage)  &gt; 0" />
435        <xsl: variable n ame="VarPo pupOnly" s elect="($V arParagrap hBehavior/ @popup = ' define-no- output') o r ($VarPar agraphBeha vior/@popu p = 'appen d-no-outpu t')" />   436        <xsl: variable n ame="VarPo pupOnly" s elect="($V arParagrap hBehavior/ @popup = ' define-no- output') o r ($VarPar agraphBeha vior/@popu p = 'appen d-no-outpu t')" />
436        <xsl: variable n ame="VarRe latedTopic Only" sele ct="$VarPa ragraphBeh avior/@rel atedtopic  = 'define- no-output' " />   437        <xsl: variable n ame="VarRe latedTopic Only" sele ct="$VarPa ragraphBeh avior/@rel atedtopic  = 'define- no-output' " />
437     438  
438        <xsl: if test="$ VarInPopup Page or (n ot($VarPop upOnly) an d not($Var RelatedTop icOnly))">   439        <xsl: if test="$ VarInPopup Page or (n ot($VarPop upOnly) an d not($Var RelatedTop icOnly))">
439         <!--  Paragraph  -->   440         <!--  Paragraph  -->
440         <!--             -->   441         <!--             -->
441         <xsl :call-temp late name= "Paragraph ">   442         <xsl :call-temp late name= "Paragraph ">
442          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />   443          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />
443          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " />   444          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " />
444          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " />   445          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " />
445          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " />   446          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " />
446          <xs l:with-par am name="P aramParagr aph" selec t="$VarPar agraph" />   447          <xs l:with-par am name="P aramParagr aph" selec t="$VarPar agraph" />
447          <xs l:with-par am name="P aramStyleN ame" selec t="$VarPar agraph/@st ylename" / >   448          <xs l:with-par am name="P aramStyleN ame" selec t="$VarPar agraph/@st ylename" / >
448          <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" />   449          <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" />
449          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" />   450          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" />
450         </xs l:call-tem plate>   451         </xs l:call-tem plate>
451     452  
452         <!--  MiniTOC - ->   453         <!--  MiniTOC - ->
453         <!--          - ->   454         <!--          - ->
454         <xsl :if test=" not($VarIn PopupPage) ">   455         <xsl :if test=" not($VarIn PopupPage) ">
455          <xs l:variable  name="Var MiniTOCSub Levels" se lect="$Var OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'min itoc-suble vels']/@Va lue" />   456          <xs l:variable  name="Var MiniTOCSub Levels" se lect="$Var OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'min itoc-suble vels']/@Va lue" />
456          <xs l:variable  name="Var MiniTOCSub LevelsNume ricPrefix"  select="w wunits:Num ericPrefix ($VarMiniT OCSubLevel s)" />   457          <xs l:variable  name="Var MiniTOCSub LevelsNume ricPrefix"  select="w wunits:Num ericPrefix ($VarMiniT OCSubLevel s)" />
457          <xs l:variable  name="Var MiniTOCSub LevelsGrea terThanZer o" select= "(string-l ength($Var MiniTOCSub LevelsNume ricPrefix)  &gt; 0) a nd (number ($VarMiniT OCSubLevel sNumericPr efix) &gt;  0)" />   458          <xs l:variable  name="Var MiniTOCSub LevelsGrea terThanZer o" select= "(string-l ength($Var MiniTOCSub LevelsNume ricPrefix)  &gt; 0) a nd (number ($VarMiniT OCSubLevel sNumericPr efix) &gt;  0)" />
458          <xs l:if test= "($VarMini TOCSubLeve lsGreaterT hanZero) o r ($VarMin iTOCSubLev els = 'all ')">   459          <xs l:if test= "($VarMini TOCSubLeve lsGreaterT hanZero) o r ($VarMin iTOCSubLev els = 'all ')">
459           <x sl:for-eac h select=" $ParamTOCD ata[1]">   460           <x sl:for-eac h select=" $ParamTOCD ata[1]">
460            < xsl:variab le name="V arTOCEntry " select=" key('wwtoc -entry-by- id', $VarP aragraph/@ id)[@docum entID = $P aramSplit/ @documentI D]" />   461            < xsl:variab le name="V arTOCEntry " select=" key('wwtoc -entry-by- id', $VarP aragraph/@ id)[@docum entID = $P aramSplit/ @documentI D]" />
461            < xsl:for-ea ch select= "$VarTOCEn try[1]">   462            < xsl:for-ea ch select= "$VarTOCEn try[1]">
462              <xsl:call- template n ame="MiniT OC">   463              <xsl:call- template n ame="MiniT OC">
463               <xsl:with -param nam e="ParamSp lit" selec t="$ParamS plit" />   464               <xsl:with -param nam e="ParamSp lit" selec t="$ParamS plit" />
464               <xsl:with -param nam e="ParamTO CEntry" se lect="$Var TOCEntry[1 ]" />   465               <xsl:with -param nam e="ParamTO CEntry" se lect="$Var TOCEntry[1 ]" />
465               <xsl:with -param nam e="ParamEm itTOCEntry " select=" false()" / >   466               <xsl:with -param nam e="ParamEm itTOCEntry " select=" false()" / >
466               <xsl:with -param nam e="ParamMi niTOCSubLe vels" sele ct="$VarMi niTOCSubLe vels" />   467               <xsl:with -param nam e="ParamMi niTOCSubLe vels" sele ct="$VarMi niTOCSubLe vels" />
467              </xsl:call -template>   468              </xsl:call -template>
468            < /xsl:for-e ach>   469            < /xsl:for-e ach>
469           </ xsl:for-ea ch>   470           </ xsl:for-ea ch>
470          </x sl:if>   471          </x sl:if>
471         </xs l:if>   472         </xs l:if>
472        </xsl :if>   473        </xsl :if>
473       </xsl: for-each>   474       </xsl: for-each>
474      </xsl:i f>   475      </xsl:i f>
475     </xsl:if >   476     </xsl:if >
476    </xsl:tem plate>   477    </xsl:tem plate>
477     478  
478     479  
479    <xsl:temp late name= "MiniTOC">   480    <xsl:temp late name= "MiniTOC">
480     <xsl:par am name="P aramSplit"  />   481     <xsl:par am name="P aramSplit"  />
481     <xsl:par am name="P aramTOCEnt ry" />   482     <xsl:par am name="P aramTOCEnt ry" />
482     <xsl:par am name="P aramEmitTO CEntry" />   483     <xsl:par am name="P aramEmitTO CEntry" />
483     <xsl:par am name="P aramMiniTO CSubLevels " />   484     <xsl:par am name="P aramMiniTO CSubLevels " />
484     485  
485     <xsl:if  test="($Pa ramEmitTOC Entry = tr ue()) or ( count($Par amTOCEntry /wwtoc:Ent ry[1]) = 1 )">   486     <xsl:if  test="($Pa ramEmitTOC Entry = tr ue()) or ( count($Par amTOCEntry /wwtoc:Ent ry[1]) = 1 )">
486      <html:d iv class=" WebWorks_M iniTOC">   487      <html:d iv class=" WebWorks_M iniTOC">
487       <!-- E mit top-le vel entry?  -->   488       <!-- E mit top-le vel entry?  -->
488       <!--                          -->   489       <!--                          -->
489       <xsl:c hoose>   490       <xsl:c hoose>
490        <xsl: when test= "$ParamEmi tTOCEntry  = true()">   491        <xsl: when test= "$ParamEmi tTOCEntry  = true()">
491         <htm l:div clas s="WebWork s_MiniTOC_ Level1">   492         <htm l:div clas s="WebWork s_MiniTOC_ Level1">
492          <!- - Paragrap h -->   493          <!- - Paragrap h -->
493          <!- -            -->   494          <!- -            -->
494          <xs l:call-tem plate name ="MiniTOCP aragraph">   495          <xs l:call-tem plate name ="MiniTOCP aragraph">
495           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param TOCEntry/w wdoc:Parag raph" />   496           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param TOCEntry/w wdoc:Parag raph" />
496          </x sl:call-te mplate>   497          </x sl:call-te mplate>
497         </ht ml:div>   498         </ht ml:div>
498     499  
499         <!--  Children  -->   500         <!--  Children  -->
500         <!--            -->   501         <!--            -->
501         <xsl :call-temp late name= "MiniTOCEn tries">   502         <xsl :call-temp late name= "MiniTOCEn tries">
502          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" />   503          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" />
503          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" />   504          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" />
504          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" />   505          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" />
505          <xs l:with-par am name="P aramLevel"  select="2 " />   506          <xs l:with-par am name="P aramLevel"  select="2 " />
506         </xs l:call-tem plate>   507         </xs l:call-tem plate>
507        </xsl :when>   508        </xsl :when>
508     509  
509        <xsl: otherwise>   510        <xsl: otherwise>
510         <!--  Children  -->   511         <!--  Children  -->
511         <!--            -->   512         <!--            -->
512         <xsl :call-temp late name= "MiniTOCEn tries">   513         <xsl :call-temp late name= "MiniTOCEn tries">
513          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" />   514          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" />
514          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" />   515          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" />
515          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" />   516          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" />
516          <xs l:with-par am name="P aramLevel"  select="1 " />   517          <xs l:with-par am name="P aramLevel"  select="1 " />
517         </xs l:call-tem plate>   518         </xs l:call-tem plate>
518        </xsl :otherwise >   519        </xsl :otherwise >
519       </xsl: choose>   520       </xsl: choose>
520      </html: div>   521      </html: div>
521     </xsl:if >   522     </xsl:if >
522    </xsl:tem plate>   523    </xsl:tem plate>
523     524  
524     525  
525    <xsl:temp late name= "MiniTOCEn tries">   526    <xsl:temp late name= "MiniTOCEn tries">
526     <xsl:par am name="P aramRefere ncePath" / >   527     <xsl:par am name="P aramRefere ncePath" / >
527     <xsl:par am name="P aramParent " />   528     <xsl:par am name="P aramParent " />
528     <xsl:par am name="P aramMiniTO CSubLevels " />   529     <xsl:par am name="P aramMiniTO CSubLevels " />
529     <xsl:par am name="P aramLevel"  />   530     <xsl:par am name="P aramLevel"  />
530     531  
531     <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry"  />   532     <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry"  />
532     533  
533     <xsl:for -each sele ct="$VarSu bEntries[1 ]">   534     <xsl:for -each sele ct="$VarSu bEntries[1 ]">
534      <xsl:fo r-each sel ect="$VarS ubEntries" >   535      <xsl:fo r-each sel ect="$VarS ubEntries" >
535       <xsl:v ariable na me="VarEnt ry" select ="." />   536       <xsl:v ariable na me="VarEnt ry" select ="." />
536     537  
537       <html: div>   538       <html: div>
538        <xsl: attribute  name="clas s">   539        <xsl: attribute  name="clas s">
539         <xsl :text>WebW orks_MiniT OC_Level</ xsl:text>   540         <xsl :text>WebW orks_MiniT OC_Level</ xsl:text>
540         <xsl :value-of  select="$P aramLevel"  />   541         <xsl :value-of  select="$P aramLevel"  />
541        </xsl :attribute >   542        </xsl :attribute >
542     543  
543        <xsl: choose>   544        <xsl: choose>
544         <xsl :when test ="string-l ength($Var Entry/@pat h) &gt; 0" >   545         <xsl :when test ="string-l ength($Var Entry/@pat h) &gt; 0" >
545          <!- - Get link  -->   546          <!- - Get link  -->
546          <!- -           -->   547          <!- -           -->
547          <xs l:variable  name="Var RelativeLi nkPath" se lect="wwur i:GetRelat iveTo($Var Entry/@pat h, $ParamR eferencePa th)" />   548          <xs l:variable  name="Var RelativeLi nkPath" se lect="wwur i:GetRelat iveTo($Var Entry/@pat h, $ParamR eferencePa th)" />
548     549  
549          <ht ml:a class ="WebWorks _MiniTOC_L ink" href= "{$VarRela tiveLinkPa th}#{$VarE ntry/@link id}">   550          <ht ml:a class ="WebWorks _MiniTOC_L ink" href= "{$VarRela tiveLinkPa th}#{$VarE ntry/@link id}">
550           <x sl:call-te mplate nam e="MiniTOC Paragraph" >   551           <x sl:call-te mplate nam e="MiniTOC Paragraph" >
551            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarE ntry/wwdoc :Paragraph " />   552            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarE ntry/wwdoc :Paragraph " />
552           </ xsl:call-t emplate>   553           </ xsl:call-t emplate>
553          </h tml:a>   554          </h tml:a>
554         </xs l:when>   555         </xs l:when>
555     556  
556         <xsl :otherwise >   557         <xsl :otherwise >
557          <xs l:call-tem plate name ="MiniTOCP aragraph">   558          <xs l:call-tem plate name ="MiniTOCP aragraph">
558           <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph"  />   559           <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph"  />
559          </x sl:call-te mplate>   560          </x sl:call-te mplate>
560         </xs l:otherwis e>   561         </xs l:otherwis e>
561        </xsl :choose>   562        </xsl :choose>
562       </html :div>   563       </html :div>
563     564  
564       <!-- R ecurse -->   565       <!-- R ecurse -->
565       <!--          -->   566       <!--          -->
566       <xsl:c hoose>   567       <xsl:c hoose>
567        <xsl: when test= "$ParamMin iTOCSubLev els = 'all '">   568        <xsl: when test= "$ParamMin iTOCSubLev els = 'all '">
568         <xsl :call-temp late name= "MiniTOCEn tries">   569         <xsl :call-temp late name= "MiniTOCEn tries">
569          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" />   570          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" />
570          <xs l:with-par am name="P aramParent " select=" $VarEntry"  />   571          <xs l:with-par am name="P aramParent " select=" $VarEntry"  />
571          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" />   572          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" />
572          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" />   573          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" />
573         </xs l:call-tem plate>   574         </xs l:call-tem plate>
574        </xsl :when>   575        </xsl :when>
575     576  
576        <xsl: when test= "($ParamMi niTOCSubLe vels - 1)  &gt; 0">   577        <xsl: when test= "($ParamMi niTOCSubLe vels - 1)  &gt; 0">
577         <xsl :call-temp late name= "MiniTOCEn tries">   578         <xsl :call-temp late name= "MiniTOCEn tries">
578          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" />   579          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" />
579          <xs l:with-par am name="P aramParent " select=" $VarEntry"  />   580          <xs l:with-par am name="P aramParent " select=" $VarEntry"  />
580          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls - 1" />   581          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls - 1" />
581          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" />   582          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" />
582         </xs l:call-tem plate>   583         </xs l:call-tem plate>
583        </xsl :when>   584        </xsl :when>
584       </xsl: choose>   585       </xsl: choose>
585      </xsl:f or-each>   586      </xsl:f or-each>
586     </xsl:fo r-each>   587     </xsl:fo r-each>
587    </xsl:tem plate>   588    </xsl:tem plate>
588     589  
589     590  
590    <xsl:temp late name= "MiniTOCPa ragraph">   591    <xsl:temp late name= "MiniTOCPa ragraph">
591     <xsl:par am name="P aramParagr aph" />   592     <xsl:par am name="P aramParagr aph" />
592     593  
593     <xsl:for -each sele ct="$Param Paragraph/ wwdoc:Numb er/wwdoc:T ext | $Par amParagrap h/wwdoc:Te xtRun/wwdo c:Text">   594     <xsl:for -each sele ct="$Param Paragraph/ wwdoc:Numb er/wwdoc:T ext | $Par amParagrap h/wwdoc:Te xtRun/wwdo c:Text">
594      <xsl:va lue-of sel ect="@valu e" />   595      <xsl:va lue-of sel ect="@valu e" />
595     </xsl:fo r-each>   596     </xsl:fo r-each>
596    </xsl:tem plate>   597    </xsl:tem plate>
597     598  
598     599  
599    <xsl:temp late name= "Paragraph ">   600    <xsl:temp late name= "Paragraph ">
600     <xsl:par am name="P aramSplits " />   601     <xsl:par am name="P aramSplits " />
601     <xsl:par am name="P aramCargo"  />   602     <xsl:par am name="P aramCargo"  />
602     <xsl:par am name="P aramLinks"  />   603     <xsl:par am name="P aramLinks"  />
603     <xsl:par am name="P aramSplit"  />   604     <xsl:par am name="P aramSplit"  />
604     <xsl:par am name="P aramParagr aph" />   605     <xsl:par am name="P aramParagr aph" />
605     <xsl:par am name="P aramStyleN ame" />   606     <xsl:par am name="P aramStyleN ame" />
606     <xsl:par am name="P aramOverri deRule" />   607     <xsl:par am name="P aramOverri deRule" />
607     <xsl:par am name="P aramParagr aphBehavio r" />   608     <xsl:par am name="P aramParagr aphBehavio r" />
608     609  
609     <!-- Pre serve empt y? -->   610     <!-- Pre serve empt y? -->
610     <!--                   -->   611     <!--                   -->
611     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " />   612     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " />
612     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " />   613     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " />
613     614  
614     <!-- Non -empty tex t runs -->   615     <!-- Non -empty tex t runs -->
615     <!--                       -->   616     <!--                       -->
616     <xsl:var iable name ="VarTextR uns" selec t="$ParamP aragraph/w wdoc:TextR un[count(c hild::wwdo c:Text[1]  | child::w wdoc:Frame [1] | chil d::wwdoc:N ote[1] | c hild::wwdo c:LineBrea k[1]) &gt;  0]" />   617     <xsl:var iable name ="VarTextR uns" selec t="$ParamP aragraph/w wdoc:TextR un[count(c hild::wwdo c:Text[1]  | child::w wdoc:Frame [1] | chil d::wwdoc:N ote[1] | c hild::wwdo c:LineBrea k[1]) &gt;  0]" />
617     618  
618     <!-- Wha t Is This  with no Ou tput -->   619     <!-- Wha t Is This  with no Ou tput -->
619     <!--                                -->   620     <!--                                -->
620     <xsl:var iable name ="VarWhatI sThisOptio n" select= "$ Par a mOver r id e
Rule/wwpro ject:Optio ns/wwproje ct:Option[ @Name = 'w hatis-this ']/@Value"  />
  621     <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Paragrap h', $Param Paragraph/ @stylename , $ParamSp lit/@docum entID, $Pa ramParagra ph/@id)" / >
        622     <xsl:var iable name ="VarWhatI sThisOptio n" select= "$ V a
r Cont e xt Rule/wwpro ject:Optio ns/wwproje ct:Option[ @Name = 'w hatis-this ']/@Value"  />
621     623  
622     <!-- Pro cess this  paragraph  at all? -- >   624     <!-- Pro cess this  paragraph  at all? -- >
623     <!--                                   -- >   625     <!--                                   -- >
624     <xsl:if  test="(($V arPreserve Empty) or  (count($Va rTextRuns[ 1]) = 1))  and ($VarW hatIsThisO ption != ' define-no- output')">   626     <xsl:if  test="(($V arPreserve Empty) or  (count($Va rTextRuns[ 1]) = 1))  and ($VarW hatIsThisO ption != ' define-no- output')">
625      <!-- Pa ss-through ? -->   627      <!-- Pa ss-through ? -->
626      <!--                 -->   628      <!--                 -->
627      <xsl:va riable nam e="VarPass Through">   629      <xsl:va riable nam e="VarPass Through">
628       <xsl:c all-templa te name="C onditions- PassThroug h">   630       <xsl:c all-templa te name="C onditions- PassThroug h">
629        <xsl: with-param  name="Par amConditio ns" select ="$ParamPa ragraph/ww doc:Condit ions" />   631        <xsl: with-param  name="Par amConditio ns" select ="$ParamPa ragraph/ww doc:Condit ions" />
630       </xsl: call-templ ate>   632       </xsl: call-templ ate>
631      </xsl:v ariable>   633      </xsl:v ariable>
632     634  
633      <!-- A- Link? -->   635      <!-- A- Link? -->
634      <!--          -->   636      <!--          -->
635      <xsl:va riable nam e="VarALin kOption" s elect="$Pa ramOverrid eRule/wwpr oject:Opti ons/wwproj ect:Option [@Name = ' alink']/@V alue" />   637      <xsl:va riable nam e="VarALin kOption" s elect="$Pa ramOverrid eRule/wwpr oject:Opti ons/wwproj ect:Option [@Name = ' alink']/@V alue" />
636      <xsl:va riable nam e="VarALin k" select= "$VarALink Option = ' true'" />   638      <xsl:va riable nam e="VarALin k" select= "$VarALink Option = ' true'" />
637     639  
638      <xsl:ch oose>   640      <xsl:ch oose>
639       <!-- P ass-throug h -->   641       <!-- P ass-throug h -->
640       <!--                -->   642       <!--                -->
641       <xsl:w hen test=" $VarPassTh rough = 't rue'">   643       <xsl:w hen test=" $VarPassTh rough = 't rue'">
642        <xsl: call-templ ate name=" Paragraph- PassThroug h">   644        <xsl: call-templ ate name=" Paragraph- PassThroug h">
643         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / >   645         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / >
644        </xsl :call-temp late>   646        </xsl :call-temp late>
645       </xsl: when>   647       </xsl: when>
646     648  
647       <!-- A -Link arou nd whole p aragraph - ->   649       <!-- A -Link arou nd whole p aragraph - ->
648       <!--                                  - ->   650       <!--                                  - ->
649       <xsl:w hen test=" $VarALink" >   651       <xsl:w hen test=" $VarALink" >
650        <!--  Update car go -->   652        <!--  Update car go -->
651        <!--                -->   653        <!--                -->
652        <xsl: variable n ame="VarCa rgoALinkAs XML">   654        <xsl: variable n ame="VarCa rgoALinkAs XML">
653         <wwa links:ALin k>   655         <wwa links:ALin k>
654          <xs l:attribut e name="hr ef">   656          <xs l:attribut e name="hr ef">
655           <x sl:value-o f select=" concat('ja vascript:W ebWorksSee Also.fOnCl ickLink(&q uot;ALink_ ', transla te($ParamP aragraph/@ id, '-', ' _'), '&quo t;);')" />   657           <x sl:value-o f select=" concat('ja vascript:W ebWorksSee Also.fOnCl ickLink(&q uot;ALink_ ', transla te($ParamP aragraph/@ id, '-', ' _'), '&quo t;);')" />
656          </x sl:attribu te>   658          </x sl:attribu te>
657         </ww alinks:ALi nk>   659         </ww alinks:ALi nk>
658        </xsl :variable>   660        </xsl :variable>
659        <xsl: variable n ame="VarCa rgoALink"  select="ms xsl:node-s et($VarCar goALinkAsX ML)" />   661        <xsl: variable n ame="VarCa rgoALink"  select="ms xsl:node-s et($VarCar goALinkAsX ML)" />
660        <xsl: variable n ame="VarCa rgo" selec t="$ParamC argo/*/..  | $VarCarg oALink" />   662        <xsl: variable n ame="VarCa rgo" selec t="$ParamC argo/*/..  | $VarCarg oALink" />
661     663  
662        <xsl: for-each s elect="$Pa ramSplits[ 1]">   664        <xsl: for-each s elect="$Pa ramSplits[ 1]">
663         <!--  Determine  image pat hs -->   665         <!--  Determine  image pat hs -->
664         <!--                          -->   666         <!--                          -->
665         <xsl :variable  name="Var_ seertup" s elect="wwu ri:GetRela tiveTo(key ('wwsplits -files-by- source-low ercase', w wstring:To Lower('wwf ormat:File s/images/s eertup.gif '))[1]/@pa th, $Param Split/@pat h)" />   667         <xsl :variable  name="Var_ seertup" s elect="wwu ri:GetRela tiveTo(key ('wwsplits -files-by- source-low ercase', w wstring:To Lower('wwf ormat:File s/images/s eertup.gif '))[1]/@pa th, $Param Split/@pat h)" />
666         <xsl :variable  name="Var_ seeright"  select="ww uri:GetRel ativeTo(ke y('wwsplit s-files-by -source-lo wercase',  wwstring:T oLower('ww format:Fil es/images/ seeright.g if'))[1]/@ path, $Par amSplit/@p ath)" />   668         <xsl :variable  name="Var_ seeright"  select="ww uri:GetRel ativeTo(ke y('wwsplit s-files-by -source-lo wercase',  wwstring:T oLower('ww format:Fil es/images/ seeright.g if'))[1]/@ path, $Par amSplit/@p ath)" />
667         <xsl :variable  name="Var_ seelflow"  select="ww uri:GetRel ativeTo(ke y('wwsplit s-files-by -source-lo wercase',  wwstring:T oLower('ww format:Fil es/images/ seelflow.g if'))[1]/@ path, $Par amSplit/@p ath)" />   669         <xsl :variable  name="Var_ seelflow"  select="ww uri:GetRel ativeTo(ke y('wwsplit s-files-by -source-lo wercase',  wwstring:T oLower('ww format:Fil es/images/ seelflow.g if'))[1]/@ path, $Par amSplit/@p ath)" />
668         <xsl :variable  name="Var_ seebttm" s elect="wwu ri:GetRela tiveTo(key ('wwsplits -files-by- source-low ercase', w wstring:To Lower('wwf ormat:File s/images/s eebttm.gif '))[1]/@pa th, $Param Split/@pat h)" />   670         <xsl :variable  name="Var_ seebttm" s elect="wwu ri:GetRela tiveTo(key ('wwsplits -files-by- source-low ercase', w wstring:To Lower('wwf ormat:File s/images/s eebttm.gif '))[1]/@pa th, $Param Split/@pat h)" />
669         <xsl :variable  name="Var_ seertlow"  select="ww uri:GetRel ativeTo(ke y('wwsplit s-files-by -source-lo wercase',  wwstring:T oLower('ww format:Fil es/images/ seertlow.g if'))[1]/@ path, $Par amSplit/@p ath)" />   671         <xsl :variable  name="Var_ seertlow"  select="ww uri:GetRel ativeTo(ke y('wwsplit s-files-by -source-lo wercase',  wwstring:T oLower('ww format:Fil es/images/ seertlow.g if'))[1]/@ path, $Par amSplit/@p ath)" />
670     672  
671         <htm l:table bo rder="0" c ellspacing ="0" cellp adding="0"  onclick=" {concat('W ebWorksSee Also.fOnCl ickButton( &quot;ALin k_', trans late($Para mParagraph /@id, '-',  '_'), '&q uot;);')}" >   673         <htm l:table bo rder="0" c ellspacing ="0" cellp adding="0"  onclick=" {concat('W ebWorksSee Also.fOnCl ickButton( &quot;ALin k_', trans late($Para mParagraph /@id, '-',  '_'), '&q uot;);')}" >
672          <ht ml:tr>   674          <ht ml:tr>
673           <h tml:td hei ght="2" co lspan="4"  bgcolor="# FFFFFF"></ html:td>   675           <h tml:td hei ght="2" co lspan="4"  bgcolor="# FFFFFF"></ html:td>
674           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer tup}"></ht ml:td>   676           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer tup}"></ht ml:td>
675          </h tml:tr>   677          </h tml:tr>
676          <ht ml:tr>   678          <ht ml:tr>
677           <h tml:td wid th="2" hei ght="2" bg color="#FF FFFF"></ht ml:td>   679           <h tml:td wid th="2" hei ght="2" bg color="#FF FFFF"></ht ml:td>
678           <h tml:td hei ght="2" co lspan="3"  bgcolor="# D4D0C8"></ html:td>   680           <h tml:td hei ght="2" co lspan="3"  bgcolor="# D4D0C8"></ html:td>
679           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer ight}"></h tml:td>   681           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer ight}"></h tml:td>
680          </h tml:tr>   682          </h tml:tr>
681          <ht ml:tr>   683          <ht ml:tr>
682           <h tml:td wid th="2" bgc olor="#FFF FFF"></htm l:td>   684           <h tml:td wid th="2" bgc olor="#FFF FFF"></htm l:td>
683           <h tml:td wid th="2" bgc olor="#D4D 0C8"></htm l:td>   685           <h tml:td wid th="2" bgc olor="#D4D 0C8"></htm l:td>
684           <h tml:td bgc olor="#D4D 0C8">   686           <h tml:td bgc olor="#D4D 0C8">
685     687  
686            < xsl:call-t emplate na me="Paragr aph-Normal ">   688            < xsl:call-t emplate na me="Paragr aph-Normal ">
687              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />   689              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />
688              <xsl:with- param name ="ParamCar go" select ="$VarCarg o" />   690              <xsl:with- param name ="ParamCar go" select ="$VarCarg o" />
689              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />   691              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />
690              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />   692              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />
691              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" />   693              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" />
692              <xsl:with- param name ="ParamSty leName" se lect="$Par amStyleNam e" />   694              <xsl:with- param name ="ParamSty leName" se lect="$Par amStyleNam e" />
693              <xsl:with- param name ="ParamOve rrideRule"  select="$ ParamOverr ideRule" / >   695              <xsl:with- param name ="ParamOve rrideRule"  select="$ ParamOverr ideRule" / >
694              <xsl:with- param name ="ParamPar agraphBeha vior" sele ct="$Param ParagraphB ehavior" / >   696              <xsl:with- param name ="ParamPar agraphBeha vior" sele ct="$Param ParagraphB ehavior" / >
695            < /xsl:call- template>   697            < /xsl:call- template>
696     698  
697           </ html:td>   699           </ html:td>
698           <h tml:td wid th="2" bgc olor="#D4D 0C8"></htm l:td>   700           <h tml:td wid th="2" bgc olor="#D4D 0C8"></htm l:td>
699           <h tml:td wid th="2" bac kground="{ $Var_seeri ght}"></ht ml:td>   701           <h tml:td wid th="2" bac kground="{ $Var_seeri ght}"></ht ml:td>
700          </h tml:tr>   702          </h tml:tr>
701          <ht ml:tr>   703          <ht ml:tr>
702           <h tml:td wid th="2" hei ght="2" bg color="#FF FFFF"></ht ml:td>   704           <h tml:td wid th="2" hei ght="2" bg color="#FF FFFF"></ht ml:td>
703           <h tml:td hei ght="2" co lspan="3"  bgcolor="# D4D0C8"></ html:td>   705           <h tml:td hei ght="2" co lspan="3"  bgcolor="# D4D0C8"></ html:td>
704           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer ight}"></h tml:td>   706           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer ight}"></h tml:td>
705          </h tml:tr>   707          </h tml:tr>
706          <ht ml:tr>   708          <ht ml:tr>
707           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seel flow}"></h tml:td>   709           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seel flow}"></h tml:td>
708           <h tml:td hei ght="2" co lspan="3"  background ="{$Var_se ebttm}"></ html:td>   710           <h tml:td hei ght="2" co lspan="3"  background ="{$Var_se ebttm}"></ html:td>
709           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer tlow}"></h tml:td>   711           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer tlow}"></h tml:td>
710          </h tml:tr>   712          </h tml:tr>
711         </ht ml:table>   713         </ht ml:table>
712        </xsl :for-each>   714        </xsl :for-each>
713       </xsl: when>   715       </xsl: when>
714     716  
715       <xsl:o therwise>   717       <xsl:o therwise>
716        <xsl: call-templ ate name=" Paragraph- Normal">   718        <xsl: call-templ ate name=" Paragraph- Normal">
717         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   719         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
718         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   720         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
719         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   721         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
720         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   722         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
721         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / >   723         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / >
722         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yleName" / >   724         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yleName" / >
723         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$Para mOverrideR ule" />   725         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$Para mOverrideR ule" />
724         <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" />   726         <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" />
725        </xsl :call-temp late>   727        </xsl :call-temp late>
726       </xsl: otherwise>   728       </xsl: otherwise>
727      </xsl:c hoose>   729      </xsl:c hoose>
728     </xsl:if >   730     </xsl:if >
729    </xsl:tem plate>   731    </xsl:tem plate>
730     732  
731     733  
732    <xsl:temp late name= "Paragraph -PassThrou gh">   734    <xsl:temp late name= "Paragraph -PassThrou gh">
733     <xsl:par am name="P aramParagr aph" />   735     <xsl:par am name="P aramParagr aph" />
734     736  
735     <wwexsld oc:Text di sable-outp ut-escapin g="yes">   737     <wwexsld oc:Text di sable-outp ut-escapin g="yes">
736      <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Tex tRun/wwdoc :Text">   738      <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Tex tRun/wwdoc :Text">
737       <xsl:v ariable na me="VarTex t" select= "." />   739       <xsl:v ariable na me="VarTex t" select= "." />
738     740  
739       <xsl:v alue-of se lect="$Var Text/@valu e" />   741       <xsl:v alue-of se lect="$Var Text/@valu e" />
740      </xsl:f or-each>   742      </xsl:f or-each>
741     </wwexsl doc:Text>   743     </wwexsl doc:Text>
742    </xsl:tem plate>   744    </xsl:tem plate>
743     745  
744     746  
745    <xsl:temp late name= "Paragraph -Normal">   747    <xsl:temp late name= "Paragraph -Normal">
746     <xsl:par am name="P aramSplits " />   748     <xsl:par am name="P aramSplits " />
747     <xsl:par am name="P aramCargo"  />   749     <xsl:par am name="P aramCargo"  />
748     <xsl:par am name="P aramLinks"  />   750     <xsl:par am name="P aramLinks"  />
749     <xsl:par am name="P aramSplit"  />   751     <xsl:par am name="P aramSplit"  />
750     <xsl:par am name="P aramParagr aph" />   752     <xsl:par am name="P aramParagr aph" />
751     <xsl:par am name="P aramStyleN ame" />   753     <xsl:par am name="P aramStyleN ame" />
752     <xsl:par am name="P aramOverri deRule" />   754     <xsl:par am name="P aramOverri deRule" />
753     <xsl:par am name="P aramParagr aphBehavio r" />   755     <xsl:par am name="P aramParagr aphBehavio r" />
754     756  
755     <!-- Res olve proje ct propert ies -->   757     <!-- Res olve proje ct propert ies -->
756     <!--                               -->   758     <!--                               -->
757     <xsl:var iable name ="VarResol vedPropert iesAsXML">   759     <xsl:var iable name ="VarResol vedPropert iesAsXML">
758      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule">   760      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule">
759       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  />   761       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  />
760       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " />   762       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " />
761      </xsl:c all-templa te>   763      </xsl:c all-templa te>
762     </xsl:va riable>   764     </xsl:va riable>
763     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" />   765     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" />
764     766  
765     <!-- CSS  propertie s -->   767     <!-- CSS  propertie s -->
766     <!--                  -->   768     <!--                  -->
767     <xsl:var iable name ="VarCSSPr opertiesAs XML">   769     <xsl:var iable name ="VarCSSPr opertiesAs XML">
768      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties">   770      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties">
769       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" />   771       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" />
770       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" />   772       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" />
771       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />   773       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />
772      </xsl:c all-templa te>   774      </xsl:c all-templa te>
773     </xsl:va riable>   775     </xsl:va riable>
774     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" />   776     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" />
775     777  
776     <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Paragrap h', $Param Paragraph/ @stylename , $ParamSp lit/@docum entID, $Pa ramParagra ph/@id)" / >   778     <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Paragrap h', $Param Paragraph/ @stylename , $ParamSp lit/@docum entID, $Pa ramParagra ph/@id)" / >
777     779  
778     <!-- Res olve proje ct propert ies -->   780     <!-- Res olve proje ct propert ies -->
779     <!--                               -->   781     <!--                               -->
780     <xsl:var iable name ="VarResol vedContext Properties AsXML">   782     <xsl:var iable name ="VarResol vedContext Properties AsXML">
781      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule">   783      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule">
782       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amParagrap h" />   784       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amParagrap h" />
783       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" />   785       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" />
784       <xsl:w ith-param  name="Para mStyleName " select=" $ParamPara graph/@sty lename" />   786       <xsl:w ith-param  name="Para mStyleName " select=" $ParamPara graph/@sty lename" />
785       <xsl:w ith-param  name="Para mStyleType " select=" 'Paragraph '" />   787       <xsl:w ith-param  name="Para mStyleType " select=" 'Paragraph '" />
786       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " />   788       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " />
787      </xsl:c all-templa te>   789      </xsl:c all-templa te>
788     </xsl:va riable>   790     </xsl:va riable>
789     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  />   791     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  />
790     792  
791     <!-- CSS  propertie s -->   793     <!-- CSS  propertie s -->
792     <!--                  -->   794     <!--                  -->
793     <xsl:var iable name ="VarCSSCo ntextPrope rtiesAsXML ">   795     <xsl:var iable name ="VarCSSCo ntextPrope rtiesAsXML ">
794      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties">   796      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties">
795       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedContext Properties " />   797       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedContext Properties " />
796       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" />   798       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" />
797       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />   799       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />
798      </xsl:c all-templa te>   800      </xsl:c all-templa te>
799     </xsl:va riable>   801     </xsl:va riable>
800     <xsl:var iable name ="VarCSSCo ntextPrope rties" sel ect="msxsl :node-set( $VarCSSCon textProper tiesAsXML) /wwproject :Property"  />   802     <xsl:var iable name ="VarCSSCo ntextPrope rties" sel ect="msxsl :node-set( $VarCSSCon textProper tiesAsXML) /wwproject :Property"  />
801     803  
802     <!-- Use  numbering ? -->   804     <!-- Use  numbering ? -->
803     <!--                  -->   805     <!--                  -->
804     <xsl:var iable name ="VarUseNu mberingOpt ion" selec t="$VarCon textRule/w wproject:O ptions/wwp roject:Opt ion[@Name  = 'use-num bering']/@ Value" />   806     <xsl:var iable name ="VarUseNu mberingOpt ion" selec t="$VarCon textRule/w wproject:O ptions/wwp roject:Opt ion[@Name  = 'use-num bering']/@ Value" />
805     <xsl:var iable name ="VarUseNu mbering" s elect="(st ring-lengt h($VarUseN umberingOp tion) = 0)  or ($VarU seNumberin gOption =  'true')" / >   807     <xsl:var iable name ="VarUseNu mbering" s elect="(st ring-lengt h($VarUseN umberingOp tion) = 0)  or ($VarU seNumberin gOption =  'true')" / >
806     808  
807     <!-- Tex t Indent - ->   809     <!-- Tex t Indent - ->
808     <!--              - ->   810     <!--              - ->
809     <xsl:var iable name ="VarTextI ndent">   811     <xsl:var iable name ="VarTextI ndent">
810      <xsl:if  test="$Va rUseNumber ing">   812      <xsl:if  test="$Va rUseNumber ing">
811       <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarC SSProperti es[@Name =  'text-ind ent']/@Val ue" />   813       <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarC SSProperti es[@Name =  'text-ind ent']/@Val ue" />
812       <xsl:c hoose>   814       <xsl:c hoose>
813        <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0">   815        <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0">
814         <xsl :value-of  select="$V arOverride TextIndent " />   816         <xsl :value-of  select="$V arOverride TextIndent " />
815        </xsl :when>   817        </xsl :when>
816     818  
817        <xsl: otherwise>   819        <xsl: otherwise>
818         <!--  Text inde nt defined ? -->   820         <!--  Text inde nt defined ? -->
819         <!--                         -->   821         <!--                         -->
820         <xsl :variable  name="VarC ontextText Indent" se lect="$Var CSSContext Properties [@Name = ' text-inden t']/@Value " />   822         <xsl :variable  name="VarC ontextText Indent" se lect="$Var CSSContext Properties [@Name = ' text-inden t']/@Value " />
821         <xsl :if test=" string-len gth($VarCo ntextTextI ndent) &gt ; 0">   823         <xsl :if test=" string-len gth($VarCo ntextTextI ndent) &gt ; 0">
822          <xs l:value-of  select="$ VarContext TextIndent " />   824          <xs l:value-of  select="$ VarContext TextIndent " />
823         </xs l:if>   825         </xs l:if>
824        </xsl :otherwise >   826        </xsl :otherwise >
825       </xsl: choose>   827       </xsl: choose>
826      </xsl:i f>   828      </xsl:i f>
827     </xsl:va riable>   829     </xsl:va riable>
828     830  
829     <xsl:var iable name ="VarTextI ndentNumer icPrefix"  select="ww units:Nume ricPrefix( $VarTextIn dent)" />   831     <xsl:var iable name ="VarTextI ndentNumer icPrefix"  select="ww units:Nume ricPrefix( $VarTextIn dent)" />
830     <xsl:var iable name ="VarTextI ndentLessT hanZero" s elect="(st ring-lengt h($VarText IndentNume ricPrefix)  &gt; 0) a nd (number ($VarTextI ndentNumer icPrefix)  &lt; 0)" / >   832     <xsl:var iable name ="VarTextI ndentLessT hanZero" s elect="(st ring-lengt h($VarText IndentNume ricPrefix)  &gt; 0) a nd (number ($VarTextI ndentNumer icPrefix)  &lt; 0)" / >
831     833  
832     <!-- Use  bullet fr om UI? -->   834     <!-- Use  bullet fr om UI? -->
833     <!--                       -->   835     <!--                       -->
834     <xsl:var iable name ="VarBulle tCharacter " select=" $VarContex tRule/wwpr oject:Prop erties/wwp roject:Pro perty[@Nam e = 'bulle t-characte r']/@Value " />   836     <xsl:var iable name ="VarBulle tCharacter " select=" $VarContex tRule/wwpr oject:Prop erties/wwp roject:Pro perty[@Nam e = 'bulle t-characte r']/@Value " />
835     <xsl:var iable name ="VarBulle tImage" se lect="$Var ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y[@Name =  'bullet-im age']/@Val ue" />   837     <xsl:var iable name ="VarBulle tImage" se lect="$Var ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y[@Name =  'bullet-im age']/@Val ue" />
836     <xsl:var iable name ="VarBulle tSeparator " select=" $VarContex tRule/wwpr oject:Prop erties/wwp roject:Pro perty[@Nam e = 'bulle t-separato r']/@Value " />   838     <xsl:var iable name ="VarBulle tSeparator " select=" $VarContex tRule/wwpr oject:Prop erties/wwp roject:Pro perty[@Nam e = 'bulle t-separato r']/@Value " />
837     <xsl:var iable name ="VarBulle tStyle" se lect="$Var ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y[@Name =  'bullet-st yle']/@Val ue" />   839     <xsl:var iable name ="VarBulle tStyle" se lect="$Var ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y[@Name =  'bullet-st yle']/@Val ue" />
838     <xsl:var iable name ="VarIgnor eDocumentN umber" sel ect="(stri ng-length( $VarBullet Character)  &gt; 0) o r (string- length($Va rBulletIma ge) &gt; 0 ) or (stri ng-length( $VarBullet Separator)  &gt; 0)"  />   840     <xsl:var iable name ="VarIgnor eDocumentN umber" sel ect="(stri ng-length( $VarBullet Character)  &gt; 0) o r (string- length($Va rBulletIma ge) &gt; 0 ) or (stri ng-length( $VarBullet Separator)  &gt; 0)"  />
839     841  
840     <!-- Is  numbered p aragraph - ->   842     <!-- Is  numbered p aragraph - ->
841     <!--                         - ->   843     <!--                         - ->
842     <xsl:var iable name ="VarIsNum beredParag raph" sele ct="($VarT extIndentL essThanZer o = true() ) and ((co unt($Param Paragraph/ wwdoc:Numb er[1]) = 1 ) or (stri ng-length( $VarBullet Character)  &gt; 0) o r (string- length($Va rBulletIma ge) &gt; 0 ) or (stri ng-length( $VarBullet Separator)  &gt; 0) o r (string- length($Va rBulletSty le) &gt; 0 ))" />   844     <xsl:var iable name ="VarIsNum beredParag raph" sele ct="($VarT extIndentL essThanZer o = true() ) and ((co unt($Param Paragraph/ wwdoc:Numb er[1]) = 1 ) or (stri ng-length( $VarBullet Character)  &gt; 0) o r (string- length($Va rBulletIma ge) &gt; 0 ) or (stri ng-length( $VarBullet Separator)  &gt; 0) o r (string- length($Va rBulletSty le) &gt; 0 ))" />
843     845  
844     <!-- Cit ation -->   846     <!-- Cit ation -->
845     <!--           -->   847     <!--           -->
846     <xsl:var iable name ="VarCitat ion">   848     <xsl:var iable name ="VarCitat ion">
847      <xsl:ca ll-templat e name="Be haviors-Op tions-Opti onMarker">   849      <xsl:ca ll-templat e name="Be haviors-Op tions-Opti onMarker">
848       <xsl:w ith-param  name="Para mContainer " select=" $ParamPara graph" />   850       <xsl:w ith-param  name="Para mContainer " select=" $ParamPara graph" />
849       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >   851       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >
850       <xsl:w ith-param  name="Para mParagraph ID" select ="$ParamPa ragraph/@i d" />   852       <xsl:w ith-param  name="Para mParagraph ID" select ="$ParamPa ragraph/@i d" />
851       <xsl:w ith-param  name="Para mRule" sel ect="$VarC ontextRule " />   853       <xsl:w ith-param  name="Para mRule" sel ect="$VarC ontextRule " />
852       <xsl:w ith-param  name="Para mOption" s elect="'ci tation'" / >   854       <xsl:w ith-param  name="Para mOption" s elect="'ci tation'" / >
853      </xsl:c all-templa te>   855      </xsl:c all-templa te>
854     </xsl:va riable>   856     </xsl:va riable>
855     857  
856     <!-- Tag  -->   858     <!-- Tag  -->
857     <!--      -->   859     <!--      -->
858     <xsl:var iable name ="VarTagPr operty" se lect="$Var ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y[@Name =  'tag']/@Va lue" />   860     <xsl:var iable name ="VarTagPr operty" se lect="$Var ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y[@Name =  'tag']/@Va lue" />
859     <xsl:var iable name ="VarTag">   861     <xsl:var iable name ="VarTag">
860      <xsl:ch oose>   862      <xsl:ch oose>
861       <xsl:w hen test=" string-len gth($VarTa gProperty)  &gt; 0">   863       <xsl:w hen test=" string-len gth($VarTa gProperty)  &gt; 0">
862        <xsl: value-of s elect="$Va rTagProper ty" />   864        <xsl: value-of s elect="$Va rTagProper ty" />
863       </xsl: when>   865       </xsl: when>
864     866  
865       <xsl:o therwise>   867       <xsl:o therwise>
866        <xsl: value-of s elect="'di v'" />   868        <xsl: value-of s elect="'di v'" />
867       </xsl: otherwise>   869       </xsl: otherwise>
868      </xsl:c hoose>   870      </xsl:c hoose>
869     </xsl:va riable>   871     </xsl:va riable>
870     872  
871     <!-- Tag  to use fo r outer wr apper -->   873     <!-- Tag  to use fo r outer wr apper -->
872     <!--                                 -->   874     <!--                                 -->
873     <xsl:var iable name ="VarOuter Tag">   875     <xsl:var iable name ="VarOuter Tag">
874      <xsl:ch oose>   876      <xsl:ch oose>
875       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()">   877       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()">
876        <xsl: value-of s elect="'di v'" />   878        <xsl: value-of s elect="'di v'" />
877       </xsl: when>   879       </xsl: when>
878     880  
879       <xsl:o therwise>   881       <xsl:o therwise>
880        <xsl: value-of s elect="$Va rTag" />   882        <xsl: value-of s elect="$Va rTag" />
881       </xsl: otherwise>   883       </xsl: otherwise>
882      </xsl:c hoose>   884      </xsl:c hoose>
883     </xsl:va riable>   885     </xsl:va riable>
884     886  
885     <!-- Use  character  styles? - ->   887     <!-- Use  character  styles? - ->
886     <!--                         - ->   888     <!--                         - ->
887     <xsl:var iable name ="VarUseCh aracterSty lesOption"  select="$ ParamOverr ideRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'use-char acter-styl es']/@Valu e" />   889     <xsl:var iable name ="VarUseCh aracterSty lesOption"  select="$ ParamOverr ideRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'use-char acter-styl es']/@Valu e" />
888     <xsl:var iable name ="VarUseCh aracterSty les" selec t="(string -length($V arUseChara cterStyles Option) =  0) or ($Va rUseCharac terStylesO ption = 't rue')" />   890     <xsl:var iable name ="VarUseCh aracterSty les" selec t="(string -length($V arUseChara cterStyles Option) =  0) or ($Va rUseCharac terStylesO ption = 't rue')" />
889     891  
890     <!-- Pre serve empt y? -->   892     <!-- Pre serve empt y? -->
891     <!--                   -->   893     <!--                   -->
892     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " />   894     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " />
893     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " />   895     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " />
894     896  
895     <!-- Beg in paragra ph emit -- >   897     <!-- Beg in paragra ph emit -- >
896     <!--                        -- >   898     <!--                        -- >
897     <xsl:ele ment name= "{$VarOute rTag}" nam espace="{$ GlobalDefa ultNamespa ce}">   899     <xsl:ele ment name= "{$VarOute rTag}" nam espace="{$ GlobalDefa ultNamespa ce}">
898      <!-- Cl ass attrib ute -->   900      <!-- Cl ass attrib ute -->
899      <!--                   -->   901      <!--                   -->
900      <xsl:at tribute na me="class" >   902      <xsl:at tribute na me="class" >
901       <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" />   903       <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" />
902       <xsl:i f test="$V arIsNumber edParagrap h = true() ">   904       <xsl:i f test="$V arIsNumber edParagrap h = true() ">
903        <xsl: value-of s elect="'_o uter'" />   905        <xsl: value-of s elect="'_o uter'" />
904       </xsl: if>   906       </xsl: if>
905     907  
906       <!-- A dditional  CSS classe s -->   908       <!-- A dditional  CSS classe s -->
907       <!--                           -->   909       <!--                           -->
908       <xsl:v ariable na me="VarAdd itionalCSS ClassesOpt ion" selec t="normali ze-space($ ParamOverr ideRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'addition al-css-cla sses']/@Va lue)" />   910       <xsl:v ariable na me="VarAdd itionalCSS ClassesOpt ion" selec t="normali ze-space($ ParamOverr ideRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'addition al-css-cla sses']/@Va lue)" />
909       <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) &gt; 0 ">   911       <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) &gt; 0 ">
910        <xsl: text> </xs l:text>   912        <xsl: text> </xs l:text>
911        <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / >   913        <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / >
912        <xsl: if test="$ VarIsNumbe redParagra ph = true( )">   914        <xsl: if test="$ VarIsNumbe redParagra ph = true( )">
913         <xsl :text> Web Works_Para graph_List _Outer</xs l:text>   915         <xsl :text> Web Works_Para graph_List _Outer</xs l:text>
914        </xsl :if>   916        </xsl :if>
915       </xsl: if>   917       </xsl: if>
916      </xsl:a ttribute>   918      </xsl:a ttribute>
917     919  
918      <!-- St yle attrib ute -->   920      <!-- St yle attrib ute -->
919      <!--                   -->   921      <!--                   -->
920      <xsl:ch oose>   922      <xsl:ch oose>
921       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()">   923       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()">
922        <xsl: variable n ame="VarSt yleAttribu teOuter">   924        <xsl: variable n ame="VarSt yleAttribu teOuter">
923         <xsl :call-temp late name= "CSS-Inlin ePropertie sOuter">   925         <xsl :call-temp late name= "CSS-Inlin ePropertie sOuter">
924          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" />   926          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" />
925          <xs l:with-par am name="P aramContex tPropertie s" select= "$VarCSSCo ntextPrope rties" />   927          <xs l:with-par am name="P aramContex tPropertie s" select= "$VarCSSCo ntextPrope rties" />
926         </xs l:call-tem plate>   928         </xs l:call-tem plate>
927        </xsl :variable>   929        </xsl :variable>
928     930  
929        <xsl: if test="s tring-leng th($VarSty leAttribut eOuter) &g t; 0">   931        <xsl: if test="s tring-leng th($VarSty leAttribut eOuter) &g t; 0">
930         <xsl :attribute  name="sty le">   932         <xsl :attribute  name="sty le">
931          <xs l:value-of  select="$ VarStyleAt tributeOut er" />   933          <xs l:value-of  select="$ VarStyleAt tributeOut er" />
932         </xs l:attribut e>   934         </xs l:attribut e>
933        </xsl :if>   935        </xsl :if>
934       </xsl: when>   936       </xsl: when>
935     937  
936       <xsl:o therwise>   938       <xsl:o therwise>
937        <xsl: variable n ame="VarSt yleAttribu te">   939        <xsl: variable n ame="VarSt yleAttribu te">
938         <xsl :call-temp late name= "CSS-Inlin ePropertie s">   940         <xsl :call-temp late name= "CSS-Inlin ePropertie s">
939          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" />   941          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" />
940         </xs l:call-tem plate>   942         </xs l:call-tem plate>
941        </xsl :variable>   943        </xsl :variable>
942     944  
943        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" >   945        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" >
944         <xsl :attribute  name="sty le">   946         <xsl :attribute  name="sty le">
945          <xs l:value-of  select="$ VarStyleAt tribute" / >   947          <xs l:value-of  select="$ VarStyleAt tribute" / >
946         </xs l:attribut e>   948         </xs l:attribut e>
947        </xsl :if>   949        </xsl :if>
948       </xsl: otherwise>   950       </xsl: otherwise>
949      </xsl:c hoose>   951      </xsl:c hoose>
950     952  
951      <!-- Ci te attribu te -->   953      <!-- Ci te attribu te -->
952      <!--                  -->   954      <!--                  -->
953      <xsl:if  test="str ing-length ($VarCitat ion) &gt;  0">   955      <xsl:if  test="str ing-length ($VarCitat ion) &gt;  0">
954       <xsl:a ttribute n ame="cite" >   956       <xsl:a ttribute n ame="cite" >
955        <xsl: value-of s elect="$Va rCitation"  />   957        <xsl: value-of s elect="$Va rCitation"  />
956       </xsl: attribute>   958       </xsl: attribute>
957      </xsl:i f>   959      </xsl:i f>
958     960  
959      <!-- Dr opdown -->   961      <!-- Dr opdown -->
960      <!--           -->   962      <!--           -->
961      <xsl:if  test="($P aramParagr aphBehavio r/@dropdow n = 'start -open') or  ($ParamPa ragraphBeh avior/@dro pdown = 's tart-close d')">   963      <xsl:if  test="($P aramParagr aphBehavio r/@dropdow n = 'start -open') or  ($ParamPa ragraphBeh avior/@dro pdown = 's tart-close d')">
962       <xsl:a ttribute n ame="oncli ck">   964       <xsl:a ttribute n ame="oncli ck">
963        <xsl: value-of s elect="con cat('WebWo rksDropDow n_ToggleDI V(WebWorks RootPath,  &quot;wwdd ', $ParamP aragraph/@ id, '&quot ;);')" />   965        <xsl: value-of s elect="con cat('WebWo rksDropDow n_ToggleDI V(WebWorks RootPath,  &quot;wwdd ', $ParamP aragraph/@ id, '&quot ;);')" />
964       </xsl: attribute>   966       </xsl: attribute>
965      </xsl:i f>   967      </xsl:i f>
966     968  
967      <!-- Us e numberin g? -->   969      <!-- Us e numberin g? -->
968      <!--                  -->   970      <!--                  -->
969      <xsl:ch oose>   971      <xsl:ch oose>
970       <!-- U se Number  -->   972       <!-- U se Number  -->
971       <!--              -->   973       <!--              -->
972       <xsl:w hen test=" $VarUseNum bering">   974       <xsl:w hen test=" $VarUseNum bering">
973        <xsl: choose>   975        <xsl: choose>
974         <xsl :when test ="(count($ ParamParag raph/wwdoc :Number[1] ) &gt; 0)  or (string -length($V arBulletCh aracter) & gt; 0) or   (string-l ength($Var BulletImag e) &gt; 0)  or (strin g-length($ VarBulletS eparator)  &gt; 0)">   976         <xsl :when test ="(count($ ParamParag raph/wwdoc :Number[1] ) &gt; 0)  or (string -length($V arBulletCh aracter) & gt; 0) or   (string-l ength($Var BulletImag e) &gt; 0)  or (strin g-length($ VarBulletS eparator)  &gt; 0)">
975          <xs l:choose>   977          <xs l:choose>
976           <x sl:when te st="$VarTe xtIndentLe ssThanZero ">   978           <x sl:when te st="$VarTe xtIndentLe ssThanZero ">
977     979  
978            < html:table  border="0 " cellspac ing="0" ce llpadding= "0" summar y="">   980            < html:table  border="0 " cellspac ing="0" ce llpadding= "0" summar y="">
979              <html:tr s tyle="vert ical-align : baseline ;">   981              <html:tr s tyle="vert ical-align : baseline ;">
980               <html:td>   982               <html:td>
981                <!-- Emi t number w ith inner  class and  specific n umber styl e attribut e -->   983                <!-- Emi t number w ith inner  class and  specific n umber styl e attribut e -->
982                <!--                                                                         -->   984                <!--                                                                         -->
983                <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}">   985                <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}">
984                 <xsl:at tribute na me="class" >   986                 <xsl:at tribute na me="class" >
985                  <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" />   987                  <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" />
986                  <xsl:t ext>_inner </xsl:text >   988                  <xsl:t ext>_inner </xsl:text >
987     989  
988                  <!-- A dditional  CSS classe s -->   990                  <!-- A dditional  CSS classe s -->
989                  <!--                           -->   991                  <!--                           -->
990                  <xsl:v ariable na me="VarAdd itionalCSS ClassesOpt ion" selec t="normali ze-space($ ParamOverr ideRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'addition al-css-cla sses']/@Va lue)" />   992                  <xsl:v ariable na me="VarAdd itionalCSS ClassesOpt ion" selec t="normali ze-space($ ParamOverr ideRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'addition al-css-cla sses']/@Va lue)" />
991                  <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) &gt; 0 ">   993                  <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) &gt; 0 ">
992                   <xsl: text> </xs l:text>   994                   <xsl: text> </xs l:text>
993                   <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / >   995                   <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / >
994                   <xsl: text> WebW orks_Parag raph_List_ Inner</xsl :text>   996                   <xsl: text> WebW orks_Parag raph_List_ Inner</xsl :text>
995                  </xsl: if>   997                  </xsl: if>
996                 </xsl:a ttribute>   998                 </xsl:a ttribute>
997     999  
998                 <xsl:va riable nam e="VarText IndentNumb erAsUnits"  select="w wunits:Num ericPrefix ($VarTextI ndent)" />   1000                 <xsl:va riable nam e="VarText IndentNumb erAsUnits"  select="w wunits:Num ericPrefix ($VarTextI ndent)" />
999                 <xsl:va riable nam e="VarText IndentUnit s" select= "wwunits:U nitsSuffix ($VarTextI ndent)" />   1001                 <xsl:va riable nam e="VarText IndentUnit s" select= "wwunits:U nitsSuffix ($VarTextI ndent)" />
1000     1002  
1001                 <xsl:at tribute na me="style" >   1003                 <xsl:at tribute na me="style" >
1002                  <xsl:v alue-of se lect="conc at('width:  ', 0 - $V arTextInde ntNumberAs Units, $Va rTextInden tUnits, ';  white-spa ce: nowrap ;')" />   1004                  <xsl:v alue-of se lect="conc at('width:  ', 0 - $V arTextInde ntNumberAs Units, $Va rTextInden tUnits, ';  white-spa ce: nowrap ;')" />
1003                  <xsl:c all-templa te name="C SS-InlineP ropertiesI nnerNumber ">   1005                  <xsl:c all-templa te name="C SS-InlineP ropertiesI nnerNumber ">
1004                   <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties"  />   1006                   <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties"  />
1005                  </xsl: call-templ ate>   1007                  </xsl: call-templ ate>
1006                 </xsl:a ttribute>   1008                 </xsl:a ttribute>
1007     1009  
1008                 <xsl:ca ll-templat e name="Nu mber">   1010                 <xsl:ca ll-templat e name="Nu mber">
1009                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />   1011                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />
1010                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >   1012                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >
1011                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >   1013                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >
1012                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >   1014                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >
1013                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" />   1015                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" />
1014                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" />   1016                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" />
1015                  <xsl:w ith-param  name="Para mIgnoreDoc umentNumbe r" select= "$VarIgnor eDocumentN umber" />   1017                  <xsl:w ith-param  name="Para mIgnoreDoc umentNumbe r" select= "$VarIgnor eDocumentN umber" />
1016                  <xsl:w ith-param  name="Para mCharacter " select=" $VarBullet Character"  />   1018                  <xsl:w ith-param  name="Para mCharacter " select=" $VarBullet Character"  />
1017                  <xsl:w ith-param  name="Para mImage" se lect="$Var BulletImag e" />   1019                  <xsl:w ith-param  name="Para mImage" se lect="$Var BulletImag e" />
1018                  <xsl:w ith-param  name="Para mSeparator " select=" $VarBullet Separator"  />   1020                  <xsl:w ith-param  name="Para mSeparator " select=" $VarBullet Separator"  />
1019                  <xsl:w ith-param  name="Para mStyle" se lect="$Var BulletStyl e" />   1021                  <xsl:w ith-param  name="Para mStyle" se lect="$Var BulletStyl e" />
1020                 </xsl:c all-templa te>   1022                 </xsl:c all-templa te>
1021                </xsl:el ement>   1023                </xsl:el ement>
1022               </html:td >   1024               </html:td >
1023     1025  
1024               <!-- Forc e second c ell to hon or first c ell width  -->   1026               <!-- Forc e second c ell to hon or first c ell width  -->
1025               <!--                                                  -->   1027               <!--                                                  -->
1026               <html:td  width="100 %">   1028               <html:td  width="100 %">
1027                <xsl:var iable name ="VarStyle AttributeI nnerConten t">   1029                <xsl:var iable name ="VarStyle AttributeI nnerConten t">
1028                 <xsl:ca ll-templat e name="CS S-InlinePr opertiesIn nerContent ">   1030                 <xsl:ca ll-templat e name="CS S-InlinePr opertiesIn nerContent ">
1029                  <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties"  />   1031                  <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties"  />
1030                 </xsl:c all-templa te>   1032                 </xsl:c all-templa te>
1031                </xsl:va riable>   1033                </xsl:va riable>
1032     1034  
1033                <!-- Emi t content  -->   1035                <!-- Emi t content  -->
1034                <!--                -->   1036                <!--                -->
1035                <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}">   1037                <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}">
1036                 <xsl:at tribute na me="class" >   1038                 <xsl:at tribute na me="class" >
1037                  <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" />   1039                  <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" />
1038                  <xsl:t ext>_inner </xsl:text >   1040                  <xsl:t ext>_inner </xsl:text >
1039     1041  
1040                  <!-- A dditional  CSS classe s -->   1042                  <!-- A dditional  CSS classe s -->
1041                  <!--                           -->   1043                  <!--                           -->
1042                  <xsl:v ariable na me="VarAdd itionalCSS ClassesOpt ion" selec t="normali ze-space($ ParamOverr ideRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'addition al-css-cla sses']/@Va lue)" />   1044                  <xsl:v ariable na me="VarAdd itionalCSS ClassesOpt ion" selec t="normali ze-space($ ParamOverr ideRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'addition al-css-cla sses']/@Va lue)" />
1043                  <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) &gt; 0 ">   1045                  <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) &gt; 0 ">
1044                   <xsl: text> </xs l:text>   1046                   <xsl: text> </xs l:text>
1045                   <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / >   1047                   <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / >
1046                   <xsl: text> WebW orks_Parag raph_List_ Inner</xsl :text>   1048                   <xsl: text> WebW orks_Parag raph_List_ Inner</xsl :text>
1047                  </xsl: if>   1049                  </xsl: if>
1048                 </xsl:a ttribute>   1050                 </xsl:a ttribute>
1049                 <xsl:if  test="str ing-length ($VarStyle AttributeI nnerConten t) &gt; 0" >   1051                 <xsl:if  test="str ing-length ($VarStyle AttributeI nnerConten t) &gt; 0" >
1050                  <xsl:a ttribute n ame="style ">   1052                  <xsl:a ttribute n ame="style ">
1051                   <xsl: value-of s elect="$Va rStyleAttr ibuteInner Content" / >   1053                   <xsl: value-of s elect="$Va rStyleAttr ibuteInner Content" / >
1052                  </xsl: attribute>   1054                  </xsl: attribute>
1053                 </xsl:i f>   1055                 </xsl:i f>
1054     1056  
1055                 <!-- Te xt Runs -- >   1057                 <!-- Te xt Runs -- >
1056                 <!--            -- >   1058                 <!--            -- >
1057                 <xsl:ca ll-templat e name="Pa ragraphTex tRuns">   1059                 <xsl:ca ll-templat e name="Pa ragraphTex tRuns">
1058                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />   1060                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />
1059                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >   1061                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >
1060                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >   1062                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >
1061                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >   1063                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >
1062                  <xsl:w ith-param  name="Para mPreserveE mpty" sele ct="$VarPr eserveEmpt y" />   1064                  <xsl:w ith-param  name="Para mPreserveE mpty" sele ct="$VarPr eserveEmpt y" />
1063                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" />   1065                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" />
1064                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" />   1066                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" />
1065                 </xsl:c all-templa te>   1067                 </xsl:c all-templa te>
1066     1068  
1067                 <!-- Dr opdown Arr ow -->   1069                 <!-- Dr opdown Arr ow -->
1068                 <!--                  -->   1070                 <!--                  -->
1069                 <xsl:if  test="($P aramParagr aphBehavio r/@dropdow n = 'start -open') or  ($ParamPa ragraphBeh avior/@dro pdown = 's tart-close d')">   1071                 <xsl:if  test="($P aramParagr aphBehavio r/@dropdow n = 'start -open') or  ($ParamPa ragraphBeh avior/@dro pdown = 's tart-close d')">
1070                  <html: script typ e="text/ja vascript"  language=" JavaScript 1.2">WebWo rksDropDow n.fWriteAr row(WebWor ksRootPath , &quot;<x sl:value-o f select=" concat('ww dd', $Para mParagraph /@id)" />& quot;, <xs l:value-of  select="$ ParamParag raphBehavi or/@dropdo wn = 'star t-open'" / >);</html: script>   1072                  <html: script typ e="text/ja vascript"  language=" JavaScript 1.2">WebWo rksDropDow n.fWriteAr row(WebWor ksRootPath , &quot;<x sl:value-o f select=" concat('ww dd', $Para mParagraph /@id)" />& quot;, <xs l:value-of  select="$ ParamParag raphBehavi or/@dropdo wn = 'star t-open'" / >);</html: script>
1071                 </xsl:i f>   1073                 </xsl:i f>
1072                </xsl:el ement>   1074                </xsl:el ement>
1073               </html:td >   1075               </html:td >
1074              </html:tr>   1076              </html:tr>
1075            < /html:tabl e>   1077            < /html:tabl e>
1076           </ xsl:when>   1078           </ xsl:when>
1077     1079  
1078           <x sl:otherwi se>   1080           <x sl:otherwi se>
1079            < xsl:call-t emplate na me="Number ">   1081            < xsl:call-t emplate na me="Number ">
1080              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />   1082              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />
1081              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" />   1083              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" />
1082              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />   1084              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />
1083              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />   1085              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />
1084              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" />   1086              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" />
1085              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / >   1087              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / >
1086              <xsl:with- param name ="ParamIgn oreDocumen tNumber" s elect="$Va rIgnoreDoc umentNumbe r" />   1088              <xsl:with- param name ="ParamIgn oreDocumen tNumber" s elect="$Va rIgnoreDoc umentNumbe r" />
1087              <xsl:with- param name ="ParamCha racter" se lect="$Var BulletChar acter" />   1089              <xsl:with- param name ="ParamCha racter" se lect="$Var BulletChar acter" />
1088              <xsl:with- param name ="ParamIma ge" select ="$VarBull etImage" / >   1090              <xsl:with- param name ="ParamIma ge" select ="$VarBull etImage" / >
1089              <xsl:with- param name ="ParamSep arator" se lect="$Var BulletSepa rator" />   1091              <xsl:with- param name ="ParamSep arator" se lect="$Var BulletSepa rator" />
1090              <xsl:with- param name ="ParamSty le" select ="$VarBull etStyle" / >   1092              <xsl:with- param name ="ParamSty le" select ="$VarBull etStyle" / >
1091            < /xsl:call- template>   1093            < /xsl:call- template>
1092     1094  
1093            < !-- Text R uns -->   1095            < !-- Text R uns -->
1094            < !--            -->   1096            < !--            -->
1095            < xsl:call-t emplate na me="Paragr aphTextRun s">   1097            < xsl:call-t emplate na me="Paragr aphTextRun s">
1096              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />   1098              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />
1097              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" />   1099              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" />
1098              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />   1100              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />
1099              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />   1101              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />
1100              <xsl:with- param name ="ParamPre serveEmpty " select=" $VarPreser veEmpty" / >   1102              <xsl:with- param name ="ParamPre serveEmpty " select=" $VarPreser veEmpty" / >
1101              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / >   1103              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / >
1102              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" />   1104              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" />
1103            < /xsl:call- template>   1105            < /xsl:call- template>
1104     1106  
1105            < !-- Dropdo wn Arrow - ->   1107            < !-- Dropdo wn Arrow - ->
1106            < !--                 - ->   1108            < !--                 - ->
1107            < xsl:if tes t="($Param ParagraphB ehavior/@d ropdown =  'start-ope n') or ($P aramParagr aphBehavio r/@dropdow n = 'start -closed')" >   1109            < xsl:if tes t="($Param ParagraphB ehavior/@d ropdown =  'start-ope n') or ($P aramParagr aphBehavio r/@dropdow n = 'start -closed')" >
1108              <html:scri pt type="t ext/javasc ript" lang uage="Java Script1.2" >WebWorksD ropDown.fW riteArrow( WebWorksRo otPath, &q uot;<xsl:v alue-of se lect="conc at('wwdd',  $ParamPar agraph/@id )" />&quot ;, <xsl:va lue-of sel ect="$Para mParagraph Behavior/@ dropdown =  'start-op en'" />);< /html:scri pt>   1110              <html:scri pt type="t ext/javasc ript" lang uage="Java Script1.2" >WebWorksD ropDown.fW riteArrow( WebWorksRo otPath, &q uot;<xsl:v alue-of se lect="conc at('wwdd',  $ParamPar agraph/@id )" />&quot ;, <xsl:va lue-of sel ect="$Para mParagraph Behavior/@ dropdown =  'start-op en'" />);< /html:scri pt>
1109            < /xsl:if>   1111            < /xsl:if>
1110           </ xsl:otherw ise>   1112           </ xsl:otherw ise>
1111          </x sl:choose>   1113          </x sl:choose>
1112         </xs l:when>   1114         </xs l:when>
1113     1115  
1114         <xsl :otherwise >   1116         <xsl :otherwise >
1115          <!- - Text Run s -->   1117          <!- - Text Run s -->
1116          <!- -            -->   1118          <!- -            -->
1117          <xs l:call-tem plate name ="Paragrap hTextRuns" >   1119          <xs l:call-tem plate name ="Paragrap hTextRuns" >
1118           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />   1120           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
1119           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" />   1121           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" />
1120           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />   1122           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
1121           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />   1123           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
1122           <x sl:with-pa ram name=" ParamPrese rveEmpty"  select="$V arPreserve Empty" />   1124           <x sl:with-pa ram name=" ParamPrese rveEmpty"  select="$V arPreserve Empty" />
1123           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$VarUse CharacterS tyles" />   1125           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$VarUse CharacterS tyles" />
1124           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param Paragraph"  />   1126           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param Paragraph"  />
1125          </x sl:call-te mplate>   1127          </x sl:call-te mplate>
1126     1128  
1127          <!- - Dropdown  Arrow -->   1129          <!- - Dropdown  Arrow -->
1128          <!- -                 -->   1130          <!- -                 -->
1129          <xs l:if test= "($ParamPa ragraphBeh avior/@dro pdown = 's tart-open' ) or ($Par amParagrap hBehavior/ @dropdown  = 'start-c losed')">   1131          <xs l:if test= "($ParamPa ragraphBeh avior/@dro pdown = 's tart-open' ) or ($Par amParagrap hBehavior/ @dropdown  = 'start-c losed')">
1130           <h tml:script  type="tex t/javascri pt" langua ge="JavaSc ript1.2">W ebWorksDro pDown.fWri teArrow(We bWorksRoot Path, &quo t;<xsl:val ue-of sele ct="concat ('wwdd', $ ParamParag raph/@id)"  />&quot;,  <xsl:valu e-of selec t="$ParamP aragraphBe havior/@dr opdown = ' start-open '" />);</h tml:script >   1132           <h tml:script  type="tex t/javascri pt" langua ge="JavaSc ript1.2">W ebWorksDro pDown.fWri teArrow(We bWorksRoot Path, &quo t;<xsl:val ue-of sele ct="concat ('wwdd', $ ParamParag raph/@id)"  />&quot;,  <xsl:valu e-of selec t="$ParamP aragraphBe havior/@dr opdown = ' start-open '" />);</h tml:script >
1131          </x sl:if>   1133          </x sl:if>
1132         </xs l:otherwis e>   1134         </xs l:otherwis e>
1133        </xsl :choose>   1135        </xsl :choose>
1134       </xsl: when>   1136       </xsl: when>
1135     1137  
1136       <!-- S kip Number  -->   1138       <!-- S kip Number  -->
1137       <!--               -->   1139       <!--               -->
1138       <xsl:o therwise>   1140       <xsl:o therwise>
1139        <!--  Text Runs  -->   1141        <!--  Text Runs  -->
1140        <!--             -->   1142        <!--             -->
1141        <xsl: call-templ ate name=" ParagraphT extRuns">   1143        <xsl: call-templ ate name=" ParagraphT extRuns">
1142         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   1144         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
1143         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   1145         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
1144         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   1146         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
1145         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   1147         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
1146         <xsl :with-para m name="Pa ramPreserv eEmpty" se lect="$Var PreserveEm pty" />   1148         <xsl :with-para m name="Pa ramPreserv eEmpty" se lect="$Var PreserveEm pty" />
1147         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$VarUseCh aracterSty les" />   1149         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$VarUseCh aracterSty les" />
1148         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / >   1150         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / >
1149        </xsl :call-temp late>   1151        </xsl :call-temp late>
1150     1152  
1151        <!--  Dropdown A rrow -->   1153        <!--  Dropdown A rrow -->
1152        <!--                  -->   1154        <!--                  -->
1153        <xsl: if test="( $ParamPara graphBehav ior/@dropd own = 'sta rt-open')  or ($Param ParagraphB ehavior/@d ropdown =  'start-clo sed')">   1155        <xsl: if test="( $ParamPara graphBehav ior/@dropd own = 'sta rt-open')  or ($Param ParagraphB ehavior/@d ropdown =  'start-clo sed')">
1154         <htm l:script t ype="text/ javascript " language ="JavaScri pt1.2">Web WorksDropD own.fWrite Arrow(WebW orksRootPa th, &quot; <xsl:value -of select ="concat(' wwdd', $Pa ramParagra ph/@id)" / >&quot;, < xsl:value- of select= "$ParamPar agraphBeha vior/@drop down = 'st art-open'"  />);</htm l:script>   1156         <htm l:script t ype="text/ javascript " language ="JavaScri pt1.2">Web WorksDropD own.fWrite Arrow(WebW orksRootPa th, &quot; <xsl:value -of select ="concat(' wwdd', $Pa ramParagra ph/@id)" / >&quot;, < xsl:value- of select= "$ParamPar agraphBeha vior/@drop down = 'st art-open'"  />);</htm l:script>
1155        </xsl :if>   1157        </xsl :if>
1156       </xsl: otherwise>   1158       </xsl: otherwise>
1157      </xsl:c hoose>   1159      </xsl:c hoose>
1158     1160  
1159     <!-- End  paragraph  emit -->   1161     <!-- End  paragraph  emit -->
1160     <!--                      -->   1162     <!--                      -->
1161     </xsl:el ement>   1163     </xsl:el ement>
1162     1164  
1163     <!-- Dro pdown Star t -->   1165     <!-- Dro pdown Star t -->
1164     <!--                  -->   1166     <!--                  -->
1165     <xsl:if  test="($Pa ramParagra phBehavior /@dropdown  = 'start- open') or  ($ParamPar agraphBeha vior/@drop down = 'st art-closed ')">   1167     <xsl:if  test="($Pa ramParagra phBehavior /@dropdown  = 'start- open') or  ($ParamPar agraphBeha vior/@drop down = 'st art-closed ')">
1166      <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ksDropDown .fWriteDIV Open(&quot ;<xsl:valu e-of selec t="concat( 'wwdd', $P aramParagr aph/@id)"  />&quot;,  <xsl:value -of select ="$ParamPa ragraphBeh avior/@dro pdown = 's tart-open' " />);</ht ml:script>   1168      <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ksDropDown .fWriteDIV Open(&quot ;<xsl:valu e-of selec t="concat( 'wwdd', $P aramParagr aph/@id)"  />&quot;,  <xsl:value -of select ="$ParamPa ragraphBeh avior/@dro pdown = 's tart-open' " />);</ht ml:script>
1167     </xsl:if >   1169     </xsl:if >
1168     1170  
1169     <!-- Dro pdown End  -->   1171     <!-- Dro pdown End  -->
1170     <!--                -->   1172     <!--                -->
1171     <xsl:if  test="$Par amParagrap hBehavior/ @dropdown  = 'end'">   1173     <xsl:if  test="$Par amParagrap hBehavior/ @dropdown  = 'end'">
1172      <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ksDropDown .fWriteDIV Close();</ html:scrip t>   1174      <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ksDropDown .fWriteDIV Close();</ html:scrip t>
1173     </xsl:if >   1175     </xsl:if >
1174    </xsl:tem plate>   1176    </xsl:tem plate>
1175     1177  
1176     1178  
1177    <xsl:temp late name= "Number">   1179    <xsl:temp late name= "Number">
1178     <xsl:par am name="P aramSplits " />   1180     <xsl:par am name="P aramSplits " />
1179     <xsl:par am name="P aramCargo"  />   1181     <xsl:par am name="P aramCargo"  />
1180     <xsl:par am name="P aramLinks"  />   1182     <xsl:par am name="P aramLinks"  />
1181     <xsl:par am name="P aramSplit"  />   1183     <xsl:par am name="P aramSplit"  />
1182     <xsl:par am name="P aramParagr aph" />   1184     <xsl:par am name="P aramParagr aph" />
1183     <xsl:par am name="P aramUseCha racterStyl es" />   1185     <xsl:par am name="P aramUseCha racterStyl es" />
1184     <xsl:par am name="P aramIgnore DocumentNu mber" />   1186     <xsl:par am name="P aramIgnore DocumentNu mber" />
1185     <xsl:par am name="P aramCharac ter" />   1187     <xsl:par am name="P aramCharac ter" />
1186     <xsl:par am name="P aramImage"  />   1188     <xsl:par am name="P aramImage"  />
1187     <xsl:par am name="P aramSepara tor" />   1189     <xsl:par am name="P aramSepara tor" />
1188     <xsl:par am name="P aramStyle"  />   1190     <xsl:par am name="P aramStyle"  />
1189     1191  
1190     <xsl:cho ose>   1192     <xsl:cho ose>
1191      <xsl:wh en test="$ ParamIgnor eDocumentN umber">   1193      <xsl:wh en test="$ ParamIgnor eDocumentN umber">
1192       <xsl:c all-templa te name="C ontent-Bul let">   1194       <xsl:c all-templa te name="C ontent-Bul let">
1193        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />   1195        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />
1194        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  />   1196        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  />
1195        <xsl: with-param  name="Par amParagrap h" select= "$ParamPar agraph" />   1197        <xsl: with-param  name="Par amParagrap h" select= "$ParamPar agraph" />
1196        <xsl: with-param  name="Par amCharacte r" select= "$ParamCha racter" />   1198        <xsl: with-param  name="Par amCharacte r" select= "$ParamCha racter" />
1197        <xsl: with-param  name="Par amImage" s elect="$Pa ramImage"  />   1199        <xsl: with-param  name="Par amImage" s elect="$Pa ramImage"  />
1198        <xsl: with-param  name="Par amSeparato r" select= "$ParamSep arator" />   1200        <xsl: with-param  name="Par amSeparato r" select= "$ParamSep arator" />
1199        <xsl: with-param  name="Par amStyle" s elect="$Pa ramStyle"  />   1201        <xsl: with-param  name="Par amStyle" s elect="$Pa ramStyle"  />
1200       </xsl: call-templ ate>   1202       </xsl: call-templ ate>
1201      </xsl:w hen>   1203      </xsl:w hen>
1202     1204  
1203      <xsl:ot herwise>   1205      <xsl:ot herwise>
1204       <xsl:v ariable na me="VarBul letPropert iesAsXML">   1206       <xsl:v ariable na me="VarBul letPropert iesAsXML">
1205        <wwpr oject:Bull etProperti es>   1207        <wwpr oject:Bull etProperti es>
1206         <wwp roject:Pro perty Name ="bullet-s tyle" Valu e="{$Param Style}" />   1208         <wwp roject:Pro perty Name ="bullet-s tyle" Valu e="{$Param Style}" />
1207        </wwp roject:Bul letPropert ies>   1209        </wwp roject:Bul letPropert ies>
1208       </xsl: variable>   1210       </xsl: variable>
1209       <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)" />   1211       <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)" />
1210     1212  
1211       <xsl:v ariable na me="VarCar go" select ="$ParamCa rgo/*[loca l-name() ! = 'BulletP roperties' ]/.. | $Va rBulletPro perties" / >   1213       <xsl:v ariable na me="VarCar go" select ="$ParamCa rgo/*[loca l-name() ! = 'BulletP roperties' ]/.. | $Va rBulletPro perties" / >
1212     1214  
1213       <xsl:c all-templa te name="T extRun">   1215       <xsl:c all-templa te name="T extRun">
1214        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />   1216        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />
1215        <xsl: with-param  name="Par amCargo" s elect="$Va rCargo" />   1217        <xsl: with-param  name="Par amCargo" s elect="$Va rCargo" />
1216        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  />   1218        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  />
1217        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  />   1219        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  />
1218        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraph/@ id" />   1220        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraph/@ id" />
1219        <xsl: with-param  name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" />   1221        <xsl: with-param  name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" />
1220        <xsl: with-param  name="Par amTextRun"  select="$ ParamParag raph/wwdoc :Number[1] " />   1222        <xsl: with-param  name="Par amTextRun"  select="$ ParamParag raph/wwdoc :Number[1] " />
1221        <xsl: with-param  name="Par amPosition " select=" 0" />   1223        <xsl: with-param  name="Par amPosition " select=" 0" />
1222       </xsl: call-templ ate>   1224       </xsl: call-templ ate>
1223      </xsl:o therwise>   1225      </xsl:o therwise>
1224     </xsl:ch oose>   1226     </xsl:ch oose>
1225    </xsl:tem plate>   1227    </xsl:tem plate>
1226     1228  
1227     1229  
1228    <xsl:temp late name= "Paragraph TextRuns">   1230    <xsl:temp late name= "Paragraph TextRuns">
1229     <xsl:par am name="P aramSplits " />   1231     <xsl:par am name="P aramSplits " />
1230     <xsl:par am name="P aramCargo"  />   1232     <xsl:par am name="P aramCargo"  />
1231     <xsl:par am name="P aramLinks"  />   1233     <xsl:par am name="P aramLinks"  />
1232     <xsl:par am name="P aramSplit"  />   1234     <xsl:par am name="P aramSplit"  />
1233     <xsl:par am name="P aramPreser veEmpty" / >   1235     <xsl:par am name="P aramPreser veEmpty" / >
1234     <xsl:par am name="P aramUseCha racterStyl es" />   1236     <xsl:par am name="P aramUseCha racterStyl es" />
1235     <xsl:par am name="P aramParagr aph" />   1237     <xsl:par am name="P aramParagr aph" />
1236     1238  
1237     <!-- Pre vent white space issu es with pr eformatted  text bloc ks -->   1239     <!-- Pre vent white space issu es with pr eformatted  text bloc ks -->
1238     <!--                                                               -->   1240     <!--                                                               -->
1239     <wwexsld oc:NoBreak  />   1241     <wwexsld oc:NoBreak  />
1240     1242  
1241     <!-- Non -empty tex t runs -->   1243     <!-- Non -empty tex t runs -->
1242     <!--                       -->   1244     <!--                       -->
1243     <xsl:var iable name ="VarTextR uns" selec t="$ParamP aragraph/w wdoc:TextR un[count(c hild::wwdo c:Text[1]  | child::w wdoc:Frame [1] | chil d::wwdoc:N ote[1] | c hild::wwdo c:LineBrea k[1]) &gt;  0]" />   1245     <xsl:var iable name ="VarTextR uns" selec t="$ParamP aragraph/w wdoc:TextR un[count(c hild::wwdo c:Text[1]  | child::w wdoc:Frame [1] | chil d::wwdoc:N ote[1] | c hild::wwdo c:LineBrea k[1]) &gt;  0]" />
1244     1246  
1245     <!-- Che ck for emp ty paragra phs -->   1247     <!-- Che ck for emp ty paragra phs -->
1246     <!--                               -->   1248     <!--                               -->
1247     <xsl:cho ose>   1249     <xsl:cho ose>
1248      <xsl:wh en test="c ount($VarT extRuns[1] ) = 1">   1250      <xsl:wh en test="c ount($VarT extRuns[1] ) = 1">
1249       <!-- P aragraph h as content  -->   1251       <!-- P aragraph h as content  -->
1250       <!--                          -->   1252       <!--                          -->
1251       <xsl:f or-each se lect="$Var TextRuns">   1253       <xsl:f or-each se lect="$Var TextRuns">
1252        <xsl: variable n ame="VarTe xtRun" sel ect="." />   1254        <xsl: variable n ame="VarTe xtRun" sel ect="." />
1253     1255  
1254        <xsl: call-templ ate name=" TextRun">   1256        <xsl: call-templ ate name=" TextRun">
1255         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   1257         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
1256         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   1258         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
1257         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   1259         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
1258         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   1260         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
1259         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param Paragraph/ @id" />   1261         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param Paragraph/ @id" />
1260         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" />   1262         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" />
1261         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" />   1263         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" />
1262         <xsl :with-para m name="Pa ramPositio n" select= "position( )" />   1264         <xsl :with-para m name="Pa ramPositio n" select= "position( )" />
1263        </xsl :call-temp late>   1265        </xsl :call-temp late>
1264       </xsl: for-each>   1266       </xsl: for-each>
1265      </xsl:w hen>   1267      </xsl:w hen>
1266     1268  
1267      <xsl:ot herwise>   1269      <xsl:ot herwise>
1268       <!-- E mpty parag raph! -->   1270       <!-- E mpty parag raph! -->
1269       <!--                    -->   1271       <!--                    -->
1270       <xsl:i f test="$P aramPreser veEmpty">   1272       <xsl:i f test="$P aramPreser veEmpty">
1271        <html :a name="{ $ParamPara graph/@id} ">&#160;</ html:a>   1273        <html :a name="{ $ParamPara graph/@id} ">&#160;</ html:a>
1272       </xsl: if>   1274       </xsl: if>
1273      </xsl:o therwise>   1275      </xsl:o therwise>
1274     </xsl:ch oose>   1276     </xsl:ch oose>
1275    </xsl:tem plate>   1277    </xsl:tem plate>
1276     1278  
1277     1279  
1278    <xsl:temp late name= "LinkInfo" >   1280    <xsl:temp late name= "LinkInfo" >
1279     <xsl:par am name="P aramSplits " />   1281     <xsl:par am name="P aramSplits " />
1280     <xsl:par am name="P aramLinks"  />   1282     <xsl:par am name="P aramLinks"  />
1281     <xsl:par am name="P aramSplit"  />   1283     <xsl:par am name="P aramSplit"  />
1282     <xsl:par am name="P aramDocume ntLink" />   1284     <xsl:par am name="P aramDocume ntLink" />
1283     1285  
1284     <xsl:ele ment name= "LinkInfo"  namespace ="urn:WebW orks-Engin e-Links-Sc hema">   1286     <xsl:ele ment name= "LinkInfo"  namespace ="urn:WebW orks-Engin e-Links-Sc hema">
1285      <xsl:if  test="cou nt($ParamD ocumentLin k) &gt; 0" >   1287      <xsl:if  test="cou nt($ParamD ocumentLin k) &gt; 0" >
1286       <!-- R esolve lin k -->   1288       <!-- R esolve lin k -->
1287       <!--                -->   1289       <!--                -->
1288       <xsl:v ariable na me="VarRes olvedLinkI nfoAsXML">   1290       <xsl:v ariable na me="VarRes olvedLinkI nfoAsXML">
1289        <xsl: call-templ ate name=" Links-Reso lve">   1291        <xsl: call-templ ate name=" Links-Reso lve">
1290         <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para meterAllow Baggage" / >   1292         <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para meterAllow Baggage" / >
1291         <xsl :with-para m name="Pa ramAllowGr oupToGroup " select=" $Parameter AllowGroup ToGroup" / >   1293         <xsl :with-para m name="Pa ramAllowGr oupToGroup " select=" $Parameter AllowGroup ToGroup" / >
1292         <xsl :with-para m name="Pa ramAllowUR L" select= "$Paramete rAllowURL"  />   1294         <xsl :with-para m name="Pa ramAllowUR L" select= "$Paramete rAllowURL"  />
1293         <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$Parame terBaggage SplitFileT ype" />   1295         <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$Parame terBaggage SplitFileT ype" />
1294         <xsl :with-para m name="Pa ramProject " select=" $GlobalPro ject" />   1296         <xsl :with-para m name="Pa ramProject " select=" $GlobalPro ject" />
1295         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   1297         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
1296         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   1298         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
1297         <xsl :with-para m name="Pa ramSplitGr oupID" sel ect="$Para mSplit/@gr oupID" />   1299         <xsl :with-para m name="Pa ramSplitGr oupID" sel ect="$Para mSplit/@gr oupID" />
1298         <xsl :with-para m name="Pa ramSplitDo cumentID"  select="$P aramSplit/ @documentI D" />   1300         <xsl :with-para m name="Pa ramSplitDo cumentID"  select="$P aramSplit/ @documentI D" />
1299         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" />   1301         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" />
1300        </xsl :call-temp late>   1302        </xsl :call-temp late>
1301       </xsl: variable>   1303       </xsl: variable>
1302       <xsl:v ariable na me="VarRes olvedLinkI nfo" selec t="msxsl:n ode-set($V arResolved LinkInfoAs XML)/wwlin ks:Resolve dLink" />   1304       <xsl:v ariable na me="VarRes olvedLinkI nfo" selec t="msxsl:n ode-set($V arResolved LinkInfoAs XML)/wwlin ks:Resolve dLink" />
1303     1305  
        1306       <!-- @ title -->
        1307       <!--         -->
        1308       <xsl:i f test="st ring-lengt h($VarReso lvedLinkIn fo/@title)  &gt; 0">
        1309        <xsl: attribute  name="titl e">
        1310         <xsl :value-of  select="$V arResolved LinkInfo/@ title" />
        1311        </xsl :attribute >
        1312       </xsl: if>
        1313  
1304       <xsl:c hoose>   1314       <xsl:c hoose>
1305        <!--  Baggage -- >   1315        <!--  Baggage -- >
1306        <!--          -- >   1316        <!--          -- >
1307        <xsl: when test= "$VarResol vedLinkInf o/@type =  'baggage'" >   1317        <xsl: when test= "$VarResol vedLinkInf o/@type =  'baggage'" >
1308         <xsl :variable  name="VarR elativePat h" select= "wwuri:Get RelativeTo ($VarResol vedLinkInf o/@path, $ ParamSplit /@path)" / >   1318         <xsl :variable  name="VarR elativePat h" select= "wwuri:Get RelativeTo ($VarResol vedLinkInf o/@path, $ ParamSplit /@path)" / >
1309     1319  
1310         <xsl :attribute  name="hre f">   1320         <xsl :attribute  name="hre f">
1311          <xs l:value-of  select="$ VarRelativ ePath" />   1321          <xs l:value-of  select="$ VarRelativ ePath" />
1312         </xs l:attribut e>   1322         </xs l:attribut e>
1313     1323  
1314         <xsl :variable  name="VarT arget" sel ect="wwpro jext:GetFo rmatSettin g('baggage -file-targ et', 'exte rnal_windo w')" />   1324         <xsl :variable  name="VarT arget" sel ect="wwpro jext:GetFo rmatSettin g('baggage -file-targ et', 'exte rnal_windo w')" />
1315     1325  
1316         <xsl :if test=" (string-le ngth($VarT arget) &gt ; 0) and ( $VarTarget  != 'none' )">   1326         <xsl :if test=" (string-le ngth($VarT arget) &gt ; 0) and ( $VarTarget  != 'none' )">
1317          <xs l:attribut e name="ta rget">   1327          <xs l:attribut e name="ta rget">
1318           <x sl:value-o f select=" $VarTarget " />   1328           <x sl:value-o f select=" $VarTarget " />
1319          </x sl:attribu te>   1329          </x sl:attribu te>
1320         </xs l:if>   1330         </xs l:if>
1321        </xsl :when>   1331        </xsl :when>
1322     1332  
1323        <!--  Document - ->   1333        <!--  Document - ->
1324        <!--           - ->   1334        <!--           - ->
1325        <xsl: when test= "($VarReso lvedLinkIn fo/@type =  'document ') or ($Va rResolvedL inkInfo/@t ype = 'gro up') or ($ VarResolve dLinkInfo/ @type = 'p roject')">   1335        <xsl: when test= "($VarReso lvedLinkIn fo/@type =  'document ') or ($Va rResolvedL inkInfo/@t ype = 'gro up') or ($ VarResolve dLinkInfo/ @type = 'p roject')">
1326         <xsl :choose>   1336         <xsl :choose>
1327          <!- - Popup -- >   1337          <!- - Popup -- >
1328          <!- -       -- >   1338          <!- -       -- >
1329          <xs l:when tes t="$VarRes olvedLinkI nfo/@popup  = 'true'" >   1339          <xs l:when tes t="$VarRes olvedLinkI nfo/@popup  = 'true'" >
1330           <x sl:variabl e name="Va rPopupPath ">   1340           <x sl:variabl e name="Va rPopupPath ">
1331            < xsl:for-ea ch select= "$GlobalPr ojectSplit s[1]">   1341            < xsl:for-ea ch select= "$GlobalPr ojectSplit s[1]">
1332              <xsl:varia ble name=" VarSplitsP opups" sel ect="key(' wwsplits-p opups-by-i d', $VarRe solvedLink Info/@link id)[@docum entID = $V arResolved LinkInfo/@ documentID ]" />   1342              <xsl:varia ble name=" VarSplitsP opups" sel ect="key(' wwsplits-p opups-by-i d', $VarRe solvedLink Info/@link id)[@docum entID = $V arResolved LinkInfo/@ documentID ]" />
1333              <xsl:for-e ach select ="$VarSpli tsPopups[1 ]">   1343              <xsl:for-e ach select ="$VarSpli tsPopups[1 ]">
1334               <xsl:vari able name= "VarSplits Popup" sel ect="." />   1344               <xsl:vari able name= "VarSplits Popup" sel ect="." />
1335     1345  
1336               <xsl:call -template  name="Reso lveLinkPat h">   1346               <xsl:call -template  name="Reso lveLinkPat h">
1337                <xsl:wit h-param na me="ParamS plit" sele ct="$Param Split" />   1347                <xsl:wit h-param na me="ParamS plit" sele ct="$Param Split" />
1338                <xsl:wit h-param na me="ParamL inkGroupID " select=" $VarSplits Popup/@gro upID" />   1348                <xsl:wit h-param na me="ParamL inkGroupID " select=" $VarSplits Popup/@gro upID" />
1339                <xsl:wit h-param na me="ParamL inkPath" s elect="$Va rSplitsPop up/@path"  />   1349                <xsl:wit h-param na me="ParamL inkPath" s elect="$Va rSplitsPop up/@path"  />
1340               </xsl:cal l-template >   1350               </xsl:cal l-template >
1341              </xsl:for- each>   1351              </xsl:for- each>
1342            < /xsl:for-e ach>   1352            < /xsl:for-e ach>
1343           </ xsl:variab le>   1353           </ xsl:variab le>
1344     1354  
1345           <! -- href -- >   1355           <! -- href -- >
1346           <! --      -- >   1356           <! --      -- >
1347           <x sl:attribu te name="h ref">   1357           <x sl:attribu te name="h ref">
1348            < xsl:text>j avascript: WebWorksHT MLHelp.fSh owPopup('< /xsl:text>   1358            < xsl:text>j avascript: WebWorksHT MLHelp.fSh owPopup('< /xsl:text>
1349            < xsl:value- of select= "wwstring: JavaScript Encoding($ VarPopupPa th)" />   1359            < xsl:value- of select= "wwstring: JavaScript Encoding($ VarPopupPa th)" />
1350            < xsl:text>' );</xsl:te xt>   1360            < xsl:text>' );</xsl:te xt>
1351           </ xsl:attrib ute>   1361           </ xsl:attrib ute>
1352     1362  
1353           <! -- onMouse Over -->   1363           <! -- onMouse Over -->
1354           <! --              -->   1364           <! --              -->
1355           <x sl:attribu te name="o nMouseOver ">   1365           <x sl:attribu te name="o nMouseOver ">
1356            < xsl:text>W ebWorksHTM LHelp.fMou seOverPopu p(event);< /xsl:text>   1366            < xsl:text>W ebWorksHTM LHelp.fMou seOverPopu p(event);< /xsl:text>
1357           </ xsl:attrib ute>   1367           </ xsl:attrib ute>
1358     1368  
1359           <! -- onMouse Out -->   1369           <! -- onMouse Out -->
1360           <! --             -->   1370           <! --             -->
1361           <x sl:attribu te name="o nMouseOut" >   1371           <x sl:attribu te name="o nMouseOut" >
1362            < xsl:text>W ebWorksHTM LHelp.fMou seOutPopup ();</xsl:t ext>   1372            < xsl:text>W ebWorksHTM LHelp.fMou seOutPopup ();</xsl:t ext>
1363           </ xsl:attrib ute>   1373           </ xsl:attrib ute>
1364          </x sl:when>   1374          </x sl:when>
1365     1375  
1366          <!- - Link -->   1376          <!- - Link -->
1367          <!- -      -->   1377          <!- -      -->
1368          <xs l:otherwis e>   1378          <xs l:otherwis e>
1369           <x sl:variabl e name="Va rLinkPath" >   1379           <x sl:variabl e name="Va rLinkPath" >
1370            < xsl:call-t emplate na me="Resolv eLinkPath" >   1380            < xsl:call-t emplate na me="Resolv eLinkPath" >
1371              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />   1381              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />
1372              <xsl:with- param name ="ParamLin kGroupID"  select="$V arResolved LinkInfo/@ groupID" / >   1382              <xsl:with- param name ="ParamLin kGroupID"  select="$V arResolved LinkInfo/@ groupID" / >
1373              <xsl:with- param name ="ParamLin kPath" sel ect="$VarR esolvedLin kInfo/@pat h" />   1383              <xsl:with- param name ="ParamLin kPath" sel ect="$VarR esolvedLin kInfo/@pat h" />
1374            < /xsl:call- template>   1384            < /xsl:call- template>
1375           </ xsl:variab le>   1385           </ xsl:variab le>
1376     1386  
1377           <! -- href -- >   1387           <! -- href -- >
1378           <! --      -- >   1388           <! --      -- >
1379           <x sl:attribu te name="h ref">   1389           <x sl:attribu te name="h ref">
1380            < xsl:value- of select= "$VarLinkP ath" />   1390            < xsl:value- of select= "$VarLinkP ath" />
1381            < xsl:if tes t="string- length($Pa ramDocumen tLink/@anc hor) &gt;  0">   1391            < xsl:if tes t="string- length($Pa ramDocumen tLink/@anc hor) &gt;  0">
1382              <xsl:text> #</xsl:tex t>   1392              <xsl:text> #</xsl:tex t>
1383              <xsl:value -of select ="$VarReso lvedLinkIn fo/@linkid " />   1393              <xsl:value -of select ="$VarReso lvedLinkIn fo/@linkid " />
1384            < /xsl:if>   1394            < /xsl:if>
1385           </ xsl:attrib ute>   1395           </ xsl:attrib ute>
1386          </x sl:otherwi se>   1396          </x sl:otherwi se>
1387         </xs l:choose>   1397         </xs l:choose>
1388        </xsl :when>   1398        </xsl :when>
1389     1399  
1390        <!--  URL -->   1400        <!--  URL -->
1391        <!--      -->   1401        <!--      -->
1392        <xsl: when test= "$VarResol vedLinkInf o/@type =  'url'">   1402        <xsl: when test= "$VarResol vedLinkInf o/@type =  'url'">
1393         <xsl :attribute  name="hre f">   1403         <xsl :attribute  name="hre f">
1394          <xs l:value-of  select="$ VarResolve dLinkInfo/ @url" />   1404          <xs l:value-of  select="$ VarResolve dLinkInfo/ @url" />
1395         </xs l:attribut e>   1405         </xs l:attribut e>
1396     1406  
1397         <!--  External  URL Target  -->   1407         <!--  External  URL Target  -->
1398         <!--                        -->   1408         <!--                        -->
1399         <xsl :if test=" not(wwuri: IsFile($Va rResolvedL inkInfo/@u rl))">   1409         <xsl :if test=" not(wwuri: IsFile($Va rResolvedL inkInfo/@u rl))">
1400          <xs l:variable  name="Var Target" se lect="wwpr ojext:GetF ormatSetti ng('extern al-url-tar get', 'ext ernal_wind ow')" />   1410          <xs l:variable  name="Var Target" se lect="wwpr ojext:GetF ormatSetti ng('extern al-url-tar get', 'ext ernal_wind ow')" />
1401     1411  
1402          <xs l:if test= "(string-l ength($Var Target) &g t; 0) and  ($VarTarge t != 'none ')">   1412          <xs l:if test= "(string-l ength($Var Target) &g t; 0) and  ($VarTarge t != 'none ')">
1403           <x sl:attribu te name="t arget">   1413           <x sl:attribu te name="t arget">
1404            < xsl:value- of select= "$VarTarge t" />   1414            < xsl:value- of select= "$VarTarge t" />
1405           </ xsl:attrib ute>   1415           </ xsl:attrib ute>
1406          </x sl:if>   1416          </x sl:if>
1407         </xs l:if>   1417         </xs l:if>
1408        </xsl :when>   1418        </xsl :when>
1409       </xsl: choose>   1419       </xsl: choose>
1410      </xsl:i f>   1420      </xsl:i f>
1411     </xsl:el ement>   1421     </xsl:el ement>
1412    </xsl:tem plate>   1422    </xsl:tem plate>
1413     1423  
1414     1424  
1415    <xsl:temp late name= "ResolveLi nkPath">   1425    <xsl:temp late name= "ResolveLi nkPath">
1416     <xsl:par am name="P aramSplit"  />   1426     <xsl:par am name="P aramSplit"  />
1417     <xsl:par am name="P aramLinkGr oupID" />   1427     <xsl:par am name="P aramLinkGr oupID" />
1418     <xsl:par am name="P aramLinkPa th" />   1428     <xsl:par am name="P aramLinkPa th" />
1419     1429  
1420     <xsl:cho ose>   1430     <xsl:cho ose>
1421      <!-- Sa me group - ->   1431      <!-- Sa me group - ->
1422      <!--             - ->   1432      <!--             - ->
1423      <xsl:wh en test="$ ParamLinkG roupID = $ ParamSplit /@groupID" >   1433      <xsl:wh en test="$ ParamLinkG roupID = $ ParamSplit /@groupID" >
1424       <xsl:v alue-of se lect="wwur i:GetRelat iveTo($Par amLinkPath , $ParamSp lit/@path) " />   1434       <xsl:v alue-of se lect="wwur i:GetRelat iveTo($Par amLinkPath , $ParamSp lit/@path) " />
1425      </xsl:w hen>   1435      </xsl:w hen>
1426     1436  
1427      <!-- Di fferent gr oup -->   1437      <!-- Di fferent gr oup -->
1428      <!--                   -->   1438      <!--                   -->
1429      <xsl:ot herwise>   1439      <xsl:ot herwise>
1430       <xsl:f or-each se lect="$Glo balProject Splits[1]" >   1440       <xsl:f or-each se lect="$Glo balProject Splits[1]" >
1431        <xsl: variable n ame="VarCH MSplit" se lect="key( 'wwsplits- files-by-g roupid-typ e', concat ($ParamLin kGroupID,  ':', $Para meterCHMSp litFileTyp e))[1]" />   1441        <xsl: variable n ame="VarCH MSplit" se lect="key( 'wwsplits- files-by-g roupid-typ e', concat ($ParamLin kGroupID,  ':', $Para meterCHMSp litFileTyp e))[1]" />
1432        <xsl: variable n ame="VarGr oupName" s elect="wwp rojext:Get GroupName( $ParamLink GroupID)"  />   1442        <xsl: variable n ame="VarGr oupName" s elect="wwp rojext:Get GroupName( $ParamLink GroupID)"  />
1433        <xsl: variable n ame="VarGr oupOutputD irectoryPa th" select ="wwfilesy stem:Combi ne(wwproje xt:GetTarg etOutputDi rectoryPat h(), $VarG roupName,  'dummy.com ponent')"  />   1443        <xsl: variable n ame="VarGr oupOutputD irectoryPa th" select ="wwfilesy stem:Combi ne(wwproje xt:GetTarg etOutputDi rectoryPat h(), $VarG roupName,  'dummy.com ponent')"  />
1434        <xsl: variable n ame="VarIn ternalCHMP ath" selec t="wwuri:G etRelative To($ParamL inkPath, $ VarGroupOu tputDirect oryPath)"  />   1444        <xsl: variable n ame="VarIn ternalCHMP ath" selec t="wwuri:G etRelative To($ParamL inkPath, $ VarGroupOu tputDirect oryPath)"  />
1435     1445  
1436        <xsl: value-of s elect="con cat('ms-it s:', wwfil esystem:Ge tFileName( $VarCHMSpl it/@path),  '::/', $V arInternal CHMPath)"  />   1446        <xsl: value-of s elect="con cat('ms-it s:', wwfil esystem:Ge tFileName( $VarCHMSpl it/@path),  '::/', $V arInternal CHMPath)"  />
1437       </xsl: for-each>   1447       </xsl: for-each>
1438      </xsl:o therwise>   1448      </xsl:o therwise>
1439     </xsl:ch oose>   1449     </xsl:ch oose>
1440    </xsl:tem plate>   1450    </xsl:tem plate>
1441     1451  
1442     1452  
1443    <xsl:temp late name= "TextRun">   1453    <xsl:temp late name= "TextRun">
1444     <xsl:par am name="P aramSplits " />   1454     <xsl:par am name="P aramSplits " />
1445     <xsl:par am name="P aramCargo"  />   1455     <xsl:par am name="P aramCargo"  />
1446     <xsl:par am name="P aramLinks"  />   1456     <xsl:par am name="P aramLinks"  />
1447     <xsl:par am name="P aramSplit"  />   1457     <xsl:par am name="P aramSplit"  />
1448     <xsl:par am name="P aramParagr aphID" />   1458     <xsl:par am name="P aramParagr aphID" />
1449     <xsl:par am name="P aramUseCha racterStyl es" />   1459     <xsl:par am name="P aramUseCha racterStyl es" />
1450     <xsl:par am name="P aramTextRu n" />   1460     <xsl:par am name="P aramTextRu n" />
1451     <xsl:par am name="P aramPositi on" />   1461     <xsl:par am name="P aramPositi on" />
1452     1462  
1453     <!-- Get  rule -->   1463     <!-- Get  rule -->
1454     <!--           -->   1464     <!--           -->
1455     <xsl:var iable name ="VarRule"  select="w wprojext:G etRule('Ch aracter',  $ParamText Run/@style name)" />   1465     <xsl:var iable name ="VarRule"  select="w wprojext:G etRule('Ch aracter',  $ParamText Run/@style name)" />
1456     1466  
1457     <!-- Gen erate outp ut? -->   1467     <!-- Gen erate outp ut? -->
1458     <!---                   -->   1468     <!---                   -->
1459     <xsl:var iable name ="VarGener ateOutputO ption" sel ect="$VarR ule/wwproj ect:Option s/wwprojec t:Option[@ Name = 'ge nerate-out put']/@Val ue" />   1469     <xsl:var iable name ="VarGener ateOutputO ption" sel ect="$VarR ule/wwproj ect:Option s/wwprojec t:Option[@ Name = 'ge nerate-out put']/@Val ue" />
1460     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" />   1470     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" />
1461     <xsl:if  test="$Var GenerateOu tput">   1471     <xsl:if  test="$Var GenerateOu tput">
1462      <!-- Pa ss-through ? -->   1472      <!-- Pa ss-through ? -->
1463      <!--                 -->   1473      <!--                 -->
1464      <xsl:va riable nam e="VarPass Through">   1474      <xsl:va riable nam e="VarPass Through">
1465       <xsl:c all-templa te name="C onditions- PassThroug h">   1475       <xsl:c all-templa te name="C onditions- PassThroug h">
1466        <xsl: with-param  name="Par amConditio ns" select ="$ParamTe xtRun/wwdo c:Conditio ns" />   1476        <xsl: with-param  name="Par amConditio ns" select ="$ParamTe xtRun/wwdo c:Conditio ns" />
1467       </xsl: call-templ ate>   1477       </xsl: call-templ ate>
1468      </xsl:v ariable>   1478      </xsl:v ariable>
1469     1479  
1470      <xsl:ch oose>   1480      <xsl:ch oose>
1471       <xsl:w hen test=" $VarPassTh rough = 't rue'">   1481       <xsl:w hen test=" $VarPassTh rough = 't rue'">
1472        <xsl: call-templ ate name=" TextRun-Pa ssThrough" >   1482        <xsl: call-templ ate name=" TextRun-Pa ssThrough" >
1473         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" />   1483         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" />
1474        </xsl :call-temp late>   1484        </xsl :call-temp late>
1475       </xsl: when>   1485       </xsl: when>
1476     1486  
1477       <xsl:o therwise>   1487       <xsl:o therwise>
1478        <!--  A-Link? -- >   1488        <!--  A-Link? -- >
1479        <!--          -- >   1489        <!--          -- >
1480        <xsl: variable n ame="VarAL inkOption"  select="$ VarRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'alink']/ @Value" />   1490        <xsl: variable n ame="VarAL inkOption"  select="$ VarRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'alink']/ @Value" />
1481        <xsl: variable n ame="VarAL ink" selec t="$VarALi nkOption =  'true'" / >   1491        <xsl: variable n ame="VarAL ink" selec t="$VarALi nkOption =  'true'" / >
1482     1492  
1483        <xsl: choose>   1493        <xsl: choose>
1484         <!--  Handle A- Links -->   1494         <!--  Handle A- Links -->
1485         <!--                  -->   1495         <!--                  -->
1486         <xsl :when test ="(count($ ParamCargo /wwalinks: ALink[1])  = 0) and ( $VarALink) ">   1496         <xsl :when test ="(count($ ParamCargo /wwalinks: ALink[1])  = 0) and ( $VarALink) ">
1487          <!- - Update c argo -->   1497          <!- - Update c argo -->
1488          <!- -               -->   1498          <!- -               -->
1489          <xs l:variable  name="Var CargoALink AsXML">   1499          <xs l:variable  name="Var CargoALink AsXML">
1490           <w walinks:AL ink>   1500           <w walinks:AL ink>
1491            < xsl:attrib ute name=" href">   1501            < xsl:attrib ute name=" href">
1492              <xsl:value -of select ="concat(' javascript :WebWorksS eeAlso.fOn ClickLink( &quot;ALin k_', trans late($Para mTextRun/@ id, '-', ' _'), '&quo t;);')" />   1502              <xsl:value -of select ="concat(' javascript :WebWorksS eeAlso.fOn ClickLink( &quot;ALin k_', trans late($Para mTextRun/@ id, '-', ' _'), '&quo t;);')" />
1493            < /xsl:attri bute>   1503            < /xsl:attri bute>
1494           </ wwalinks:A Link>   1504           </ wwalinks:A Link>
1495          </x sl:variabl e>   1505          </x sl:variabl e>
1496          <xs l:variable  name="Var CargoALink " select=" msxsl:node -set($VarC argoALinkA sXML)" />   1506          <xs l:variable  name="Var CargoALink " select=" msxsl:node -set($VarC argoALinkA sXML)" />
1497          <xs l:variable  name="Var Cargo" sel ect="$Para mCargo/*/. . | $VarCa rgoALink"  />   1507          <xs l:variable  name="Var Cargo" sel ect="$Para mCargo/*/. . | $VarCa rgoALink"  />
1498     1508  
1499          <xs l:call-tem plate name ="TextRun- Normal">   1509          <xs l:call-tem plate name ="TextRun- Normal">
1500           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />   1510           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
1501           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  />   1511           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  />
1502           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />   1512           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
1503           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />   1513           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
1504           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" />   1514           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" />
1505           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$ParamU seCharacte rStyles" / >   1515           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$ParamU seCharacte rStyles" / >
1506           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" />   1516           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" />
1507           <x sl:with-pa ram name=" ParamRule"  select="$ VarRule" / >   1517           <x sl:with-pa ram name=" ParamRule"  select="$ VarRule" / >
1508           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / >   1518           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / >
1509          </x sl:call-te mplate>   1519          </x sl:call-te mplate>
1510         </xs l:when>   1520         </xs l:when>
1511     1521  
1512         <xsl :otherwise >   1522         <xsl :otherwise >
1513          <xs l:call-tem plate name ="TextRun- Normal">   1523          <xs l:call-tem plate name ="TextRun- Normal">
1514           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />   1524           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
1515           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" />   1525           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" />
1516           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />   1526           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
1517           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />   1527           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
1518           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" />   1528           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" />
1519           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$ParamU seCharacte rStyles" / >   1529           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$ParamU seCharacte rStyles" / >
1520           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" />   1530           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" />
1521           <x sl:with-pa ram name=" ParamRule"  select="$ VarRule" / >   1531           <x sl:with-pa ram name=" ParamRule"  select="$ VarRule" / >
1522           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / >   1532           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / >
1523          </x sl:call-te mplate>   1533          </x sl:call-te mplate>
1524         </xs l:otherwis e>   1534         </xs l:otherwis e>
1525        </xsl :choose>   1535        </xsl :choose>
1526       </xsl: otherwise>   1536       </xsl: otherwise>
1527      </xsl:c hoose>   1537      </xsl:c hoose>
1528     </xsl:if >   1538     </xsl:if >
1529    </xsl:tem plate>   1539    </xsl:tem plate>
1530     1540  
1531     1541  
1532    <xsl:temp late name= "TextRun-P assThrough ">   1542    <xsl:temp late name= "TextRun-P assThrough ">
1533     <xsl:par am name="P aramTextRu n" />   1543     <xsl:par am name="P aramTextRu n" />
1534     1544  
1535     <wwexsld oc:Text di sable-outp ut-escapin g="yes">   1545     <wwexsld oc:Text di sable-outp ut-escapin g="yes">
1536      <xsl:fo r-each sel ect="$Para mTextRun/w wdoc:Text" >   1546      <xsl:fo r-each sel ect="$Para mTextRun/w wdoc:Text" >
1537       <xsl:v ariable na me="VarTex t" select= "." />   1547       <xsl:v ariable na me="VarTex t" select= "." />
1538     1548  
1539       <xsl:v alue-of se lect="$Var Text/@valu e" />   1549       <xsl:v alue-of se lect="$Var Text/@valu e" />
1540      </xsl:f or-each>   1550      </xsl:f or-each>
1541     </wwexsl doc:Text>   1551     </wwexsl doc:Text>
1542    </xsl:tem plate>   1552    </xsl:tem plate>
1543     1553  
1544     1554  
1545    <xsl:temp late name= "TextRun-N ormal">   1555    <xsl:temp late name= "TextRun-N ormal">
1546     <xsl:par am name="P aramSplits " />   1556     <xsl:par am name="P aramSplits " />
1547     <xsl:par am name="P aramCargo"  />   1557     <xsl:par am name="P aramCargo"  />
1548     <xsl:par am name="P aramLinks"  />   1558     <xsl:par am name="P aramLinks"  />
1549     <xsl:par am name="P aramSplit"  />   1559     <xsl:par am name="P aramSplit"  />
1550     <xsl:par am name="P aramParagr aphID" />   1560     <xsl:par am name="P aramParagr aphID" />
1551     <xsl:par am name="P aramUseCha racterStyl es" />   1561     <xsl:par am name="P aramUseCha racterStyl es" />
1552     <xsl:par am name="P aramTextRu n" />   1562     <xsl:par am name="P aramTextRu n" />
1553     <xsl:par am name="P aramRule"  />   1563     <xsl:par am name="P aramRule"  />
1554     <xsl:par am name="P aramPositi on" />   1564     <xsl:par am name="P aramPositi on" />
1555     1565  
1556     <xsl:cho ose>   1566     <xsl:cho ose>
1557      <xsl:wh en test="( $ParamUseC haracterSt yles) and  ((string-l ength($Par amTextRun/ @stylename ) &gt; 0)  or (count( $ParamText Run/wwdoc: Style) = 1 ))">   1567      <xsl:wh en test="( $ParamUseC haracterSt yles) and  ((string-l ength($Par amTextRun/ @stylename ) &gt; 0)  or (count( $ParamText Run/wwdoc: Style) = 1 ))">
1558       <!-- G et overrid e rule -->   1568       <!-- G et overrid e rule -->
1559       <!--                     -->   1569       <!--                     -->
1560       <xsl:v ariable na me="VarOve rrideRule"  select="w wprojext:G etOverride Rule('Char acter', $P aramTextRu n/@stylena me, $Param Split/@doc umentID, $ ParamTextR un/@id)" / >   1570       <xsl:v ariable na me="VarOve rrideRule"  select="w wprojext:G etOverride Rule('Char acter', $P aramTextRu n/@stylena me, $Param Split/@doc umentID, $ ParamTextR un/@id)" / >
1561     1571  
1562       <!-- R esolve pro ject prope rties -->   1572       <!-- R esolve pro ject prope rties -->
1563       <!--                               -->   1573       <!--                               -->
1564       <xsl:v ariable na me="VarRes olvedPrope rtiesAsXML ">   1574       <xsl:v ariable na me="VarRes olvedPrope rtiesAsXML ">
1565        <xsl: call-templ ate name=" Properties -ResolveOv errideRule ">   1575        <xsl: call-templ ate name=" Properties -ResolveOv errideRule ">
1566         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarOve rrideRule/ wwproject: Properties /wwproject :Property"  />   1576         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarOve rrideRule/ wwproject: Properties /wwproject :Property"  />
1567         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mTextRun/w wdoc:Style " />   1577         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mTextRun/w wdoc:Style " />
1568        </xsl :call-temp late>   1578        </xsl :call-temp late>
1569       </xsl: variable>   1579       </xsl: variable>
1570       <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / >   1580       <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / >
1571     1581  
1572       <!-- C SS propert ies -->   1582       <!-- C SS propert ies -->
1573       <!--                  -->   1583       <!--                  -->
1574       <xsl:v ariable na me="VarCSS Properties AsXML">   1584       <xsl:v ariable na me="VarCSS Properties AsXML">
1575        <xsl: call-templ ate name=" CSS-Transl ateProject Properties ">   1585        <xsl: call-templ ate name=" CSS-Transl ateProject Properties ">
1576         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties" />   1586         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties" />
1577         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" />   1587         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" />
1578         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   1588         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
1579        </xsl :call-temp late>   1589        </xsl :call-temp late>
1580       </xsl: variable>   1590       </xsl: variable>
1581       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / >   1591       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / >
1582     1592  
1583       <!-- A bbreviatio n -->   1593       <!-- A bbreviatio n -->
1584       <!--                -->   1594       <!--                -->
1585       <xsl:v ariable na me="VarAbb reviationT itle">   1595       <xsl:v ariable na me="VarAbb reviationT itle">
1586        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker ">   1596        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker ">
1587         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" />   1597         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" />
1588         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   1598         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
1589         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" />   1599         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" />
1590         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / >   1600         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / >
1591         <xsl :with-para m name="Pa ramOption"  select="' abbreviati on'" />   1601         <xsl :with-para m name="Pa ramOption"  select="' abbreviati on'" />
1592        </xsl :call-temp late>   1602        </xsl :call-temp late>
1593       </xsl: variable>   1603       </xsl: variable>
1594     1604  
1595       <!-- A cronym -->   1605       <!-- A cronym -->
1596       <!--          -->   1606       <!--          -->
1597       <xsl:v ariable na me="VarAcr onymTitle" >   1607       <xsl:v ariable na me="VarAcr onymTitle" >
1598        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker ">   1608        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker ">
1599         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" />   1609         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" />
1600         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   1610         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
1601         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" />   1611         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" />
1602         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / >   1612         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / >
1603         <xsl :with-para m name="Pa ramOption"  select="' acronym'"  />   1613         <xsl :with-para m name="Pa ramOption"  select="' acronym'"  />
1604        </xsl :call-temp late>   1614        </xsl :call-temp late>
1605       </xsl: variable>   1615       </xsl: variable>
1606     1616  
1607       <!-- C itation -- >   1617       <!-- C itation -- >
1608       <!--           -- >   1618       <!--           -- >
1609       <xsl:v ariable na me="VarCit ation">   1619       <xsl:v ariable na me="VarCit ation">
1610        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker ">   1620        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker ">
1611         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" />   1621         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" />
1612         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   1622         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
1613         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" />   1623         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" />
1614         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / >   1624         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / >
1615         <xsl :with-para m name="Pa ramOption"  select="' citation'"  />   1625         <xsl :with-para m name="Pa ramOption"  select="' citation'"  />
1616        </xsl :call-temp late>   1626        </xsl :call-temp late>
1617       </xsl: variable>   1627       </xsl: variable>
1618     1628  
1619       <!-- T ag -->   1629       <!-- T ag -->
1620       <!--      -->   1630       <!--      -->
1621       <xsl:v ariable na me="VarTag Property"  select="$P aramRule/w wproject:P roperties/ wwproject: Property[@ Name = 'ta g']/@Value " />   1631       <xsl:v ariable na me="VarTag Property"  select="$P aramRule/w wproject:P roperties/ wwproject: Property[@ Name = 'ta g']/@Value " />
1622       <xsl:v ariable na me="VarTag ">   1632       <xsl:v ariable na me="VarTag ">
1623        <xsl: choose>   1633        <xsl: choose>
1624         <xsl :when test ="string-l ength($Var Abbreviati onTitle) & gt; 0">   1634         <xsl :when test ="string-l ength($Var Abbreviati onTitle) & gt; 0">
1625          <xs l:value-of  select="' abbr'" />   1635          <xs l:value-of  select="' abbr'" />
1626         </xs l:when>   1636         </xs l:when>
1627         <xsl :when test ="string-l ength($Var AcronymTit le) &gt; 0 ">   1637         <xsl :when test ="string-l ength($Var AcronymTit le) &gt; 0 ">
1628          <xs l:value-of  select="' acronym'"  />   1638          <xs l:value-of  select="' acronym'"  />
1629         </xs l:when>   1639         </xs l:when>
1630         <xsl :when test ="string-l ength($Var Citation)  &gt; 0">   1640         <xsl :when test ="string-l ength($Var Citation)  &gt; 0">
1631          <xs l:value-of  select="' q'" />   1641          <xs l:value-of  select="' q'" />
1632         </xs l:when>   1642         </xs l:when>
1633         <xsl :otherwise >   1643         <xsl :otherwise >
1634          <xs l:choose>   1644          <xs l:choose>
1635           <x sl:when te st="string -length($V arTagPrope rty) &gt;  0">   1645           <x sl:when te st="string -length($V arTagPrope rty) &gt;  0">
1636            < xsl:value- of select= "$VarTagPr operty" />   1646            < xsl:value- of select= "$VarTagPr operty" />
1637           </ xsl:when>   1647           </ xsl:when>
1638     1648  
1639           <x sl:otherwi se>   1649           <x sl:otherwi se>
1640            < xsl:value- of select= "'span'" / >   1650            < xsl:value- of select= "'span'" / >
1641           </ xsl:otherw ise>   1651           </ xsl:otherw ise>
1642          </x sl:choose>   1652          </x sl:choose>
1643         </xs l:otherwis e>   1653         </xs l:otherwis e>
1644        </xsl :choose>   1654        </xsl :choose>
1645       </xsl: variable>   1655       </xsl: variable>
1646     1656  
1647       <!-- C lass attri bute -->   1657       <!-- C lass attri bute -->
1648       <!--                   -->   1658       <!--                   -->
1649       <xsl:v ariable na me="VarCla ssAttribut e">   1659       <xsl:v ariable na me="VarCla ssAttribut e">
1650        <xsl: choose>   1660        <xsl: choose>
1651         <xsl :when test ="string-l ength($Par amCargo/ww project:Bu lletProper ties/wwpro ject:Prope rty[@Name  = 'bullet- style']/@V alue) &gt;  0">   1661         <xsl :when test ="string-l ength($Par amCargo/ww project:Bu lletProper ties/wwpro ject:Prope rty[@Name  = 'bullet- style']/@V alue) &gt;  0">
1652          <xs l:value-of  select="w wstring:CS SClassName ($ParamCar go/wwproje ct:BulletP roperties/ wwproject: Property[@ Name = 'bu llet-style ']/@Value) " />   1662          <xs l:value-of  select="w wstring:CS SClassName ($ParamCar go/wwproje ct:BulletP roperties/ wwproject: Property[@ Name = 'bu llet-style ']/@Value) " />
1653         </xs l:when>   1663         </xs l:when>
1654     1664  
1655         <xsl :otherwise >   1665         <xsl :otherwise >
1656          <xs l:value-of  select="w wstring:CS SClassName ($ParamTex tRun/@styl ename)" />   1666          <xs l:value-of  select="w wstring:CS SClassName ($ParamTex tRun/@styl ename)" />
1657         </xs l:otherwis e>   1667         </xs l:otherwis e>
1658        </xsl :choose>   1668        </xsl :choose>
1659     1669  
1660        <!--  Additional  CSS class es -->   1670        <!--  Additional  CSS class es -->
1661        <!--                           -->   1671        <!--                           -->
1662        <xsl: variable n ame="VarAd ditionalCS SClassesOp tion" sele ct="normal ize-space( $VarOverri deRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'additiona l-css-clas ses']/@Val ue)" />   1672        <xsl: variable n ame="VarAd ditionalCS SClassesOp tion" sele ct="normal ize-space( $VarOverri deRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'additiona l-css-clas ses']/@Val ue)" />
1663        <xsl: if test="s tring-leng th($VarAdd itionalCSS ClassesOpt ion) &gt;  0">   1673        <xsl: if test="s tring-leng th($VarAdd itionalCSS ClassesOpt ion) &gt;  0">
1664         <xsl :text> </x sl:text>   1674         <xsl :text> </x sl:text>
1665         <xsl :value-of  select="$V arAddition alCSSClass esOption"  />   1675         <xsl :value-of  select="$V arAddition alCSSClass esOption"  />
1666        </xsl :if>   1676        </xsl :if>
1667       </xsl: variable>   1677       </xsl: variable>
1668     1678  
1669       <!-- S tyle attri bute -->   1679       <!-- S tyle attri bute -->
1670       <!--                   -->   1680       <!--                   -->
1671       <xsl:v ariable na me="VarSty leAttribut e">   1681       <xsl:v ariable na me="VarSty leAttribut e">
1672        <xsl: call-templ ate name=" CSS-Inline Properties ">   1682        <xsl: call-templ ate name=" CSS-Inline Properties ">
1673         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " />   1683         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " />
1674        </xsl :call-temp late>   1684        </xsl :call-temp late>
1675       </xsl: variable>   1685       </xsl: variable>
1676     1686  
1677       <xsl:c hoose>   1687       <xsl:c hoose>
1678        <xsl: when test= "(string-l ength($Var ClassAttri bute) &gt;  0) or (st ring-lengt h($VarStyl eAttribute ) &gt; 0)" >   1688        <xsl: when test= "(string-l ength($Var ClassAttri bute) &gt;  0) or (st ring-lengt h($VarStyl eAttribute ) &gt; 0)" >
1679         <!--  Character  Style -->   1689         <!--  Character  Style -->
1680         <!--                   -->   1690         <!--                   -->
1681         <xsl :element n ame="{$Var Tag}" name space="{$G lobalDefau ltNamespac e}">   1691         <xsl :element n ame="{$Var Tag}" name space="{$G lobalDefau ltNamespac e}">
1682          <xs l:if test= "string-le ngth($VarC lassAttrib ute) &gt;  0">   1692          <xs l:if test= "string-le ngth($VarC lassAttrib ute) &gt;  0">
1683           <x sl:attribu te name="c lass">   1693           <x sl:attribu te name="c lass">
1684            < xsl:value- of select= "$VarClass Attribute"  />   1694            < xsl:value- of select= "$VarClass Attribute"  />
1685           </ xsl:attrib ute>   1695           </ xsl:attrib ute>
1686          </x sl:if>   1696          </x sl:if>
1687          <xs l:if test= "string-le ngth($VarS tyleAttrib ute) &gt;  0">   1697          <xs l:if test= "string-le ngth($VarS tyleAttrib ute) &gt;  0">
1688           <x sl:attribu te name="s tyle">   1698           <x sl:attribu te name="s tyle">
1689            < xsl:value- of select= "$VarStyle Attribute"  />   1699            < xsl:value- of select= "$VarStyle Attribute"  />
1690           </ xsl:attrib ute>   1700           </ xsl:attrib ute>
1691          </x sl:if>   1701          </x sl:if>
1692     1702  
1693          <!- - Abbrevia tion title  -->   1703          <!- - Abbrevia tion title  -->
1694          <!- -                      -->   1704          <!- -                      -->
1695          <xs l:if test= "string-le ngth($VarA bbreviatio nTitle) &g t; 0">   1705          <xs l:if test= "string-le ngth($VarA bbreviatio nTitle) &g t; 0">
1696           <x sl:attribu te name="t itle">   1706           <x sl:attribu te name="t itle">
1697            < xsl:value- of select= "$VarAbbre viationTit le" />   1707            < xsl:value- of select= "$VarAbbre viationTit le" />
1698           </ xsl:attrib ute>   1708           </ xsl:attrib ute>
1699          </x sl:if>   1709          </x sl:if>
1700     1710  
1701          <!- - Acronym  title -->   1711          <!- - Acronym  title -->
1702          <!- -                      -->   1712          <!- -                      -->
1703          <xs l:if test= "string-le ngth($VarA cronymTitl e) &gt; 0" >   1713          <xs l:if test= "string-le ngth($VarA cronymTitl e) &gt; 0" >
1704           <x sl:attribu te name="t itle">   1714           <x sl:attribu te name="t itle">
1705            < xsl:value- of select= "$VarAcron ymTitle" / >   1715            < xsl:value- of select= "$VarAcron ymTitle" / >
1706           </ xsl:attrib ute>   1716           </ xsl:attrib ute>
1707          </x sl:if>   1717          </x sl:if>
1708     1718  
1709          <!- - Cite att ribute -->   1719          <!- - Cite att ribute -->
1710          <!- -                 -->   1720          <!- -                 -->
1711          <xs l:if test= "string-le ngth($VarC itation) & gt; 0">   1721          <xs l:if test= "string-le ngth($VarC itation) & gt; 0">
1712           <x sl:attribu te name="c ite">   1722           <x sl:attribu te name="c ite">
1713            < xsl:value- of select= "$VarCitat ion" />   1723            < xsl:value- of select= "$VarCitat ion" />
1714           </ xsl:attrib ute>   1724           </ xsl:attrib ute>
1715          </x sl:if>   1725          </x sl:if>
1716     1726  
1717          <xs l:call-tem plate name ="TextRunC hildren">   1727          <xs l:call-tem plate name ="TextRunC hildren">
1718           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />   1728           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
1719           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" />   1729           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" />
1720           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />   1730           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
1721           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />   1731           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
1722           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" />   1732           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" />
1723           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" />   1733           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" />
1724           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / >   1734           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / >
1725          </x sl:call-te mplate>   1735          </x sl:call-te mplate>
1726         </xs l:element>   1736         </xs l:element>
1727        </xsl :when>   1737        </xsl :when>
1728     1738  
1729        <xsl: otherwise>   1739        <xsl: otherwise>
1730         <!--  No style  -->   1740         <!--  No style  -->
1731         <!--            -->   1741         <!--            -->
1732         <xsl :call-temp late name= "TextRunCh ildren">   1742         <xsl :call-temp late name= "TextRunCh ildren">
1733          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />   1743          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />
1734          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " />   1744          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " />
1735          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " />   1745          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " />
1736          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " />   1746          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " />
1737          <xs l:with-par am name="P aramParagr aphID" sel ect="$Para mParagraph ID" />   1747          <xs l:with-par am name="P aramParagr aphID" sel ect="$Para mParagraph ID" />
1738          <xs l:with-par am name="P aramTextRu n" select= "$ParamTex tRun" />   1748          <xs l:with-par am name="P aramTextRu n" select= "$ParamTex tRun" />
1739          <xs l:with-par am name="P aramPositi on" select ="$ParamPo sition" />   1749          <xs l:with-par am name="P aramPositi on" select ="$ParamPo sition" />
1740         </xs l:call-tem plate>   1750         </xs l:call-tem plate>
1741        </xsl :otherwise >   1751        </xsl :otherwise >
1742       </xsl: choose>   1752       </xsl: choose>
1743      </xsl:w hen>   1753      </xsl:w hen>
1744     1754  
1745      <xsl:ot herwise>   1755      <xsl:ot herwise>
1746       <!-- N o style -- >   1756       <!-- N o style -- >
1747       <!--           -- >   1757       <!--           -- >
1748       <xsl:c all-templa te name="T extRunChil dren">   1758       <xsl:c all-templa te name="T extRunChil dren">
1749        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />   1759        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />
1750        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  />   1760        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  />
1751        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  />   1761        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  />
1752        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  />   1762        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  />
1753        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraphID " />   1763        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraphID " />
1754        <xsl: with-param  name="Par amTextRun"  select="$ ParamTextR un" />   1764        <xsl: with-param  name="Par amTextRun"  select="$ ParamTextR un" />
1755        <xsl: with-param  name="Par amPosition " select=" $ParamPosi tion" />   1765        <xsl: with-param  name="Par amPosition " select=" $ParamPosi tion" />
1756       </xsl: call-templ ate>   1766       </xsl: call-templ ate>
1757      </xsl:o therwise>   1767      </xsl:o therwise>
1758     </xsl:ch oose>   1768     </xsl:ch oose>
1759    </xsl:tem plate>   1769    </xsl:tem plate>
1760     1770  
1761     1771  
1762    <xsl:temp late name= "TextRunCh ildren">   1772    <xsl:temp late name= "TextRunCh ildren">
1763     <xsl:par am name="P aramSplits " />   1773     <xsl:par am name="P aramSplits " />
1764     <xsl:par am name="P aramCargo"  />   1774     <xsl:par am name="P aramCargo"  />
1765     <xsl:par am name="P aramLinks"  />   1775     <xsl:par am name="P aramLinks"  />
1766     <xsl:par am name="P aramSplit"  />   1776     <xsl:par am name="P aramSplit"  />
1767     <xsl:par am name="P aramParagr aphID" />   1777     <xsl:par am name="P aramParagr aphID" />
1768     <xsl:par am name="P aramTextRu n" />   1778     <xsl:par am name="P aramTextRu n" />
1769     <xsl:par am name="P aramPositi on" />   1779     <xsl:par am name="P aramPositi on" />
1770     1780  
1771     <!-- For ce anchor  on same li ne as cont aining spa n -->   1781     <!-- For ce anchor  on same li ne as cont aining spa n -->
1772     <!--                                                   -->   1782     <!--                                                   -->
1773     <wwexsld oc:NoBreak  />   1783     <wwexsld oc:NoBreak  />
1774     1784  
1775     <!-- Lin k? -->   1785     <!-- Lin k? -->
1776     <!--        -->   1786     <!--        -->
1777     <xsl:var iable name ="VarLinkI nfoAsXML">   1787     <xsl:var iable name ="VarLinkI nfoAsXML">
1778      <xsl:ca ll-templat e name="Li nkInfo">   1788      <xsl:ca ll-templat e name="Li nkInfo">
1779       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />   1789       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />
1780       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >   1790       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >
1781       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >   1791       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >
1782       <xsl:w ith-param  name="Para mDocumentL ink" selec t="$ParamT extRun/wwd oc:Link" / >   1792       <xsl:w ith-param  name="Para mDocumentL ink" selec t="$ParamT extRun/wwd oc:Link" / >
1783      </xsl:c all-templa te>   1793      </xsl:c all-templa te>
1784     </xsl:va riable>   1794     </xsl:va riable>
1785     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" />   1795     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" />
1786     1796  
1787     <!-- Han dle links  -->   1797     <!-- Han dle links  -->
1788     <!--                -->   1798     <!--                -->
1789     <xsl:cho ose>   1799     <xsl:cho ose>
1790      <xsl:wh en test="s tring-leng th($ParamC argo/wwali nks:ALink[ 1]/@href)  &gt; 0">   1800      <xsl:wh en test="s tring-leng th($ParamC argo/wwali nks:ALink[ 1]/@href)  &gt; 0">
1791       <html: a href="{$ ParamCargo /wwalinks: ALink[1]/@ href}">   1801       <html: a href="{$ ParamCargo /wwalinks: ALink[1]/@ href}">
1792        <xsl: if test="$ ParamPosit ion = 1">   1802        <xsl: if test="$ ParamPosit ion = 1">
1793         <xsl :attribute  name="nam e">   1803         <xsl :attribute  name="nam e">
1794          <xs l:value-of  select="$ ParamParag raphID" />   1804          <xs l:value-of  select="$ ParamParag raphID" />
1795         </xs l:attribut e>   1805         </xs l:attribut e>
1796        </xsl :if>   1806        </xsl :if>
1797     1807  
1798        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n">   1808        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n">
1799         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   1809         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
1800         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   1810         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
1801         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   1811         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
1802         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   1812         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
1803        </xsl :apply-tem plates>   1813        </xsl :apply-tem plates>
1804       </html :a>   1814       </html :a>
1805      </xsl:w hen>   1815      </xsl:w hen>
1806     1816  
1807      <xsl:wh en test="s tring-leng th($VarLin kInfo/@hre f) &gt; 0" >   1817      <xsl:wh en test="s tring-leng th($VarLin kInfo/@hre f) &gt; 0" >
1808       <html: a href="{$ VarLinkInf o/@href}">   1818       <html: a href="{$ VarLinkInf o/@href}">
        1819        <xsl: if test="s tring-leng th($VarLin kInfo/@tit le) &gt; 0 ">
        1820         <xsl :attribute  name="tit le">
        1821          <xs l:value-of  select="$ VarLinkInf o/@title"  />
        1822         </xs l:attribut e>
        1823        </xsl :if>
1809        <xsl: if test="s tring-leng th($VarLin kInfo/@tar get) &gt;  0">   1824        <xsl: if test="s tring-leng th($VarLin kInfo/@tar get) &gt;  0">
1810         <xsl :attribute  name="tar get">   1825         <xsl :attribute  name="tar get">
1811          <xs l:value-of  select="$ VarLinkInf o/@target"  />   1826          <xs l:value-of  select="$ VarLinkInf o/@target"  />
1812         </xs l:attribut e>   1827         </xs l:attribut e>
1813        </xsl :if>   1828        </xsl :if>
1814        <xsl: if test="s tring-leng th($VarLin kInfo/@onM ouseOver)  &gt; 0">   1829        <xsl: if test="s tring-leng th($VarLin kInfo/@onM ouseOver)  &gt; 0">
1815         <xsl :attribute  name="onM ouseOver">   1830         <xsl :attribute  name="onM ouseOver">
1816          <xs l:value-of  select="$ VarLinkInf o/@onMouse Over" />   1831          <xs l:value-of  select="$ VarLinkInf o/@onMouse Over" />
1817         </xs l:attribut e>   1832         </xs l:attribut e>
1818        </xsl :if>   1833        </xsl :if>
1819        <xsl: if test="s tring-leng th($VarLin kInfo/@onM ouseOut) & gt; 0">   1834        <xsl: if test="s tring-leng th($VarLin kInfo/@onM ouseOut) & gt; 0">
1820         <xsl :attribute  name="onM ouseOut">   1835         <xsl :attribute  name="onM ouseOut">
1821          <xs l:value-of  select="$ VarLinkInf o/@onMouse Out" />   1836          <xs l:value-of  select="$ VarLinkInf o/@onMouse Out" />
1822         </xs l:attribut e>   1837         </xs l:attribut e>
1823        </xsl :if>   1838        </xsl :if>
1824        <xsl: if test="$ ParamPosit ion = 1">   1839        <xsl: if test="$ ParamPosit ion = 1">
1825         <xsl :attribute  name="nam e">   1840         <xsl :attribute  name="nam e">
1826          <xs l:value-of  select="$ ParamParag raphID" />   1841          <xs l:value-of  select="$ ParamParag raphID" />
1827         </xs l:attribut e>   1842         </xs l:attribut e>
1828        </xsl :if>   1843        </xsl :if>
1829     1844  
1830        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n">   1845        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n">
1831         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   1846         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
1832         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   1847         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
1833         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   1848         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
1834         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   1849         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
1835        </xsl :apply-tem plates>   1850        </xsl :apply-tem plates>
1836       </html :a>   1851       </html :a>
1837      </xsl:w hen>   1852      </xsl:w hen>
1838     1853  
1839      <xsl:wh en test="$ ParamPosit ion = 1">   1854      <xsl:wh en test="$ ParamPosit ion = 1">
1840       <html: a name="{$ ParamParag raphID}">   1855       <html: a name="{$ ParamParag raphID}">
1841        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n">   1856        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n">
1842         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   1857         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
1843         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   1858         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
1844         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   1859         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
1845         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   1860         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
1846        </xsl :apply-tem plates>   1861        </xsl :apply-tem plates>
1847       </html :a>   1862       </html :a>
1848      </xsl:w hen>   1863      </xsl:w hen>
1849     1864  
1850      <xsl:ot herwise>   1865      <xsl:ot herwise>
1851       <xsl:a pply-templ ates selec t="$ParamT extRun/*"  mode="wwmo de:textrun ">   1866       <xsl:a pply-templ ates selec t="$ParamT extRun/*"  mode="wwmo de:textrun ">
1852        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />   1867        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />
1853        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  />   1868        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  />
1854        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  />   1869        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  />
1855        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  />   1870        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  />
1856       </xsl: apply-temp lates>   1871       </xsl: apply-temp lates>
1857      </xsl:o therwise>   1872      </xsl:o therwise>
1858     </xsl:ch oose>   1873     </xsl:ch oose>
1859     1874  
1860     <!-- For ce anchor  on same li ne as cont aining spa n -->   1875     <!-- For ce anchor  on same li ne as cont aining spa n -->
1861     <!--                                                   -->   1876     <!--                                                   -->
1862     <wwexsld oc:NoBreak  />   1877     <wwexsld oc:NoBreak  />
1863    </xsl:tem plate>   1878    </xsl:tem plate>
1864     1879  
1865     1880  
1866    <xsl:temp late match ="wwdoc:No te" mode=" wwmode:tex trun">   1881    <xsl:temp late match ="wwdoc:No te" mode=" wwmode:tex trun">
1867     <xsl:par am name="P aramSplits " />   1882     <xsl:par am name="P aramSplits " />
1868     <xsl:par am name="P aramCargo"  />   1883     <xsl:par am name="P aramCargo"  />
1869     <xsl:par am name="P aramLinks"  />   1884     <xsl:par am name="P aramLinks"  />
1870     <xsl:par am name="P aramSplit"  />   1885     <xsl:par am name="P aramSplit"  />
1871     1886  
1872     <xsl:var iable name ="VarConte xt" select ="." />   1887     <xsl:var iable name ="VarConte xt" select ="." />
1873     1888  
1874     <!-- Imp lement not es -->   1889     <!-- Imp lement not es -->
1875     <!--                   -->   1890     <!--                   -->
1876     <xsl:for -each sele ct="$Param Cargo/wwno tes:NoteNu mbering[1] ">   1891     <xsl:for -each sele ct="$Param Cargo/wwno tes:NoteNu mbering[1] ">
1877      <xsl:va riable nam e="VarNote Number" se lect="key( 'wwnotes-n otes-by-id ', $VarCon text/@id)/ @number" / >   1892      <xsl:va riable nam e="VarNote Number" se lect="key( 'wwnotes-n otes-by-id ', $VarCon text/@id)/ @number" / >
1878     1893  
1879      <!-- Fo rce sup on  same line  as contai ning span  -->   1894      <!-- Fo rce sup on  same line  as contai ning span  -->
1880      <!--                                                -->   1895      <!--                                                -->
1881      <wwexsl doc:NoBrea k />   1896      <wwexsl doc:NoBrea k />
1882     1897  
1883      <html:s up>   1898      <html:s up>
1884       <!-- F orce ancho r on same  line as co ntaining s up -->   1899       <!-- F orce ancho r on same  line as co ntaining s up -->
1885       <!--                                                  -->   1900       <!--                                                  -->
1886       <wwexs ldoc:NoBre ak />   1901       <wwexs ldoc:NoBre ak />
1887     1902  
1888       <html: a>   1903       <html: a>
1889        <xsl: attribute  name="name ">   1904        <xsl: attribute  name="name ">
1890         <xsl :text>wwfo otnote_inl ine_</xsl: text>   1905         <xsl :text>wwfo otnote_inl ine_</xsl: text>
1891         <xsl :value-of  select="$V arContext/ @id" />   1906         <xsl :value-of  select="$V arContext/ @id" />
1892        </xsl :attribute >   1907        </xsl :attribute >
1893        <xsl: attribute  name="href ">   1908        <xsl: attribute  name="href ">
1894         <xsl :text>#</x sl:text>   1909         <xsl :text>#</x sl:text>
1895         <xsl :value-of  select="$V arContext/ @id" />   1910         <xsl :value-of  select="$V arContext/ @id" />
1896        </xsl :attribute >   1911        </xsl :attribute >
1897     1912  
1898        <xsl: value-of s elect="$Va rNoteNumbe r" />   1913        <xsl: value-of s elect="$Va rNoteNumbe r" />
1899       </html :a>   1914       </html :a>
1900      </html: sup>   1915      </html: sup>
1901     </xsl:fo r-each>   1916     </xsl:fo r-each>
1902    </xsl:tem plate>   1917    </xsl:tem plate>
1903     1918  
1904     1919  
1905    <xsl:temp late match ="wwdoc:Li neBreak" m ode="wwmod e:textrun" >   1920    <xsl:temp late match ="wwdoc:Li neBreak" m ode="wwmod e:textrun" >
1906     <xsl:par am name="P aramSplits " />   1921     <xsl:par am name="P aramSplits " />
1907     <xsl:par am name="P aramCargo"  />   1922     <xsl:par am name="P aramCargo"  />
1908     <xsl:par am name="P aramLinks"  />   1923     <xsl:par am name="P aramLinks"  />
1909     <xsl:par am name="P aramSplit"  />   1924     <xsl:par am name="P aramSplit"  />
1910     1925  
1911     <html:br  />   1926     <html:br  />
1912    </xsl:tem plate>   1927    </xsl:tem plate>
1913     1928  
1914     1929  
1915    <xsl:temp late match ="wwdoc:In dexMarker"  mode="wwm ode:textru n">   1930    <xsl:temp late match ="wwdoc:In dexMarker"  mode="wwm ode:textru n">
1916     <xsl:par am name="P aramSplits " />   1931     <xsl:par am name="P aramSplits " />
1917     <xsl:par am name="P aramCargo"  />   1932     <xsl:par am name="P aramCargo"  />
1918     <xsl:par am name="P aramLinks"  />   1933     <xsl:par am name="P aramLinks"  />
1919     <xsl:par am name="P aramSplit"  />   1934     <xsl:par am name="P aramSplit"  />
1920     1935  
1921     <!-- Ign ore index  markers -- >   1936     <!-- Ign ore index  markers -- >
1922     <!--                        -- >   1937     <!--                        -- >
1923    </xsl:tem plate>   1938    </xsl:tem plate>
1924     1939  
1925     1940  
1926    <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:t extrun">   1941    <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:t extrun">
1927     <xsl:par am name="P aramSplits " />   1942     <xsl:par am name="P aramSplits " />
1928     <xsl:par am name="P aramCargo"  />   1943     <xsl:par am name="P aramCargo"  />
1929     <xsl:par am name="P aramLinks"  />   1944     <xsl:par am name="P aramLinks"  />
1930     <xsl:par am name="P aramSplit"  />   1945     <xsl:par am name="P aramSplit"  />
1931     1946  
1932     <!-- Ign ore marker s -->   1947     <!-- Ign ore marker s -->
1933     <!--                  -->   1948     <!--                  -->
1934    </xsl:tem plate>   1949    </xsl:tem plate>
1935     1950  
1936     1951  
1937    <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex trun">   1952    <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex trun">
1938     <xsl:par am name="P aramSplits " />   1953     <xsl:par am name="P aramSplits " />
1939     <xsl:par am name="P aramCargo"  />   1954     <xsl:par am name="P aramCargo"  />
1940     <xsl:par am name="P aramLinks"  />   1955     <xsl:par am name="P aramLinks"  />
1941     <xsl:par am name="P aramSplit"  />   1956     <xsl:par am name="P aramSplit"  />
1942     1957  
1943     <xsl:val ue-of sele ct="@value " />   1958     <xsl:val ue-of sele ct="@value " />
1944    </xsl:tem plate>   1959    </xsl:tem plate>
1945     1960  
1946     1961  
1947    <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:co ntent">   1962    <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:co ntent">
1948     <xsl:par am name="P aramSplits " />   1963     <xsl:par am name="P aramSplits " />
1949     <xsl:par am name="P aramCargo"  />   1964     <xsl:par am name="P aramCargo"  />
1950     <xsl:par am name="P aramLinks"  />   1965     <xsl:par am name="P aramLinks"  />
1951     <xsl:par am name="P aramTOCDat a" />   1966     <xsl:par am name="P aramTOCDat a" />
1952     <xsl:par am name="P aramSplit"  />   1967     <xsl:par am name="P aramSplit"  />
1953     1968  
1954     <xsl:var iable name ="VarTable " select=" ." />   1969     <xsl:var iable name ="VarTable " select=" ." />
1955     1970  
1956     <!-- Abo rted? -->   1971     <!-- Abo rted? -->
1957     <!--           -->   1972     <!--           -->
1958     <xsl:if  test="not( wwprogress :Abort())" >   1973     <xsl:if  test="not( wwprogress :Abort())" >
1959      <xsl:va riable nam e="VarOver rideRule"  select="ww projext:Ge tOverrideR ule('Table ', $VarTab le/@stylen ame, $Para mSplit/@do cumentID,  $VarTable/ @id)" />   1974      <xsl:va riable nam e="VarOver rideRule"  select="ww projext:Ge tOverrideR ule('Table ', $VarTab le/@stylen ame, $Para mSplit/@do cumentID,  $VarTable/ @id)" />
1960      <xsl:va riable nam e="VarGene rateOutput Option" se lect="$Var OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'gen erate-outp ut']/@Valu e" />   1975      <xsl:va riable nam e="VarGene rateOutput Option" se lect="$Var OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'gen erate-outp ut']/@Valu e" />
1961      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" />   1976      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" />
1962      <xsl:if  test="$Va rGenerateO utput">   1977      <xsl:if  test="$Va rGenerateO utput">
1963     1978  
1964       <!-- G et behavio r -->   1979       <!-- G et behavio r -->
1965       <!--                -->   1980       <!--                -->
1966       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]">   1981       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]">
1967        <xsl: variable n ame="VarTa bleBehavio r" select= "key('wwbe haviors-ta bles-by-id ', $VarTab le/@id)[1] " />   1982        <xsl: variable n ame="VarTa bleBehavio r" select= "key('wwbe haviors-ta bles-by-id ', $VarTab le/@id)[1] " />
1968     1983  
1969        <!--  Table -->   1984        <!--  Table -->
1970        <!--        -->   1985        <!--        -->
1971        <xsl: call-templ ate name=" Table">   1986        <xsl: call-templ ate name=" Table">
1972         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   1987         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
1973         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   1988         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
1974         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   1989         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
1975         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" />   1990         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" />
1976         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   1991         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
1977         <xsl :with-para m name="Pa ramTable"  select="$V arTable" / >   1992         <xsl :with-para m name="Pa ramTable"  select="$V arTable" / >
1978         <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" />   1993         <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" />
1979         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$VarO verrideRul e" />   1994         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$VarO verrideRul e" />
1980         <xsl :with-para m name="Pa ramTableBe havior" se lect="$Var TableBehav ior" />   1995         <xsl :with-para m name="Pa ramTableBe havior" se lect="$Var TableBehav ior" />
1981        </xsl :call-temp late>   1996        </xsl :call-temp late>
1982       </xsl: for-each>   1997       </xsl: for-each>
1983      </xsl:i f>   1998      </xsl:i f>
1984     </xsl:if >   1999     </xsl:if >
1985    </xsl:tem plate>   2000    </xsl:tem plate>
1986     2001  
1987     2002  
1988    <xsl:temp late name= "Table-Att ribute-In- Pixels">   2003    <xsl:temp late name= "Table-Att ribute-In- Pixels">
1989     <xsl:par am name="P aramValue"  />   2004     <xsl:par am name="P aramValue"  />
1990     2005  
1991     <xsl:cho ose>   2006     <xsl:cho ose>
1992      <xsl:wh en test="s tring-leng th($ParamV alue) &gt;  0">   2007      <xsl:wh en test="s tring-leng th($ParamV alue) &gt;  0">
1993       <!-- N ormalize v alue for H TML attrib ute-->   2008       <!-- N ormalize v alue for H TML attrib ute-->
1994       <!--                                       -->   2009       <!--                                       -->
1995       <xsl:v ariable na me="VarVal ueToEmit">   2010       <xsl:v ariable na me="VarVal ueToEmit">
1996        <xsl: variable n ame="VarUn itsSuffix"  select="w wunits:Uni tsSuffix($ ParamValue )" />   2011        <xsl: variable n ame="VarUn itsSuffix"  select="w wunits:Uni tsSuffix($ ParamValue )" />
1997     2012  
1998        <xsl: choose>   2013        <xsl: choose>
1999         <xsl :when test ="string-l ength($Var UnitsSuffi x) &gt; 0" >   2014         <xsl :when test ="string-l ength($Var UnitsSuffi x) &gt; 0" >
2000          <xs l:variable  name="Var NumPrefix"  select="w wunits:Num ericPrefix ($ParamVal ue)" />   2015          <xs l:variable  name="Var NumPrefix"  select="w wunits:Num ericPrefix ($ParamVal ue)" />
2001     2016  
2002          <xs l:value-of  select="w wunits:Con vert($VarN umPrefix,  $VarUnitsS uffix, 'px ')" />   2017          <xs l:value-of  select="w wunits:Con vert($VarN umPrefix,  $VarUnitsS uffix, 'px ')" />
2003         </xs l:when>   2018         </xs l:when>
2004     2019  
2005         <xsl :otherwise >   2020         <xsl :otherwise >
2006          <xs l:value-of  select="$ ParamValue " />   2021          <xs l:value-of  select="$ ParamValue " />
2007         </xs l:otherwis e>   2022         </xs l:otherwis e>
2008        </xsl :choose>   2023        </xsl :choose>
2009       </xsl: variable>   2024       </xsl: variable>
2010     2025  
2011       <xsl:v alue-of se lect="$Var ValueToEmi t" />   2026       <xsl:v alue-of se lect="$Var ValueToEmi t" />
2012      </xsl:w hen>   2027      </xsl:w hen>
2013     2028  
2014      <xsl:ot herwise>   2029      <xsl:ot herwise>
2015       <xsl:v alue-of se lect="''"  />   2030       <xsl:v alue-of se lect="''"  />
2016      </xsl:o therwise>   2031      </xsl:o therwise>
2017     </xsl:ch oose>   2032     </xsl:ch oose>
2018    </xsl:tem plate>   2033    </xsl:tem plate>
2019     2034  
2020     2035  
2021    <xsl:temp late name= "Table">   2036    <xsl:temp late name= "Table">
2022     <xsl:par am name="P aramSplits " />   2037     <xsl:par am name="P aramSplits " />
2023     <xsl:par am name="P aramCargo"  />   2038     <xsl:par am name="P aramCargo"  />
2024     <xsl:par am name="P aramLinks"  />   2039     <xsl:par am name="P aramLinks"  />
2025     <xsl:par am name="P aramTOCDat a" />   2040     <xsl:par am name="P aramTOCDat a" />
2026     <xsl:par am name="P aramSplit"  />   2041     <xsl:par am name="P aramSplit"  />
2027     <xsl:par am name="P aramTable"  />   2042     <xsl:par am name="P aramTable"  />
2028     <xsl:par am name="P aramStyleN ame" />   2043     <xsl:par am name="P aramStyleN ame" />
2029     <xsl:par am name="P aramOverri deRule" />   2044     <xsl:par am name="P aramOverri deRule" />
2030     <xsl:par am name="P aramTableB ehavior" / >   2045     <xsl:par am name="P aramTableB ehavior" / >
2031     2046  
2032     <!-- Not es -->   2047     <!-- Not es -->
2033     <!--        -->   2048     <!--        -->
2034     <xsl:var iable name ="VarNotes " select=" $ParamTabl e//wwdoc:N ote[not(an cestor::ww doc:Frame) ]" />   2049     <xsl:var iable name ="VarNotes " select=" $ParamTabl e//wwdoc:N ote[not(an cestor::ww doc:Frame) ]" />
2035     2050  
2036     <!-- Not e numberin g -->   2051     <!-- Not e numberin g -->
2037     <!--                  -->   2052     <!--                  -->
2038     <xsl:var iable name ="VarNoteN umberingAs XML">   2053     <xsl:var iable name ="VarNoteN umberingAs XML">
2039      <xsl:ca ll-templat e name="No tes-Number ">   2054      <xsl:ca ll-templat e name="No tes-Number ">
2040       <xsl:w ith-param  name="Para mNotes" se lect="$Var Notes" />   2055       <xsl:w ith-param  name="Para mNotes" se lect="$Var Notes" />
2041      </xsl:c all-templa te>   2056      </xsl:c all-templa te>
2042     </xsl:va riable>   2057     </xsl:va riable>
2043     <xsl:var iable name ="VarNoteN umbering"  select="ms xsl:node-s et($VarNot eNumbering AsXML)" />   2058     <xsl:var iable name ="VarNoteN umbering"  select="ms xsl:node-s et($VarNot eNumbering AsXML)" />
2044     2059  
2045     <!-- Car go for rec ursion -->   2060     <!-- Car go for rec ursion -->
2046     <!--                       -->   2061     <!--                       -->
2047     <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() !=  'NoteNumbe ring']/..  | $VarNote Numbering"  />   2062     <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() !=  'NoteNumbe ring']/..  | $VarNote Numbering"  />
2048     2063  
2049     <!-- Res olve proje ct propert ies -->   2064     <!-- Res olve proje ct propert ies -->
2050     <!--                               -->   2065     <!--                               -->
2051     <xsl:var iable name ="VarResol vedPropert iesAsXML">   2066     <xsl:var iable name ="VarResol vedPropert iesAsXML">
2052      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule">   2067      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule">
2053       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  />   2068       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  />
2054       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" />   2069       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" />
2055      </xsl:c all-templa te>   2070      </xsl:c all-templa te>
2056     </xsl:va riable>   2071     </xsl:va riable>
2057     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" />   2072     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" />
2058     2073  
2059     <!-- CSS  propertie s -->   2074     <!-- CSS  propertie s -->
2060     <!--                  -->   2075     <!--                  -->
2061     <xsl:var iable name ="VarCSSPr opertiesAs XML">   2076     <xsl:var iable name ="VarCSSPr opertiesAs XML">
2062      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties">   2077      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties">
2063       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" />   2078       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" />
2064       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" />   2079       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" />
2065       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />   2080       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />
2066      </xsl:c all-templa te>   2081      </xsl:c all-templa te>
2067     </xsl:va riable>   2082     </xsl:va riable>
2068     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" />   2083     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" />
2069     2084  
2070     <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Table',  $ParamTabl e/@stylena me, $Param Split/@doc umentID, $ ParamTable /@id)" />   2085     <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Table',  $ParamTabl e/@stylena me, $Param Split/@doc umentID, $ ParamTable /@id)" />
2071     2086  
2072     <!-- Res olve proje ct propert ies -->   2087     <!-- Res olve proje ct propert ies -->
2073     <!--                               -->   2088     <!--                               -->
2074     <xsl:var iable name ="VarResol vedContext Properties AsXML">   2089     <xsl:var iable name ="VarResol vedContext Properties AsXML">
2075      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule">   2090      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule">
2076       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amTable" / >   2091       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amTable" / >
2077       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" />   2092       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" />
2078       <xsl:w ith-param  name="Para mStyleName " select=" $ParamTabl e/@stylena me" />   2093       <xsl:w ith-param  name="Para mStyleName " select=" $ParamTabl e/@stylena me" />
2079       <xsl:w ith-param  name="Para mStyleType " select=" 'Table'" / >   2094       <xsl:w ith-param  name="Para mStyleType " select=" 'Table'" / >
2080       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" />   2095       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" />
2081      </xsl:c all-templa te>   2096      </xsl:c all-templa te>
2082     </xsl:va riable>   2097     </xsl:va riable>
2083     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  />   2098     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  />
2084     2099  
2085     <!-- Tab le class - ->   2100     <!-- Tab le class - ->
2086     <!--              - ->   2101     <!--              - ->
2087     <xsl:var iable name ="VarClass Attribute" >   2102     <xsl:var iable name ="VarClass Attribute" >
2088      <xsl:va lue-of sel ect="wwstr ing:CSSCla ssName($Pa ramStyleNa me)" />   2103      <xsl:va lue-of sel ect="wwstr ing:CSSCla ssName($Pa ramStyleNa me)" />
2089     2104  
2090      <!-- Ad ditional C SS classes  -->   2105      <!-- Ad ditional C SS classes  -->
2091      <!--                           -->   2106      <!--                           -->
2092      <xsl:va riable nam e="VarAddi tionalCSSC lassesOpti on" select ="normaliz e-space($V arContextR ule/wwproj ect:Option s/wwprojec t:Option[@ Name = 'ad ditional-c ss-classes ']/@Value) " />   2107      <xsl:va riable nam e="VarAddi tionalCSSC lassesOpti on" select ="normaliz e-space($V arContextR ule/wwproj ect:Option s/wwprojec t:Option[@ Name = 'ad ditional-c ss-classes ']/@Value) " />
2093      <xsl:if  test="str ing-length ($VarAddit ionalCSSCl assesOptio n) &gt; 0" >   2108      <xsl:if  test="str ing-length ($VarAddit ionalCSSCl assesOptio n) &gt; 0" >
2094       <xsl:t ext> </xsl :text>   2109       <xsl:t ext> </xsl :text>
2095       <xsl:v alue-of se lect="$Var Additional CSSClasses Option" />   2110       <xsl:v alue-of se lect="$Var Additional CSSClasses Option" />
2096      </xsl:i f>   2111      </xsl:i f>
2097     </xsl:va riable>   2112     </xsl:va riable>
2098     2113  
2099     <!-- Sty le attribu te -->   2114     <!-- Sty le attribu te -->
2100     <!--                   -->   2115     <!--                   -->
2101     <xsl:var iable name ="VarStyle Attribute" >   2116     <xsl:var iable name ="VarStyle Attribute" >
2102      <xsl:ca ll-templat e name="CS S-InlinePr operties">   2117      <xsl:ca ll-templat e name="CS S-InlinePr operties">
2103       <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties[( @Name != ' vertical-a lign')]" / >   2118       <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties[( @Name != ' vertical-a lign')]" / >
2104      </xsl:c all-templa te>   2119      </xsl:c all-templa te>
2105     </xsl:va riable>   2120     </xsl:va riable>
2106     2121  
2107     <!-- Bor der -->   2122     <!-- Bor der -->
2108     <!--         -->   2123     <!--         -->
2109     <xsl:var iable name ="VarTable Border">   2124     <xsl:var iable name ="VarTable Border">
2110      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els">   2125      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els">
2111       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'borde r']/@Value " />   2126       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'borde r']/@Value " />
2112      </xsl:c all-templa te>   2127      </xsl:c all-templa te>
2113     </xsl:va riable>   2128     </xsl:va riable>
2114     2129  
2115     <!-- Cel l padding  -->   2130     <!-- Cel l padding  -->
2116     <!--                -->   2131     <!--                -->
2117     <xsl:var iable name ="VarTable CellPaddin g">   2132     <xsl:var iable name ="VarTable CellPaddin g">
2118      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els">   2133      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els">
2119       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- padding']/ @Value" />   2134       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- padding']/ @Value" />
2120      </xsl:c all-templa te>   2135      </xsl:c all-templa te>
2121     </xsl:va riable>   2136     </xsl:va riable>
2122     2137  
2123     <!-- Cel l spacing  -->   2138     <!-- Cel l spacing  -->
2124     <!--                -->   2139     <!--                -->
2125     <xsl:var iable name ="VarTable CellSpacin g">   2140     <xsl:var iable name ="VarTable CellSpacin g">
2126      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els">   2141      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els">
2127       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- spacing']/ @Value" />   2142       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- spacing']/ @Value" />
2128      </xsl:c all-templa te>   2143      </xsl:c all-templa te>
2129     </xsl:va riable>   2144     </xsl:va riable>
2130     2145  
2131     <!-- Tab le vertica l alignmen t -->   2146     <!-- Tab le vertica l alignmen t -->
2132     <!--                             -->   2147     <!--                             -->
2133     <xsl:var iable name ="VarTable VerticalAl ignment">   2148     <xsl:var iable name ="VarTable VerticalAl ignment">
2134      <xsl:va riable nam e="VarTabl eVerticalA lignmentHi nt" select ="$VarReso lvedContex tPropertie s[@Name =  'vertical- align']/@V alue" />   2149      <xsl:va riable nam e="VarTabl eVerticalA lignmentHi nt" select ="$VarReso lvedContex tPropertie s[@Name =  'vertical- align']/@V alue" />
2135      <xsl:ch oose>   2150      <xsl:ch oose>
2136       <xsl:w hen test=" string-len gth($VarTa bleVertica lAlignment Hint) &gt;  0">   2151       <xsl:w hen test=" string-len gth($VarTa bleVertica lAlignment Hint) &gt;  0">
2137        <xsl: value-of s elect="$Va rTableVert icalAlignm entHint" / >   2152        <xsl: value-of s elect="$Va rTableVert icalAlignm entHint" / >
2138       </xsl: when>   2153       </xsl: when>
2139       <xsl:o therwise>   2154       <xsl:o therwise>
2140        <xsl: value-of s elect="''"  />   2155        <xsl: value-of s elect="''"  />
2141       </xsl: otherwise>   2156       </xsl: otherwise>
2142      </xsl:c hoose>   2157      </xsl:c hoose>
2143     </xsl:va riable>   2158     </xsl:va riable>
2144     2159  
2145     <!-- Tab le summary  -->   2160     <!-- Tab le summary  -->
2146     <!--                 -->   2161     <!--                 -->
2147     <xsl:var iable name ="VarTable Summary">   2162     <xsl:var iable name ="VarTable Summary">
2148      <xsl:ca ll-templat e name="Ta bles-Summa ry">   2163      <xsl:ca ll-templat e name="Ta bles-Summa ry">
2149       <xsl:w ith-param  name="Para mTableBeha vior" sele ct="$Param TableBehav ior" />   2164       <xsl:w ith-param  name="Para mTableBeha vior" sele ct="$Param TableBehav ior" />
2150      </xsl:c all-templa te>   2165      </xsl:c all-templa te>
2151     </xsl:va riable>   2166     </xsl:va riable>
2152     2167  
2153     <!-- Cap tion Side  -->   2168     <!-- Cap tion Side  -->
2154     <!--                -->   2169     <!--                -->
2155     <xsl:var iable name ="VarCapti onSide">   2170     <xsl:var iable name ="VarCapti onSide">
2156      <xsl:va lue-of sel ect="$VarR esolvedCon textProper ties[@Name  = 'captio n-side']/@ Value" />   2171      <xsl:va lue-of sel ect="$VarR esolvedCon textProper ties[@Name  = 'captio n-side']/@ Value" />
2157     </xsl:va riable>   2172     </xsl:va riable>
2158     2173  
2159     <!-- Det ermine tab le cell wi dths -->   2174     <!-- Det ermine tab le cell wi dths -->
2160     <!--                                -->   2175     <!--                                -->
2161     <xsl:var iable name ="VarTable CellWidths AsXML">   2176     <xsl:var iable name ="VarTable CellWidths AsXML">
2162      <xsl:va riable nam e="VarEmit TableWidth sOption" s elect="$Va rContextRu le/wwproje ct:Options /wwproject :Option[@N ame = 'tab le-use-doc ument-cell -widths']/ @Value" />   2177      <xsl:va riable nam e="VarEmit TableWidth sOption" s elect="$Va rContextRu le/wwproje ct:Options /wwproject :Option[@N ame = 'tab le-use-doc ument-cell -widths']/ @Value" />
2163      <xsl:va riable nam e="VarEmit TableWidth s" select= "$VarEmitT ableWidths Option = ' true'" />   2178      <xsl:va riable nam e="VarEmit TableWidth s" select= "$VarEmitT ableWidths Option = ' true'" />
2164     2179  
2165      <xsl:if  test="$Va rEmitTable Widths">   2180      <xsl:if  test="$Va rEmitTable Widths">
2166       <xsl:c all-templa te name="T able-CellW idths">   2181       <xsl:c all-templa te name="T able-CellW idths">
2167        <xsl: with-param  name="Par amTable" s elect="$Pa ramTable"  />   2182        <xsl: with-param  name="Par amTable" s elect="$Pa ramTable"  />
2168       </xsl: call-templ ate>   2183       </xsl: call-templ ate>
2169      </xsl:i f>   2184      </xsl:i f>
2170     </xsl:va riable>   2185     </xsl:va riable>
2171     <xsl:var iable name ="VarTable CellWidths " select=" msxsl:node -set($VarT ableCellWi dthsAsXML) /*" />   2186     <xsl:var iable name ="VarTable CellWidths " select=" msxsl:node -set($VarT ableCellWi dthsAsXML) /*" />
2172     2187  
2173     <!-- Emi t <table>  element wi th class,  style, and  summary a ttrs. -->   2188     <!-- Emi t <table>  element wi th class,  style, and  summary a ttrs. -->
2174     <!--                                                                       -->   2189     <!--                                                                       -->
2175     <html:ta ble class= "{$VarClas sAttribute }">   2190     <html:ta ble class= "{$VarClas sAttribute }">
2176     2191  
2177      <!-- st yle attrib ute -->   2192      <!-- st yle attrib ute -->
2178      <!--                   -->   2193      <!--                   -->
2179      <xsl:if  test="str ing-length ($VarStyle Attribute)  &gt; 0">   2194      <xsl:if  test="str ing-length ($VarStyle Attribute)  &gt; 0">
2180       <xsl:a ttribute n ame="style ">   2195       <xsl:a ttribute n ame="style ">
2181        <xsl: value-of s elect="$Va rStyleAttr ibute" />   2196        <xsl: value-of s elect="$Va rStyleAttr ibute" />
2182       </xsl: attribute>   2197       </xsl: attribute>
2183      </xsl:i f>   2198      </xsl:i f>
2184     2199  
2185      <!-- bo rder attri bute -->   2200      <!-- bo rder attri bute -->
2186      <!--                    -->   2201      <!--                    -->
2187      <xsl:if  test="str ing-length ($VarTable Border) &g t; 0">   2202      <xsl:if  test="str ing-length ($VarTable Border) &g t; 0">
2188       <xsl:a ttribute n ame="borde r">   2203       <xsl:a ttribute n ame="borde r">
2189        <xsl: value-of s elect="$Va rTableBord er" />   2204        <xsl: value-of s elect="$Va rTableBord er" />
2190       </xsl: attribute>   2205       </xsl: attribute>
2191      </xsl:i f>   2206      </xsl:i f>
2192     2207  
2193      <!-- ce llpadding  attribute  -->   2208      <!-- ce llpadding  attribute  -->
2194      <!--                          -->   2209      <!--                          -->
2195      <xsl:if  test="str ing-length ($VarTable CellPaddin g) &gt; 0" >   2210      <xsl:if  test="str ing-length ($VarTable CellPaddin g) &gt; 0" >
2196       <xsl:a ttribute n ame="cellp adding">   2211       <xsl:a ttribute n ame="cellp adding">
2197        <xsl: value-of s elect="$Va rTableCell Padding" / >   2212        <xsl: value-of s elect="$Va rTableCell Padding" / >
2198       </xsl: attribute>   2213       </xsl: attribute>
2199      </xsl:i f>   2214      </xsl:i f>
2200     2215  
2201      <!-- ce llspacing  attribute  -->   2216      <!-- ce llspacing  attribute  -->
2202      <!--                          -->   2217      <!--                          -->
2203      <xsl:if  test="str ing-length ($VarTable CellSpacin g) &gt; 0" >   2218      <xsl:if  test="str ing-length ($VarTable CellSpacin g) &gt; 0" >
2204       <xsl:a ttribute n ame="cells pacing">   2219       <xsl:a ttribute n ame="cells pacing">
2205        <xsl: value-of s elect="$Va rTableCell Spacing" / >   2220        <xsl: value-of s elect="$Va rTableCell Spacing" / >
2206       </xsl: attribute>   2221       </xsl: attribute>
2207      </xsl:i f>   2222      </xsl:i f>
2208     2223  
2209      <!-- su mmary attr ibute -->   2224      <!-- su mmary attr ibute -->
2210      <!--                     -->   2225      <!--                     -->
2211      <xsl:at tribute na me="summar y">   2226      <xsl:at tribute na me="summar y">
2212       <xsl:v alue-of se lect="$Var TableSumma ry" />   2227       <xsl:v alue-of se lect="$Var TableSumma ry" />
2213      </xsl:a ttribute>   2228      </xsl:a ttribute>
2214     2229  
2215      <!-- Ap ply captio n template s -->   2230      <!-- Ap ply captio n template s -->
2216      <!--                            -->   2231      <!--                            -->
2217      <xsl:fo r-each sel ect="$Para mTable/wwd oc:Caption [1]">   2232      <xsl:fo r-each sel ect="$Para mTable/wwd oc:Caption [1]">
2218       <html: caption>   2233       <html: caption>
2219     2234  
2220        <xsl: if test="s tring-leng th($VarCap tionSide)  &gt; 0">   2235        <xsl: if test="s tring-leng th($VarCap tionSide)  &gt; 0">
2221         <xsl :attribute  name="sty le">   2236         <xsl :attribute  name="sty le">
2222          <xs l:value-of  select="c oncat('cap tion-side:  ', $VarCa ptionSide) " />   2237          <xs l:value-of  select="c oncat('cap tion-side:  ', $VarCa ptionSide) " />
2223         </xs l:attribut e>   2238         </xs l:attribut e>
2224        </xsl :if>   2239        </xsl :if>
2225     2240  
2226        <xsl: apply-temp lates sele ct="./*" m ode="wwmod e:content" >   2241        <xsl: apply-temp lates sele ct="./*" m ode="wwmod e:content" >
2227         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   2242         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
2228         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   2243         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
2229         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   2244         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
2230         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" />   2245         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" />
2231         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   2246         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
2232        </xsl :apply-tem plates>   2247        </xsl :apply-tem plates>
2233     2248  
2234       </html :caption>   2249       </html :caption>
2235      </xsl:f or-each>   2250      </xsl:f or-each>
2236     2251  
2237      <xsl:fo r-each sel ect="$Para mTable/wwd oc:TableHe ad|$ParamT able/wwdoc :TableBody |$ParamTab le/wwdoc:T ableFoot">   2252      <xsl:fo r-each sel ect="$Para mTable/wwd oc:TableHe ad|$ParamT able/wwdoc :TableBody |$ParamTab le/wwdoc:T ableFoot">
2238       <xsl:v ariable na me="VarSec tion" sele ct="." />   2253       <xsl:v ariable na me="VarSec tion" sele ct="." />
2239     2254  
2240       <!-- R esolve sec tion prope rties -->   2255       <!-- R esolve sec tion prope rties -->
2241       <!--                               -->   2256       <!--                               -->
2242       <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML">   2257       <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML">
2243        <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule">   2258        <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule">
2244         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property"  />   2259         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property"  />
2245         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramTable"  />   2260         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramTable"  />
2246         <xsl :with-para m name="Pa ramTable"  select="$P aramTable"  />   2261         <xsl :with-para m name="Pa ramTable"  select="$P aramTable"  />
2247         <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" />   2262         <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" />
2248        </xsl :call-temp late>   2263        </xsl :call-temp late>
2249       </xsl: variable>   2264       </xsl: variable>
2250       <xsl:v ariable na me="VarRes olvedSecti onProperti es" select ="msxsl:no de-set($Va rResolvedS ectionProp ertiesAsXM L)/wwproje ct:Propert y" />   2265       <xsl:v ariable na me="VarRes olvedSecti onProperti es" select ="msxsl:no de-set($Va rResolvedS ectionProp ertiesAsXM L)/wwproje ct:Propert y" />
2251     2266  
2252       <!-- P rocess sec tion rows  -->   2267       <!-- P rocess sec tion rows  -->
2253       <!--                         -->   2268       <!--                         -->
2254       <xsl:f or-each se lect="$Var Section/ww doc:TableR ow">   2269       <xsl:f or-each se lect="$Var Section/ww doc:TableR ow">
2255        <xsl: variable n ame="VarTa bleRow" se lect="." / >   2270        <xsl: variable n ame="VarTa bleRow" se lect="." / >
2256        <xsl: variable n ame="VarRo wPosition"  select="p osition()"  />   2271        <xsl: variable n ame="VarRo wPosition"  select="p osition()"  />
2257     2272  
2258        <html :tr>   2273        <html :tr>
2259     2274  
2260         <!--  Handle ta ble level  vertical a lign at ro w level -- >   2275         <!--  Handle ta ble level  vertical a lign at ro w level -- >
2261         <!--                                                     -- >   2276         <!--                                                     -- >
2262         <xsl :if test=" string-len gth($VarTa bleVertica lAlignment ) &gt; 0">   2277         <xsl :if test=" string-len gth($VarTa bleVertica lAlignment ) &gt; 0">
2263          <xs l:attribut e name="st yle">   2278          <xs l:attribut e name="st yle">
2264           <x sl:value-o f select=" concat('ve rtical-ali gn: ', $Va rTableVert icalAlignm ent, ';')"  />   2279           <x sl:value-o f select=" concat('ve rtical-ali gn: ', $Va rTableVert icalAlignm ent, ';')"  />
2265          </x sl:attribu te>   2280          </x sl:attribu te>
2266         </xs l:if>   2281         </xs l:if>
2267     2282  
2268         <xsl :for-each  select="$V arTableRow /wwdoc:Tab leCell">   2283         <xsl :for-each  select="$V arTableRow /wwdoc:Tab leCell">
2269          <xs l:variable  name="Var TableCell"  select=". " />   2284          <xs l:variable  name="Var TableCell"  select=". " />
2270          <xs l:variable  name="Var CellPositi on" select ="position ()" />   2285          <xs l:variable  name="Var CellPositi on" select ="position ()" />
2271     2286  
2272          <!- - Resolve  cell prope rties -->   2287          <!- - Resolve  cell prope rties -->
2273          <!- -                           -->   2288          <!- -                           -->
2274          <xs l:variable  name="Var ResolvedCe llProperti esAsXML">   2289          <xs l:variable  name="Var ResolvedCe llProperti esAsXML">
2275           <x sl:call-te mplate nam e="Propert ies-Table- Cell-Resol veProperti es">   2290           <x sl:call-te mplate nam e="Propert ies-Table- Cell-Resol veProperti es">
2276            < xsl:with-p aram name= "ParamSect ionPropert ies" selec t="$VarRes olvedSecti onProperti es" />   2291            < xsl:with-p aram name= "ParamSect ionPropert ies" selec t="$VarRes olvedSecti onProperti es" />
2277            < xsl:with-p aram name= "ParamCell Style" sel ect="$VarT ableCell/w wdoc:Style " />   2292            < xsl:with-p aram name= "ParamCell Style" sel ect="$VarT ableCell/w wdoc:Style " />
2278            < xsl:with-p aram name= "ParamRowI ndex" sele ct="$VarRo wPosition"  />   2293            < xsl:with-p aram name= "ParamRowI ndex" sele ct="$VarRo wPosition"  />
2279            < xsl:with-p aram name= "ParamColu mnIndex" s elect="$Va rCellPosit ion" />   2294            < xsl:with-p aram name= "ParamColu mnIndex" s elect="$Va rCellPosit ion" />
2280           </ xsl:call-t emplate>   2295           </ xsl:call-t emplate>
2281     2296  
2282           <! -- Width a ttribute - ->   2297           <! -- Width a ttribute - ->
2283           <! --                  - ->   2298           <! --                  - ->
2284           <x sl:if test ="$VarRowP osition =  1">   2299           <x sl:if test ="$VarRowP osition =  1">
2285            < xsl:for-ea ch select= "$VarTable CellWidths [@id = $Va rTableCell /@id][1]">   2300            < xsl:for-ea ch select= "$VarTable CellWidths [@id = $Va rTableCell /@id][1]">
2286              <xsl:varia ble name=" VarTableCe llWidth" s elect="."  />   2301              <xsl:varia ble name=" VarTableCe llWidth" s elect="."  />
2287     2302  
2288              <wwproject :Property  Name="widt h" Value=" {$VarTable CellWidth/ @width}" / >   2303              <wwproject :Property  Name="widt h" Value=" {$VarTable CellWidth/ @width}" / >
2289            < /xsl:for-e ach>   2304            < /xsl:for-e ach>
2290           </ xsl:if>   2305           </ xsl:if>
2291          </x sl:variabl e>   2306          </x sl:variabl e>
2292          <xs l:variable  name="Var ResolvedCe llProperti es" select ="msxsl:no de-set($Va rResolvedC ellPropert iesAsXML)/ wwproject: Property"  />   2307          <xs l:variable  name="Var ResolvedCe llProperti es" select ="msxsl:no de-set($Va rResolvedC ellPropert iesAsXML)/ wwproject: Property"  />
2293     2308  
2294          <!- - Valid CS S properti es -->   2309          <!- - Valid CS S properti es -->
2295          <!- -                        -->   2310          <!- -                        -->
2296          <xs l:variable  name="Var TableCellC SSProperti esAsXML">   2311          <xs l:variable  name="Var TableCellC SSProperti esAsXML">
2297           <x sl:call-te mplate nam e="CSS-Tra nslateProj ectPropert ies">   2312           <x sl:call-te mplate nam e="CSS-Tra nslateProj ectPropert ies">
2298            < xsl:with-p aram name= "ParamProp erties" se lect="$Var ResolvedCe llProperti es" />   2313            < xsl:with-p aram name= "ParamProp erties" se lect="$Var ResolvedCe llProperti es" />
2299            < xsl:with-p aram name= "ParamFrom AbsoluteUR I" select= "$ParamSpl it/@path"  />   2314            < xsl:with-p aram name= "ParamFrom AbsoluteUR I" select= "$ParamSpl it/@path"  />
2300            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" />   2315            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" />
2301           </ xsl:call-t emplate>   2316           </ xsl:call-t emplate>
2302          </x sl:variabl e>   2317          </x sl:variabl e>
2303          <xs l:variable  name="Var TableCellC SSProperti es" select ="msxsl:no de-set($Va rTableCell CSSPropert iesAsXML)/ wwproject: Property"  />   2318          <xs l:variable  name="Var TableCellC SSProperti es" select ="msxsl:no de-set($Va rTableCell CSSPropert iesAsXML)/ wwproject: Property"  />
2304     2319  
2305          <!- - Inline C SS propert ies -->   2320          <!- - Inline C SS propert ies -->
2306          <!- -                         -->   2321          <!- -                         -->
2307          <xs l:variable  name="Var InlineCSSP roperties" >   2322          <xs l:variable  name="Var InlineCSSP roperties" >
2308           <x sl:call-te mplate nam e="CSS-Inl inePropert ies">   2323           <x sl:call-te mplate nam e="CSS-Inl inePropert ies">
2309            < xsl:with-p aram name= "ParamProp erties" se lect="$Var TableCellC SSProperti es" />   2324            < xsl:with-p aram name= "ParamProp erties" se lect="$Var TableCellC SSProperti es" />
2310           </ xsl:call-t emplate>   2325           </ xsl:call-t emplate>
2311          </x sl:variabl e>   2326          </x sl:variabl e>
2312     2327  
2313          <!- - Calculat e row span  -->   2328          <!- - Calculat e row span  -->
2314          <!- -                      -->   2329          <!- -                      -->
2315          <xs l:variable  name="Var RowSpan">   2330          <xs l:variable  name="Var RowSpan">
2316           <x sl:variabl e name="Va rRowSpanHi nt" select ="$VarTabl eCell/wwdo c:Style/ww doc:Attrib ute[@name  = 'row-spa n']/@value " />   2331           <x sl:variabl e name="Va rRowSpanHi nt" select ="$VarTabl eCell/wwdo c:Style/ww doc:Attrib ute[@name  = 'row-spa n']/@value " />
2317           <x sl:choose>   2332           <x sl:choose>
2318            < xsl:when t est="strin g-length($ VarRowSpan Hint) &gt;  0">   2333            < xsl:when t est="strin g-length($ VarRowSpan Hint) &gt;  0">
2319              <xsl:value -of select ="$VarRowS panHint" / >   2334              <xsl:value -of select ="$VarRowS panHint" / >
2320            < /xsl:when>   2335            < /xsl:when>
2321            < xsl:otherw ise>   2336            < xsl:otherw ise>
2322              <xsl:value -of select ="'0'" />   2337              <xsl:value -of select ="'0'" />
2323            < /xsl:other wise>   2338            < /xsl:other wise>
2324           </ xsl:choose >   2339           </ xsl:choose >
2325          </x sl:variabl e>   2340          </x sl:variabl e>
2326     2341  
2327          <!- - Calculat e column s pan -->   2342          <!- - Calculat e column s pan -->
2328          <!- -                         -->   2343          <!- -                         -->
2329          <xs l:variable  name="Var ColumnSpan ">   2344          <xs l:variable  name="Var ColumnSpan ">
2330           <x sl:variabl e name="Va rColumnSpa nHint" sel ect="$VarT ableCell/w wdoc:Style /wwdoc:Att ribute[@na me = 'colu mn-span']/ @value" />   2345           <x sl:variabl e name="Va rColumnSpa nHint" sel ect="$VarT ableCell/w wdoc:Style /wwdoc:Att ribute[@na me = 'colu mn-span']/ @value" />
2331           <x sl:choose>   2346           <x sl:choose>
2332            < xsl:when t est="strin g-length($ VarColumnS panHint) & gt; 0">   2347            < xsl:when t est="strin g-length($ VarColumnS panHint) & gt; 0">
2333              <xsl:value -of select ="$VarColu mnSpanHint " />   2348              <xsl:value -of select ="$VarColu mnSpanHint " />
2334            < /xsl:when>   2349            < /xsl:when>
2335            < xsl:otherw ise>   2350            < xsl:otherw ise>
2336              <xsl:value -of select ="'0'" />   2351              <xsl:value -of select ="'0'" />
2337            < /xsl:other wise>   2352            < /xsl:other wise>
2338           </ xsl:choose >   2353           </ xsl:choose >
2339          </x sl:variabl e>   2354          </x sl:variabl e>
2340     2355  
2341          <!- - Emit cel l -->   2356          <!- - Emit cel l -->
2342          <!- -            -->   2357          <!- -            -->
2343          <ht ml:td>   2358          <ht ml:td>
2344           <! -- Style a ttribute - ->   2359           <! -- Style a ttribute - ->
2345           <! --                  - ->   2360           <! --                  - ->
2346           <x sl:if test ="string-l ength($Var InlineCSSP roperties)  &gt; 0">   2361           <x sl:if test ="string-l ength($Var InlineCSSP roperties)  &gt; 0">
2347            < xsl:attrib ute name=" style">   2362            < xsl:attrib ute name=" style">
2348              <xsl:value -of select ="$VarInli neCSSPrope rties" />   2363              <xsl:value -of select ="$VarInli neCSSPrope rties" />
2349            < /xsl:attri bute>   2364            < /xsl:attri bute>
2350           </ xsl:if>   2365           </ xsl:if>
2351     2366  
2352           <! -- Row spa n attribut e -->   2367           <! -- Row spa n attribut e -->
2353           <! --                      -->   2368           <! --                      -->
2354           <x sl:if test ="number($ VarRowSpan ) &gt; 0">   2369           <x sl:if test ="number($ VarRowSpan ) &gt; 0">
2355            < xsl:attrib ute name=" rowspan">   2370            < xsl:attrib ute name=" rowspan">
2356              <xsl:value -of select ="$VarRowS pan" />   2371              <xsl:value -of select ="$VarRowS pan" />
2357            < /xsl:attri bute>   2372            < /xsl:attri bute>
2358           </ xsl:if>   2373           </ xsl:if>
2359     2374  
2360           <! -- Column  span attri bute -->   2375           <! -- Column  span attri bute -->
2361           <! --                         -->   2376           <! --                         -->
2362           <x sl:if test ="number($ VarColumnS pan) &gt;  0">   2377           <x sl:if test ="number($ VarColumnS pan) &gt;  0">
2363            < xsl:attrib ute name=" colspan">   2378            < xsl:attrib ute name=" colspan">
2364              <xsl:value -of select ="$VarColu mnSpan" />   2379              <xsl:value -of select ="$VarColu mnSpan" />
2365            < /xsl:attri bute>   2380            < /xsl:attri bute>
2366           </ xsl:if>   2381           </ xsl:if>
2367     2382  
2368           <! -- Recurse  -->   2383           <! -- Recurse  -->
2369           <! --          -->   2384           <! --          -->
2370           <x sl:apply-t emplates s elect="./* " mode="ww mode:conte nt">   2385           <x sl:apply-t emplates s elect="./* " mode="ww mode:conte nt">
2371            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" />   2386            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" />
2372            < xsl:with-p aram name= "ParamCarg o" select= "$VarCargo " />   2387            < xsl:with-p aram name= "ParamCarg o" select= "$VarCargo " />
2373            < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" />   2388            < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" />
2374            < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" />   2389            < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" />
2375            < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" />   2390            < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" />
2376           </ xsl:apply- templates>   2391           </ xsl:apply- templates>
2377          </h tml:td>   2392          </h tml:td>
2378         </xs l:for-each >   2393         </xs l:for-each >
2379     2394  
2380        </htm l:tr>   2395        </htm l:tr>
2381       </xsl: for-each>   2396       </xsl: for-each>
2382      </xsl:f or-each>   2397      </xsl:f or-each>
2383     2398  
2384     </html:t able>   2399     </html:t able>
2385     2400  
2386     <!-- Tab le Footnot es -->   2401     <!-- Tab le Footnot es -->
2387     <!--                   -->   2402     <!--                   -->
2388     <xsl:cal l-template  name="Con tent-Notes ">   2403     <xsl:cal l-template  name="Con tent-Notes ">
2389      <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" />   2404      <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" />
2390      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  />   2405      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  />
2391      <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" />   2406      <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" />
2392      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />   2407      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />
2393      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " />   2408      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " />
2394      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />   2409      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
2395     </xsl:ca ll-templat e>   2410     </xsl:ca ll-templat e>
2396     2411  
2397     <!-- Dro pdown End  -->   2412     <!-- Dro pdown End  -->
2398     <!--                -->   2413     <!--                -->
2399     <xsl:if  test="$Par amTableBeh avior/@dro pdown = 'e nd'">   2414     <xsl:if  test="$Par amTableBeh avior/@dro pdown = 'e nd'">
2400      <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ksDropDown .fWriteDIV Close();</ html:scrip t>   2415      <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ksDropDown .fWriteDIV Close();</ html:scrip t>
2401     </xsl:if >   2416     </xsl:if >
2402    </xsl:tem plate>   2417    </xsl:tem plate>
2403     2418  
2404     2419  
2405    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:co ntent">   2420    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:co ntent">
2406     <xsl:par am name="P aramSplits " />   2421     <xsl:par am name="P aramSplits " />
2407     <xsl:par am name="P aramCargo"  />   2422     <xsl:par am name="P aramCargo"  />
2408     <xsl:par am name="P aramLinks"  />   2423     <xsl:par am name="P aramLinks"  />
2409     <xsl:par am name="P aramTOCDat a" />   2424     <xsl:par am name="P aramTOCDat a" />
2410     <xsl:par am name="P aramSplit"  />   2425     <xsl:par am name="P aramSplit"  />
2411     2426  
2412     <!-- Abo rted? -->   2427     <!-- Abo rted? -->
2413     <!--           -->   2428     <!--           -->
2414     <xsl:if  test="not( wwprogress :Abort())" >   2429     <xsl:if  test="not( wwprogress :Abort())" >
2415      <xsl:ca ll-templat e name="Fr ame">   2430      <xsl:ca ll-templat e name="Fr ame">
2416       <xsl:w ith-param  name="Para mFrame" se lect="." / >   2431       <xsl:w ith-param  name="Para mFrame" se lect="." / >
2417       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />   2432       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />
2418       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >   2433       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >
2419       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >   2434       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >
2420       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >   2435       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >
2421      </xsl:c all-templa te>   2436      </xsl:c all-templa te>
2422     </xsl:if >   2437     </xsl:if >
2423    </xsl:tem plate>   2438    </xsl:tem plate>
2424     2439  
2425     2440  
2426    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:te xtrun">   2441    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:te xtrun">
2427     <xsl:par am name="P aramSplits " />   2442     <xsl:par am name="P aramSplits " />
2428     <xsl:par am name="P aramCargo"  />   2443     <xsl:par am name="P aramCargo"  />
2429     <xsl:par am name="P aramLinks"  />   2444     <xsl:par am name="P aramLinks"  />
2430     <xsl:par am name="P aramSplit"  />   2445     <xsl:par am name="P aramSplit"  />
2431     2446  
2432     <xsl:cal l-template  name="Fra me">   2447     <xsl:cal l-template  name="Fra me">
2433      <xsl:wi th-param n ame="Param Frame" sel ect="." />   2448      <xsl:wi th-param n ame="Param Frame" sel ect="." />
2434      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  />   2449      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  />
2435      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" />   2450      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" />
2436      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />   2451      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />
2437      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />   2452      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
2438     </xsl:ca ll-templat e>   2453     </xsl:ca ll-templat e>
2439    </xsl:tem plate>   2454    </xsl:tem plate>
2440     2455  
2441     2456  
2442    <xsl:temp late name= "Frame">   2457    <xsl:temp late name= "Frame">
2443     <xsl:par am name="P aramFrame"  />   2458     <xsl:par am name="P aramFrame"  />
2444     <xsl:par am name="P aramSplits " />   2459     <xsl:par am name="P aramSplits " />
2445     <xsl:par am name="P aramCargo"  />   2460     <xsl:par am name="P aramCargo"  />
2446     <xsl:par am name="P aramLinks"  />   2461     <xsl:par am name="P aramLinks"  />
2447     <xsl:par am name="P aramSplit"  />   2462     <xsl:par am name="P aramSplit"  />
2448     2463  
2449     <!-- Get  splits fr ame -->   2464     <!-- Get  splits fr ame -->
2450     <!--                    -->   2465     <!--                    -->
2451     <xsl:for -each sele ct="$Param Splits[1]" >   2466     <xsl:for -each sele ct="$Param Splits[1]" >
2452      <xsl:va riable nam e="VarSpli tsFrame" s elect="key ('wwsplits -frames-by -id', $Par amFrame/@i d)[@docume ntID = $Pa ramSplit/@ documentID ]" />   2467      <xsl:va riable nam e="VarSpli tsFrame" s elect="key ('wwsplits -frames-by -id', $Par amFrame/@i d)[@docume ntID = $Pa ramSplit/@ documentID ]" />
2453     2468  
2454      <!-- Fr ame known?  -->   2469      <!-- Fr ame known?  -->
2455      <!--                -->   2470      <!--                -->
2456      <xsl:if  test="cou nt($VarSpl itsFrame)  = 1">   2471      <xsl:if  test="cou nt($VarSpl itsFrame)  = 1">
2457       <!-- T humbnail  file exis ts for thi s frame ? -->   2472       <!-- T humbnail
? -->
2458       <!--                                            -->   2473       <!--             
-->
2459       <xsl:f or-each se lect="$Glo balFiles[1 ]">   2474       <xsl:f or-each se lect="$Glo balFiles[1 ]">
2460        <xsl: variable n ame="Var
Thumbnail Exists " select=" count(key( 'wwfiles-f iles-by-pa th',  $VarSplits Frame/wwsp lits:Thumb nail /@path)[1] ) &gt; 0 " />
  2475        <xsl: variable n ame="Var Splits Thumbnail
" select="
$VarSplits Frame/wwsp lits:Thumb nail
" />
        2476        <xsl: variable n ame="VarTh umbnailDef ined" sele ct="count( key('wwfil es-files-b y-path', $ VarSplitsT humbnail/@ path)[1])  &gt; 0" />
2461     2477  
        2478        <!--  Emit image  -->
        2479        <!--              -->
2462        <xsl: choose>   2480        <xsl: choose>
2463         < xsl:when   test="$Var Thumbnail Exists" >   2481         < !--  
Thumbnail  -- >
2464          <xs l:call-tem plate name ="Frame- Thumbn a il ">   2482         <!--             -->
        2483         <xsl :when test ="$VarThum bnailDefin ed">
        2484          <!- - Emit mar kup -->
        2485          <!- -              -->
        2486          <xs l:call-tem plate name ="Frame- M a rkup ">
2465           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" />   2487           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" />
2466           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />   2488           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
2467           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" />   2489           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" />
2468           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />   2490           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
2469           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />   2491           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
        2492           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" />
        2493           <x sl:with-pa ram name=" ParamThumb nail" sele ct="true() " />
2470          </x sl:call-te mplate>   2494          </x sl:call-te mplate>
2471         </xs l:when>   2495         </xs l:when>
2472     2496  
        2497         <!--  Fullsize  -->
        2498         <!--            -->
2473         <xsl :otherwise >   2499         <xsl :otherwise >
2474          <xs l:call-tem plate name ="Frame- F u llSize ">   2500          <!- - Note num bering -->
        2501          <!- -                 -->
        2502          <xs l:variable  name="Var Notes" sel ect="$Para mFrame//ww doc:Note"  />
        2503          <xs l:variable  name="Var NoteNumber ingAsXML">
        2504           <x sl:call-te mplate nam e="Notes-N umber">
        2505            < xsl:with-p aram name= "ParamNote s" select= "$VarNotes " />
        2506           </ xsl:call-t emplate>
        2507          </x sl:variabl e>
        2508          <xs l:variable  name="Var NoteNumber ing" selec t="msxsl:n ode-set($V arNoteNumb eringAsXML )" />
        2509  
        2510          <!- - Frame ca rgo -->
        2511          <!- -              -->
        2512          <xs l:variable  name="Var Cargo" sel ect="$Para mCargo/*[l ocal-name( ) != 'Note Numbering' ]/.. | $Va rNoteNumbe ring" />
        2513  
        2514          <!- - Emit mar kup -->
        2515          <!- -              -->
        2516          <xs l:call-tem plate name ="Frame- Mark u p ">
2475           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" />   2517           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" />
2476           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />   2518           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
2477           <x sl:with-pa ram name=" ParamCargo " select=" $ P ar am Cargo" />   2519           <x sl:with-pa ram name=" ParamCargo " select=" $ V ar
Cargo" />
2478           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />   2520           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
2479           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />   2521           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
        2522           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" />
        2523           <x sl:with-pa ram name=" ParamThumb nail" sele ct="false( )" />
2480          </x sl:call-te mplate>   2524          </x sl:call-te mplate>
2481         </xs l:otherwis e>   2525         </xs l:otherwis e>
2482        </xsl :choose>   2526        </xsl :choose>
2483       </xsl: for-each>   2527       </xsl: for-each>
2484      </xsl:i f>   2528      </xsl:i f>
2485     </xsl:fo r-each>   2529     </xsl:fo r-each>
2486    </xsl:tem plate>   2530    </xsl:tem plate>
2487     2531  
2488     2532  
2489    <xsl:temp late name= "Frame- Thumbn a il ">   2533    <xsl:temp late name= "Frame- M a rkup ">
2490     <xsl:par am name="P aramFrame"  />   2534     <xsl:par am name="P aramFrame"  />
2491     <xsl:par am name="P aramSplits " />   2535     <xsl:par am name="P aramSplits " />
2492     <xsl:par am name="P aramCargo"  />   2536     <xsl:par am name="P aramCargo"  />
2493     <xsl:par am name="P aramLinks"  />   2537     <xsl:par am name="P aramLinks"  />
2494     <xsl:par am name="P aramSplit"  />   2538     <xsl:par am name="P aramSplit"  />
        2539     <xsl:par am name="P aramSplits Frame" />
        2540     <xsl:par am name="P aramThumbn ail" />
2495     2541  
2496     <xsl:var iable name ="Var Behavi o rFram e" select= "
$Param Ca r go / wwb e h a viors:B e h a vio r s//wwbeh a v i or s : Frame [ @ i d  =  $Param
Frame/@id ][1] " />
  2542     <!-- Con text Rule  -->
        2543     <!--                -->
        2544     <xsl:var iable name ="Var C o ntextRul e" select= " wwprojext: GetContext Rule('Grap hic',  $Param SplitsF r ame / @styl e n a m e , $P a
r
a mSpl i t s
Frame / @
d ocumentID,  $Param Splits Frame/@id ) " />
2497     2545  
2498     <!--  No te s  -->   2546     <!--  Genera te ?  -->
2499     <!--        
-->
  2547     <!--              -->
2500     <xsl:var iable name ="Var No te s " select=" $ P ar amFram e/
/ww d o
c
:
N
o
t
e" />
  2548     <xsl:var iable name ="Var Genera te OutputOpti on " select=" $ V ar ContextRul e/ wwproject: Options /ww pr o je c t : Option[@ N ame = 'gen erate- o utpu t ']/@Valu e" />
        2549     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" />
        2550     <xsl:if  test="$Var GenerateOu tput">
        2551      <!-- De termine im age path - ->
        2552      <!--                        - ->
        2553      <xsl:va riable nam e="VarImag ePath">
        2554       <xsl:c hoose>
        2555        <xsl: when test= "$ParamThu mbnail">
        2556         <xsl :value-of  select="$P aramSplits Frame/wwsp lits:Thumb nail/@path " />
        2557        </xsl :when>
2501     2558  
2502     <!-- Not e numberin g -->   2559        <xsl: otherwise>
2503     <!--                  -->   2560           <xsl: v a lu e - o f  select="$ P ar amSpli t
s Frame/@pat h " />
2504     <xsl:var iable name ="VarNoteN umberingAs XML">   2561          </xsl: o t h e rwis e>
2505      <xsl:ca ll-templat e name="No tes-Number ">   2562         </xsl: choos e>
2506       
<xsl: with-param  n a m e ="ParamN o tes"  select="$ V ar No t e s
" />
  2563      </xsl:v ariable>
2507      
</xsl: call- t
e mplat e>
       
2508     
</xsl: variabl e>
       
2509     <xsl:var iable name ="VarNoteN umbering"  select="ms xsl:node-s et($VarNot eNumbering AsXML)" />        
2510     2564  
2511     
<!--  Fram e
  c a r g
o -->
  2565        <!--  Acc e ss   im a
g e inf o -->
2512     
<!--              
-->
  2566        <!--                      -->
2513     
<xsl:varia ble name=" Var C a r g
o" select= " $Para m C a r g o/*[local- n am e () != 'No t eNumberi n g']/.. |  $Var NoteNu m berin g
" />
  2567        <xsl:varia ble name=" Var Im a
g eInf o" select= " wwi m
a
g i n g:G e
t I n fo( $Var I m a g ePath) " />
2514     2568  
2515     
<!--  G et  i m ag pa t h  -->
  2569        <!--  D et er m in
t ype  -->
2516     
<!--                  -->
  2570        <!--                  -->
2517     <xsl:for -each sele ct="$Param Splits[1]" >   2571      <xsl:va riable nam e="VarVect orImageAsT ext">
2518      <xsl:va riable nam e="Var Split s F r a m
e" select= " key('wwspl its-frames -by-id',  $ P ar
a mF r a m
e /@id)[@doc um e n t ID  =  $Pa r amSpl i
t /@doc u m e ntID] " />
  2572       <xsl:c all-templa te name="I mages-Vect orImageFor mat">
        2573        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" />
        2574       </xsl: call-templ ate>
        2575      </xsl:v ariable>
        2576      <xsl:va riable nam e="VarVect orImage" s elect="$Va rVectorIma geAsText =  string(tr ue())" />
        2577      <xsl:va riable nam e="VarRast erImageAsT ext">
        2578       <xsl:c all-templa te name="I mages-Rast erImageFor mat">
        2579        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" />
        2580       </xsl: call-templ ate>
        2581      </xsl:v ariable>
        2582      <xsl:va riable nam e="Var Ra s te r I m ag e" select= "
$ V ar R a ste r I m ag e AsT e x t
 =  st r
i ng( t r u
e ()) " />
2519     2583  
2520      <!--  Graph i c   Rul e -->   2584      <!--  Em i t   imag e -->
2521      <!--                 -->   2585      <!--             
-->
2522      <xsl:va riable nam e="VarOver rideRule"  select="ww projext:Ge tOverrideR ule('Graph ic', $VarS plitsFrame /@stylenam e, $VarSpl itsFrame/@ documentID , $VarSpli tsFrame/@i d)" />   2586      <xsl:ch oose>
2523      <xsl:va riable nam e="VarGene rateOutput Option" se lect="$Var OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'gen erate-outp ut']/@Valu e" />   2587       <!--  V ect
o
r  Imag e
 -->
2524      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" />   2588       <!--                
-->
2525      <xsl:if  test="$Va rGenerateO utput">   2589       <xsl:w hen test=" $VarVector Image">
2526       <!--  Resolve pr oj ect  pr o pe r ti e s  -->   2590        <xsl: call-templ ate name=" Frame-Mark up-Vector" >
2527       <!--                                 -->   2591         <xsl :with-para m name="Pa ramFrame"  select="$P aramFrame"  />
2528       
<xsl: v ar i a ble  name=" V ar R e
s o l v e d P
r o p ert i esA s XML "
>
  2592         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
2529        
<xsl: call- t em p l a te  name="P
r
o per t i e s- R
e
s olv e Ov e
r rid e
Rule"
>
  2593         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
2530         <xsl :with-para m name="Pa ram Properti e s " select=" $Var OverrideRu le/wwproje ct:Propert ies/wwproj e ct:Pr o perty " />   2594         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
2531         <xsl :with-para m name="Pa ram Co n textSty l e " select=" $Param Fra m e " />   2595         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
        2596           <xsl: with-p ar
a m  name=" P ar amSplitsFr am e s e l
e ct="$ P a r amS p l i t s Frame "  / >
        2597           <xsl: wi t h- p
a ram  name="P a r amC o n t
e xt R ul e s
e l e ct="$Va r Cont e xt Rule"  / >
        2598         <xsl :with-para m name="Pa ram Imag e Info " select=" $Var Imag e Inf o
" />
        2599         <xsl :with-para m name="Pa ram Thumb n ai l
" select=" $Param Thu m bnail " />
2532        </xsl :call-temp late>   2600        </xsl :call-temp late>
2533       </xsl: variabl e
>
  2601       </xsl: wh e n >
2534       <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / >        
2535     2602  
2536       <!--  CSS prop er ti e s  -->   2603       <!--  Rast er  Imag e
 -->
2537       <!--                    -->   2604       <!--                
-->
2538       <xsl: variabl e   n am e
="
Var CSSProp er ti e sAsXML ">
  2605       <xsl: wh e
n  t e st =" $ Var Rast er Imag e
">
2539        <xsl: call-templ ate name=" CSS-T ra nslateProj e ctP r o p er t i e s ">   2606        <xsl: call-templ ate name=" F ra m e -Ma r ku p -Ras t
e r ">
2540         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties[(@Na me != 'wid th') and ( @Name != ' height')]"  />   2607         <xsl :with-para m name="Pa ramFr a m
e
" select=" $Param Fr a me " />
2541         <xsl :with-para m name="Pa ramFr o m Absolut e URI " select=" $Param Split/@p a th " />        
2542         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   2608         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
        2609         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
        2610         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
        2611         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
        2612         <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" />
        2613         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule"  />
        2614         <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" />
        2615         <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / >
2543        </xsl :call-temp late>   2616        </xsl :call-temp late>
2544       </xsl: variabl e
>
  2617       </xsl: wh e n >
2545       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / >   2618      </xsl:c hoose>
2546       <xsl:v ariable na me="VarInl ineCSSProp erties">   2619     
</xsl: if >
2547        <xsl: call-templ ate name=" CSS-Inline Properties ">   2620    
</xsl: temp l at e>
2548         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties [string-le ngth(@Valu e) &gt; 0] " />        
2549          </xsl: call-templ ate >        
2550         </xsl: variab l
e>
       
2551     2621  
2552       <!-- W idth/Heigh t -->        
2553       <!--                -->        
2554       <xsl:v ariable na me="VarIma geInfo" se lect="wwim aging:GetI nfo($VarSp litsFrame/ wwsplits:T humbnail/@ path)" />        
2555       <xsl:v ariable na me="VarWid th" select ="number($ VarImageIn fo/@width) " />        
2556       <xsl:v ariable na me="VarHei ght" selec t="number( $VarImageI nfo/@heigh t)" />        
2557     2622  
2558       <!-- S rc -->   2623    <xsl:temp late name= "Frame-Mar kup-Vector ">
2559       <!--       -->   2624     <xsl:par am name="P aramFrame"  />
2560       <xsl:v ariable na me="VarSrc " select=" wwuri:GetR elativeTo( $VarSplits Frame/wwsp lits:Thumb nail/@path , $ParamSp lit/@path) " />   2625     <xsl:par am name="P aramSplits " />
        2626     <xsl:par am name="P aramCargo"  />
        2627     <xsl:par am name="P aramLinks"  />
        2628     <xsl:par am name="P aramSplit"  />
        2629     <xsl:par am name="P aramSplits Frame" />
        2630     <xsl:par am name="P aramContex tRule" />
        2631     <xsl:par am name="P aramImageI nfo" />
        2632     <xsl:par am name="P aramThumbn ail" />
2561     2633  
2562         <!--  Define Use  Map  -->   2634     <xsl:cho ose>
2563         <!--                   -->   2635      
<!--  SVG  -->
2564       <xsl: vari a b l
e name=" Va r Us e
Ma
p
">
  2636      
<!--     
-->
2565        <xsl: text>#</xs l:text>   2637      <xsl:wh en test="$ ParamImage Info/@form at = 'svg' ">
2566        <xsl: v a lu e -of  select="$ V ar Splits Frame /@document ID " />   2638       <xsl: c a
l l-templat e name=" F r am e - Ma rku p -Vector-SV G ">
2567        <xsl: text>_</xs l:text>   2639        <xsl: with-p a ram nam e ="ParamFra me"  select="$ P ar am Frame
" />
2568        <xsl: v a lu e -of  select="$ V ar
Split sFrame/@id " />
  2640        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />
2569         </xsl: variab l
e>
  2641        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  />
        2642        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  />
        2643        <xsl: with-p a ram nam e ="ParamSpl it"  select="$ P ar am Split
" />
        2644        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " />
        2645        <xsl: with-param  name="Par amContextR ule" selec t="$ParamC ontextRule " />
        2646        <xsl: with-param  name="Par amImageInf o" select= "$ParamIma geInfo" />
        2647        <xsl: with-param  name="Par amThumbnai l" select= "$ParamThu mbnail" />
        2648       </xsl: call-templ ate>
        2649      </xsl:w hen>
        2650     </xsl:ch oose>
        2651    
</xsl: temp l at e>
2570     2652  
2571       <!-- A lt Text -- >        
2572       <!--           -- >        
2573       <xsl:v ariable na me="VarAlt Text">        
2574        <xsl: call-templ ate name=" Images-Alt Text">        
2575         <xsl :with-para m name="Pa ramFrame"  select="$P aramFrame"  />        
2576         <xsl :with-para m name="Pa ramBehavio rFrame" se lect="$Var BehaviorFr ame" />        
2577        </xsl :call-temp late>        
2578       </xsl: variable>        
2579     2653  
2580       <!-- L ong Descri ption -->   2654    <xsl:temp late name= "Frame-Mar kup-Vector -SVG">
2581       <!--                    -->   2655     
<xsl: p ar
a m  name=" P ar amF r ame "  / >
2582         <xsl: v ar i a ble  name=" V ar LongDesc r iption "
>
  2656     
<xsl:
p
a ram  name=" P a
r amS p l i ts "  / >
2583          <xsl: call-tem p l a te  name=" Im a ges-LongDe sc r i p t i on "
>
  2657     
<xsl:
param name ="Param C ar go " />
2584           <xsl: with- param name ="Param SplitsFram e" select= "$V ar SplitsFram e " />   2658     
<xsl:
param name ="Param L i nk s
" />
2585           <xsl: with- param name ="Param Behav i orFrame"  s elect="$Va rBehaviorF rame " />   2659     <xsl:par am name="P aramSplit"  />
2586        </xsl :call-temp late>   2660     <xsl:par am name="P aramSplits Frame" />
2587       </xsl: variable>   2661     <xsl:par am name="P aramContex tRule" />
        2662     <xsl:par am name="P aramImageI nfo" />
        2663     <xsl:par am name="P aramThumbn ail" />
2588     2664  
2589         <!--  G e t  
r ul e
 -->
  2665     
<!--  Acc e ss   f r ame b e havior  -->
2590         <!--           
-->
  2666     
<!--                           -->
2591         <xsl:varia ble name=" Var Cont e xtRul e" select= " wwprojext: GetContext Rul e
(' Grap h ic', $V a rSpl i t s F rame /@ s t y lename, $V arSpl i tsFrame/@ d ocumentID , $ V ar Splits Frame/@id)
" />
  2667     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] ">
        2668      
<xsl:varia ble name=" Var B e haviorFram e" select= " k e y (' wwbe h
a v i or s -f rame
s -b y - i
d ' , $ P ar am Frame/@id) [1] " />
2592     2669  
2593       <!-- T ag -->   2670      <!-- Re solve proj ect proper ties -->
2594         <!--     
-->
  2671      
<!--                                -->
2595       
<xsl: v ar i a ble  name=" V ar T a g Propert y " select=" $ V ar
ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y [@Name = ' tag']/@Val ue " />
  2672      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" >
2596       
<xsl: v ar i a ble  name=" V ar
T
a g "
>
  2673       <xsl:c all-templa te name="P roperties- ResolveCon textRule">
2597        <xsl: choose>   2674        <xsl: with-param  name="Par amDocument Context" s elect="$Pa ramFrame"  />
2598         <xsl :when test ="string-l ength($Var TagPropert y) &gt; 0" >   2675          <xsl: with-p ar
a m  name=" P ar
a m Propert ies " select=" $ P ar am ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y
" />
2599            <xsl: v a lu e - o f  select="$ V ar T a gP r op e rty " />   2676        <xsl: with-param  name="Par amStyleNam e" select= "$ParamFra me/@stylen ame" />
2600           </xsl: wh e n >   2677          <xsl: with-p ar
a m  name=" P ar amStyle T ype" selec t="'Gr a phic' "  / >
        2678        
<xsl: with-p a ram nam e ="ParamC o ntextStyle "  select="$ P ar
a mF r am e
" />
        2679       
</xsl: call-templ at e
>
        2680      </xsl:v ariable>
        2681      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" />
2601     2682  
2602         <xsl :otherwise >   2683      <!-- CS S properti es -->
2603            <
xsl: v al ue - of s e
l ec t ="'img'" / >
  2684      <!--                  -->
2604           </xsl: othe r w i s e>   2685      <xsl:va riable nam e="VarCSSP ropertiesA sXML">
2605          </xsl:c hoos e>   2686       <xsl:c all-templa te name="C SS-Transla teProjectP roperties" >
2606         </xsl:vari able>   2687        <xsl: with-param  name="Par amProperti es" select ="$VarReso lvedProper ties[(@Nam e != 'widt h') and (@ Name != 'h eight')]"  />
        2688        <xsl: with-param  name="Par amFromAbso luteURI" s elect="$Pa ramSplit/@ path" />
        2689        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />
        2690       
< / xsl: c al l - t e mp l a t e >
        2691      
</xsl: va r
i abl e>
        2692      <xsl:va riable nam e="VarCSSP roperties"  select="m sxsl:node- set($VarCS SPropertie sAsXML)/ww project:Pr operty" />
        2693      <xsl:va riable nam e="VarInli neCSSPrope rties">
        2694       <xsl:c all-templa te name="C SS-InlineP roperties" >
        2695        <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties[ string-len gth(@Value ) &gt; 0]"  />
        2696       
</xsl:c all-templa t e>
        2697      
</xsl:vari able>
2607     2698  
2608         <!--  Graph i c elem e n t -->   2699      
<!--  W i dth/H e igh t -->
2609         <!--                    -->   2700      
<!--               
-->
2610       <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} ">   2701      <xsl:va riable nam e="VarByRe ferenceGra phicsUseDo cumentDime nsionsOpti on" select ="$ParamCo ntextRule/ wwproject: Options/ww project:Op tion[@Name  = 'by-ref erence-use -document- dimensions ']/@Value"  />
2611        <!--  Class attr ibute -->   2702      <xsl:va riable nam e="VarByRe ferenceGra phicsUseDo cumentDime nsions" se lect="(str ing-length ($VarByRef erenceGrap hicsUseDoc umentDimen sionsOptio n) = 0) or  ($VarByRe ferenceGra phicsUseDo cumentDime nsionsOpti on = 'true ')" />
2612        <!--                   -->   2703      <xsl:va riable nam e="VarWidt h">
2613        <xsl: a t
t
r ib u te  na me="c l ass ">
  2704       <xsl:c hoose>
2614         <xsl :value-of  select=" wwstri n g:CSSClass Na m
e
($Param Fra m
e
/@ s t ylename )" />
  2705        <xsl: when  t es t ="$Pa r amTh u mb na i l
">
        2706         <xsl :value-of  select="
n u m b e r ($Param I m ag e Info /@ wid t h )" />
        2707        </xsl :when>
2615     2708  
2616         <!--  Additiona l CSS clas ses -->   2709        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'">
2617         <!--                           -->   2710           <
xsl: choos e>
2618         <xsl :variable  name="VarA dditionalC SSClassesO ption" sel ect="norma lize-space ($VarConte xtRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'additiona l-css-clas ses']/@Val ue)" />   2711          <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions)  or (number ($ParamIma geInfo/@wi dth) = 0)" >
2619         <xsl :if test=" string-len gth($VarAd ditionalCS SClassesOp tion) &gt;  0">   2712           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." />
2620          <xs l:text> </ xsl:text>        
2621          <xs l:value-of  select="$ VarAdditio nalCSSClas sesOption"  />        
2622         </xs l:if>        
2623        
< / xsl: attribut e>
       
2624     2713  
2625        <!--  Src attrib ute -->   2714           <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' width']/@v alue), 'pt ', 'px'))"  />
2626        <!--                 -->   2715            </xsl: wh e n >
2627        <xsl: attribute  name="src" >        
2628         <xsl :value-of  select="$V arSrc" />        
2629        
</xsl: attribut e
>
       
2630     2716  
2631        <!--  Width attr ibute -->   2717            <xsl: o t h e
r w i se >
2632        <!--                   -->   2718             <xsl: v a l u
e -of   select=" n umber($P a ramI m ag e Info/@ width ) "  / >
2633        
<xsl: if  t
e st="$Va r W i dth &gt; 0 " >
  2719          < / xsl:
o
t he r w i se >
2634         
<xsl:
a ttrib u t e
 
n
a
m
e =" width
"
>
  2720         </xs l: choos e>
2635          <
xsl: value- o f selec t ="$Va r W i dth"/ >
  2721        </xsl : when >
2636         </xs l: attribut e>        
2637        </xsl : if >        
2638     2722  
2639        <!--  Height att ribute -->   2723        <xsl: o t h e
r w i se >
2640        <!--                    -->   2724         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  />
2641        <xsl: if  t
e st="$Va r He i ght &gt; 0 " >
  2725        
< / xsl: o t
he rw i se >
2642           <
xsl: attribu t e name=" he
i ght" >
  2726       </xsl: choose>
2643            <xsl:va
l u e -of   sel e ct =" $ VarHeight" / >
  2727      </xsl:v ariable>
2644           < / xsl: a t
t
r ib u te >
  2728      
<xsl:va riab l
e
  nam e
="
VarHeight"
>
2645        </xsl : if >   2729       <xsl:c hoose>
        2730        
<
xsl: when  t es t ="$Pa r amTh u mbnail" >
        2731         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  />
        2732        </xsl : when >
2646     2733  
2647        <!--  Style attr ibute -->   2734        
<xsl: wh e n   t e s t="$ P ar amSp li tsF r am e /@by r ef = ' t ru e ' "
>
2648        <!--                   -->   2735         <
xsl: choos e>
2649        <xsl: if test="s tring-leng th($VarInl ineCSSProp erties) &g t; 0">   2736          <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions)  or (number ($ParamIma geInfo/@he ight) = 0) ">
2650         <xsl :attribute  name="sty le">   2737           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." />
2651            <xsl: valu e -of   sel e c t="$ V ar In li neCSSP r op e
r
t i e s "  / >
       
2652         < / xsl: attribut e>        
2653        </xsl :if>        
2654     2738  
2655        <!--  Alt attrib ute -->   2739           <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' height']/@ value), 'p t', 'px')) " />
2656        <!--                 -->   2740            </xsl: wh e n >
2657        <xsl: attribute  name="alt" >        
2658         <xsl :value-of  select="$V arAltText"  />        
2659        
</xsl: attribut e
>
       
2660     2741  
2661        <!--  Longdesc a ttribute - ->   2742            <xsl: o t he r w i
s e >
2662        <!--                      - ->   2743             <xsl:value -of select =" number( $ P ar amIma g
e Info/@he i gh t ) " />
2663        <xsl: if test="s tring-leng th($VarLon gDescripti on) &gt; 0 ">   2744          </x sl:otherwi se>
2664         
<xsl: at t
r
i bute name= "longde s c" >
  2745         </xs l: choos e>
2665          
<xsl:value -of select ="
$ V ar Lon g D e scr i p t ion " />
  2746        </xsl : when >
2666         </xs l: attribut e>        
2667        </xsl : if >        
2668     2747  
2669        <!--  Usemap att ribute -->   2748        <xsl: otherwise>
2670        <!--                    -->   2749         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  />
2671        <xsl: attribute  name="usem ap">   2750        </xsl :otherwise >
2672         <xsl :value-of  select="$V arUseMap"  />   2751       </xsl: choose>
2673          < / xsl: a t
t
r
i bu t e >
  2752      </xsl:v ariable>
2674        <xsl: attribute  name=" bor d er ">   2753  
2675         <xsl :value-of  select=" '0' "   />   2754      <!-- Sr c -->
        2755      <!--      -->
        2756      <xsl:va riable nam e="VarSrc"  select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " />
        2757  
        2758      <!-- Al t Text -->
        2759      <!--           -->
        2760      <xsl:va riable nam e="VarAltT ext">
        2761       <xsl:c all-templa te name="I mages-AltT ext">
        2762        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  />
        2763        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" />
        2764       </xsl: call-templ ate>
        2765      </xsl:v ariable>
        2766  
        2767      <!-- Lo ng Descrip tion -->
        2768      <!--                    -->
        2769      <xsl:va riable nam e="VarLong Descriptio n">
        2770       <xsl:c all-templa te name="I mages-Long Descriptio n">
        2771        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " />
        2772        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" />
        2773       </xsl: call-templ ate>
        2774      </xsl:v ariable>
        2775  
        2776      <!-- SV G object t ag info:                                               -->
        2777      <!--    http://jol iclic.free .fr/html/o bject-tag/ en/object- svg.html   -->
        2778      <!--    http://vol ity.org/wi ki/index.c gi?SVG_Sca ling                  -->
        2779      <!--                                                                      -->
        2780  
        2781      <!-- Gr aphic elem ent -->
        2782      <!--                   -->
        2783      <html:o bject>
        2784       <!-- T ype attrib ute -->
        2785       <!--                  -->
        2786       <xsl:a ttribute n ame="type" >
        2787        <xsl: text>image /svg+xml</ xsl:text>
        2788       </xsl: attribute>
        2789  
        2790       <!-- D ata attrib ute -->
        2791       <!--                  -->
        2792       <xsl:a ttribute n ame="data" >
        2793        <xsl: value-of s elect="$Va rSrc" />
        2794       </xsl: attribute>
        2795  
        2796       <!-- W idth attri bute -->
        2797       <!--                   -->
        2798       
<
xsl: if  t es t ="$Va r W i d t h &gt; 0" >
        2799        <xsl: attribute  name=" wi d th ">
        2800         <xsl :value-of  select=" $VarWidth "
/>
2676        </xsl :attribute >   2801        </xsl :attribute >
2677       </xsl: element >   2802       </xsl: if >
2678     2803  
2679       <!--  Gen e ra t e D   L i nks  -->   2804       <!--  H e igh t
  attr i bute  -->
2680       <!--                    -->   2805       <!--                    -->
2681       <xsl:v ariable na me="VarGen erateDLink s" select= "wwprojext :GetFormat Setting('a ccessibili ty-image-d -links', ' false')" / >   2806       
<xsl:if te st="
$Var H e
i gh t
 &gt; 0">
2682       <xsl:i f test="$V arGenerate DLinks = ' true'">   2807        
<xsl: a t
t ribu te  name="hei gh t " >
2683          <xsl:if te st=" string-len gth( $Var LongD e scr i p t ion)  &gt; 0">   2808         <xsl :value-of  select="$V arHeight"/ >
2684           <xsl:
t ex t > </xsl: te x t
>
  2809        </xsl : attr i bute >
2685         <htm l:a href=" {$VarLongD escription }" title=" {concat('D escription  link for  ', wwfiles ystem:GetF ileName($V arSplitsFr ame/@path) )}">[D]</h tml:a><htm l:br />        
2686        </xsl :
i f >
       
2687       </xsl: if>   2810       </xsl: if>
2688     2811  
2689       <!--  Imag m a p  -->   2812       <!--  Styl
a ttribute  -->
2690       <!--            
-->
  2813       <!--                    -->
2691       <html: map name=" {concat($V arSplitsFr ame/@docum entID, '_' , $VarSpli tsFrame/@i d)}">   2814       <xsl:i f test="st ring-lengt h($VarInli neCSSPrope rties) &gt ; 0">
2692        <html :area coor ds="{conca t('0,0,',  $VarWidth,  ',', $Var Height)}"  shape="rec t" href="{ wwuri:GetR elativeTo( $VarSplits Frame/wwsp lits:Wrapp er/@path,  $ParamSpli t/@path)}" >   2815        <xsl: attribute  name="styl e">
2693         <xsl :attribute  name=" al t
">
  2816         <xsl :value-of  select="$V arInlineCS SPropertie s" />
        2817        </xsl :attribute >
        2818       </xsl: if>
        2819  
        2820       <!-- T itle attri bute -->
        2821       <!--                   -->
        2822       <xsl:c hoose>
        2823        <xsl: when test= "string-le ngth($VarA ltText) &g t; 0">
        2824         <xsl :attribute  name="
t itle ">
2694          <xs l:value-of  select="$ VarAltText " />   2825          <xs l:value-of  select="$ VarAltText " />
2695         </xs l:attribut e>   2826         </xs l:attribut e>
2696        </ htm l: ar e a >   2827        </ xs l: wh e n >
2697       </ htm l: map >   2828  
        2829        <xsl: when test= "string-le ngth($Para mSplitsFra me/@title)  &gt; 0">
        2830         <xsl :attribute  name="tit le">
        2831          <xs l:value-of  select="$ ParamSplit sFrame/@ti tle" />
        2832         </xs l:attribut e>
        2833        </xsl :when>
        2834       </xsl: choose>
        2835  
        2836       <!-- S rc paramet er -->
        2837       <!--                 -->
        2838       <html: param name ="src" val ue="{$VarS rc}" value type="data " />
        2839      </html: object>
        2840  
        2841      <!-- Ge nerate D L inks -->
        2842      <!--                    -->
        2843      <xsl:va riable nam e="VarGene rateDLinks " select=" wwprojext: GetFormatS etting('ac cessibilit y-image-d- links', 'f alse')" />
        2844      <xsl:if  test="$Va rGenerateD Links = 't rue'">
        2845       <xsl:i f test="st ring-lengt h($VarLong Descriptio n) &gt; 0" >
        2846        <xsl: text> </xs l:text>
        2847        <html :a href="{ $VarLongDe scription} " title="{ concat('De scription  link for ' , wwfilesy stem:GetFi leName($Pa ramSplitsF rame/@path ))}">[D]</ html:a><ht ml:br />
        2848       </ xs l: if >
2698      </xsl:i f>   2849      </xsl:i f>
        2850  
        2851      <!-- No tes -->
        2852      <!--        -->
        2853      <xsl:ch oose>
        2854       <!-- T humbnail - ->
        2855       <!--            - ->
        2856       <xsl:w hen test=" $ParamThum bnail">
        2857        <!--  Nothing to  do -->
        2858        <!--                 -->
        2859       </xsl: when>
        2860  
        2861       <!-- F ullsize -- >
        2862       <!--           -- >
        2863       <xsl:o therwise>
        2864        <!--  Frame Foot notes -->
        2865        <!--                   -->
        2866        <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" />
        2867        <xsl: call-templ ate name=" Content-No tes">
        2868         <xsl :with-para m name="Pa ramNotes"  select="$V arNotes" / >
        2869         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
        2870         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
        2871         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
        2872         <xsl :with-para m name="Pa ramTOCData " select=" ''" />
        2873         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
        2874        </xsl :call-temp late>
        2875       </xsl: otherwise>
        2876      </xsl:c hoose>
2699     </xsl:fo r-each>   2877     </xsl:fo r-each>
2700    </xsl:tem plate>   2878    </xsl:tem plate>
2701     2879  
2702     2880  
2703    <xsl:temp late name= "Frame- F u llSiz e
">
  2881    <xsl:temp late name= "Frame- Mark u p-Rast e r ">
2704     <xsl:par am name="P aramFrame"  />   2882     <xsl:par am name="P aramFrame"  />
2705     <xsl:par am name="P aramSplits " />   2883     <xsl:par am name="P aramSplits " />
2706     <xsl:par am name="P aramCargo"  />   2884     <xsl:par am name="P aramCargo"  />
2707     <xsl:par am name="P aramLinks"  />   2885     <xsl:par am name="P aramLinks"  />
2708     <xsl:par am name="P aramSplit"  />   2886     <xsl:par am name="P aramSplit"  />
        2887     <xsl:par am name="P aramSplits Frame" />
        2888     <xsl:par am name="P aramContex tRule" />
        2889     <xsl:par am name="P aramImageI nfo" />
        2890     <xsl:par am name="P aramThumbn ail" />
2709     2891  
2710     <xsl:var iable name ="VarBehav iorFrame"  select="$P aramCargo/ wwbehavior s:Behavior s//wwbehav iors:Frame [@id = $Pa ramFrame/@ id][1]" />   2892     <!--  Acc es s frame be havior  -->
2711     2893     <!--                           -->
2712     <!--  Not es
 -->
  2894     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] ">
2713     <!--        
-->
  2895        <xsl:varia ble name=" Var Behavi o rFram e
" select=" key('wwbeh aviors-fra mes-by-id' $ParamFram e/ @i d )[1] " />
2714     
<xsl:varia ble name=" Var N o t e s " select="
$ParamFram e/ /ww d oc:Note " />
       
2715     2896  
2716     
<!--  Not n u mb e ring  -->
  2897        <!--  Overrid R u l e
 -->
2717     
<!--                   -->
  2898        <!--                
-->
2718     <xsl:var iable name ="VarNoteN umberingAs XML">   2899      <xsl:va riable nam e="VarOver rideRule"  select="ww projext:Ge tOverrideR ule('Graph ic', $Para mSplitsFra me/@stylen ame, $Para mSplitsFra me/@docume ntID, $Par amSplitsFr ame/@id)"  />
2719      <xsl:ca ll-templat e name="No tes-Number ">        
2720       <xsl:w ith-param  name="Para mNotes" se lect="$Var Notes" />        
2721      </xsl:c all-templa te>        
2722     </xsl:va riable>        
2723     <xsl:var iable name ="VarNoteN umbering"  select="ms xsl:node-s et($VarNot eNumbering AsXML)" />        
2724     2900  
2725     
<!--  Fram
c a r g o
 -->
  2901        <!--  Resolv proje c t p r
o perties  -->
2726     
<!--              
-->
  2902        <!--                                -->
2727     <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() !=  'NoteNumbe ring']/..  | $VarNote Numbering"  />   2903      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" >
        2904       <xsl:c all-templa te name="P roperties- ResolveOve rrideRule" >
        2905        <xsl: with-param  name="Par amProperti es" select ="$VarOver rideRule/w wproject:P roperties/ wwproject: Property"  />
        2906        <xsl: with-param  name="Par amContextS tyle" sele ct="$Param Frame" />
        2907       </xsl: call-templ ate>
        2908      </xsl:v ariable>
        2909      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" />
2728     2910  
2729     
<!--  G e
t   i mag e  path  -->
  2911        <!--  CSS prop e r t
i
e s  -->
2730     
<!--                  -->
  2912        <!--                  -->
2731     
<xsl: for -
e
a ch  select="$ ParamSplit s[1] "
>
  2913      <xsl:va riable nam e="VarCSSP ropertiesA sXML">
2732      <xsl:va riable nam e="Var
S
p litsF r am e
" select=" key('ww s plit s -fram e s - by-id',  $ P ar amF r am e /@ i d ) [@d o cum e n t ID = $ P a r amSplit/@d o cum e n t ID] " />
  2914       <xsl:c all-templa te name="C SS-Transla teProjectP roperties" >
        2915        <xsl: with-param  name="Par amProperti es" select ="$VarReso lvedProper ties[(@Nam e != 'widt h') and (@ Name != 'h eight')]"  />
        2916          <xsl: with - param nam e ="P a ramFromAbs oluteURI"  select="$ ParamSplit /@path "  / >
        2917        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />
        2918       </xsl: call-templ ate>
        2919      </xsl:v ariable>
        2920      <xsl:va riable nam e="Var CS S Pro p e r ti e s " select=" m s x s l:nod e
- set( $ V ar CSSP r op e rt i esAsXML ) /wwpr o j e c t : P
r
o p e r t y " />
        2921      <xsl:va riable nam e="VarInli neCSSPrope rties">
        2922       <xsl:c all-templa te name="C SS-InlineP roperties" >
        2923        <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties[ string-len gth(@Value ) &gt; 0]"  />
        2924       </xsl: call-templ ate>
        2925      </xsl:v ariable>
2733     2926  
2734      <!--  Graph i c Rul e
 -->
  2927      <!--  W i dth/H e ight  -->
2735      <!--                -->   2928      <!--                -->
2736      <xsl:va riable nam e="VarOver rideRule"  select="ww projext:Ge tOverrideR ule('Graph ic', $VarS plitsFrame /@stylenam e, $VarSpl itsFrame/@ documentID , $VarSpli tsFrame/@i d)" />   2929      <xsl:va riable nam e="Var ByRefer en c e G ra
p hicsUseDoc u men t Dimensions Option" se lect="$ P ar amCont e xt Rule/wwpro ject:Optio ns/wwproje ct:Option[ @Name = ' by-r e f er enc e-
u se-doc u men t -dimension s ']/@Value"  />
2737      <xsl:va riable nam e="Var G en
e
ra teOut p
u
t
Option" se lect="$ V ar Overrid e
Rule/wwpro ject:Optio ns/wwproje ct:Option[ @Name = ' g e n er at e- o u tp u
t
']/@Value"  />
  2930      <xsl:va riable nam e="Var ByRefer en c e G ra
p hicsUseDoc u men t Dimensions " select=" (string-le ngth($Var ByRefer en c e G ra
p hicsUseDoc u men t Dimensions Option) =  0) or ($Va r ByRefer en c e G ra
p hicsUseDoc u men t Dimensions Option 
= ' tru e')" />
2738      <xsl:va riable nam e="Var G en
e
ra teOut p
u
t
" select=" (string-le ngth($Var G en
e
ra teOut p
u
t
Option) =  0) or ($Va r G en
e
ra teOut p
u
t
Option  ! = ' fals e')" />
  2931      <xsl: var i able   nam e
="
Var Wid t h ">
2739      <xsl:
i f   t e st =" $ Var GenerateOu tpu t
">
  2932       
<
xsl:c hoos e>
2740       <!-- R esolve pro ject prope rties -->   2933          <
xsl: when test= "$P ar
a mThum b nai l " >
2741       <!--                               -->   2934         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  />
2742       <xsl:v ariable na me="VarRes olvedPrope rtiesAsXML ">   2935        </xsl :when>
2743        <xsl: call-templ ate name=" Properties -ResolveOv errideRule ">        
2744         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarOve rrideRule/ wwproject: Properties /wwproject :Property"  />        
2745         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mFrame" />        
2746          < / xsl:c all-templa t e>        
2747       
< / xsl: v ar i a
b
l e >
       
2748       <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / >        
2749     2936  
2750       <!-- C SS propert ies -->   2937        
<xsl:w
h e n  t e st =" $ ParamSplit s F ram e/@byref =  ' t rue' "
>
2751       <!--                  -->   2938           <
xsl: choos e>
2752       <xsl:v ariable na me="VarCSS Properties AsXML">   2939          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions">
2753        <xsl: call-templ ate name=" CSS-Transl ateProject Properties ">   2940             <xsl:varia ble name=" Var ByRefe r
e nceF r am e
" select="
$
P a r amF r am e / /ww d o
c
: Fac e t[@ ty pe = 'by-r eference'] [1]/../.. " />
2754         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties[(@Na me != 'wid th') and ( @Name != ' height')]"  />        
2755         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" />        
2756           <xsl:w it h -param  n am e
="
ParamSplit s " select=" $Pa ram Spli t s "  / >
       
2757        </xsl :call-temp late>        
2758       
< / xsl: variabl e>
       
2759       
<xsl:varia ble name=" Var CSSP r op e
r ti e s " select=" msxsl:node -set( $ VarCSS P
r ope r ti e sAsXML) /ww pr o je c t : Prop e r ty
" />
       
2760       <xsl:v ariable na me="VarInl ineCSSProp erties">        
2761        <xsl: call-templ ate name=" CSS-Inline Properties ">        
2762         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties [string-le ngth(@Valu e) &gt; 0] " />        
2763        </xsl :call-temp late>        
2764       </xsl: variable>        
2765     2941  
2766       <!-- W idth/Heigh t -->   2942           <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' width']/@v alue), 'pt ', 'px'))"  />
2767       <!--                -->   2943            < / xsl: w h
e n >
2768       <xsl:v ariable na me="VarByR eferenceGr aphicsUseD ocumentDim ensionsOpt ion" selec t="$VarOve rrideRule/ wwproject: Options/ww project:Op tion[@Name  = 'by-ref erence-use -document- dimensions ']/@Value"  />        
2769       <xsl:v ariable na me="VarIma geInfo" se lect="wwim aging:GetI nfo($VarSp litsFrame/ @path)" />        
2770       <xsl:v ariable na me="VarWid th">        
2771        
<
xsl: c h oos e
>
       
2772         <xsl :when test ="((string -length($V arByRefere nceGraphic sUseDocume ntDimensio nsOption)  = 0) or ($ VarByRefer enceGraphi csUseDocum entDimensi onsOption  = 'true'))  and ($Var SplitsFram e/@byref =  'true')">        
2773          <xs l:variable  name="Var ByReferenc eFrame" se lect="$Par amFrame//w wdoc:Facet [@type = ' by-referen ce'][1]/.. /.." />        
2774     2944  
2775          <xs l:value-of  select="f loor(wwuni ts:Convert (wwunits:N umericPref ix($VarByR eferenceFr ame/wwdoc: Attribute[ @name = 'w idth']/@va lue), 'pt' , 'px'))"  />   2945          <xs l:otherwis e>
2776           </xsl:when >   2946           <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " />
        2947          </x sl:otherwi se>
        2948         </xs l:choose>
        2949        
</xsl:when >
2777     2950  
2778           <xsl:other wise>   2951        
<xsl:other wise>
2779            <xsl:value -of select ="number($ V ar
ImageInfo/ @width)" / >
  2952         
<xsl:value -of select ="number($ P ar am ImageInfo/ @width)" / >
2780           </xsl:othe rwise>   2953        
</xsl:othe rwise>
2781          </xsl:choo se>   2954       
</xsl:choo se>
2782         </xsl:vari able>   2955      
</xsl:vari able>
2783         <xsl:varia ble name=" VarHeight" >   2956      
<xsl:varia ble name=" VarHeight" >
2784          <xsl:choos e>   2957       
<xsl:choos e>
2785         <xsl :when test ="((string -length($V arByRefere nceGraphic sUseDocume ntDimensio nsOption)  = 0) or ($ VarByRefer enceGraphi csUseDocum entDimensi onsOption  = 'true'))  and ($Var SplitsFram e/@byref =  'true')">   2958        <xsl: when test= "$ParamThu mbnail">
2786          <xs l:variable  name="Var ByReferenc eFrame" se lect="$Par amFrame//w wdoc:Facet [@type = ' by-referen ce'][1]/.. /.." />   2959         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  />
        2960        </xsl :when>
2787     2961  
2788          <xs l:value-of  select="f loor(wwuni ts:Convert (wwunits:N umericPref ix($VarByR eferenceFr ame/wwdoc: Attribute[ @name = 'h eight']/@v alue), 'pt ', 'px'))"  />   2962        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'">
2789         < / xsl: w h
e n >
  2963         <
xsl: c h oos e
>
        2964          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions">
        2965           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." />
2790     2966  
2791         <xsl :otherwise >   2967             <xsl:value -of select =" floor(wwu n its:Conver t(wwunits: N um
er icPrefix ($Var ByR e
f erenceFram e / wwdoc:Attr ibute[ @ name = ' height ']/@value) , 'pt', 'p x') )" />
2792          
<xsl:value -of select ="
n
um b er
($Var Imag e In f o /
@
height
)" />
  2968            </xsl: wh e n >
2793         </xs l:otherwis e>        
2794        </xsl :choose>        
2795       
</xsl: variabl e
>
       
2796     2969  
2797       <!-- S rc -->   2970          <xs l:otherwis e>
2798       <!--       -->   2971           <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" />
2799       <xsl:v ariable na me="VarSrc " select=" wwuri:GetR elativeTo( $VarSplits Frame/@pat h, $ParamS plit/@path )" />   2972          </x sl:otherwi se>
        2973         </xs l:choose>
        2974        </xsl :when>
2800     2975  
2801       <!-- N eed to def ine usemap ? -->   2976          <xsl: oth e
r wi se
>
2802       <!--                           -->   2977           <xsl:va
l u e -of  select="
n umber ($Param I m ag e Inf o /@he i ght )" />
2803       
<xsl: variable n am e ="Va r U se Map" >
  2978        
< / xsl: o t h e rwi s
e
>
2804        
<xsl:va riab l
e  name="Var UseMapHint "  select=" cou n t ($Param Fra m
e //wwd o c:L i nk )" />
  2979       
</xsl: choos e
>
2805        <xsl: choose>   2980      
</xsl: variabl e
>
2806         <xsl :when test ="$VarUseM apHint &gt ; 0">        
2807            <
xsl:
t
e xt>#</x s l:t e xt >
       
2808          <xs l:value-of  select="$ VarSplitsF rame/@docu mentID" />        
2809           <xsl:te xt>_ </xsl: t e xt >        
2810          <xs l:value-of  select="$ VarSplitsF rame/@id"  />        
2811           </xsl: wh e n >        
2812     2981  
2813         <xsl :otherwise >   2982      <!-- Sr c -->
2814          <xs l:value-of  select="' '" />   2983      <!--      -->
2815         </xs l:otherwis e>   2984      <xsl:va riable nam e="VarSrc"  select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " />
2816        </xsl :choose>        
2817       </xsl: variable>        
2818     2985  
2819         <!--  Alt   T e xt  -->   2986      
<!--  Define   Us e  Map  -->
2820         <!--           
-->
  2987      
<!--                   -->
2821         <xsl:varia ble name=" Var AltT e xt ">   2988      
<xsl:varia ble name=" Var Us e Map ">
2822        <xsl: call-templ ate name=" Images-Alt Text">   2989       <xsl:c hoose>
2823           <xsl:w it h -param  n am e
="
Param Fra m e" se l e c
t =" $ParamFram e /
>
  2990        
<xsl:w
h e n  t e st =" ($ Param Thu m bnai l ) or ( c oun t ( $ParamFram e
/ /wwdoc:Lin k) &gt; 0) " >
2824         <xsl : with-param  name="Par amBeha v iorFr a m e "  select="$ V ar Beh a v i or Frame
" />
  2991         <xsl :text>#</x sl:text>
2825        
< / xsl: c al l - t e
m
pl a t
e
>
  2992         <xsl :
v
a lu e -of  select="$ P ar
a mSpl i ts Frame /@document ID " />
2826       
</xsl: variabl e
>
  2993         <xsl :text>_</x sl:text>
        2994           <
xsl: v al ue - of s e lect="$Par a m S pl i t sFram e /@id" / >
        2995          </xsl: wh e n >
2827     2996  
2828       <!-- L ong Descri ption -->   2997        <xsl: otherwise>
2829       <!--                    -->   2998         <xsl : v a
l u e -of  select=" '' " />
2830       <xsl:v ariable na me="VarLon gDescripti on">   2999        </xsl :otherwise >
2831        <xsl: call-templ ate name=" Images-Lon gDescripti on">   3000       
</xsl:c hoos e>
2832         <xsl : with-param  name="Par a mSp l itsFram e "  select=" $VarSplits Frame " />   3001      
</xsl:vari able>
2833         <xsl :with-para m name="Pa ramBehavio rFrame" se lect="$Var BehaviorFr ame" />        
2834          </xsl:c all-templa t e>        
2835         </xsl:vari able>        
2836     3002  
2837         <!--  Ge rul e
 -->
  3003      
<!--  Al T e xt  -->
2838         <!--           -->   3004      
<!--           -->
2839       <xsl:v ariable na me="VarCon textRule"  select="ww projext:Ge tContextRu le('Graphi c', $VarSp litsFrame/ @stylename , $VarSpli tsFrame/@d ocumentID,  $VarSplit sFrame/@id )" />   3005      <xsl:va riable nam e="VarAltT ext">
        3006       <xsl:c all-templa te name="I mages-AltT ext">
        3007        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  />
        3008        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" />
        3009       </xsl: call-templ ate>
        3010      </xsl:v ariable>
2840     3011  
2841         <!--  Ta
-->
  3012      
<!--  Lon Descriptio -->
2842         <!--     
-->
  3013      
<!--                     -->
2843       <xsl:v ariable na me="VarTag Property"  select="$V arContextR ule/wwproj ect:Proper ties/wwpro ject:Prope rty[@Name  = 'tag']/@ Value" />   3014      
<xsl:varia ble name=" Var Lon g Descriptio n ">
2844         <xsl:varia ble name=" Var Ta g
">
  3015       <xsl:c all-templa te name="I mages-Long Descriptio n">
2845        <xsl: choose>   3016        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " />
2846         <xsl :when test ="string-l ength($Var TagPropert y) &gt; 0" >   3017        
<xsl: with-p a ram nam e ="ParamBeh avi o rFrame"  select="$ Var Beh a vi o
r Frame " />
2847            <xsl: v a lu e - o f  select="$ Var T a gPr o pe r ty " />   3018       </xsl: call-templ ate>
2848           </xsl: wh e n >   3019      
</xsl: variabl e
>
2849     3020  
2850           <xsl:other wise>   3021      <!-- Ta g -->
2851            <xsl:value -of select ="'img'" / >   3022      <!--      -->
2852           </xsl:othe rwise>   3023      <xsl:va riable nam e="VarTagP roperty" s elect="$Pa ramContext Rule/wwpro ject:Prope rties/wwpr oject:Prop erty[@Name  = 'tag']/ @Value" />
2853          </xsl:choo se>   3024      <xsl:va riable nam e="VarTag" >
2854         </xsl:vari able>   3025       <xsl:c hoose>
        3026        <xsl: when test= "string-le ngth($VarT agProperty ) &gt; 0">
        3027         <xsl :value-of  select="$V arTagPrope rty" />
        3028        </xsl :when>
        3029  
        3030        
<xsl:other wise>
        3031         
<xsl:value -of select ="'img'" / >
        3032        
</xsl:othe rwise>
        3033       
</xsl:choo se>
        3034      
</xsl:vari able>
2855     3035  
2856         <!-- Graph ic element  -->   3036      
<!-- Graph ic element  -->
        3037      <!--                   -->
        3038      <xsl:el ement name ="{$VarTag }" namespa ce="{$Glob alDefaultN amespace}" >
        3039       <!-- C lass attri bute -->
2857       <!--                   -->   3040       <!--                   -->
2858       <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} ">   3041       
<xsl:attri bute name= "class">
2859        <!--  Class attr ibute -->   3042        
<xsl:value -of select ="wwstring :CSSClassN ame($Param Frame/@sty lename)" / >
2860        <!--                   -->        
2861          <xsl:attri bute name= "class">        
2862           <xsl:value -of select ="wwstring :CSSClassN ame($Param Frame/@sty lename)" / >        
2863     3043  
2864           <!-- Addit ional CSS  classes -- >   3044        
<!-- Addit ional CSS  classes -- >
2865           <!--                          -- >   3045        
<!--                          -- >
2866           <xsl:varia ble name=" VarAdditio nalCSSClas sesOption"  select="n ormalize-s pace($ V ar
ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'addi tional-css -classes'] /@Value)"  />
  3046        
<xsl:varia ble name=" VarAdditio nalCSSClas sesOption"  select="n ormalize-s pace($ P ar am ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'addi tional-css -classes'] /@Value)"  />
2867           <xsl:if te st="string -length($V arAddition alCSSClass esOption)  &gt; 0">   3047        
<xsl:if te st="string -length($V arAddition alCSSClass esOption)  &gt; 0">
2868            <xsl:text>  </xsl:tex t>   3048         
<xsl:text>  </xsl:tex t>
2869            <xsl:value -of select ="$VarAddi tionalCSSC lassesOpti on" />   3049         
<xsl:value -of select ="$VarAddi tionalCSSC lassesOpti on" />
2870           </xsl:if>   3050        
</xsl:if>
        3051       </xsl: attribute>
        3052  
        3053       <!-- S rc attribu te -->
        3054       <!--                 -->
        3055       <xsl:a ttribute n ame="src">
        3056        <xsl: value-of s elect="$Va rSrc" />
        3057       </xsl: attribute>
        3058  
        3059       <!-- W idth attri bute -->
        3060       <!--                   -->
        3061       <xsl:i f test="$V arWidth &g t; 0">
        3062        <xsl: attribute  name="widt h">
        3063         <xsl :value-of  select="$V arWidth"/>
2871        </xsl :attribute >   3064        </xsl :attribute >
        3065       </xsl: if>
2872     3066  
2873          <!--  Src  attribute  -->   3067       
<!--  Height  attribute  -->
2874          <!--                
-->
  3068       
<!--                     -->
2875        <xsl: attribute  name=" src ">   3069       <xsl:i f test="$V arHeight & gt; 0">
2876         <xsl :value-of  select="$V ar Src "   />   3070        <xsl: attribute  name=" height ">
        3071         <xsl :value-of  select="$V ar Height "
/>
2877        </xsl :attribute >   3072        </xsl :attribute >
        3073       </xsl: if>
2878     3074  
2879          <!--  Wid t h  attribute  -->   3075       
<!--  S t yle  attribute  -->
2880          <!--                   -->   3076       
<!--                   -->
2881          <xsl:if te st="
$Var W i d t h  &gt; 0">
  3077       
<xsl:if te st=" string-len gth( $Var Inl i neCSSPrope r t ies)  &gt; 0">
2882           <xsl:attri bute name= " wid t h ">   3078        
<xsl:attri bute name= " s t yle ">
2883            <xsl:value -of select ="$Var W i d t h "
/>
  3079         
<xsl:value -of select ="$Var Inl i neCSSPrope r t ies "   />
2884           </xsl:attr ibute>   3080        
</xsl:attr ibute>
2885          </xsl:if>   3081       
</xsl:if>
2886     3082  
2887          <!--  Heigh t attribut e -->   3083       
<!--  Al t attribut e -->
2888          <!--                     -->   3084       
<!--                
-->
2889          <xsl: if  t es t ="$Va r He i gh t
  &g t ; 0 ">
  3085       
<xsl: a t
t
r
i bu t e   name="al t
">
2890         <xsl :attribute  name="hei ght">   3086        
<
xsl: v a lue-of sel ec t ="$Va r Al t T e xt" / >
2891          <xs l:value-of  select="$ VarHeight" />   3087       
</xsl: attr i bute >
2892           < / xsl:
a
t t r ibu t
e
>
       
2893          </xsl:
i f >
       
2894     3088  
2895          <!--  Styl e
 attribute  -->
  3089       
<!--  Longd e sc  attribute  -->
2896          <!--                   
-->
  3090       
<!--                        -->
2897          <xsl:if te st="string -length($V ar Inli n
e CSSP r o p er ti es ) &gt; 0">
  3091       
<xsl:if te st="string -length($V ar Lo n gD e sc r i p
ti on ) &gt; 0">
2898           <xsl:attri bute name= " sty l
e
">
  3092        
<xsl:attri bute name= "
l ongd e sc ">
2899            <xsl:value -of select ="$Var Inli n
e CSSP r o p er ti es " />
  3093         
<xsl:value -of select ="$Var Lo n gD e sc r i p
ti on " />
2900           </xsl:attr ibute>   3094        
</xsl:attr ibute>
2901          </xsl:if>   3095       
</xsl:if>
2902     3096  
2903          <!--  Alt  attribute  -->   3097       
<!--  Usemap  attribute  -->
2904          <!--                
-->
  3098       
<!--                     -->
2905        <xsl: attribute  name=" alt ">   3099       <xsl:i f test="st ring-lengt h($VarUseM ap) &gt; 0 ">
2906         <xsl :value-of  select=" $VarAltTex t " />   3100        <xsl: attribute  name="usem ap">
        3101         <xsl :value-of  select="$V arUseMap"  />
        3102        </xsl :attribute >
        3103        <xsl: attribute  name=" border ">
        3104         <xsl :value-of  select=" '0' " />
2907        </xsl :attribute >   3105        </xsl :attribute >
        3106       </xsl: if>
        3107      </xsl:e lement>
2908     3108  
2909          <!--  Lo n gd e sc att r ibu te 
-->
  3109      
<!--  Ge n
e
r a te  D Links  -->
2910          <!--                        -->   3110      
<!--                    
-->
2911          <xsl:if te st=" string-len gth( $Var Lo n gD e sc r ip t
i o n )   &gt;   0 ">
  3111      <xsl:va riable nam e="VarGene rateDLinks " select=" wwprojext: GetFormatS etting('ac cessibilit y-image-d- links', 'f alse')" />
2912         <xsl :attribute  name="lon gdesc">   3112      
<xsl:if te st="
$Var Ge n
e
r a t eDL i
n ks   =   'true' ">
2913            <xsl: value-o sel e c t="
$VarLongDe scription "   / >
  3113       
<xsl: i t e s t=" string-len gth( $VarLongDe scription )   &gt; 0" >
2914           </xsl: attr i bute >   3114        <xsl: text> </xs l:text>
2915          </xsl:if>   3115        <html :a href="{ $VarLongDe scription} " title="{ concat('De scription  link for ' , wwfilesy stem:GetFi leName($Pa ramSplitsF rame/@path ))}">[D]</ html:a><ht ml:br />
        3116       
</xsl:
i f >
        3117      
</xsl:if>
2916     3118  
2917          <!--  Use ma p  
a ttribute  -->
  3119      
<!--  I ma ge   m a p  -->
2918          <!--                     -->   3120      
<!--            
-->
2919          <xsl:if te st="string -length($V arUseMap)  &gt; 0">   3121      
<xsl:if te st="string -length($V arUseMap)  &gt; 0">
2920           <xsl: attribute  name="u se map" >   3122       <html: map name=" {concat($P aramSplits Frame/@doc umentID, ' _', $Param SplitsFram e/@id)}">
2921          <xs l:value-of  select="$ VarUseMap"  />   3123        
<xsl: choo se
>
2922         < / xsl: a t
t
r ib u te >
  3124         <!--  Thumbnail  -->
2923         
<xsl:attri bute name= " border ">
  3125         <!--             -->
2924          
<xsl:value -of select =" '0' " />
  3126         <
xsl: when  t es t ="$Pa r amTh u mbnail" >
2925         
</xsl:attr ibute>
  3127          <ht ml:area co ords="{con cat('0,0,' , $VarWidt h, ',', $V arHeight)} " shape="r ect" href= "{wwuri:Ge tRelativeT o($ParamSp litsFrame/ wwsplits:W rapper/@pa th, $Param Split/@pat h)}">
2926        
</ xs l: if >
  3128             <xsl:attri bute name= " alt ">
2927       
</xsl: elem en t >
  3129              <xsl:value -of select =" $VarAltTex t " />
        3130             </xsl:attr ibute>
        3131            </ htm l: area >
        3132           </xsl: wh en
>
2928     3133  
2929       
<!--  Generate D  Link s
 -->
  3134           <!--  Full s ize  -->
2930       
<!--                     -->
  3135           <!--           
-->
2931       <xsl:v ariable na me="VarGen erateDLink s" select= "wwprojext :GetFormat Setting('a ccessibili ty-image-d -links', ' false')" / >   3136         <xsl : o t h e rwi s
e
>
2932       <xsl:i f test="$V arGenerate DLinks = ' true'">   3137          <xs l:variable  name="Var Horizontal ScalingAsT ext">
2933        <xsl: if test="s tring-leng th($VarLon gDescripti on) &gt; 0 ">   3138             <
xsl: choose >
2934         <xsl :
t
e xt> </x s l:t e xt >
  3139            < xsl:when t est="$VarW idth &gt;  0">
2935         <htm l:a href=" {$VarLongD escription }" title=" {concat('D escription  link for  ', wwfiles ystem:GetF ileName($V arSplitsFr ame/@path) )}">[D]</h tml:a><htm l:br />   3140              <xsl:varia ble name=" VarWidthAs Pixels" se lect="stri ng(floor(w wunits:Con vert(wwuni ts:Numeric Prefix($Pa ramFrame/w wdoc:Attri bute[@name  = 'width' ]/@value),  'pt', 'px ')))" />
2936        
< / xsl: if >
  3141              <xsl:value -of select ="number($ VarWidth)  div number ($VarWidth AsPixels)"  />
2937       
</xsl: if >
  3142              </xsl: when >
2938     3143  
2939       <xsl:i f test="st ring-lengt h($VarUseM ap) &gt; 0 ">   3144              <xsl:
o therwi se>
2940        <html :map name= "{concat($ VarSplitsF rame/@docu mentID, '_ ', $VarSpl itsFrame/@ id)}">   3145               <xsl: valu e -of  
s elec t=" 1 "  / >
2941         <xsl :variable  name="VarH orizontalS calingAsTe xt">   3146            < /xsl:other wise>
2942          
<xsl: cho o
se>
  3147           </ xsl:choose >
2943           
<xsl: wh e n   te s
t=" $VarWidth  &gt; 0 "
>
  3148          
</xsl: variabl e
>
2944            < xsl:variab le name="V arWidthAsP ixels" sel ect="strin g(floor(ww units:Conv ert(wwunit s:NumericP refix($Par amFrame/ww doc:Attrib ute[@name  = 'width'] /@value),  'pt', 'px' )))" />        
2945            < xsl:value- of select= "number($V arWidth) d iv number( $VarWidthA sPixels)"  />        
2946             </xsl: wh e n >        
2947     3149  
2948           <x sl:otherwi se>   3150          
<xsl:va riab l
e
  nam e ="VarV e rticalS c alingAsTex t
"
>
2949              <xsl:va
l u e -of   s e l e
c
t ="1 "  / >
  3151           <
xsl: c h oo se>
2950           < / xsl: ot h erwi se>   3152              <
xsl: w h en te s t="$VarH e ight &gt;  0" >
2951          
< / xsl: c h oo s
e
>
  3153              <xsl:varia ble name=" VarHeightA sPixels" s elect="str ing(floor( wwunits:Co nvert(wwun its:Numeri cPrefix($P aramFrame/ wwdoc:Attr ibute[@nam e = 'heigh t']/@value ), 'pt', ' px')))" />
2952         
</xsl: variabl e
>
  3154              <xsl:value -of select ="number($ VarHeight)  div numbe r($VarHeig htAsPixels )" />
        3155              </xsl: wh e n >
2953     3156  
2954         <xsl :variable  name="VarV erticalSca lingAsText ">   3157              <xsl:other wise>
2955          <xs l:choose>   3158               <xsl:value -of select ="1" />
2956           <x sl:when te st="$VarHe ight &gt;  0">   3159              </xsl:othe rwise>
2957            < xsl:variab le name="V arHeightAs Pixels" se lect="stri ng(floor(w wunits:Con vert(wwuni ts:Numeric Prefix($Pa ramFrame/w wdoc:Attri bute[@name  = 'height ']/@value) , 'pt', 'p x')))" />   3160             </xsl:choo se>
2958            < xsl:value- of select= "number($V arHeight)  div number ($VarHeigh tAsPixels) " />   3161            </xsl:vari able>
2959           </ xsl:when>        
2960                   
2961           
<xsl:other wise>
       
2962            
<xsl:value -of select ="1" />
       
2963           
</xsl:othe rwise>
       
2964          
</xsl:choo se>
       
2965         
</xsl:vari able>
       
2966     3162  
2967         
<xsl:call- template n ame="Image Map">
  3163            <xsl:call- template n ame="Image Map">
2968          
<xsl:with- param name ="ParamFra me" select ="$ParamFr ame" />
  3164             <xsl:with- param name ="ParamFra me" select ="$ParamFr ame" />
2969          
<xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />
  3165             <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />
2970          
<xsl:with- param name ="ParamCar go" select ="$ V ar
Cargo" />
  3166             <xsl:with- param name ="ParamCar go" select ="$ P ar am Cargo" />
2971          
<xsl:with- param name ="ParamPar entBehavio r" select= "$VarBehav iorFrame"  />
  3167             <xsl:with- param name ="ParamPar entBehavio r" select= "$VarBehav iorFrame"  />
2972          
<xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />
  3168             <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />
2973          
<xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />
  3169             <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />
2974          
<xsl:with- param name ="ParamHor izontalSca ling" sele ct="number ($VarHoriz ontalScali ngAsText)"  />
  3170             <xsl:with- param name ="ParamHor izontalSca ling" sele ct="number ($VarHoriz ontalScali ngAsText)"  />
2975          
<xsl:with- param name ="ParamVer ticalScali ng" select ="number($ VarVertica lScalingAs Text)" />
  3171             <xsl:with- param name ="ParamVer ticalScali ng" select ="number($ VarVertica lScalingAs Text)" />
2976         </xs l: call- t
e mplat e>
  3172          </x sl:call-te mplate>
2977        </ htm l: map >   3173         </xs l: o t h e rwis e>
2978       </ xs l: if >   3174        </ xs l: choose >
        3175       </ htm l: map >
2979      </xsl:i f>   3176      </xsl:i f>
2980     </xsl:fo r-each>        
2981     3177  
2982     
<!--  Frame Foot n otes -->
  3178        <!--  N otes -->
2983     
<!--                    -->
  3179        <!--        
-->
2984     
<xsl:call- template n ame="Conte nt-Notes">
  3180      <xsl:ch oose>
2985      
<xsl:with- param name ="ParamNot es" select ="$VarNote s" />
  3181       <!-- T humbnail - ->
2986      
<xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />
  3182       <!--            - ->
2987      
<xsl:with- param name ="ParamCar go" select ="$ V ar
Cargo" />
  3183       <xsl:w hen test=" $ParamThum bnail">
2988      
<xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />
  3184        <!--  Nothing to  do -->
2989      
<xsl:with- param name ="ParamTOC Data" sele ct="''" />
  3185        <!--                 -->
2990      
<xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />
  3186       </xsl: when>
2991     </xsl: call - t e mpl a te >   3187  
        3188       <!-- F ullsize -- >
        3189       <!--           -- >
        3190       <xsl:o therwise>
        3191        <!--  Frame Foot notes -->
        3192        <!--                   -->
        3193        <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" />
        3194          <xsl:call- template n ame="Conte nt-Notes">
        3195           <xsl:with- param name ="ParamNot es" select ="$VarNote s" />
        3196           <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />
        3197           <xsl:with- param name ="ParamCar go" select ="$ P ar am Cargo" />
        3198           <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />
        3199           <xsl:with- param name ="ParamTOC Data" sele ct="''" />
        3200           <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />
        3201        </xsl :call-temp late>
        3202       </xsl: otherwise>
        3203      </xsl:c hoose>
        3204     </xsl: for -
e
a ch >
2992    </xsl:tem plate>   3205    </xsl:tem plate>
2993     3206  
2994     3207  
2995    <xsl:temp late name= "ImageMap" >   3208    <xsl:temp late name= "ImageMap" >
2996     <xsl:par am name="P aramFrame"  />   3209     <xsl:par am name="P aramFrame"  />
2997     <xsl:par am name="P aramSplits " />   3210     <xsl:par am name="P aramSplits " />
2998     <xsl:par am name="P aramCargo"  />   3211     <xsl:par am name="P aramCargo"  />
2999     <xsl:par am name="P aramParent Behavior"  />   3212     <xsl:par am name="P aramParent Behavior"  />
3000     <xsl:par am name="P aramLinks"  />   3213     <xsl:par am name="P aramLinks"  />
3001     <xsl:par am name="P aramSplit"  />   3214     <xsl:par am name="P aramSplit"  />
3002     <xsl:par am name="P aramHorizo ntalScalin g" />   3215     <xsl:par am name="P aramHorizo ntalScalin g" />
3003     <xsl:par am name="P aramVertic alScaling"  />   3216     <xsl:par am name="P aramVertic alScaling"  />
3004     3217  
3005     <!-- Pro cess child  frames fi rst -->   3218     <!-- Pro cess child  frames fi rst -->
3006     <!--                               -->   3219     <!--                               -->
3007     <xsl:for -each sele ct="$Param Frame/wwdo c:Content/ /wwdoc:Fra me[count($ ParamFrame  | ancesto r::wwdoc:F rame[1]) =  1]">   3220     <xsl:for -each sele ct="$Param Frame/wwdo c:Content/ /wwdoc:Fra me[count($ ParamFrame  | ancesto r::wwdoc:F rame[1]) =  1]">
3008      <xsl:ca ll-templat e name="Im ageMap">   3221      <xsl:ca ll-templat e name="Im ageMap">
3009       <xsl:w ith-param  name="Para mFrame" se lect="." / >   3222       <xsl:w ith-param  name="Para mFrame" se lect="." / >
3010       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />   3223       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />
3011       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >   3224       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >
3012       <xsl:w ith-param  name="Para mParentBeh avior" sel ect="$Para mParentBeh avior" />   3225       <xsl:w ith-param  name="Para mParentBeh avior" sel ect="$Para mParentBeh avior" />
3013       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >   3226       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >
3014       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >   3227       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >
3015       <xsl:w ith-param  name="Para mHorizonta lScaling"  select="$P aramHorizo ntalScalin g" />   3228       <xsl:w ith-param  name="Para mHorizonta lScaling"  select="$P aramHorizo ntalScalin g" />
3016       <xsl:w ith-param  name="Para mVerticalS caling" se lect="$Par amVertical Scaling" / >   3229       <xsl:w ith-param  name="Para mVerticalS caling" se lect="$Par amVertical Scaling" / >
3017      </xsl:c all-templa te>   3230      </xsl:c all-templa te>
3018     </xsl:fo r-each>   3231     </xsl:fo r-each>
3019     3232  
3020     <!-- Get  link -->   3233     <!-- Get  link -->
3021     <!--           -->   3234     <!--           -->
3022     <xsl:var iable name ="VarLinkI nfoAsXML">   3235     <xsl:var iable name ="VarLinkI nfoAsXML">
3023      <xsl:ch oose>   3236      <xsl:ch oose>
3024       <xsl:w hen test=" count($Par amFrame/ww doc:Link[1 ]) = 1">   3237       <xsl:w hen test=" count($Par amFrame/ww doc:Link[1 ]) = 1">
3025        <xsl: call-templ ate name=" LinkInfo">   3238        <xsl: call-templ ate name=" LinkInfo">
3026         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   3239         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
3027         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   3240         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
3028         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   3241         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
3029         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mFrame/wwd oc:Link" / >   3242         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mFrame/wwd oc:Link" / >
3030        </xsl :call-temp late>   3243        </xsl :call-temp late>
3031       </xsl: when>   3244       </xsl: when>
3032     3245  
3033       <xsl:o therwise>   3246       <xsl:o therwise>
3034        <xsl: variable n ame="VarCh ildLinks"  select="$P aramFrame/ wwdoc:Cont ent//wwdoc :Link[coun t($ParamFr ame | ance stor::wwdo c:Frame[1] ) = 1]" />   3247        <xsl: variable n ame="VarCh ildLinks"  select="$P aramFrame/ wwdoc:Cont ent//wwdoc :Link[coun t($ParamFr ame | ance stor::wwdo c:Frame[1] ) = 1]" />
3035        <xsl: variable n ame="VarCh ildLinksCo unt" selec t="count($ VarChildLi nks)" />   3248        <xsl: variable n ame="VarCh ildLinksCo unt" selec t="count($ VarChildLi nks)" />
3036        <xsl: if test="$ VarChildLi nksCount & gt; 0">   3249        <xsl: if test="$ VarChildLi nksCount & gt; 0">
3037         <xsl :call-temp late name= "LinkInfo" >   3250         <xsl :call-temp late name= "LinkInfo" >
3038          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />   3251          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />
3039          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " />   3252          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " />
3040          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " />   3253          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " />
3041          <xs l:with-par am name="P aramDocume ntLink" se lect="$Var ChildLinks [$VarChild LinksCount ]" />   3254          <xs l:with-par am name="P aramDocume ntLink" se lect="$Var ChildLinks [$VarChild LinksCount ]" />
3042         </xs l:call-tem plate>   3255         </xs l:call-tem plate>
3043        </xsl :if>   3256        </xsl :if>
3044       </xsl: otherwise>   3257       </xsl: otherwise>
3045      </xsl:c hoose>   3258      </xsl:c hoose>
3046     </xsl:va riable>   3259     </xsl:va riable>
3047     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" />   3260     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" />
3048     3261  
3049     <xsl:if  test="stri ng-length( $VarLinkIn fo/@href)  &gt; 0">   3262     <xsl:if  test="stri ng-length( $VarLinkIn fo/@href)  &gt; 0">
3050      <!-- Ge t coords a ttribute - ->   3263      <!-- Ge t coords a ttribute - ->
3051      <!--                        - ->   3264      <!--                        - ->
3052      <xsl:va riable nam e="VarLeft AsPixels">   3265      <xsl:va riable nam e="VarLeft AsPixels">
3053       <xsl:v ariable na me="VarOri gLeftAsPix els" selec t="string( floor(wwun its:Conver t(wwunits: NumericPre fix($Param Frame/wwdo c:Attribut e[@name =  'left']/@v alue), 'pt ', 'px'))) " />   3266       <xsl:v ariable na me="VarOri gLeftAsPix els" selec t="string( floor(wwun its:Conver t(wwunits: NumericPre fix($Param Frame/wwdo c:Attribut e[@name =  'left']/@v alue), 'pt ', 'px'))) " />
3054       <xsl:c hoose>   3267       <xsl:c hoose>
3055        <xsl: when test= "$ParamHor izontalSca ling != 1" >   3268        <xsl: when test= "$ParamHor izontalSca ling != 1" >
3056         <xsl :value-of  select="nu mber($VarO rigLeftAsP ixels) * n umber($Par amHorizont alScaling) " />   3269         <xsl :value-of  select="nu mber($VarO rigLeftAsP ixels) * n umber($Par amHorizont alScaling) " />
3057        </xsl :when>   3270        </xsl :when>
3058        <xsl: otherwise>   3271        <xsl: otherwise>
3059         <xsl :value-of  select="$V arOrigLeft AsPixels"  />   3272         <xsl :value-of  select="$V arOrigLeft AsPixels"  />
3060        </xsl :otherwise >   3273        </xsl :otherwise >
3061       </xsl: choose>   3274       </xsl: choose>
3062      </xsl:v ariable>   3275      </xsl:v ariable>
3063     3276  
3064      <xsl:va riable nam e="VarTopA sPixels">   3277      <xsl:va riable nam e="VarTopA sPixels">
3065       <xsl:v ariable na me="VarOri gTopAsPixe ls" select ="string(f loor(wwuni ts:Convert (wwunits:N umericPref ix($ParamF rame/wwdoc :Attribute [@name = ' top']/@val ue), 'pt',  'px')))"  />   3278       <xsl:v ariable na me="VarOri gTopAsPixe ls" select ="string(f loor(wwuni ts:Convert (wwunits:N umericPref ix($ParamF rame/wwdoc :Attribute [@name = ' top']/@val ue), 'pt',  'px')))"  />
3066       <xsl:c hoose>   3279       <xsl:c hoose>
3067        <xsl: when test= "$ParamVer ticalScali ng != 1">   3280        <xsl: when test= "$ParamVer ticalScali ng != 1">
3068         <xsl :value-of  select="nu mber($VarO rigTopAsPi xels) * nu mber($Para mVerticalS caling)" / >   3281         <xsl :value-of  select="nu mber($VarO rigTopAsPi xels) * nu mber($Para mVerticalS caling)" / >
3069        </xsl :when>   3282        </xsl :when>
3070        <xsl: otherwise>   3283        <xsl: otherwise>
3071         <xsl :value-of  select="$V arOrigTopA sPixels" / >   3284         <xsl :value-of  select="$V arOrigTopA sPixels" / >
3072        </xsl :otherwise >   3285        </xsl :otherwise >
3073       </xsl: choose>   3286       </xsl: choose>
3074      </xsl:v ariable>   3287      </xsl:v ariable>
3075     3288  
3076      <xsl:va riable nam e="VarWidt hAsPixels" >   3289      <xsl:va riable nam e="VarWidt hAsPixels" >
3077       <xsl:v ariable na me="VarOri gWidthAsPi xels" sele ct="string (floor(wwu nits:Conve rt(wwunits :NumericPr efix($Para mFrame/wwd oc:Attribu te[@name =  'width']/ @value), ' pt', 'px') ))" />   3290       <xsl:v ariable na me="VarOri gWidthAsPi xels" sele ct="string (floor(wwu nits:Conve rt(wwunits :NumericPr efix($Para mFrame/wwd oc:Attribu te[@name =  'width']/ @value), ' pt', 'px') ))" />
3078       <xsl:c hoose>   3291       <xsl:c hoose>
3079        <xsl: when test= "$ParamHor izontalSca ling != 1" >   3292        <xsl: when test= "$ParamHor izontalSca ling != 1" >
3080         <xsl :value-of  select="nu mber($VarO rigWidthAs Pixels) *  number($Pa ramHorizon talScaling )" />   3293         <xsl :value-of  select="nu mber($VarO rigWidthAs Pixels) *  number($Pa ramHorizon talScaling )" />
3081        </xsl :when>   3294        </xsl :when>
3082        <xsl: otherwise>   3295        <xsl: otherwise>
3083         <xsl :value-of  select="$V arOrigWidt hAsPixels"  />   3296         <xsl :value-of  select="$V arOrigWidt hAsPixels"  />
3084        </xsl :otherwise >   3297        </xsl :otherwise >
3085       </xsl: choose>   3298       </xsl: choose>
3086      </xsl:v ariable>   3299      </xsl:v ariable>
3087     3300  
3088      <xsl:va riable nam e="VarHeig htAsPixels ">   3301      <xsl:va riable nam e="VarHeig htAsPixels ">
3089       <xsl:v ariable na me="VarOri gHeightAsP ixels" sel ect="strin g(floor(ww units:Conv ert(wwunit s:NumericP refix($Par amFrame/ww doc:Attrib ute[@name  = 'height' ]/@value),  'pt', 'px ')))" />   3302       <xsl:v ariable na me="VarOri gHeightAsP ixels" sel ect="strin g(floor(ww units:Conv ert(wwunit s:NumericP refix($Par amFrame/ww doc:Attrib ute[@name  = 'height' ]/@value),  'pt', 'px ')))" />
3090       <xsl:c hoose>   3303       <xsl:c hoose>
3091        <xsl: when test= "$ParamVer ticalScali ng != 1">   3304        <xsl: when test= "$ParamVer ticalScali ng != 1">
3092         <xsl :value-of  select="nu mber($VarO rigHeightA sPixels) *  number($P aramVertic alScaling) " />   3305         <xsl :value-of  select="nu mber($VarO rigHeightA sPixels) *  number($P aramVertic alScaling) " />
3093        </xsl :when>   3306        </xsl :when>
3094        <xsl: otherwise>   3307        <xsl: otherwise>
3095         <xsl :value-of  select="$V arOrigHeig htAsPixels " />   3308         <xsl :value-of  select="$V arOrigHeig htAsPixels " />
3096        </xsl :otherwise >   3309        </xsl :otherwise >
3097       </xsl: choose>   3310       </xsl: choose>
3098      </xsl:v ariable>   3311      </xsl:v ariable>
3099     3312  
3100      <!-- co ords -->   3313      <!-- co ords -->
3101      <!--         -->   3314      <!--         -->
3102      <xsl:va riable nam e="VarCoor dsString">   3315      <xsl:va riable nam e="VarCoor dsString">
3103       <xsl:c hoose>   3316       <xsl:c hoose>
3104        <xsl: when test= "string-le ngth($VarL eftAsPixel s) &gt; 0" >   3317        <xsl: when test= "string-le ngth($VarL eftAsPixel s) &gt; 0" >
3105         <xsl :value-of  select="$V arLeftAsPi xels" />   3318         <xsl :value-of  select="$V arLeftAsPi xels" />
3106        </xsl :when>   3319        </xsl :when>
3107        <xsl: otherwise>   3320        <xsl: otherwise>
3108         <xsl :value-of  select="'0 '" />   3321         <xsl :value-of  select="'0 '" />
3109        </xsl :otherwise >   3322        </xsl :otherwise >
3110       </xsl: choose>   3323       </xsl: choose>
3111     3324  
3112       <xsl:v alue-of se lect="','" />   3325       <xsl:v alue-of se lect="','" />
3113     3326  
3114       <xsl:c hoose>   3327       <xsl:c hoose>
3115        <xsl: when test= "string-le ngth($VarT opAsPixels ) &gt; 0">   3328        <xsl: when test= "string-le ngth($VarT opAsPixels ) &gt; 0">
3116         <xsl :value-of  select="$V arTopAsPix els" />   3329         <xsl :value-of  select="$V arTopAsPix els" />
3117        </xsl :when>   3330        </xsl :when>
3118        <xsl: otherwise>   3331        <xsl: otherwise>
3119         <xsl :value-of  select="'0 '" />   3332         <xsl :value-of  select="'0 '" />
3120        </xsl :otherwise >   3333        </xsl :otherwise >
3121       </xsl: choose>   3334       </xsl: choose>
3122     3335  
3123       <xsl:v alue-of se lect="','" />   3336       <xsl:v alue-of se lect="','" />
3124     3337  
3125       <xsl:c hoose>   3338       <xsl:c hoose>
3126        <xsl: when test= "string-le ngth($VarW idthAsPixe ls) &gt; 0 ">   3339        <xsl: when test= "string-le ngth($VarW idthAsPixe ls) &gt; 0 ">
3127         <xsl :value-of  select="st ring(numbe r($VarWidt hAsPixels)  + number( $VarLeftAs Pixels))"  />   3340         <xsl :value-of  select="st ring(numbe r($VarWidt hAsPixels)  + number( $VarLeftAs Pixels))"  />
3128        </xsl :when>   3341        </xsl :when>
3129        <xsl: otherwise>   3342        <xsl: otherwise>
3130         <xsl :value-of  select="'0 '" />   3343         <xsl :value-of  select="'0 '" />
3131        </xsl :otherwise >   3344        </xsl :otherwise >
3132       </xsl: choose>   3345       </xsl: choose>
3133     3346  
3134       <xsl:v alue-of se lect="','" />   3347       <xsl:v alue-of se lect="','" />
3135     3348  
3136       <xsl:c hoose>   3349       <xsl:c hoose>
3137        <xsl: when test= "string-le ngth($VarH eightAsPix els) &gt;  0">   3350        <xsl: when test= "string-le ngth($VarH eightAsPix els) &gt;  0">
3138         <xsl :value-of  select="st ring(numbe r($VarHeig htAsPixels ) + number ($VarTopAs Pixels))"  />   3351         <xsl :value-of  select="st ring(numbe r($VarHeig htAsPixels ) + number ($VarTopAs Pixels))"  />
3139        </xsl :when>   3352        </xsl :when>
3140        <xsl: otherwise>   3353        <xsl: otherwise>
3141         <xsl :value-of  select="'0 '" />   3354         <xsl :value-of  select="'0 '" />
3142        </xsl :otherwise >   3355        </xsl :otherwise >
3143       </xsl: choose>   3356       </xsl: choose>
3144      </xsl:v ariable>   3357      </xsl:v ariable>
3145     3358  
3146      <!-- al t -->   3359      <!-- al t -->
3147      <!--      -->   3360      <!--      -->
3148      <xsl:va riable nam e="VarAltT ext">   3361      <xsl:va riable nam e="VarAltT ext">
3149       <xsl:c all-templa te name="I mages-Imag eAreaAltTe xt">   3362       <xsl:c all-templa te name="I mages-Imag eAreaAltTe xt">
3150        <xsl: with-param  name="Par amParentBe havior" se lect="$Par amParentBe havior" />   3363        <xsl: with-param  name="Par amParentBe havior" se lect="$Par amParentBe havior" />
3151        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  />   3364        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  />
3152       </xsl: call-templ ate>   3365       </xsl: call-templ ate>
3153      </xsl:v ariable>   3366      </xsl:v ariable>
3154     3367  
3155      <!-- ar ea -->   3368      <!-- ar ea -->
3156      <!--       -->   3369      <!--       -->
3157      <html:a rea href=" {$VarLinkI nfo/@href} " coords=" {$VarCoord sString}"  shape="rec t">   3370      <html:a rea href=" {$VarLinkI nfo/@href} " coords=" {$VarCoord sString}"  shape="rec t">
3158       <!-- t arget -->   3371       <!-- t arget -->
3159       <!--         -->   3372       <!--         -->
3160       <xsl:i f test="st ring-lengt h($VarLink Info/@targ et) &gt; 0 ">   3373       <xsl:i f test="st ring-lengt h($VarLink Info/@targ et) &gt; 0 ">
3161        <xsl: attribute  name="targ et">   3374        <xsl: attribute  name="targ et">
3162         <xsl :value-of  select="$V arLinkInfo /@target"  />   3375         <xsl :value-of  select="$V arLinkInfo /@target"  />
3163        </xsl :attribute >   3376        </xsl :attribute >
3164       </xsl: if>   3377       </xsl: if>
3165     3378  
3166       <!-- o nMouseOver  -->   3379       <!-- o nMouseOver  -->
3167       <!--               -->   3380       <!--               -->
3168       <xsl:i f test="st ring-lengt h($VarLink Info/@onMo useOver) & gt; 0">   3381       <xsl:i f test="st ring-lengt h($VarLink Info/@onMo useOver) & gt; 0">
3169        <xsl: attribute  name="onMo useOver">   3382        <xsl: attribute  name="onMo useOver">
3170         <xsl :value-of  select="$V arLinkInfo /@onMouseO ver" />   3383         <xsl :value-of  select="$V arLinkInfo /@onMouseO ver" />
3171        </xsl :attribute >   3384        </xsl :attribute >
3172       </xsl: if>   3385       </xsl: if>
3173     3386  
3174       <!-- o nMouseOut  -->   3387       <!-- o nMouseOut  -->
3175       <!--              -->   3388       <!--              -->
3176       <xsl:i f test="st ring-lengt h($VarLink Info/@onMo useOut) &g t; 0">   3389       <xsl:i f test="st ring-lengt h($VarLink Info/@onMo useOut) &g t; 0">
3177        <xsl: attribute  name="onMo useOut">   3390        <xsl: attribute  name="onMo useOut">
3178         <xsl :value-of  select="$V arLinkInfo /@onMouseO ut" />   3391         <xsl :value-of  select="$V arLinkInfo /@onMouseO ut" />
3179        </xsl :attribute >   3392        </xsl :attribute >
3180       </xsl: if>   3393       </xsl: if>
3181     3394  
3182       <!-- a lt -->   3395       <!-- a lt -->
3183       <!--      -->   3396       <!--      -->
3184       <xsl:a ttribute n ame="alt">   3397       <xsl:a ttribute n ame="alt">
3185        <xsl: value-of s elect="$Va rAltText"  />   3398        <xsl: value-of s elect="$Va rAltText"  />
3186       </xsl: attribute>   3399       </xsl: attribute>
3187      </html: area>   3400      </html: area>
3188     </xsl:if >   3401     </xsl:if >
3189    </xsl:tem plate>   3402    </xsl:tem plate>
3190   </xsl:styl esheet>   3403   </xsl:styl esheet>