79. Araxis Merge File Comparison Report

Produced by Araxis Merge on Fri Nov 21 17:21:54 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.

79.1 Files compared

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

79.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 91 5816
Changed 72 971
Inserted 15 74
Removed 3 14

79.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

79.4 Active regular expressions

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

79.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="wwdo c-text-by- value" mat ch="wwdoc: Text" use= "@value" / >   40    <xsl:key  name="wwdo c-text-by- value" mat ch="wwdoc: Text" use= "@value" / >
40    <xsl:key  name="wwno tes-notes- by-id" mat ch="wwnote s:Note" us e="@id" />   41    <xsl:key  name="wwno tes-notes- by-id" mat ch="wwnote s:Note" us e="@id" />
41    <xsl:key  name="wwfi les-files- by-path" m atch="wwfi les:File"  use="@path " />   42    <xsl:key  name="wwfi les-files- by-path" m atch="wwfi les:File"  use="@path " />
42    <xsl:key  name="wwpr oject-prop erty-by-na me" match= "wwproject :Property"  use="@Nam e"/>   43    <xsl:key  name="wwpr oject-prop erty-by-na me" match= "wwproject :Property"  use="@Nam e"/>
43     44  
44     45  
45    <xsl:temp late name= "Breadcrum bs">   46    <xsl:temp late name= "Breadcrum bs">
46     <xsl:par am name="P aramPageRu le" />   47     <xsl:par am name="P aramPageRu le" />
47     <xsl:par am name="P aramSplit"  />   48     <xsl:par am name="P aramSplit"  />
48     <xsl:par am name="P aramBreadc rumbTOCEnt ry" />   49     <xsl:par am name="P aramBreadc rumbTOCEnt ry" />
49     50  
50     <xsl:for -each sele ct="$Param Breadcrumb TOCEntry/. ./ancestor -or-self:: wwtoc:Entr y">   51     <xsl:for -each sele ct="$Param Breadcrumb TOCEntry/. ./ancestor -or-self:: wwtoc:Entr y">
51      <xsl:va riable nam e="VarTOCE ntry" sele ct="." />   52      <xsl:va riable nam e="VarTOCE ntry" sele ct="." />
52     53  
53      <!-- Em it entry - ->   54      <!-- Em it entry - ->
54      <!--             - ->   55      <!--             - ->
55      <xsl:ch oose>   56      <xsl:ch oose>
56       <xsl:w hen test=" string-len gth($VarTO CEntry/@pa th) &gt; 0 ">   57       <xsl:w hen test=" string-len gth($VarTO CEntry/@pa th) &gt; 0 ">
57        <!--  Entry with  link -->   58        <!--  Entry with  link -->
58        <!--                   -->   59        <!--                   -->
59        <xsl: variable n ame="VarRe lativePath " select=" wwuri:GetR elativeTo( $VarTOCEnt ry/@path,  $ParamSpli t/@path)"  />   60        <xsl: variable n ame="VarRe lativePath " select=" wwuri:GetR elativeTo( $VarTOCEnt ry/@path,  $ParamSpli t/@path)"  />
60     61  
61        <html :a class=" WebWorks_B readcrumb_ Link" href ="{$VarRel ativePath} #{$ParamBr eadcrumbTO CEntry/@li nkid}">   62        <html :a class=" WebWorks_B readcrumb_ Link" href ="{$VarRel ativePath} #{$ParamBr eadcrumbTO CEntry/@li nkid}">
62         <xsl :call-temp late name= "Breadcrum bEntry">   63         <xsl :call-temp late name= "Breadcrum bEntry">
63          <xs l:with-par am name="P aramTOCEnt ry" select ="$VarTOCE ntry" />   64          <xs l:with-par am name="P aramTOCEnt ry" select ="$VarTOCE ntry" />
64         </xs l:call-tem plate>   65         </xs l:call-tem plate>
65        </htm l:a>   66        </htm l:a>
66       </xsl: when>   67       </xsl: when>
67     68  
68       <xsl:o therwise>   69       <xsl:o therwise>
69        <!--  Entry with out link - ->   70        <!--  Entry with out link - ->
70        <!--                      - ->   71        <!--                      - ->
71        <xsl: call-templ ate name=" Breadcrumb Entry">   72        <xsl: call-templ ate name=" Breadcrumb Entry">
72         <xsl :with-para m name="Pa ramTOCEntr y" select= "$VarTOCEn try" />   73         <xsl :with-para m name="Pa ramTOCEntr y" select= "$VarTOCEn try" />
73        </xsl :call-temp late>   74        </xsl :call-temp late>
74       </xsl: otherwise>   75       </xsl: otherwise>
75      </xsl:c hoose>   76      </xsl:c hoose>
76     77  
77      <!-- Em it separat or -->   78      <!-- Em it separat or -->
78      <!--                  -->   79      <!--                  -->
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 " />   80      <xsl:va riable nam e="VarBrea dcrumbsSep arator" se lect="$Par amPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' breadcrumb s-separato r']/@Value " />
80      <xsl:ch oose>   81      <xsl:ch oose>
81       <xsl:w hen test=" string-len gth($VarBr eadcrumbsS eparator)  &gt; 0">   82       <xsl:w hen test=" string-len gth($VarBr eadcrumbsS eparator)  &gt; 0">
82        <xsl: value-of s elect="$Va rBreadcrum bsSeparato r" />   83        <xsl: value-of s elect="$Va rBreadcrum bsSeparato r" />
83       </xsl: when>   84       </xsl: when>
84     85  
85       <xsl:o therwise>   86       <xsl:o therwise>
86        <xsl: text> : </ xsl:text>   87        <xsl: text> : </ xsl:text>
87       </xsl: otherwise>   88       </xsl: otherwise>
88      </xsl:c hoose>   89      </xsl:c hoose>
89     </xsl:fo r-each>   90     </xsl:fo r-each>
90     91  
91     <!-- Emi t entry -- >   92     <!-- Emi t entry -- >
92     <!--             -- >   93     <!--             -- >
93     <xsl:cal l-template  name="Bre adcrumbEnt ry">   94     <xsl:cal l-template  name="Bre adcrumbEnt ry">
94      <xsl:wi th-param n ame="Param TOCEntry"  select="$P aramBreadc rumbTOCEnt ry" />   95      <xsl:wi th-param n ame="Param TOCEntry"  select="$P aramBreadc rumbTOCEnt ry" />
95     </xsl:ca ll-templat e>   96     </xsl:ca ll-templat e>
96    </xsl:tem plate>   97    </xsl:tem plate>
97     98  
98     99  
99    <xsl:temp late name= "Breadcrum bEntry">   100    <xsl:temp late name= "Breadcrum bEntry">
100     <xsl:par am name="P aramTOCEnt ry" />   101     <xsl:par am name="P aramTOCEnt ry" />
101     102  
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">   103     <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">
103      <xsl:va riable nam e="VarText " select=" ." />   104      <xsl:va riable nam e="VarText " select=" ." />
104     105  
105      <xsl:va lue-of sel ect="$VarT ext/@value " />   106      <xsl:va lue-of sel ect="$VarT ext/@value " />
106     </xsl:fo r-each>   107     </xsl:fo r-each>
107    </xsl:tem plate>   108    </xsl:tem plate>
108     109  
109     110  
110    <xsl:temp late name= "Content-C ontent">   111    <xsl:temp late name= "Content-C ontent">
111     <xsl:par am name="P aramConten t" />   112     <xsl:par am name="P aramConten t" />
112     <xsl:par am name="P aramSplits " />   113     <xsl:par am name="P aramSplits " />
113     <xsl:par am name="P aramCargo"  />   114     <xsl:par am name="P aramCargo"  />
114     <xsl:par am name="P aramLinks"  />   115     <xsl:par am name="P aramLinks"  />
115     <xsl:par am name="P aramTOCDat a" />   116     <xsl:par am name="P aramTOCDat a" />
116     <xsl:par am name="P aramSplit"  />   117     <xsl:par am name="P aramSplit"  />
117     118  
118     <!-- Con tent -->   119     <!-- Con tent -->
119     <!--          -->   120     <!--          -->
120     <xsl:app ly-templat es select= "$ParamCon tent" mode ="wwmode:c ontent">   121     <xsl:app ly-templat es select= "$ParamCon tent" mode ="wwmode:c ontent">
121      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  />   122      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  />
122      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" />   123      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" />
123      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />   124      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />
124      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " />   125      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " />
125      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />   126      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
126     </xsl:ap ply-templa tes>   127     </xsl:ap ply-templa tes>
127     128  
128     <!-- Rel ated Topic s -->   129     <!-- Rel ated Topic s -->
129     <!--                  -->   130     <!--                  -->
130     <xsl:cal l-template  name="Rel atedTopics ">   131     <xsl:cal l-template  name="Rel atedTopics ">
131      <xsl:wi th-param n ame="Param Content" s elect="$Pa ramContent " />   132      <xsl:wi th-param n ame="Param Content" s elect="$Pa ramContent " />
132      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  />   133      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  />
133      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" />   134      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" />
134      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />   135      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />
135      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />   136      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
136     </xsl:ca ll-templat e>   137     </xsl:ca ll-templat e>
137    </xsl:tem plate>   138    </xsl:tem plate>
138     139  
139     140  
140    <xsl:temp late name= "RelatedTo pics">   141    <xsl:temp late name= "RelatedTo pics">
141     <xsl:par am name="P aramConten t" />   142     <xsl:par am name="P aramConten t" />
142     <xsl:par am name="P aramSplits " />   143     <xsl:par am name="P aramSplits " />
143     <xsl:par am name="P aramCargo"  />   144     <xsl:par am name="P aramCargo"  />
144     <xsl:par am name="P aramLinks"  />   145     <xsl:par am name="P aramLinks"  />
145     <xsl:par am name="P aramSplit"  />   146     <xsl:par am name="P aramSplit"  />
146     147  
147     <xsl:var iable name ="VarRelat edTopicPar agraphsAsX ML">   148     <xsl:var iable name ="VarRelat edTopicPar agraphsAsX ML">
148      <xsl:ca ll-templat e name="Re latedTopic Paragraphs ">   149      <xsl:ca ll-templat e name="Re latedTopic Paragraphs ">
149       <xsl:w ith-param  name="Para mContent"  select="$P aramConten t" />   150       <xsl:w ith-param  name="Para mContent"  select="$P aramConten t" />
150       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >   151       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >
151       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >   152       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >
152      </xsl:c all-templa te>   153      </xsl:c all-templa te>
153     </xsl:va riable>   154     </xsl:va riable>
154     <xsl:var iable name ="VarRelat edTopicPar agraphs" s elect="msx sl:node-se t($VarRela tedTopicPa ragraphsAs XML)/wwdoc :Paragraph " />   155     <xsl:var iable name ="VarRelat edTopicPar agraphs" s elect="msx sl:node-se t($VarRela tedTopicPa ragraphsAs XML)/wwdoc :Paragraph " />
155     156  
156     <html:sc ript type= "text/java script" la nguage="Ja vaScript1. 2">   157     <html:sc ript type= "text/java script" la nguage="Ja vaScript1. 2">
157      <xsl:co mment>   158      <xsl:co mment>
158       <xsl:t ext>   159       <xsl:t ext>
159   </xsl:text >   160   </xsl:text >
160       <xsl:t ext>           // Cle ar related  topics   161       <xsl:t ext>           // Cle ar related  topics
161   </xsl:text >   162   </xsl:text >
162       <xsl:t ext>           //   163       <xsl:t ext>           //
163   </xsl:text >   164   </xsl:text >
164       <xsl:t ext>           WWHCle arRelatedT opics();   165       <xsl:t ext>           WWHCle arRelatedT opics();
165   </xsl:text >   166   </xsl:text >
166     167  
167       <xsl:i f test="co unt($VarRe latedTopic Paragraphs ) &gt; 0">   168       <xsl:i f test="co unt($VarRe latedTopic Paragraphs ) &gt; 0">
168        <xsl: text>   169        <xsl: text>
169   </xsl:text >   170   </xsl:text >
170        <xsl: text>           // Ad d related  topics   171        <xsl: text>           // Ad d related  topics
171   </xsl:text >   172   </xsl:text >
172        <xsl: text>           //   173        <xsl: text>           //
173   </xsl:text >   174   </xsl:text >
174        <xsl: for-each s elect="$Va rRelatedTo picParagra phs">   175        <xsl: for-each s elect="$Va rRelatedTo picParagra phs">
175         <xsl :variable  name="VarR elatedTopi cParagraph " select=" ." />   176         <xsl :variable  name="VarR elatedTopi cParagraph " select=" ." />
176     177  
177         <!--  Resolve l ink -->   178         <!--  Resolve l ink -->
178         <!--                -->   179         <!--                -->
179         <xsl :variable  name="VarR esolvedLin kInfoAsXML ">   180         <xsl :variable  name="VarR esolvedLin kInfoAsXML ">
180          <xs l:call-tem plate name ="Links-Re solve">   181          <xs l:call-tem plate name ="Links-Re solve">
181           <x sl:with-pa ram name=" ParamAllow Baggage" s elect="$Pa rameterAll owBaggage"  />   182           <x sl:with-pa ram name=" ParamAllow Baggage" s elect="$Pa rameterAll owBaggage"  />
182           <x sl:with-pa ram name=" ParamAllow GroupToGro up" select ="$Paramet erAllowGro upToGroup"  />   183           <x sl:with-pa ram name=" ParamAllow GroupToGro up" select ="$Paramet erAllowGro upToGroup"  />
183           <x sl:with-pa ram name=" ParamAllow URL" selec t="$Parame terAllowUR L" />   184           <x sl:with-pa ram name=" ParamAllow URL" selec t="$Parame terAllowUR L" />
184           <x sl:with-pa ram name=" ParamBagga geSplitFil eType" sel ect="$Para meterBagga geSplitFil eType" />   185           <x sl:with-pa ram name=" ParamBagga geSplitFil eType" sel ect="$Para meterBagga geSplitFil eType" />
185           <x sl:with-pa ram name=" ParamProje ct" select ="$GlobalP roject" />   186           <x sl:with-pa ram name=" ParamProje ct" select ="$GlobalP roject" />
186           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />   187           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
187           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />   188           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
188           <x sl:with-pa ram name=" ParamSplit GroupID" s elect="$Pa ramSplit/@ groupID" / >   189           <x sl:with-pa ram name=" ParamSplit GroupID" s elect="$Pa ramSplit/@ groupID" / >
189           <x sl:with-pa ram name=" ParamSplit DocumentID " select=" $ParamSpli t/@documen tID" />   190           <x sl:with-pa ram name=" ParamSplit DocumentID " select=" $ParamSpli t/@documen tID" />
190           <x sl:with-pa ram name=" ParamDocum entLink" s elect="$Va rRelatedTo picParagra ph/wwdoc:L ink" />   191           <x sl:with-pa ram name=" ParamDocum entLink" s elect="$Va rRelatedTo picParagra ph/wwdoc:L ink" />
191          </x sl:call-te mplate>   192          </x sl:call-te mplate>
192         </xs l:variable >   193         </xs l:variable >
193         <xsl :variable  name="VarR esolvedLin kInfo" sel ect="msxsl :node-set( $VarResolv edLinkInfo AsXML)/wwl inks:Resol vedLink" / >   194         <xsl :variable  name="VarR esolvedLin kInfo" sel ect="msxsl :node-set( $VarResolv edLinkInfo AsXML)/wwl inks:Resol vedLink" / >
194     195  
195         <xsl :choose>   196         <xsl :choose>
196          <!- - Document  -->   197          <!- - Document  -->
197          <!- -           -->   198          <!- -           -->
198          <xs l:when tes t="($VarRe solvedLink Info/@type  = 'docume nt') or ($ VarResolve dLinkInfo/ @type = 'g roup') or  ($VarResol vedLinkInf o/@type =  'project') ">   199          <xs l:when tes t="($VarRe solvedLink Info/@type  = 'docume nt') or ($ VarResolve dLinkInfo/ @type = 'g roup') or  ($VarResol vedLinkInf o/@type =  'project') ">
199           <! -- Project  link -->   200           <! -- Project  link -->
200           <! --               -->   201           <! --               -->
201           <x sl:variabl e name="Va rGroupName " select=" wwprojext: GetGroupNa me($VarRes olvedLinkI nfo/@group ID)" />   202           <x sl:variabl e name="Va rGroupName " select=" wwprojext: GetGroupNa me($VarRes olvedLinkI nfo/@group ID)" />
202           <x sl:variabl e name="Va rOutputDir ectoryPath " select=" wwfilesyst em:Combine (wwprojext :GetTarget OutputDire ctoryPath( ), $VarGro upName)" / >   203           <x sl:variabl e name="Va rOutputDir ectoryPath " select=" wwfilesyst em:Combine (wwprojext :GetTarget OutputDire ctoryPath( ), $VarGro upName)" / >
203           <x sl:variabl e name="Va rRelativeP ath" selec t="wwuri:G etRelative To($VarRes olvedLinkI nfo/@path,  wwfilesys tem:Combin e($VarOutp utDirector yPath, 'du mmy.compon ent'))" />   204           <x sl:variabl e name="Va rRelativeP ath" selec t="wwuri:G etRelative To($VarRes olvedLinkI nfo/@path,  wwfilesys tem:Combin e($VarOutp utDirector yPath, 'du mmy.compon ent'))" />
204     205  
205           <! -- Add ent ry -->   206           <! -- Add ent ry -->
206           <! --            -->   207           <! --            -->
207           <x sl:text>           </ xsl:text>   208           <x sl:text>           </ xsl:text>
208           <x sl:text>WW HAddRelate dTopic(&qu ot;</xsl:t ext>   209           <x sl:text>WW HAddRelate dTopic(&qu ot;</xsl:t ext>
209     210  
210           <! -- Paragra ph text -- >   211           <! -- Paragra ph text -- >
211           <! --                 -- >   212           <! --                 -- >
212           <x sl:for-eac h select=" $VarRelate dTopicPara graph/wwdo c:TextRun/ wwdoc:Text ">   213           <x sl:for-eac h select=" $VarRelate dTopicPara graph/wwdo c:TextRun/ wwdoc:Text ">
213            < xsl:value- of select= "wwstring: JavaScript Encoding(@ value)" />   214            < xsl:value- of select= "wwstring: JavaScript Encoding(@ value)" />
214           </ xsl:for-ea ch>   215           </ xsl:for-ea ch>
215           <x sl:text>&q uot;, &quo t;</xsl:te xt>   216           <x sl:text>&q uot;, &quo t;</xsl:te xt>
216     217  
217           <! -- Context  -->   218           <! -- Context  -->
218           <! --          -->   219           <! --          -->
219           <x sl:call-te mplate nam e="WWHelpC ontext">   220           <x sl:call-te mplate nam e="WWHelpC ontext">
220            < xsl:with-p aram name= "ParamProj ect" selec t="$Global Project" / >   221            < xsl:with-p aram name= "ParamProj ect" selec t="$Global Project" / >
221            < xsl:with-p aram name= "ParamGrou pID" selec t="$VarRes olvedLinkI nfo/@group ID" />   222            < xsl:with-p aram name= "ParamGrou pID" selec t="$VarRes olvedLinkI nfo/@group ID" />
222           </ xsl:call-t emplate>   223           </ xsl:call-t emplate>
223           <x sl:text>&q uot;, &quo t;</xsl:te xt>   224           <x sl:text>&q uot;, &quo t;</xsl:te xt>
224     225  
225           <! -- Link -- >   226           <! -- Link -- >
226           <! --      -- >   227           <! --      -- >
227           <x sl:value-o f select=" wwstring:J avaScriptE ncoding($V arRelative Path)" />   228           <x sl:value-o f select=" wwstring:J avaScriptE ncoding($V arRelative Path)" />
228           <x sl:if test ="(string- length($Va rRelatedTo picParagra ph/wwdoc:L ink/@ancho r) &gt; 0)  and (stri ng-length( $VarResolv edLinkInfo /@linkid)  &gt; 0)">   229           <x sl:if test ="(string- length($Va rRelatedTo picParagra ph/wwdoc:L ink/@ancho r) &gt; 0)  and (stri ng-length( $VarResolv edLinkInfo /@linkid)  &gt; 0)">
229            < xsl:text># </xsl:text >   230            < xsl:text># </xsl:text >
230            < xsl:value- of select= "wwstring: JavaScript Encoding($ VarResolve dLinkInfo/ @linkid)"  />   231            < xsl:value- of select= "wwstring: JavaScript Encoding($ VarResolve dLinkInfo/ @linkid)"  />
231           </ xsl:if>   232           </ xsl:if>
232           <x sl:text>&q uot;</xsl: text>   233           <x sl:text>&q uot;</xsl: text>
233           <x sl:text>);   234           <x sl:text>);
234   </xsl:text >   235   </xsl:text >
235          </x sl:when>   236          </x sl:when>
236         </xs l:choose>   237         </xs l:choose>
237        </xsl :for-each>   238        </xsl :for-each>
238       </xsl: if>   239       </xsl: if>
239     240  
240       <xsl:t ext>   241       <xsl:t ext>
241   </xsl:text >   242   </xsl:text >
242       <xsl:t ext>           docume nt.writeln (WWHRelate dTopicsInl ineHTML()) ;   243       <xsl:t ext>           docume nt.writeln (WWHRelate dTopicsInl ineHTML()) ;
243   </xsl:text >   244   </xsl:text >
244       <xsl:t ext>         // </xsl :text>   245       <xsl:t ext>         // </xsl :text>
245      </xsl:c omment>   246      </xsl:c omment>
246     </html:s cript>   247     </html:s cript>
247    </xsl:tem plate>   248    </xsl:tem plate>
248     249  
249     250  
250    <xsl:temp late name= "RelatedTo picParagra phs">   251    <xsl:temp late name= "RelatedTo picParagra phs">
251     <xsl:par am name="P aramConten t" />   252     <xsl:par am name="P aramConten t" />
252     <xsl:par am name="P aramCargo"  />   253     <xsl:par am name="P aramCargo"  />
253     <xsl:par am name="P aramSplit"  />   254     <xsl:par am name="P aramSplit"  />
254     255  
255     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] ">   256     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] ">
256      <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')"  />   257      <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')"  />
257     258  
258      <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)]">   259      <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)]">
259       <xsl:v ariable na me="VarBeh aviorParag raph" sele ct="." />   260       <xsl:v ariable na me="VarBeh aviorParag raph" sele ct="." />
260     261  
261       <xsl:f or-each se lect="$Par amContent[ 1]">   262       <xsl:f or-each se lect="$Par amContent[ 1]">
262        <xsl: for-each s elect="key ('wwdoc-pa ragraphs-b y-id', $Va rBehaviorP aragraph/@ id)[1]">   263        <xsl: for-each s elect="key ('wwdoc-pa ragraphs-b y-id', $Va rBehaviorP aragraph/@ id)[1]">
263         <xsl :variable  name="VarP aragraph"  select="."  />   264         <xsl :variable  name="VarP aragraph"  select="."  />
264     265  
265         <!--  Paragraph  has link?  -->   266         <!--  Paragraph  has link?  -->
266         <!--                        -->   267         <!--                        -->
267         <xsl :variable  name="VarC hildLinks"  select="$ VarParagra ph//wwdoc: Link[count ($VarParag raph | anc estor::wwd oc:Paragra ph[1]) = 1 ]" />   268         <xsl :variable  name="VarC hildLinks"  select="$ VarParagra ph//wwdoc: Link[count ($VarParag raph | anc estor::wwd oc:Paragra ph[1]) = 1 ]" />
268         <xsl :variable  name="VarC hildLinksC ount" sele ct="count( $VarChildL inks)" />   269         <xsl :variable  name="VarC hildLinksC ount" sele ct="count( $VarChildL inks)" />
269         <xsl :if test=" $VarChildL inksCount  &gt; 0">   270         <xsl :if test=" $VarChildL inksCount  &gt; 0">
270          <!- - Emit par agraph -->   271          <!- - Emit par agraph -->
271          <!- -                 -->   272          <!- -                 -->
272          <ww doc:Paragr aph>   273          <ww doc:Paragr aph>
273           <x sl:copy-of  select="$ VarParagra ph/@*" />   274           <x sl:copy-of  select="$ VarParagra ph/@*" />
274     275  
275           <! -- Insure  link is de fined -->   276           <! -- Insure  link is de fined -->
276           <! --                          -->   277           <! --                          -->
277           <x sl:if test ="count($V arParagrap h/wwdoc:Li nk) = 0">   278           <x sl:if test ="count($V arParagrap h/wwdoc:Li nk) = 0">
278            < xsl:copy-o f select=" $VarChildL inks[1]" / >   279            < xsl:copy-o f select=" $VarChildL inks[1]" / >
279           </ xsl:if>   280           </ xsl:if>
280     281  
281           <x sl:copy-of  select="$ VarParagra ph/*" />   282           <x sl:copy-of  select="$ VarParagra ph/*" />
282          </w wdoc:Parag raph>   283          </w wdoc:Parag raph>
283         </xs l:if>   284         </xs l:if>
284        </xsl :for-each>   285        </xsl :for-each>
285       </xsl: for-each>   286       </xsl: for-each>
286      </xsl:f or-each>   287      </xsl:f or-each>
287     </xsl:fo r-each>   288     </xsl:fo r-each>
288    </xsl:tem plate>   289    </xsl:tem plate>
289     290  
290     291  
291    <xsl:temp late name= "Content-N otes">   292    <xsl:temp late name= "Content-N otes">
292     <xsl:par am name="P aramNotes"  />   293     <xsl:par am name="P aramNotes"  />
293     <xsl:par am name="P aramSplits " />   294     <xsl:par am name="P aramSplits " />
294     <xsl:par am name="P aramCargo"  />   295     <xsl:par am name="P aramCargo"  />
295     <xsl:par am name="P aramLinks"  />   296     <xsl:par am name="P aramLinks"  />
296     <xsl:par am name="P aramTOCDat a" />   297     <xsl:par am name="P aramTOCDat a" />
297     <xsl:par am name="P aramSplit"  />   298     <xsl:par am name="P aramSplit"  />
298     299  
299     <xsl:if  test="coun t($ParamNo tes[1]) =  1">   300     <xsl:if  test="coun t($ParamNo tes[1]) =  1">
300      <html:h r />   301      <html:h r />
301      <xsl:fo r-each sel ect="$Para mNotes">   302      <xsl:fo r-each sel ect="$Para mNotes">
302       <xsl:v ariable na me="VarNot e" select= "." />   303       <xsl:v ariable na me="VarNot e" select= "." />
303     304  
304       <xsl:v ariable na me="VarNot eNumber" s elect="$Pa ramCargo/w wnotes:Not eNumbering /wwnotes:N ote[@id =  $VarNote/@ id]/@numbe r" />   305       <xsl:v ariable na me="VarNot eNumber" s elect="$Pa ramCargo/w wnotes:Not eNumbering /wwnotes:N ote[@id =  $VarNote/@ id]/@numbe r" />
305     306  
306       <xsl:i f test="st ring-lengt h($VarNote Number) &g t; 0">   307       <xsl:i f test="st ring-lengt h($VarNote Number) &g t; 0">
307        <html :div style ="font-siz e: smaller ; float: l eft; paddi ng-right:  10px;">   308        <html :div style ="font-siz e: smaller ; float: l eft; paddi ng-right:  10px;">
308         <htm l:a name=" {$VarNote/ @id}">   309         <htm l:a name=" {$VarNote/ @id}">
309          <xs l:attribut e name="hr ef">   310          <xs l:attribut e name="hr ef">
310           <x sl:text>#w wfootnote_ inline_</x sl:text>   311           <x sl:text>#w wfootnote_ inline_</x sl:text>
311           <x sl:value-o f select=" $VarNote/@ id" />   312           <x sl:value-o f select=" $VarNote/@ id" />
312          </x sl:attribu te>   313          </x sl:attribu te>
313     314  
314          <xs l:value-of  select="$ VarNoteNum ber"/>   315          <xs l:value-of  select="$ VarNoteNum ber"/>
315         </ht ml:a>   316         </ht ml:a>
316        </htm l:div>   317        </htm l:div>
317     318  
318        <xsl: apply-temp lates sele ct="$VarNo te/*" mode ="wwmode:c ontent">   319        <xsl: apply-temp lates sele ct="$VarNo te/*" mode ="wwmode:c ontent">
319         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   320         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
320         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   321         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
321         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   322         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
322         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" />   323         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" />
323         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   324         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
324        </xsl :apply-tem plates>   325        </xsl :apply-tem plates>
325        <html :br style= "clear: al l;" />   326        <html :br style= "clear: al l;" />
326       </xsl: if>   327       </xsl: if>
327      </xsl:f or-each>   328      </xsl:f or-each>
328     </xsl:if >   329     </xsl:if >
329    </xsl:tem plate>   330    </xsl:tem plate>
330     331  
331     332  
332    <xsl:temp late name= "Content-B ullet">   333    <xsl:temp late name= "Content-B ullet">
333     <xsl:par am name="P aramSplits " />   334     <xsl:par am name="P aramSplits " />
334     <xsl:par am name="P aramSplit"  />   335     <xsl:par am name="P aramSplit"  />
335     <xsl:par am name="P aramParagr aph" />   336     <xsl:par am name="P aramParagr aph" />
336     <xsl:par am name="P aramCharac ter" />   337     <xsl:par am name="P aramCharac ter" />
337     <xsl:par am name="P aramImage"  />   338     <xsl:par am name="P aramImage"  />
338     <xsl:par am name="P aramSepara tor" />   339     <xsl:par am name="P aramSepara tor" />
339     <xsl:par am name="P aramStyle"  />   340     <xsl:par am name="P aramStyle"  />
340     341  
341     <xsl:cho ose>   342     <xsl:cho ose>
342      <xsl:wh en test="s tring-leng th($ParamS tyle) &gt;  0">   343      <xsl:wh en test="s tring-leng th($ParamS tyle) &gt;  0">
343     344  
344       <!-- G et rule -- >   345       <!-- G et rule -- >
345       <!--           -- >   346       <!--           -- >
346       <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Character' , $ParamSt yle)" />   347       <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Character' , $ParamSt yle)" />
347     348  
348       <!-- R esolve pro ject prope rties -->   349       <!-- R esolve pro ject prope rties -->
349       <!--                               -->   350       <!--                               -->
350       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML">   351       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML">
351        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" >   352        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" >
352         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramParagr aph" />   353         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramParagr aph" />
353         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRul e/wwprojec t:Properti es/wwproje ct:Propert y" />   354         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRul e/wwprojec t:Properti es/wwproje ct:Propert y" />
354         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yle" />   355         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yle" />
355         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" />   356         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" />
356         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mParagraph /wwdoc:Num ber[1]/wwd oc:Style"  />   357         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mParagraph /wwdoc:Num ber[1]/wwd oc:Style"  />
357        </xsl :call-temp late>   358        </xsl :call-temp late>
358       </xsl: variable>   359       </xsl: variable>
359       <xsl:v ariable na me="VarRes olvedConte xtProperti es" select ="msxsl:no de-set($Va rResolvedC ontextProp ertiesAsXM L)/wwproje ct:Propert y" />   360       <xsl:v ariable na me="VarRes olvedConte xtProperti es" select ="msxsl:no de-set($Va rResolvedC ontextProp ertiesAsXM L)/wwproje ct:Propert y" />
360     361  
361       <!-- C SS propert ies -->   362       <!-- C SS propert ies -->
362       <!--                  -->   363       <!--                  -->
363       <xsl:v ariable na me="VarCSS Properties AsXML">   364       <xsl:v ariable na me="VarCSS Properties AsXML">
364        <xsl: call-templ ate name=" CSS-Transl ateProject Properties ">   365        <xsl: call-templ ate name=" CSS-Transl ateProject Properties ">
365         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" />   366         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" />
366         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" />   367         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" />
367         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   368         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
368        </xsl :call-temp late>   369        </xsl :call-temp late>
369       </xsl: variable>   370       </xsl: variable>
370       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / >   371       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / >
371     372  
372       <!-- S tyle attri bute -->   373       <!-- S tyle attri bute -->
373       <!--                   -->   374       <!--                   -->
374       <xsl:v ariable na me="VarSty leAttribut e">   375       <xsl:v ariable na me="VarSty leAttribut e">
375        <xsl: call-templ ate name=" CSS-Inline Properties ">   376        <xsl: call-templ ate name=" CSS-Inline Properties ">
376         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " />   377         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " />
377        </xsl :call-temp late>   378        </xsl :call-temp late>
378       </xsl: variable>   379       </xsl: variable>
379     380  
380       <xsl:v ariable na me="VarTag Property"  select="$V arRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'tag' ]/@Value"  />   381       <xsl:v ariable na me="VarTag Property"  select="$V arRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'tag' ]/@Value"  />
381       <xsl:v ariable na me="VarTag ">   382       <xsl:v ariable na me="VarTag ">
382        <xsl: choose>   383        <xsl: choose>
383         <xsl :when test ="string-l ength($Var TagPropert y) &gt; 0" >   384         <xsl :when test ="string-l ength($Var TagPropert y) &gt; 0" >
384          <xs l:value-of  select="$ VarTagProp erty" />   385          <xs l:value-of  select="$ VarTagProp erty" />
385         </xs l:when>   386         </xs l:when>
386     387  
387         <xsl :otherwise >   388         <xsl :otherwise >
388          <xs l:value-of  select="' span'" />   389          <xs l:value-of  select="' span'" />
389         </xs l:otherwis e>   390         </xs l:otherwis e>
390        </xsl :choose>   391        </xsl :choose>
391       </xsl: variable>   392       </xsl: variable>
392     393  
393       <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} ">   394       <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} ">
394        <!--  Style attr ibute -->   395        <!--  Style attr ibute -->
395        <!--                   -->   396        <!--                   -->
396        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" >   397        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" >
397         <xsl :attribute  name="sty le">   398         <xsl :attribute  name="sty le">
398          <xs l:value-of  select="$ VarStyleAt tribute" / >   399          <xs l:value-of  select="$ VarStyleAt tribute" / >
399         </xs l:attribut e>   400         </xs l:attribut e>
400        </xsl :if>   401        </xsl :if>
401     402  
402        <xsl: if test="s tring-leng th($ParamI mage) &gt;  0">   403        <xsl: if test="s tring-leng th($ParamI mage) &gt;  0">
403         <!--  Get absol ute path f or imaging  info -->   404         <!--  Get absol ute path f or imaging  info -->
404         <!--                                        -->   405         <!--                                        -->
405         <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)"  />   406         <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)"  />
406         <xsl :variable  name="VarI mageInfo"  select="ww imaging:Ge tInfo($Var ImageFileS ystemPath) " />   407         <xsl :variable  name="VarI mageInfo"  select="ww imaging:Ge tInfo($Var ImageFileS ystemPath) " />
407     408  
408         <xsl :variable  name="VarI magePath">   409         <xsl :variable  name="VarI magePath">
409          <xs l:call-tem plate name ="URI-Reso lveProject FileURI">   410          <xs l:call-tem plate name ="URI-Reso lveProject FileURI">
410           <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamSpli t/@path" / >   411           <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamSpli t/@path" / >
411           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />   412           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
412           <x sl:with-pa ram name=" ParamURI"  select="$P aramImage"  />   413           <x sl:with-pa ram name=" ParamURI"  select="$P aramImage"  />
413          </x sl:call-te mplate>   414          </x sl:call-te mplate>
414         </xs l:variable >   415         </xs l:variable >
415     416  
416         <!--  Image -->   417         <!--  Image -->
417         <!--        -->   418         <!--        -->
418         <htm l:img src= "{$VarImag ePath}" al t="*" bord er="0" wid th="{$VarI mageInfo/@ width}" he ight="{$Va rImageInfo /@height}"  />   419         <htm l:img src= "{$VarImag ePath}" al t="*" bord er="0" wid th="{$VarI mageInfo/@ width}" he ight="{$Va rImageInfo /@height}"  />
419        </xsl :if>   420        </xsl :if>
420     421  
421        <!--  Characters  -->   422        <!--  Characters  -->
422        <!--              -->   423        <!--              -->
423        <xsl: value-of s elect="$Pa ramCharact er" />   424        <xsl: value-of s elect="$Pa ramCharact er" />
424     425  
425        <!--  Separator  -->   426        <!--  Separator  -->
426        <!--             -->   427        <!--             -->
427        <xsl: value-of s elect="$Pa ramSeparat or" />   428        <xsl: value-of s elect="$Pa ramSeparat or" />
428       </xsl: element>   429       </xsl: element>
429      </xsl:w hen>   430      </xsl:w hen>
430     431  
431      <xsl:ot herwise>   432      <xsl:ot herwise>
432       <xsl:i f test="st ring-lengt h($ParamIm age) &gt;  0">   433       <xsl:i f test="st ring-lengt h($ParamIm age) &gt;  0">
433        <!--  Get absolu te path fo r imaging  info -->   434        <!--  Get absolu te path fo r imaging  info -->
434        <!--                                        -->   435        <!--                                        -->
435        <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)"  />   436        <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)"  />
436        <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Get Info($VarI mageFileSy stemPath)"  />   437        <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Get Info($VarI mageFileSy stemPath)"  />
437     438  
438        <xsl: variable n ame="VarIm agePath">   439        <xsl: variable n ame="VarIm agePath">
439         <xsl :call-temp late name= "URI-Resol veProjectF ileURI">   440         <xsl :call-temp late name= "URI-Resol veProjectF ileURI">
440          <xs l:with-par am name="P aramFromAb soluteURI"  select="$ ParamSplit /@path" />   441          <xs l:with-par am name="P aramFromAb soluteURI"  select="$ ParamSplit /@path" />
441          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />   442          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />
442          <xs l:with-par am name="P aramURI" s elect="$Pa ramImage"  />   443          <xs l:with-par am name="P aramURI" s elect="$Pa ramImage"  />
443         </xs l:call-tem plate>   444         </xs l:call-tem plate>
444        </xsl :variable>   445        </xsl :variable>
445     446  
446        <!--  Image -->   447        <!--  Image -->
447        <!--        -->   448        <!--        -->
448        <html :img src=" {$VarImage Path}" alt ="*" borde r="0" widt h="{$VarIm ageInfo/@w idth}" hei ght="{$Var ImageInfo/ @height}"  />   449        <html :img src=" {$VarImage Path}" alt ="*" borde r="0" widt h="{$VarIm ageInfo/@w idth}" hei ght="{$Var ImageInfo/ @height}"  />
449       </xsl: if>   450       </xsl: if>
450     451  
451       <!-- C haracters  -->   452       <!-- C haracters  -->
452       <!--              -->   453       <!--              -->
453       <xsl:v alue-of se lect="$Par amCharacte r" />   454       <xsl:v alue-of se lect="$Par amCharacte r" />
454     455  
455       <!-- S eparator - ->   456       <!-- S eparator - ->
456       <!--            - ->   457       <!--            - ->
457       <xsl:v alue-of se lect="$Par amSeparato r" />   458       <xsl:v alue-of se lect="$Par amSeparato r" />
458      </xsl:o therwise>   459      </xsl:o therwise>
459     </xsl:ch oose>   460     </xsl:ch oose>
460    </xsl:tem plate>   461    </xsl:tem plate>
461     462  
462     463  
463    <xsl:temp late name= "Notes-Num ber">   464    <xsl:temp late name= "Notes-Num ber">
464     <xsl:par am name="P aramNotes"  />   465     <xsl:par am name="P aramNotes"  />
465     466  
466     <wwnotes :NoteNumbe ring versi on="1.0">   467     <wwnotes :NoteNumbe ring versi on="1.0">
467      <xsl:fo r-each sel ect="$Para mNotes">   468      <xsl:fo r-each sel ect="$Para mNotes">
468       <xsl:v ariable na me="VarNot e" select= "." />   469       <xsl:v ariable na me="VarNot e" select= "." />
469     470  
470       <wwnot es:Note id ="{$VarNot e/@id}" nu mber="{pos ition()}"  />   471       <wwnot es:Note id ="{$VarNot e/@id}" nu mber="{pos ition()}"  />
471      </xsl:f or-each>   472      </xsl:f or-each>
472     </wwnote s:NoteNumb ering>   473     </wwnote s:NoteNumb ering>
473    </xsl:tem plate>   474    </xsl:tem plate>
474     475  
475     476  
476    <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:content" >   477    <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:content" >
477     <xsl:par am name="P aramSplits " />   478     <xsl:par am name="P aramSplits " />
478     <xsl:par am name="P aramCargo"  />   479     <xsl:par am name="P aramCargo"  />
479     <xsl:par am name="P aramLinks"  />   480     <xsl:par am name="P aramLinks"  />
480     <xsl:par am name="P aramTOCDat a" />   481     <xsl:par am name="P aramTOCDat a" />
481     <xsl:par am name="P aramSplit"  />   482     <xsl:par am name="P aramSplit"  />
482     483  
483     <xsl:var iable name ="VarParag raph" sele ct="." />   484     <xsl:var iable name ="VarParag raph" sele ct="." />
484     485  
485     <!-- Abo rted? -->   486     <!-- Abo rted? -->
486     <!--           -->   487     <!--           -->
487     <xsl:if  test="not( wwprogress :Abort())" >   488     <xsl:if  test="not( wwprogress :Abort())" >
488      <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)" />   489      <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)" />
489      <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" />   490      <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" />
490      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" />   491      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" />
491      <xsl:if  test="$Va rGenerateO utput">   492      <xsl:if  test="$Va rGenerateO utput">
492       <!-- R elated Top ic Only or  Popup Onl y? -->   493       <!-- R elated Top ic Only or  Popup Onl y? -->
493       <!--                                       -->   494       <!--                                       -->
494       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]">   495       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]">
495        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="key(' wwbehavior s-paragrap hs-by-id',  $VarParag raph/@id)[ 1]" />   496        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="key(' wwbehavior s-paragrap hs-by-id',  $VarParag raph/@id)[ 1]" />
496        <xsl: variable n ame="VarIn PopupPage"  select="c ount($Para mCargo/wwb ehaviors:P opupPage)  &gt; 0" />   497        <xsl: variable n ame="VarIn PopupPage"  select="c ount($Para mCargo/wwb ehaviors:P opupPage)  &gt; 0" />
497        <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')" />   498        <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')" />
498        <xsl: variable n ame="VarRe latedTopic Only" sele ct="$VarPa ragraphBeh avior/@rel atedtopic  = 'define- no-output' " />   499        <xsl: variable n ame="VarRe latedTopic Only" sele ct="$VarPa ragraphBeh avior/@rel atedtopic  = 'define- no-output' " />
499     500  
500        <xsl: if test="$ VarInPopup Page or (n ot($VarPop upOnly) an d not($Var RelatedTop icOnly))">   501        <xsl: if test="$ VarInPopup Page or (n ot($VarPop upOnly) an d not($Var RelatedTop icOnly))">
501         <!--  Paragraph  -->   502         <!--  Paragraph  -->
502         <!--             -->   503         <!--             -->
503         <xsl :call-temp late name= "Paragraph ">   504         <xsl :call-temp late name= "Paragraph ">
504          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />   505          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />
505          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " />   506          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " />
506          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " />   507          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " />
507          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " />   508          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " />
508          <xs l:with-par am name="P aramParagr aph" selec t="$VarPar agraph" />   509          <xs l:with-par am name="P aramParagr aph" selec t="$VarPar agraph" />
509          <xs l:with-par am name="P aramStyleN ame" selec t="$VarPar agraph/@st ylename" / >   510          <xs l:with-par am name="P aramStyleN ame" selec t="$VarPar agraph/@st ylename" / >
510          <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" />   511          <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" />
511          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" />   512          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" />
512         </xs l:call-tem plate>   513         </xs l:call-tem plate>
513     514  
514         <!--  MiniTOC - ->   515         <!--  MiniTOC - ->
515         <!--          - ->   516         <!--          - ->
516         <xsl :if test=" not($VarIn PopupPage) ">   517         <xsl :if test=" not($VarIn PopupPage) ">
517          <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" />   518          <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" />
518          <xs l:variable  name="Var MiniTOCSub LevelsNume ricPrefix"  select="w wunits:Num ericPrefix ($VarMiniT OCSubLevel s)" />   519          <xs l:variable  name="Var MiniTOCSub LevelsNume ricPrefix"  select="w wunits:Num ericPrefix ($VarMiniT OCSubLevel s)" />
519          <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)" />   520          <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)" />
520          <xs l:if test= "($VarMini TOCSubLeve lsGreaterT hanZero) o r ($VarMin iTOCSubLev els = 'all ')">   521          <xs l:if test= "($VarMini TOCSubLeve lsGreaterT hanZero) o r ($VarMin iTOCSubLev els = 'all ')">
521           <x sl:for-eac h select=" $ParamTOCD ata[1]">   522           <x sl:for-eac h select=" $ParamTOCD ata[1]">
522            < xsl:variab le name="V arTOCEntry " select=" key('wwtoc -entry-by- id', $VarP aragraph/@ id)[@docum entID = $P aramSplit/ @documentI D]" />   523            < xsl:variab le name="V arTOCEntry " select=" key('wwtoc -entry-by- id', $VarP aragraph/@ id)[@docum entID = $P aramSplit/ @documentI D]" />
523            < xsl:for-ea ch select= "$VarTOCEn try[1]">   524            < xsl:for-ea ch select= "$VarTOCEn try[1]">
524              <xsl:call- template n ame="MiniT OC">   525              <xsl:call- template n ame="MiniT OC">
525               <xsl:with -param nam e="ParamSp lit" selec t="$ParamS plit" />   526               <xsl:with -param nam e="ParamSp lit" selec t="$ParamS plit" />
526               <xsl:with -param nam e="ParamTO CEntry" se lect="$Var TOCEntry[1 ]" />   527               <xsl:with -param nam e="ParamTO CEntry" se lect="$Var TOCEntry[1 ]" />
527               <xsl:with -param nam e="ParamEm itTOCEntry " select=" false()" / >   528               <xsl:with -param nam e="ParamEm itTOCEntry " select=" false()" / >
528               <xsl:with -param nam e="ParamMi niTOCSubLe vels" sele ct="$VarMi niTOCSubLe vels" />   529               <xsl:with -param nam e="ParamMi niTOCSubLe vels" sele ct="$VarMi niTOCSubLe vels" />
529              </xsl:call -template>   530              </xsl:call -template>
530            < /xsl:for-e ach>   531            < /xsl:for-e ach>
531           </ xsl:for-ea ch>   532           </ xsl:for-ea ch>
532          </x sl:if>   533          </x sl:if>
533         </xs l:if>   534         </xs l:if>
534        </xsl :if>   535        </xsl :if>
535       </xsl: for-each>   536       </xsl: for-each>
536      </xsl:i f>   537      </xsl:i f>
537     </xsl:if >   538     </xsl:if >
538    </xsl:tem plate>   539    </xsl:tem plate>
539     540  
540     541  
541    <xsl:temp late name= "MiniTOC">   542    <xsl:temp late name= "MiniTOC">
542     <xsl:par am name="P aramSplit"  />   543     <xsl:par am name="P aramSplit"  />
543     <xsl:par am name="P aramTOCEnt ry" />   544     <xsl:par am name="P aramTOCEnt ry" />
544     <xsl:par am name="P aramEmitTO CEntry" />   545     <xsl:par am name="P aramEmitTO CEntry" />
545     <xsl:par am name="P aramMiniTO CSubLevels " />   546     <xsl:par am name="P aramMiniTO CSubLevels " />
546     547  
547     <xsl:if  test="($Pa ramEmitTOC Entry = tr ue()) or ( count($Par amTOCEntry /wwtoc:Ent ry[1]) = 1 )">   548     <xsl:if  test="($Pa ramEmitTOC Entry = tr ue()) or ( count($Par amTOCEntry /wwtoc:Ent ry[1]) = 1 )">
548      <html:d iv class=" WebWorks_M iniTOC">   549      <html:d iv class=" WebWorks_M iniTOC">
549       <!-- E mit top-le vel entry?  -->   550       <!-- E mit top-le vel entry?  -->
550       <!--                          -->   551       <!--                          -->
551       <xsl:c hoose>   552       <xsl:c hoose>
552        <xsl: when test= "$ParamEmi tTOCEntry  = true()">   553        <xsl: when test= "$ParamEmi tTOCEntry  = true()">
553         <htm l:div clas s="WebWork s_MiniTOC_ Level1">   554         <htm l:div clas s="WebWork s_MiniTOC_ Level1">
554          <!- - Paragrap h -->   555          <!- - Paragrap h -->
555          <!- -            -->   556          <!- -            -->
556          <xs l:call-tem plate name ="MiniTOCP aragraph">   557          <xs l:call-tem plate name ="MiniTOCP aragraph">
557           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param TOCEntry/w wdoc:Parag raph" />   558           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param TOCEntry/w wdoc:Parag raph" />
558          </x sl:call-te mplate>   559          </x sl:call-te mplate>
559         </ht ml:div>   560         </ht ml:div>
560     561  
561         <!--  Children  -->   562         <!--  Children  -->
562         <!--            -->   563         <!--            -->
563         <xsl :call-temp late name= "MiniTOCEn tries">   564         <xsl :call-temp late name= "MiniTOCEn tries">
564          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" />   565          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" />
565          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" />   566          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" />
566          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" />   567          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" />
567          <xs l:with-par am name="P aramLevel"  select="2 " />   568          <xs l:with-par am name="P aramLevel"  select="2 " />
568         </xs l:call-tem plate>   569         </xs l:call-tem plate>
569        </xsl :when>   570        </xsl :when>
570     571  
571        <xsl: otherwise>   572        <xsl: otherwise>
572         <!--  Children  -->   573         <!--  Children  -->
573         <!--            -->   574         <!--            -->
574         <xsl :call-temp late name= "MiniTOCEn tries">   575         <xsl :call-temp late name= "MiniTOCEn tries">
575          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" />   576          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" />
576          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" />   577          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" />
577          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" />   578          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" />
578          <xs l:with-par am name="P aramLevel"  select="1 " />   579          <xs l:with-par am name="P aramLevel"  select="1 " />
579         </xs l:call-tem plate>   580         </xs l:call-tem plate>
580        </xsl :otherwise >   581        </xsl :otherwise >
581       </xsl: choose>   582       </xsl: choose>
582      </html: div>   583      </html: div>
583     </xsl:if >   584     </xsl:if >
584    </xsl:tem plate>   585    </xsl:tem plate>
585     586  
586     587  
587    <xsl:temp late name= "MiniTOCEn tries">   588    <xsl:temp late name= "MiniTOCEn tries">
588     <xsl:par am name="P aramRefere ncePath" / >   589     <xsl:par am name="P aramRefere ncePath" / >
589     <xsl:par am name="P aramParent " />   590     <xsl:par am name="P aramParent " />
590     <xsl:par am name="P aramMiniTO CSubLevels " />   591     <xsl:par am name="P aramMiniTO CSubLevels " />
591     <xsl:par am name="P aramLevel"  />   592     <xsl:par am name="P aramLevel"  />
592     593  
593     <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry"  />   594     <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry"  />
594     595  
595     <xsl:for -each sele ct="$VarSu bEntries[1 ]">   596     <xsl:for -each sele ct="$VarSu bEntries[1 ]">
596      <xsl:fo r-each sel ect="$VarS ubEntries" >   597      <xsl:fo r-each sel ect="$VarS ubEntries" >
597       <xsl:v ariable na me="VarEnt ry" select ="." />   598       <xsl:v ariable na me="VarEnt ry" select ="." />
598     599  
599       <html: div>   600       <html: div>
600        <xsl: attribute  name="clas s">   601        <xsl: attribute  name="clas s">
601         <xsl :text>WebW orks_MiniT OC_Level</ xsl:text>   602         <xsl :text>WebW orks_MiniT OC_Level</ xsl:text>
602         <xsl :value-of  select="$P aramLevel"  />   603         <xsl :value-of  select="$P aramLevel"  />
603        </xsl :attribute >   604        </xsl :attribute >
604     605  
605        <xsl: choose>   606        <xsl: choose>
606         <xsl :when test ="string-l ength($Var Entry/@pat h) &gt; 0" >   607         <xsl :when test ="string-l ength($Var Entry/@pat h) &gt; 0" >
607          <!- - Get link  -->   608          <!- - Get link  -->
608          <!- -           -->   609          <!- -           -->
609          <xs l:variable  name="Var RelativeLi nkPath" se lect="wwur i:GetRelat iveTo($Var Entry/@pat h, $ParamR eferencePa th)" />   610          <xs l:variable  name="Var RelativeLi nkPath" se lect="wwur i:GetRelat iveTo($Var Entry/@pat h, $ParamR eferencePa th)" />
610     611  
611          <ht ml:a class ="WebWorks _MiniTOC_L ink" href= "{$VarRela tiveLinkPa th}#{$VarE ntry/@link id}">   612          <ht ml:a class ="WebWorks _MiniTOC_L ink" href= "{$VarRela tiveLinkPa th}#{$VarE ntry/@link id}">
612           <x sl:call-te mplate nam e="MiniTOC Paragraph" >   613           <x sl:call-te mplate nam e="MiniTOC Paragraph" >
613            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarE ntry/wwdoc :Paragraph " />   614            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarE ntry/wwdoc :Paragraph " />
614           </ xsl:call-t emplate>   615           </ xsl:call-t emplate>
615          </h tml:a>   616          </h tml:a>
616         </xs l:when>   617         </xs l:when>
617     618  
618         <xsl :otherwise >   619         <xsl :otherwise >
619          <xs l:call-tem plate name ="MiniTOCP aragraph">   620          <xs l:call-tem plate name ="MiniTOCP aragraph">
620           <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph"  />   621           <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph"  />
621          </x sl:call-te mplate>   622          </x sl:call-te mplate>
622         </xs l:otherwis e>   623         </xs l:otherwis e>
623        </xsl :choose>   624        </xsl :choose>
624       </html :div>   625       </html :div>
625     626  
626       <!-- R ecurse -->   627       <!-- R ecurse -->
627       <!--          -->   628       <!--          -->
628       <xsl:c hoose>   629       <xsl:c hoose>
629        <xsl: when test= "$ParamMin iTOCSubLev els = 'all '">   630        <xsl: when test= "$ParamMin iTOCSubLev els = 'all '">
630         <xsl :call-temp late name= "MiniTOCEn tries">   631         <xsl :call-temp late name= "MiniTOCEn tries">
631          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" />   632          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" />
632          <xs l:with-par am name="P aramParent " select=" $VarEntry"  />   633          <xs l:with-par am name="P aramParent " select=" $VarEntry"  />
633          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" />   634          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" />
634          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" />   635          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" />
635         </xs l:call-tem plate>   636         </xs l:call-tem plate>
636        </xsl :when>   637        </xsl :when>
637     638  
638        <xsl: when test= "($ParamMi niTOCSubLe vels - 1)  &gt; 0">   639        <xsl: when test= "($ParamMi niTOCSubLe vels - 1)  &gt; 0">
639         <xsl :call-temp late name= "MiniTOCEn tries">   640         <xsl :call-temp late name= "MiniTOCEn tries">
640          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" />   641          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" />
641          <xs l:with-par am name="P aramParent " select=" $VarEntry"  />   642          <xs l:with-par am name="P aramParent " select=" $VarEntry"  />
642          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls - 1" />   643          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls - 1" />
643          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" />   644          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" />
644         </xs l:call-tem plate>   645         </xs l:call-tem plate>
645        </xsl :when>   646        </xsl :when>
646       </xsl: choose>   647       </xsl: choose>
647      </xsl:f or-each>   648      </xsl:f or-each>
648     </xsl:fo r-each>   649     </xsl:fo r-each>
649    </xsl:tem plate>   650    </xsl:tem plate>
650     651  
651     652  
652    <xsl:temp late name= "MiniTOCPa ragraph">   653    <xsl:temp late name= "MiniTOCPa ragraph">
653     <xsl:par am name="P aramParagr aph" />   654     <xsl:par am name="P aramParagr aph" />
654     655  
655     <xsl:for -each sele ct="$Param Paragraph/ wwdoc:Numb er/wwdoc:T ext | $Par amParagrap h/wwdoc:Te xtRun/wwdo c:Text">   656     <xsl:for -each sele ct="$Param Paragraph/ wwdoc:Numb er/wwdoc:T ext | $Par amParagrap h/wwdoc:Te xtRun/wwdo c:Text">
656      <xsl:va lue-of sel ect="@valu e" />   657      <xsl:va lue-of sel ect="@valu e" />
657     </xsl:fo r-each>   658     </xsl:fo r-each>
658    </xsl:tem plate>   659    </xsl:tem plate>
659     660  
660     661  
661    <xsl:temp late name= "Paragraph ">   662    <xsl:temp late name= "Paragraph ">
662     <xsl:par am name="P aramSplits " />   663     <xsl:par am name="P aramSplits " />
663     <xsl:par am name="P aramCargo"  />   664     <xsl:par am name="P aramCargo"  />
664     <xsl:par am name="P aramLinks"  />   665     <xsl:par am name="P aramLinks"  />
665     <xsl:par am name="P aramSplit"  />   666     <xsl:par am name="P aramSplit"  />
666     <xsl:par am name="P aramParagr aph" />   667     <xsl:par am name="P aramParagr aph" />
667     <xsl:par am name="P aramStyleN ame" />   668     <xsl:par am name="P aramStyleN ame" />
668     <xsl:par am name="P aramOverri deRule" />   669     <xsl:par am name="P aramOverri deRule" />
669     <xsl:par am name="P aramParagr aphBehavio r" />   670     <xsl:par am name="P aramParagr aphBehavio r" />
670     671  
671     <!-- Pre serve empt y? -->   672     <!-- Pre serve empt y? -->
672     <!--                   -->   673     <!--                   -->
673     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " />   674     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " />
674     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " />   675     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " />
675     676  
676     <!-- Non -empty tex t runs -->   677     <!-- Non -empty tex t runs -->
677     <!--                       -->   678     <!--                       -->
678     <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]" />   679     <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]" />
679     680  
680     <!-- Pro cess this  paragraph  at all? -- >   681     <!-- Pro cess this  paragraph  at all? -- >
681     <!--                                   -- >   682     <!--                                   -- >
682     <xsl:if  test="($Va rPreserveE mpty) or ( count($Var TextRuns[1 ]) = 1)">   683     <xsl:if  test="($Va rPreserveE mpty) or ( count($Var TextRuns[1 ]) = 1)">
683      <!-- Pa ss-through ? -->   684      <!-- Pa ss-through ? -->
684      <!--                 -->   685      <!--                 -->
685      <xsl:va riable nam e="VarPass Through">   686      <xsl:va riable nam e="VarPass Through">
686       <xsl:c all-templa te name="C onditions- PassThroug h">   687       <xsl:c all-templa te name="C onditions- PassThroug h">
687        <xsl: with-param  name="Par amConditio ns" select ="$ParamPa ragraph/ww doc:Condit ions" />   688        <xsl: with-param  name="Par amConditio ns" select ="$ParamPa ragraph/ww doc:Condit ions" />
688       </xsl: call-templ ate>   689       </xsl: call-templ ate>
689      </xsl:v ariable>   690      </xsl:v ariable>
690     691  
691      <!-- A- Link? -->   692      <!-- A- Link? -->
692      <!--          -->   693      <!--          -->
693      <xsl:va riable nam e="VarALin kOption" s elect="$Pa ramOverrid eRule/wwpr oject:Opti ons/wwproj ect:Option [@Name = ' alink']/@V alue" />   694      <xsl:va riable nam e="VarALin kOption" s elect="$Pa ramOverrid eRule/wwpr oject:Opti ons/wwproj ect:Option [@Name = ' alink']/@V alue" />
694      <xsl:va riable nam e="VarALin k" select= "$VarALink Option = ' true'" />   695      <xsl:va riable nam e="VarALin k" select= "$VarALink Option = ' true'" />
695     696  
696      <xsl:ch oose>   697      <xsl:ch oose>
697       <!-- P ass-throug h -->   698       <!-- P ass-throug h -->
698       <!--                -->   699       <!--                -->
699       <xsl:w hen test=" $VarPassTh rough = 't rue'">   700       <xsl:w hen test=" $VarPassTh rough = 't rue'">
700        <xsl: call-templ ate name=" Paragraph- PassThroug h">   701        <xsl: call-templ ate name=" Paragraph- PassThroug h">
701         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / >   702         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / >
702        </xsl :call-temp late>   703        </xsl :call-temp late>
703       </xsl: when>   704       </xsl: when>
704     705  
705       <!-- A -Link arou nd whole p aragraph - ->   706       <!-- A -Link arou nd whole p aragraph - ->
706       <!--                                  - ->   707       <!--                                  - ->
707       <xsl:w hen test=" $VarALink" >   708       <xsl:w hen test=" $VarALink" >
708        <!--  Update car go -->   709        <!--  Update car go -->
709        <!--                -->   710        <!--                -->
710        <xsl: variable n ame="VarCa rgoALinkAs XML">   711        <xsl: variable n ame="VarCa rgoALinkAs XML">
711         <xsl :variable  name="VarA LinkEntrie s">   712         <xsl :variable  name="VarA LinkEntrie s">
712          <xs l:call-tem plate name ="ALinkEnt ries">   713          <xs l:call-tem plate name ="ALinkEnt ries">
713           <x sl:with-pa ram name=" ParamMarke rs" select ="$ParamPa ragraph/ww doc:TextRu n/wwdoc:Ma rker" />   714           <x sl:with-pa ram name=" ParamMarke rs" select ="$ParamPa ragraph/ww doc:TextRu n/wwdoc:Ma rker" />
714          </x sl:call-te mplate>   715          </x sl:call-te mplate>
715         </xs l:variable >   716         </xs l:variable >
716     717  
717         <wwa links:ALin k>   718         <wwa links:ALin k>
718          <xs l:attribut e name="hr ef">   719          <xs l:attribut e name="hr ef">
719           <x sl:value-o f select=" 'javascrip t:WWHDoNot hingHREF() ;'" />   720           <x sl:value-o f select=" 'javascrip t:WWHDoNot hingHREF() ;'" />
720          </x sl:attribu te>   721          </x sl:attribu te>
721          <xs l:attribut e name="on Click">   722          <xs l:attribut e name="on Click">
722           <x sl:value-o f select=" concat('WW HShowALink sPopup(new  Array(',  $VarALinkE ntries, ') , (documen t.all||doc ument.getE lementById ||document .layers)?e vent:null) ;')" />   723           <x sl:value-o f select=" concat('WW HShowALink sPopup(new  Array(',  $VarALinkE ntries, ') , (documen t.all||doc ument.getE lementById ||document .layers)?e vent:null) ;')" />
723          </x sl:attribu te>   724          </x sl:attribu te>
724         </ww alinks:ALi nk>   725         </ww alinks:ALi nk>
725        </xsl :variable>   726        </xsl :variable>
726        <xsl: variable n ame="VarCa rgoALink"  select="ms xsl:node-s et($VarCar goALinkAsX ML)" />   727        <xsl: variable n ame="VarCa rgoALink"  select="ms xsl:node-s et($VarCar goALinkAsX ML)" />
727        <xsl: variable n ame="VarCa rgo" selec t="$ParamC argo/*/..  | $VarCarg oALink" />   728        <xsl: variable n ame="VarCa rgo" selec t="$ParamC argo/*/..  | $VarCarg oALink" />
728     729  
729        <xsl: for-each s elect="$Pa ramSplits[ 1]">   730        <xsl: for-each s elect="$Pa ramSplits[ 1]">
730         <!--  Determine  image pat hs -->   731         <!--  Determine  image pat hs -->
731         <!--                          -->   732         <!--                          -->
732         <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)" />   733         <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)" />
733         <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)" />   734         <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)" />
734         <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)" />   735         <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)" />
735         <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)" />   736         <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)" />
736         <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)" />   737         <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)" />
737     738  
738         <htm l:table bo rder="0" c ellspacing ="0" cellp adding="0"  onclick=" {$VarCargo /wwalinks: ALink[1]/@ onClick}"  summary="" >   739         <htm l:table bo rder="0" c ellspacing ="0" cellp adding="0"  onclick=" {$VarCargo /wwalinks: ALink[1]/@ onClick}"  summary="" >
739          <ht ml:tr>   740          <ht ml:tr>
740           <h tml:td hei ght="2" co lspan="4"  bgcolor="# FFFFFF"></ html:td>   741           <h tml:td hei ght="2" co lspan="4"  bgcolor="# FFFFFF"></ html:td>
741           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer tup}"></ht ml:td>   742           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer tup}"></ht ml:td>
742          </h tml:tr>   743          </h tml:tr>
743          <ht ml:tr>   744          <ht ml:tr>
744           <h tml:td wid th="2" hei ght="2" bg color="#FF FFFF"></ht ml:td>   745           <h tml:td wid th="2" hei ght="2" bg color="#FF FFFF"></ht ml:td>
745           <h tml:td hei ght="2" co lspan="3"  bgcolor="# EEEEEE"></ html:td>   746           <h tml:td hei ght="2" co lspan="3"  bgcolor="# EEEEEE"></ html:td>
746           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer ight}"></h tml:td>   747           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer ight}"></h tml:td>
747          </h tml:tr>   748          </h tml:tr>
748          <ht ml:tr>   749          <ht ml:tr>
749           <h tml:td wid th="2" bgc olor="#FFF FFF"></htm l:td>   750           <h tml:td wid th="2" bgc olor="#FFF FFF"></htm l:td>
750           <h tml:td wid th="2" bgc olor="#EEE EEE"></htm l:td>   751           <h tml:td wid th="2" bgc olor="#EEE EEE"></htm l:td>
751           <h tml:td bgc olor="#EEE EEE">   752           <h tml:td bgc olor="#EEE EEE">
752     753  
753            < xsl:call-t emplate na me="Paragr aph-Normal ">   754            < xsl:call-t emplate na me="Paragr aph-Normal ">
754              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />   755              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />
755              <xsl:with- param name ="ParamCar go" select ="$VarCarg o" />   756              <xsl:with- param name ="ParamCar go" select ="$VarCarg o" />
756              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />   757              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />
757              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />   758              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />
758              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" />   759              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" />
759              <xsl:with- param name ="ParamSty leName" se lect="$Par amStyleNam e" />   760              <xsl:with- param name ="ParamSty leName" se lect="$Par amStyleNam e" />
760              <xsl:with- param name ="ParamOve rrideRule"  select="$ ParamOverr ideRule" / >   761              <xsl:with- param name ="ParamOve rrideRule"  select="$ ParamOverr ideRule" / >
761              <xsl:with- param name ="ParamPar agraphBeha vior" sele ct="$Param ParagraphB ehavior" / >   762              <xsl:with- param name ="ParamPar agraphBeha vior" sele ct="$Param ParagraphB ehavior" / >
762            < /xsl:call- template>   763            < /xsl:call- template>
763     764  
764           </ html:td>   765           </ html:td>
765           <h tml:td wid th="2" bgc olor="#EEE EEE"></htm l:td>   766           <h tml:td wid th="2" bgc olor="#EEE EEE"></htm l:td>
766           <h tml:td wid th="2" bac kground="{ $Var_seeri ght}"></ht ml:td>   767           <h tml:td wid th="2" bac kground="{ $Var_seeri ght}"></ht ml:td>
767          </h tml:tr>   768          </h tml:tr>
768          <ht ml:tr>   769          <ht ml:tr>
769           <h tml:td wid th="2" hei ght="2" bg color="#FF FFFF"></ht ml:td>   770           <h tml:td wid th="2" hei ght="2" bg color="#FF FFFF"></ht ml:td>
770           <h tml:td hei ght="2" co lspan="3"  bgcolor="# EEEEEE"></ html:td>   771           <h tml:td hei ght="2" co lspan="3"  bgcolor="# EEEEEE"></ html:td>
771           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer ight}"></h tml:td>   772           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer ight}"></h tml:td>
772          </h tml:tr>   773          </h tml:tr>
773          <ht ml:tr>   774          <ht ml:tr>
774           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seel flow}"></h tml:td>   775           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seel flow}"></h tml:td>
775           <h tml:td hei ght="2" co lspan="3"  background ="{$Var_se ebttm}"></ html:td>   776           <h tml:td hei ght="2" co lspan="3"  background ="{$Var_se ebttm}"></ html:td>
776           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer tlow}"></h tml:td>   777           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer tlow}"></h tml:td>
777          </h tml:tr>   778          </h tml:tr>
778         </ht ml:table>   779         </ht ml:table>
779        </xsl :for-each>   780        </xsl :for-each>
780       </xsl: when>   781       </xsl: when>
781     782  
782       <xsl:o therwise>   783       <xsl:o therwise>
783        <xsl: call-templ ate name=" Paragraph- Normal">   784        <xsl: call-templ ate name=" Paragraph- Normal">
784         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   785         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
785         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   786         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
786         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   787         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
787         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   788         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
788         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / >   789         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / >
789         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yleName" / >   790         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yleName" / >
790         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$Para mOverrideR ule" />   791         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$Para mOverrideR ule" />
791         <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" />   792         <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" />
792        </xsl :call-temp late>   793        </xsl :call-temp late>
793       </xsl: otherwise>   794       </xsl: otherwise>
794      </xsl:c hoose>   795      </xsl:c hoose>
795     </xsl:if >   796     </xsl:if >
796    </xsl:tem plate>   797    </xsl:tem plate>
797     798  
798     799  
799    <xsl:temp late name= "Paragraph -PassThrou gh">   800    <xsl:temp late name= "Paragraph -PassThrou gh">
800     <xsl:par am name="P aramParagr aph" />   801     <xsl:par am name="P aramParagr aph" />
801     802  
802     <wwexsld oc:Text di sable-outp ut-escapin g="yes">   803     <wwexsld oc:Text di sable-outp ut-escapin g="yes">
803      <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Tex tRun/wwdoc :Text">   804      <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Tex tRun/wwdoc :Text">
804       <xsl:v ariable na me="VarTex t" select= "." />   805       <xsl:v ariable na me="VarTex t" select= "." />
805     806  
806       <xsl:v alue-of se lect="$Var Text/@valu e" />   807       <xsl:v alue-of se lect="$Var Text/@valu e" />
807      </xsl:f or-each>   808      </xsl:f or-each>
808     </wwexsl doc:Text>   809     </wwexsl doc:Text>
809    </xsl:tem plate>   810    </xsl:tem plate>
810     811  
811     812  
812    <xsl:temp late name= "Paragraph -Normal">   813    <xsl:temp late name= "Paragraph -Normal">
813     <xsl:par am name="P aramSplits " />   814     <xsl:par am name="P aramSplits " />
814     <xsl:par am name="P aramCargo"  />   815     <xsl:par am name="P aramCargo"  />
815     <xsl:par am name="P aramLinks"  />   816     <xsl:par am name="P aramLinks"  />
816     <xsl:par am name="P aramSplit"  />   817     <xsl:par am name="P aramSplit"  />
817     <xsl:par am name="P aramParagr aph" />   818     <xsl:par am name="P aramParagr aph" />
818     <xsl:par am name="P aramStyleN ame" />   819     <xsl:par am name="P aramStyleN ame" />
819     <xsl:par am name="P aramOverri deRule" />   820     <xsl:par am name="P aramOverri deRule" />
820     <xsl:par am name="P aramParagr aphBehavio r" />   821     <xsl:par am name="P aramParagr aphBehavio r" />
821     822  
822     <!-- Res olve proje ct propert ies -->   823     <!-- Res olve proje ct propert ies -->
823     <!--                               -->   824     <!--                               -->
824     <xsl:var iable name ="VarResol vedPropert iesAsXML">   825     <xsl:var iable name ="VarResol vedPropert iesAsXML">
825      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule">   826      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule">
826       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  />   827       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  />
827       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " />   828       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " />
828      </xsl:c all-templa te>   829      </xsl:c all-templa te>
829     </xsl:va riable>   830     </xsl:va riable>
830     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" />   831     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" />
831     832  
832     <!-- CSS  propertie s -->   833     <!-- CSS  propertie s -->
833     <!--                  -->   834     <!--                  -->
834     <xsl:var iable name ="VarCSSPr opertiesAs XML">   835     <xsl:var iable name ="VarCSSPr opertiesAs XML">
835      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties">   836      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties">
836       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" />   837       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" />
837       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" />   838       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" />
838       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />   839       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />
839      </xsl:c all-templa te>   840      </xsl:c all-templa te>
840     </xsl:va riable>   841     </xsl:va riable>
841     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" />   842     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" />
842     843  
843     <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)" / >   844     <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)" / >
844     845  
845     <!-- Res olve proje ct propert ies -->   846     <!-- Res olve proje ct propert ies -->
846     <!--                               -->   847     <!--                               -->
847     <xsl:var iable name ="VarResol vedContext Properties AsXML">   848     <xsl:var iable name ="VarResol vedContext Properties AsXML">
848      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule">   849      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule">
849       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amParagrap h" />   850       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amParagrap h" />
850       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" />   851       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" />
851       <xsl:w ith-param  name="Para mStyleName " select=" $ParamPara graph/@sty lename" />   852       <xsl:w ith-param  name="Para mStyleName " select=" $ParamPara graph/@sty lename" />
852       <xsl:w ith-param  name="Para mStyleType " select=" 'Paragraph '" />   853       <xsl:w ith-param  name="Para mStyleType " select=" 'Paragraph '" />
853       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " />   854       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " />
854      </xsl:c all-templa te>   855      </xsl:c all-templa te>
855     </xsl:va riable>   856     </xsl:va riable>
856     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  />   857     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  />
857     858  
858     <!-- CSS  propertie s -->   859     <!-- CSS  propertie s -->
859     <!--                  -->   860     <!--                  -->
860     <xsl:var iable name ="VarCSSCo ntextPrope rtiesAsXML ">   861     <xsl:var iable name ="VarCSSCo ntextPrope rtiesAsXML ">
861      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties">   862      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties">
862       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedContext Properties " />   863       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedContext Properties " />
863       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" />   864       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" />
864       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />   865       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />
865      </xsl:c all-templa te>   866      </xsl:c all-templa te>
866     </xsl:va riable>   867     </xsl:va riable>
867     <xsl:var iable name ="VarCSSCo ntextPrope rties" sel ect="msxsl :node-set( $VarCSSCon textProper tiesAsXML) /wwproject :Property"  />   868     <xsl:var iable name ="VarCSSCo ntextPrope rties" sel ect="msxsl :node-set( $VarCSSCon textProper tiesAsXML) /wwproject :Property"  />
868     869  
869     <!-- Use  numbering ? -->   870     <!-- Use  numbering ? -->
870     <!--                  -->   871     <!--                  -->
871     <xsl:var iable name ="VarUseNu mberingOpt ion" selec t="$VarCon textRule/w wproject:O ptions/wwp roject:Opt ion[@Name  = 'use-num bering']/@ Value" />   872     <xsl:var iable name ="VarUseNu mberingOpt ion" selec t="$VarCon textRule/w wproject:O ptions/wwp roject:Opt ion[@Name  = 'use-num bering']/@ Value" />
872     <xsl:var iable name ="VarUseNu mbering" s elect="(st ring-lengt h($VarUseN umberingOp tion) = 0)  or ($VarU seNumberin gOption =  'true')" / >   873     <xsl:var iable name ="VarUseNu mbering" s elect="(st ring-lengt h($VarUseN umberingOp tion) = 0)  or ($VarU seNumberin gOption =  'true')" / >
873     874  
874     <!-- Tex t Indent - ->   875     <!-- Tex t Indent - ->
875     <!--              - ->   876     <!--              - ->
876     <xsl:var iable name ="VarTextI ndent">   877     <xsl:var iable name ="VarTextI ndent">
877      <xsl:if  test="$Va rUseNumber ing">   878      <xsl:if  test="$Va rUseNumber ing">
878       <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarC SSProperti es[@Name =  'text-ind ent']/@Val ue" />   879       <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarC SSProperti es[@Name =  'text-ind ent']/@Val ue" />
879       <xsl:c hoose>   880       <xsl:c hoose>
880        <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0">   881        <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0">
881         <xsl :value-of  select="$V arOverride TextIndent " />   882         <xsl :value-of  select="$V arOverride TextIndent " />
882        </xsl :when>   883        </xsl :when>
883     884  
884        <xsl: otherwise>   885        <xsl: otherwise>
885         <!--  Text inde nt defined ? -->   886         <!--  Text inde nt defined ? -->
886         <!--                         -->   887         <!--                         -->
887         <xsl :variable  name="VarC ontextText Indent" se lect="$Var CSSContext Properties [@Name = ' text-inden t']/@Value " />   888         <xsl :variable  name="VarC ontextText Indent" se lect="$Var CSSContext Properties [@Name = ' text-inden t']/@Value " />
888         <xsl :if test=" string-len gth($VarCo ntextTextI ndent) &gt ; 0">   889         <xsl :if test=" string-len gth($VarCo ntextTextI ndent) &gt ; 0">
889          <xs l:value-of  select="$ VarContext TextIndent " />   890          <xs l:value-of  select="$ VarContext TextIndent " />
890         </xs l:if>   891         </xs l:if>
891        </xsl :otherwise >   892        </xsl :otherwise >
892       </xsl: choose>   893       </xsl: choose>
893      </xsl:i f>   894      </xsl:i f>
894     </xsl:va riable>   895     </xsl:va riable>
895     896  
896     <xsl:var iable name ="VarTextI ndentNumer icPrefix"  select="ww units:Nume ricPrefix( $VarTextIn dent)" />   897     <xsl:var iable name ="VarTextI ndentNumer icPrefix"  select="ww units:Nume ricPrefix( $VarTextIn dent)" />
897     <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)" / >   898     <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)" / >
898     899  
899     <!-- Use  bullet fr om UI? -->   900     <!-- Use  bullet fr om UI? -->
900     <!--                       -->   901     <!--                       -->
901     <xsl:var iable name ="VarBulle tCharacter " select=" $VarContex tRule/wwpr oject:Prop erties/wwp roject:Pro perty[@Nam e = 'bulle t-characte r']/@Value " />   902     <xsl:var iable name ="VarBulle tCharacter " select=" $VarContex tRule/wwpr oject:Prop erties/wwp roject:Pro perty[@Nam e = 'bulle t-characte r']/@Value " />
902     <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" />   903     <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" />
903     <xsl:var iable name ="VarBulle tSeparator " select=" $VarContex tRule/wwpr oject:Prop erties/wwp roject:Pro perty[@Nam e = 'bulle t-separato r']/@Value " />   904     <xsl:var iable name ="VarBulle tSeparator " select=" $VarContex tRule/wwpr oject:Prop erties/wwp roject:Pro perty[@Nam e = 'bulle t-separato r']/@Value " />
904     <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" />   905     <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" />
905     <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)"  />   906     <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)"  />
906     907  
907     <!-- Is  numbered p aragraph - ->   908     <!-- Is  numbered p aragraph - ->
908     <!--                         - ->   909     <!--                         - ->
909     <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 ))" />   910     <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 ))" />
910     911  
911     <!-- Cit ation -->   912     <!-- Cit ation -->
912     <!--           -->   913     <!--           -->
913     <xsl:var iable name ="VarCitat ion">   914     <xsl:var iable name ="VarCitat ion">
914      <xsl:ca ll-templat e name="Be haviors-Op tions-Opti onMarker">   915      <xsl:ca ll-templat e name="Be haviors-Op tions-Opti onMarker">
915       <xsl:w ith-param  name="Para mContainer " select=" $ParamPara graph" />   916       <xsl:w ith-param  name="Para mContainer " select=" $ParamPara graph" />
916       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >   917       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >
917       <xsl:w ith-param  name="Para mParagraph ID" select ="$ParamPa ragraph/@i d" />   918       <xsl:w ith-param  name="Para mParagraph ID" select ="$ParamPa ragraph/@i d" />
918       <xsl:w ith-param  name="Para mRule" sel ect="$VarC ontextRule " />   919       <xsl:w ith-param  name="Para mRule" sel ect="$VarC ontextRule " />
919       <xsl:w ith-param  name="Para mOption" s elect="'ci tation'" / >   920       <xsl:w ith-param  name="Para mOption" s elect="'ci tation'" / >
920      </xsl:c all-templa te>   921      </xsl:c all-templa te>
921     </xsl:va riable>   922     </xsl:va riable>
922     923  
923     <!-- Tag  -->   924     <!-- Tag  -->
924     <!--      -->   925     <!--      -->
925     <xsl:var iable name ="VarTagPr operty" se lect="$Var ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y[@Name =  'tag']/@Va lue" />   926     <xsl:var iable name ="VarTagPr operty" se lect="$Var ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y[@Name =  'tag']/@Va lue" />
926     <xsl:var iable name ="VarTag">   927     <xsl:var iable name ="VarTag">
927      <xsl:ch oose>   928      <xsl:ch oose>
928       <xsl:w hen test=" string-len gth($VarTa gProperty)  &gt; 0">   929       <xsl:w hen test=" string-len gth($VarTa gProperty)  &gt; 0">
929        <xsl: value-of s elect="$Va rTagProper ty" />   930        <xsl: value-of s elect="$Va rTagProper ty" />
930       </xsl: when>   931       </xsl: when>
931     932  
932       <xsl:o therwise>   933       <xsl:o therwise>
933        <xsl: value-of s elect="'di v'" />   934        <xsl: value-of s elect="'di v'" />
934       </xsl: otherwise>   935       </xsl: otherwise>
935      </xsl:c hoose>   936      </xsl:c hoose>
936     </xsl:va riable>   937     </xsl:va riable>
937     938  
938     <!-- Tag  to use fo r outer wr apper -->   939     <!-- Tag  to use fo r outer wr apper -->
939     <!--                                 -->   940     <!--                                 -->
940     <xsl:var iable name ="VarOuter Tag">   941     <xsl:var iable name ="VarOuter Tag">
941      <xsl:ch oose>   942      <xsl:ch oose>
942       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()">   943       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()">
943        <xsl: value-of s elect="'di v'" />   944        <xsl: value-of s elect="'di v'" />
944       </xsl: when>   945       </xsl: when>
945     946  
946       <xsl:o therwise>   947       <xsl:o therwise>
947        <xsl: value-of s elect="$Va rTag" />   948        <xsl: value-of s elect="$Va rTag" />
948       </xsl: otherwise>   949       </xsl: otherwise>
949      </xsl:c hoose>   950      </xsl:c hoose>
950     </xsl:va riable>   951     </xsl:va riable>
951     952  
952     <!-- Use  character  styles? - ->   953     <!-- Use  character  styles? - ->
953     <!--                         - ->   954     <!--                         - ->
954     <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" />   955     <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" />
955     <xsl:var iable name ="VarUseCh aracterSty les" selec t="(string -length($V arUseChara cterStyles Option) =  0) or ($Va rUseCharac terStylesO ption = 't rue')" />   956     <xsl:var iable name ="VarUseCh aracterSty les" selec t="(string -length($V arUseChara cterStyles Option) =  0) or ($Va rUseCharac terStylesO ption = 't rue')" />
956     957  
957     <!-- Pre serve empt y? -->   958     <!-- Pre serve empt y? -->
958     <!--                   -->   959     <!--                   -->
959     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " />   960     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " />
960     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " />   961     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " />
961     962  
962     <!-- Beg in paragra ph emit -- >   963     <!-- Beg in paragra ph emit -- >
963     <!--                        -- >   964     <!--                        -- >
964     <xsl:ele ment name= "{$VarOute rTag}" nam espace="{$ GlobalDefa ultNamespa ce}">   965     <xsl:ele ment name= "{$VarOute rTag}" nam espace="{$ GlobalDefa ultNamespa ce}">
965      <!-- Cl ass attrib ute -->   966      <!-- Cl ass attrib ute -->
966      <!--                   -->   967      <!--                   -->
967      <xsl:at tribute na me="class" >   968      <xsl:at tribute na me="class" >
968       <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" />   969       <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" />
969       <xsl:i f test="$V arIsNumber edParagrap h = true() ">   970       <xsl:i f test="$V arIsNumber edParagrap h = true() ">
970        <xsl: value-of s elect="'_o uter'" />   971        <xsl: value-of s elect="'_o uter'" />
971       </xsl: if>   972       </xsl: if>
972     973  
973       <!-- A dditional  CSS classe s -->   974       <!-- A dditional  CSS classe s -->
974       <!--                           -->   975       <!--                           -->
975       <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)" />   976       <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)" />
976       <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) &gt; 0 ">   977       <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) &gt; 0 ">
977        <xsl: text> </xs l:text>   978        <xsl: text> </xs l:text>
978        <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / >   979        <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / >
979        <xsl: if test="$ VarIsNumbe redParagra ph = true( )">   980        <xsl: if test="$ VarIsNumbe redParagra ph = true( )">
980         <xsl :text> Web Works_Para graph_List _Outer</xs l:text>   981         <xsl :text> Web Works_Para graph_List _Outer</xs l:text>
981        </xsl :if>   982        </xsl :if>
982       </xsl: if>   983       </xsl: if>
983      </xsl:a ttribute>   984      </xsl:a ttribute>
984     985  
985      <!-- St yle attrib ute -->   986      <!-- St yle attrib ute -->
986      <!--                   -->   987      <!--                   -->
987      <xsl:ch oose>   988      <xsl:ch oose>
988       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()">   989       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()">
989        <xsl: variable n ame="VarSt yleAttribu teOuter">   990        <xsl: variable n ame="VarSt yleAttribu teOuter">
990         <xsl :call-temp late name= "CSS-Inlin ePropertie sOuter">   991         <xsl :call-temp late name= "CSS-Inlin ePropertie sOuter">
991          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" />   992          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" />
992          <xs l:with-par am name="P aramContex tPropertie s" select= "$VarCSSCo ntextPrope rties" />   993          <xs l:with-par am name="P aramContex tPropertie s" select= "$VarCSSCo ntextPrope rties" />
993         </xs l:call-tem plate>   994         </xs l:call-tem plate>
994        </xsl :variable>   995        </xsl :variable>
995     996  
996        <xsl: if test="s tring-leng th($VarSty leAttribut eOuter) &g t; 0">   997        <xsl: if test="s tring-leng th($VarSty leAttribut eOuter) &g t; 0">
997         <xsl :attribute  name="sty le">   998         <xsl :attribute  name="sty le">
998          <xs l:value-of  select="$ VarStyleAt tributeOut er" />   999          <xs l:value-of  select="$ VarStyleAt tributeOut er" />
999         </xs l:attribut e>   1000         </xs l:attribut e>
1000        </xsl :if>   1001        </xsl :if>
1001       </xsl: when>   1002       </xsl: when>
1002     1003  
1003       <xsl:o therwise>   1004       <xsl:o therwise>
1004        <xsl: variable n ame="VarSt yleAttribu te">   1005        <xsl: variable n ame="VarSt yleAttribu te">
1005         <xsl :call-temp late name= "CSS-Inlin ePropertie s">   1006         <xsl :call-temp late name= "CSS-Inlin ePropertie s">
1006          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" />   1007          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" />
1007         </xs l:call-tem plate>   1008         </xs l:call-tem plate>
1008        </xsl :variable>   1009        </xsl :variable>
1009     1010  
1010        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" >   1011        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" >
1011         <xsl :attribute  name="sty le">   1012         <xsl :attribute  name="sty le">
1012          <xs l:value-of  select="$ VarStyleAt tribute" / >   1013          <xs l:value-of  select="$ VarStyleAt tribute" / >
1013         </xs l:attribut e>   1014         </xs l:attribut e>
1014        </xsl :if>   1015        </xsl :if>
1015       </xsl: otherwise>   1016       </xsl: otherwise>
1016      </xsl:c hoose>   1017      </xsl:c hoose>
1017     1018  
1018      <!-- Ci te attribu te -->   1019      <!-- Ci te attribu te -->
1019      <!--                  -->   1020      <!--                  -->
1020      <xsl:if  test="str ing-length ($VarCitat ion) &gt;  0">   1021      <xsl:if  test="str ing-length ($VarCitat ion) &gt;  0">
1021       <xsl:a ttribute n ame="cite" >   1022       <xsl:a ttribute n ame="cite" >
1022        <xsl: value-of s elect="$Va rCitation"  />   1023        <xsl: value-of s elect="$Va rCitation"  />
1023       </xsl: attribute>   1024       </xsl: attribute>
1024      </xsl:i f>   1025      </xsl:i f>
1025     1026  
1026      <!-- Dr opdown -->   1027      <!-- Dr opdown -->
1027      <!--           -->   1028      <!--           -->
1028      <xsl:if  test="($P aramParagr aphBehavio r/@dropdow n = 'start -open') or  ($ParamPa ragraphBeh avior/@dro pdown = 's tart-close d')">   1029      <xsl:if  test="($P aramParagr aphBehavio r/@dropdow n = 'start -open') or  ($ParamPa ragraphBeh avior/@dro pdown = 's tart-close d')">
1029       <xsl:a ttribute n ame="oncli ck">   1030       <xsl:a ttribute n ame="oncli ck">
1030        <xsl: value-of s elect="con cat('WebWo rks_Toggle DIV(WebWor ksRootPath , &quot;ww dd', $Para mParagraph /@id, '&qu ot;);')" / >   1031        <xsl: value-of s elect="con cat('WebWo rks_Toggle DIV(WebWor ksRootPath , &quot;ww dd', $Para mParagraph /@id, '&qu ot;);')" / >
1031       </xsl: attribute>   1032       </xsl: attribute>
1032      </xsl:i f>   1033      </xsl:i f>
1033     1034  
1034      <!-- Us e numberin g? -->   1035      <!-- Us e numberin g? -->
1035      <!--                  -->   1036      <!--                  -->
1036      <xsl:ch oose>   1037      <xsl:ch oose>
1037       <!-- U se Number  -->   1038       <!-- U se Number  -->
1038       <!--              -->   1039       <!--              -->
1039       <xsl:w hen test=" $VarUseNum bering">   1040       <xsl:w hen test=" $VarUseNum bering">
1040        <xsl: choose>   1041        <xsl: choose>
1041         <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)">   1042         <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)">
1042          <xs l:choose>   1043          <xs l:choose>
1043           <x sl:when te st="$VarTe xtIndentLe ssThanZero ">   1044           <x sl:when te st="$VarTe xtIndentLe ssThanZero ">
1044     1045  
1045            < html:table  border="0 " cellspac ing="0" ce llpadding= "0" summar y="">   1046            < html:table  border="0 " cellspac ing="0" ce llpadding= "0" summar y="">
1046              <html:tr s tyle="vert ical-align : baseline ;">   1047              <html:tr s tyle="vert ical-align : baseline ;">
1047               <html:td>   1048               <html:td>
1048                <!-- Emi t number w ith inner  class and  specific n umber styl e attribut e -->   1049                <!-- Emi t number w ith inner  class and  specific n umber styl e attribut e -->
1049                <!--                                                                         -->   1050                <!--                                                                         -->
1050                <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}">   1051                <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}">
1051                 <xsl:at tribute na me="class" >   1052                 <xsl:at tribute na me="class" >
1052                  <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" />   1053                  <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" />
1053                  <xsl:t ext>_inner </xsl:text >   1054                  <xsl:t ext>_inner </xsl:text >
1054     1055  
1055                  <!-- A dditional  CSS classe s -->   1056                  <!-- A dditional  CSS classe s -->
1056                  <!--                           -->   1057                  <!--                           -->
1057                  <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)" />   1058                  <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)" />
1058                  <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) &gt; 0 ">   1059                  <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) &gt; 0 ">
1059                   <xsl: text> </xs l:text>   1060                   <xsl: text> </xs l:text>
1060                   <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / >   1061                   <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / >
1061                   <xsl: text> WebW orks_Parag raph_List_ Inner</xsl :text>   1062                   <xsl: text> WebW orks_Parag raph_List_ Inner</xsl :text>
1062                  </xsl: if>   1063                  </xsl: if>
1063                 </xsl:a ttribute>   1064                 </xsl:a ttribute>
1064     1065  
1065                 <xsl:va riable nam e="VarText IndentNumb erAsUnits"  select="w wunits:Num ericPrefix ($VarTextI ndent)" />   1066                 <xsl:va riable nam e="VarText IndentNumb erAsUnits"  select="w wunits:Num ericPrefix ($VarTextI ndent)" />
1066                 <xsl:va riable nam e="VarText IndentUnit s" select= "wwunits:U nitsSuffix ($VarTextI ndent)" />   1067                 <xsl:va riable nam e="VarText IndentUnit s" select= "wwunits:U nitsSuffix ($VarTextI ndent)" />
1067     1068  
1068                 <xsl:at tribute na me="style" >   1069                 <xsl:at tribute na me="style" >
1069                  <xsl:v alue-of se lect="conc at('width:  ', 0 - $V arTextInde ntNumberAs Units, $Va rTextInden tUnits, ';  white-spa ce: nowrap ;')" />   1070                  <xsl:v alue-of se lect="conc at('width:  ', 0 - $V arTextInde ntNumberAs Units, $Va rTextInden tUnits, ';  white-spa ce: nowrap ;')" />
1070                  <xsl:c all-templa te name="C SS-InlineP ropertiesI nnerNumber ">   1071                  <xsl:c all-templa te name="C SS-InlineP ropertiesI nnerNumber ">
1071                   <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties"  />   1072                   <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties"  />
1072                  </xsl: call-templ ate>   1073                  </xsl: call-templ ate>
1073                 </xsl:a ttribute>   1074                 </xsl:a ttribute>
1074     1075  
1075                 <xsl:ca ll-templat e name="Nu mber">   1076                 <xsl:ca ll-templat e name="Nu mber">
1076                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />   1077                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />
1077                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >   1078                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >
1078                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >   1079                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >
1079                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >   1080                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >
1080                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" />   1081                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" />
1081                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" />   1082                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" />
1082                  <xsl:w ith-param  name="Para mIgnoreDoc umentNumbe r" select= "$VarIgnor eDocumentN umber" />   1083                  <xsl:w ith-param  name="Para mIgnoreDoc umentNumbe r" select= "$VarIgnor eDocumentN umber" />
1083                  <xsl:w ith-param  name="Para mCharacter " select=" $VarBullet Character"  />   1084                  <xsl:w ith-param  name="Para mCharacter " select=" $VarBullet Character"  />
1084                  <xsl:w ith-param  name="Para mImage" se lect="$Var BulletImag e" />   1085                  <xsl:w ith-param  name="Para mImage" se lect="$Var BulletImag e" />
1085                  <xsl:w ith-param  name="Para mSeparator " select=" $VarBullet Separator"  />   1086                  <xsl:w ith-param  name="Para mSeparator " select=" $VarBullet Separator"  />
1086                  <xsl:w ith-param  name="Para mStyle" se lect="$Var BulletStyl e" />   1087                  <xsl:w ith-param  name="Para mStyle" se lect="$Var BulletStyl e" />
1087                 </xsl:c all-templa te>   1088                 </xsl:c all-templa te>
1088                </xsl:el ement>   1089                </xsl:el ement>
1089               </html:td >   1090               </html:td >
1090     1091  
1091               <!-- Forc e second c ell to hon or first c ell width  -->   1092               <!-- Forc e second c ell to hon or first c ell width  -->
1092               <!--                                                  -->   1093               <!--                                                  -->
1093               <html:td  width="100 %">   1094               <html:td  width="100 %">
1094                <xsl:var iable name ="VarStyle AttributeI nnerConten t">   1095                <xsl:var iable name ="VarStyle AttributeI nnerConten t">
1095                 <xsl:ca ll-templat e name="CS S-InlinePr opertiesIn nerContent ">   1096                 <xsl:ca ll-templat e name="CS S-InlinePr opertiesIn nerContent ">
1096                  <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties"  />   1097                  <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties"  />
1097                 </xsl:c all-templa te>   1098                 </xsl:c all-templa te>
1098                </xsl:va riable>   1099                </xsl:va riable>
1099     1100  
1100                <!-- Emi t content  -->   1101                <!-- Emi t content  -->
1101                <!--                -->   1102                <!--                -->
1102                <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}">   1103                <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}">
1103                 <xsl:at tribute na me="class" >   1104                 <xsl:at tribute na me="class" >
1104                  <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" />   1105                  <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" />
1105                  <xsl:t ext>_inner </xsl:text >   1106                  <xsl:t ext>_inner </xsl:text >
1106     1107  
1107                  <!-- A dditional  CSS classe s -->   1108                  <!-- A dditional  CSS classe s -->
1108                  <!--                           -->   1109                  <!--                           -->
1109                  <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)" />   1110                  <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)" />
1110                  <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) &gt; 0 ">   1111                  <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) &gt; 0 ">
1111                   <xsl: text> </xs l:text>   1112                   <xsl: text> </xs l:text>
1112                   <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / >   1113                   <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / >
1113                   <xsl: text> WebW orks_Parag raph_List_ Inner</xsl :text>   1114                   <xsl: text> WebW orks_Parag raph_List_ Inner</xsl :text>
1114                  </xsl: if>   1115                  </xsl: if>
1115                 </xsl:a ttribute>   1116                 </xsl:a ttribute>
1116                 <xsl:if  test="str ing-length ($VarStyle AttributeI nnerConten t) &gt; 0" >   1117                 <xsl:if  test="str ing-length ($VarStyle AttributeI nnerConten t) &gt; 0" >
1117                  <xsl:a ttribute n ame="style ">   1118                  <xsl:a ttribute n ame="style ">
1118                   <xsl: value-of s elect="$Va rStyleAttr ibuteInner Content" / >   1119                   <xsl: value-of s elect="$Va rStyleAttr ibuteInner Content" / >
1119                  </xsl: attribute>   1120                  </xsl: attribute>
1120                 </xsl:i f>   1121                 </xsl:i f>
1121     1122  
1122                 <!-- Te xt Runs -- >   1123                 <!-- Te xt Runs -- >
1123                 <!--            -- >   1124                 <!--            -- >
1124                 <xsl:ca ll-templat e name="Pa ragraphTex tRuns">   1125                 <xsl:ca ll-templat e name="Pa ragraphTex tRuns">
1125                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />   1126                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />
1126                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >   1127                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >
1127                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >   1128                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >
1128                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >   1129                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >
1129                  <xsl:w ith-param  name="Para mPreserveE mpty" sele ct="$VarPr eserveEmpt y" />   1130                  <xsl:w ith-param  name="Para mPreserveE mpty" sele ct="$VarPr eserveEmpt y" />
1130                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" />   1131                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" />
1131                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" />   1132                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" />
1132                 </xsl:c all-templa te>   1133                 </xsl:c all-templa te>
1133     1134  
1134                 <!-- Dr opdown Arr ow -->   1135                 <!-- Dr opdown Arr ow -->
1135                 <!--                  -->   1136                 <!--                  -->
1136                 <xsl:if  test="($P aramParagr aphBehavio r/@dropdow n = 'start -open') or  ($ParamPa ragraphBeh avior/@dro pdown = 's tart-close d')">   1137                 <xsl:if  test="($P aramParagr aphBehavio r/@dropdow n = 'start -open') or  ($ParamPa ragraphBeh avior/@dro pdown = 's tart-close d')">
1137                  <html: script typ e="text/ja vascript"  language=" JavaScript 1.2">WebWo rks_WriteA rrow(WebWo rksRootPat h, &quot;< xsl:value- of select= "concat('w wdd', $Par amParagrap h/@id)" /> &quot;, <x sl:value-o f select=" $ParamPara graphBehav ior/@dropd own = 'sta rt-open'"  />);</html :script>   1138                  <html: script typ e="text/ja vascript"  language=" JavaScript 1.2">WebWo rks_WriteA rrow(WebWo rksRootPat h, &quot;< xsl:value- of select= "concat('w wdd', $Par amParagrap h/@id)" /> &quot;, <x sl:value-o f select=" $ParamPara graphBehav ior/@dropd own = 'sta rt-open'"  />);</html :script>
1138                 </xsl:i f>   1139                 </xsl:i f>
1139                </xsl:el ement>   1140                </xsl:el ement>
1140               </html:td >   1141               </html:td >
1141              </html:tr>   1142              </html:tr>
1142            < /html:tabl e>   1143            < /html:tabl e>
1143           </ xsl:when>   1144           </ xsl:when>
1144     1145  
1145           <x sl:otherwi se>   1146           <x sl:otherwi se>
1146            < xsl:call-t emplate na me="Number ">   1147            < xsl:call-t emplate na me="Number ">
1147              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />   1148              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />
1148              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" />   1149              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" />
1149              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />   1150              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />
1150              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />   1151              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />
1151              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" />   1152              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" />
1152              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / >   1153              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / >
1153              <xsl:with- param name ="ParamIgn oreDocumen tNumber" s elect="$Va rIgnoreDoc umentNumbe r" />   1154              <xsl:with- param name ="ParamIgn oreDocumen tNumber" s elect="$Va rIgnoreDoc umentNumbe r" />
1154              <xsl:with- param name ="ParamCha racter" se lect="$Var BulletChar acter" />   1155              <xsl:with- param name ="ParamCha racter" se lect="$Var BulletChar acter" />
1155              <xsl:with- param name ="ParamIma ge" select ="$VarBull etImage" / >   1156              <xsl:with- param name ="ParamIma ge" select ="$VarBull etImage" / >
1156              <xsl:with- param name ="ParamSep arator" se lect="$Var BulletSepa rator" />   1157              <xsl:with- param name ="ParamSep arator" se lect="$Var BulletSepa rator" />
1157              <xsl:with- param name ="ParamSty le" select ="$VarBull etStyle" / >   1158              <xsl:with- param name ="ParamSty le" select ="$VarBull etStyle" / >
1158            < /xsl:call- template>   1159            < /xsl:call- template>
1159     1160  
1160            < !-- Text R uns -->   1161            < !-- Text R uns -->
1161            < !--            -->   1162            < !--            -->
1162            < xsl:call-t emplate na me="Paragr aphTextRun s">   1163            < xsl:call-t emplate na me="Paragr aphTextRun s">
1163              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />   1164              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />
1164              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" />   1165              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" />
1165              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />   1166              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />
1166              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />   1167              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />
1167              <xsl:with- param name ="ParamPre serveEmpty " select=" $VarPreser veEmpty" / >   1168              <xsl:with- param name ="ParamPre serveEmpty " select=" $VarPreser veEmpty" / >
1168              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / >   1169              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / >
1169              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" />   1170              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" />
1170            < /xsl:call- template>   1171            < /xsl:call- template>
1171     1172  
1172            < !-- Dropdo wn Arrow - ->   1173            < !-- Dropdo wn Arrow - ->
1173            < !--                 - ->   1174            < !--                 - ->
1174            < xsl:if tes t="($Param ParagraphB ehavior/@d ropdown =  'start-ope n') or ($P aramParagr aphBehavio r/@dropdow n = 'start -closed')" >   1175            < xsl:if tes t="($Param ParagraphB ehavior/@d ropdown =  'start-ope n') or ($P aramParagr aphBehavio r/@dropdow n = 'start -closed')" >
1175              <html:scri pt type="t ext/javasc ript" lang uage="Java Script1.2" >WebWorks_ WriteArrow (WebWorksR ootPath, & quot;<xsl: value-of s elect="con cat('wwdd' , $ParamPa ragraph/@i d)" />&quo t;, <xsl:v alue-of se lect="$Par amParagrap hBehavior/ @dropdown  = 'start-o pen'" />); </html:scr ipt>   1176              <html:scri pt type="t ext/javasc ript" lang uage="Java Script1.2" >WebWorks_ WriteArrow (WebWorksR ootPath, & quot;<xsl: value-of s elect="con cat('wwdd' , $ParamPa ragraph/@i d)" />&quo t;, <xsl:v alue-of se lect="$Par amParagrap hBehavior/ @dropdown  = 'start-o pen'" />); </html:scr ipt>
1176            < /xsl:if>   1177            < /xsl:if>
1177           </ xsl:otherw ise>   1178           </ xsl:otherw ise>
1178          </x sl:choose>   1179          </x sl:choose>
1179         </xs l:when>   1180         </xs l:when>
1180     1181  
1181         <xsl :otherwise >   1182         <xsl :otherwise >
1182          <!- - Text Run s -->   1183          <!- - Text Run s -->
1183          <!- -            -->   1184          <!- -            -->
1184          <xs l:call-tem plate name ="Paragrap hTextRuns" >   1185          <xs l:call-tem plate name ="Paragrap hTextRuns" >
1185           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />   1186           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
1186           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" />   1187           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" />
1187           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />   1188           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
1188           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />   1189           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
1189           <x sl:with-pa ram name=" ParamPrese rveEmpty"  select="$V arPreserve Empty" />   1190           <x sl:with-pa ram name=" ParamPrese rveEmpty"  select="$V arPreserve Empty" />
1190           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$VarUse CharacterS tyles" />   1191           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$VarUse CharacterS tyles" />
1191           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param Paragraph"  />   1192           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param Paragraph"  />
1192          </x sl:call-te mplate>   1193          </x sl:call-te mplate>
1193     1194  
1194          <!- - Dropdown  Arrow -->   1195          <!- - Dropdown  Arrow -->
1195          <!- -                 -->   1196          <!- -                 -->
1196          <xs l:if test= "($ParamPa ragraphBeh avior/@dro pdown = 's tart-open' ) or ($Par amParagrap hBehavior/ @dropdown  = 'start-c losed')">   1197          <xs l:if test= "($ParamPa ragraphBeh avior/@dro pdown = 's tart-open' ) or ($Par amParagrap hBehavior/ @dropdown  = 'start-c losed')">
1197           <h tml:script  type="tex t/javascri pt" langua ge="JavaSc ript1.2">W ebWorks_Wr iteArrow(W ebWorksRoo tPath, &qu ot;<xsl:va lue-of sel ect="conca t('wwdd',  $ParamPara graph/@id) " />&quot; , <xsl:val ue-of sele ct="$Param ParagraphB ehavior/@d ropdown =  'start-ope n'" />);</ html:scrip t>   1198           <h tml:script  type="tex t/javascri pt" langua ge="JavaSc ript1.2">W ebWorks_Wr iteArrow(W ebWorksRoo tPath, &qu ot;<xsl:va lue-of sel ect="conca t('wwdd',  $ParamPara graph/@id) " />&quot; , <xsl:val ue-of sele ct="$Param ParagraphB ehavior/@d ropdown =  'start-ope n'" />);</ html:scrip t>
1198          </x sl:if>   1199          </x sl:if>
1199         </xs l:otherwis e>   1200         </xs l:otherwis e>
1200        </xsl :choose>   1201        </xsl :choose>
1201       </xsl: when>   1202       </xsl: when>
1202     1203  
1203       <!-- S kip Number  -->   1204       <!-- S kip Number  -->
1204       <!--               -->   1205       <!--               -->
1205       <xsl:o therwise>   1206       <xsl:o therwise>
1206        <!--  Text Runs  -->   1207        <!--  Text Runs  -->
1207        <!--             -->   1208        <!--             -->
1208        <xsl: call-templ ate name=" ParagraphT extRuns">   1209        <xsl: call-templ ate name=" ParagraphT extRuns">
1209         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   1210         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
1210         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   1211         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
1211         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   1212         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
1212         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   1213         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
1213         <xsl :with-para m name="Pa ramPreserv eEmpty" se lect="$Var PreserveEm pty" />   1214         <xsl :with-para m name="Pa ramPreserv eEmpty" se lect="$Var PreserveEm pty" />
1214         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$VarUseCh aracterSty les" />   1215         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$VarUseCh aracterSty les" />
1215         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / >   1216         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / >
1216        </xsl :call-temp late>   1217        </xsl :call-temp late>
1217     1218  
1218        <!--  Dropdown A rrow -->   1219        <!--  Dropdown A rrow -->
1219        <!--                  -->   1220        <!--                  -->
1220        <xsl: if test="( $ParamPara graphBehav ior/@dropd own = 'sta rt-open')  or ($Param ParagraphB ehavior/@d ropdown =  'start-clo sed')">   1221        <xsl: if test="( $ParamPara graphBehav ior/@dropd own = 'sta rt-open')  or ($Param ParagraphB ehavior/@d ropdown =  'start-clo sed')">
1221         <htm l:script t ype="text/ javascript " language ="JavaScri pt1.2">Web Works_Writ eArrow(Web WorksRootP ath, &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>   1222         <htm l:script t ype="text/ javascript " language ="JavaScri pt1.2">Web Works_Writ eArrow(Web WorksRootP ath, &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>
1222        </xsl :if>   1223        </xsl :if>
1223       </xsl: otherwise>   1224       </xsl: otherwise>
1224      </xsl:c hoose>   1225      </xsl:c hoose>
1225     1226  
1226     <!-- End  paragraph  emit -->   1227     <!-- End  paragraph  emit -->
1227     <!--                      -->   1228     <!--                      -->
1228     </xsl:el ement>   1229     </xsl:el ement>
1229     1230  
1230     <!-- Dro pdown Star t -->   1231     <!-- Dro pdown Star t -->
1231     <!--                  -->   1232     <!--                  -->
1232     <xsl:if  test="($Pa ramParagra phBehavior /@dropdown  = 'start- open') or  ($ParamPar agraphBeha vior/@drop down = 'st art-closed ')">   1233     <xsl:if  test="($Pa ramParagra phBehavior /@dropdown  = 'start- open') or  ($ParamPar agraphBeha vior/@drop down = 'st art-closed ')">
1233      <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ks_WriteDI VOpen(&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 >   1234      <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ks_WriteDI VOpen(&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 >
1234     </xsl:if >   1235     </xsl:if >
1235     1236  
1236     <!-- Dro pdown End  -->   1237     <!-- Dro pdown End  -->
1237     <!--                -->   1238     <!--                -->
1238     <xsl:if  test="$Par amParagrap hBehavior/ @dropdown  = 'end'">   1239     <xsl:if  test="$Par amParagrap hBehavior/ @dropdown  = 'end'">
1239      <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ks_WriteDI VClose();< /html:scri pt>   1240      <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ks_WriteDI VClose();< /html:scri pt>
1240     </xsl:if >   1241     </xsl:if >
1241    </xsl:tem plate>   1242    </xsl:tem plate>
1242     1243  
1243     1244  
1244    <xsl:temp late name= "Number">   1245    <xsl:temp late name= "Number">
1245     <xsl:par am name="P aramSplits " />   1246     <xsl:par am name="P aramSplits " />
1246     <xsl:par am name="P aramCargo"  />   1247     <xsl:par am name="P aramCargo"  />
1247     <xsl:par am name="P aramLinks"  />   1248     <xsl:par am name="P aramLinks"  />
1248     <xsl:par am name="P aramSplit"  />   1249     <xsl:par am name="P aramSplit"  />
1249     <xsl:par am name="P aramParagr aph" />   1250     <xsl:par am name="P aramParagr aph" />
1250     <xsl:par am name="P aramUseCha racterStyl es" />   1251     <xsl:par am name="P aramUseCha racterStyl es" />
1251     <xsl:par am name="P aramIgnore DocumentNu mber" />   1252     <xsl:par am name="P aramIgnore DocumentNu mber" />
1252     <xsl:par am name="P aramCharac ter" />   1253     <xsl:par am name="P aramCharac ter" />
1253     <xsl:par am name="P aramImage"  />   1254     <xsl:par am name="P aramImage"  />
1254     <xsl:par am name="P aramSepara tor" />   1255     <xsl:par am name="P aramSepara tor" />
1255     <xsl:par am name="P aramStyle"  />   1256     <xsl:par am name="P aramStyle"  />
1256     1257  
1257     <xsl:cho ose>   1258     <xsl:cho ose>
1258      <xsl:wh en test="$ ParamIgnor eDocumentN umber">   1259      <xsl:wh en test="$ ParamIgnor eDocumentN umber">
1259       <xsl:c all-templa te name="C ontent-Bul let">   1260       <xsl:c all-templa te name="C ontent-Bul let">
1260        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />   1261        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />
1261        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  />   1262        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  />
1262        <xsl: with-param  name="Par amParagrap h" select= "$ParamPar agraph" />   1263        <xsl: with-param  name="Par amParagrap h" select= "$ParamPar agraph" />
1263        <xsl: with-param  name="Par amCharacte r" select= "$ParamCha racter" />   1264        <xsl: with-param  name="Par amCharacte r" select= "$ParamCha racter" />
1264        <xsl: with-param  name="Par amImage" s elect="$Pa ramImage"  />   1265        <xsl: with-param  name="Par amImage" s elect="$Pa ramImage"  />
1265        <xsl: with-param  name="Par amSeparato r" select= "$ParamSep arator" />   1266        <xsl: with-param  name="Par amSeparato r" select= "$ParamSep arator" />
1266        <xsl: with-param  name="Par amStyle" s elect="$Pa ramStyle"  />   1267        <xsl: with-param  name="Par amStyle" s elect="$Pa ramStyle"  />
1267       </xsl: call-templ ate>   1268       </xsl: call-templ ate>
1268      </xsl:w hen>   1269      </xsl:w hen>
1269     1270  
1270      <xsl:ot herwise>   1271      <xsl:ot herwise>
1271       <xsl:v ariable na me="VarBul letPropert iesAsXML">   1272       <xsl:v ariable na me="VarBul letPropert iesAsXML">
1272        <wwpr oject:Bull etProperti es>   1273        <wwpr oject:Bull etProperti es>
1273         <wwp roject:Pro perty Name ="bullet-s tyle" Valu e="{$Param Style}" />   1274         <wwp roject:Pro perty Name ="bullet-s tyle" Valu e="{$Param Style}" />
1274        </wwp roject:Bul letPropert ies>   1275        </wwp roject:Bul letPropert ies>
1275       </xsl: variable>   1276       </xsl: variable>
1276       <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)" />   1277       <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)" />
1277     1278  
1278       <xsl:v ariable na me="VarCar go" select ="$ParamCa rgo/*[loca l-name() ! = 'BulletP roperties' ]/.. | $Va rBulletPro perties" / >   1279       <xsl:v ariable na me="VarCar go" select ="$ParamCa rgo/*[loca l-name() ! = 'BulletP roperties' ]/.. | $Va rBulletPro perties" / >
1279     1280  
1280       <xsl:c all-templa te name="T extRun">   1281       <xsl:c all-templa te name="T extRun">
1281        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />   1282        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />
1282        <xsl: with-param  name="Par amCargo" s elect="$Va rCargo" />   1283        <xsl: with-param  name="Par amCargo" s elect="$Va rCargo" />
1283        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  />   1284        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  />
1284        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  />   1285        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  />
1285        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraph/@ id" />   1286        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraph/@ id" />
1286        <xsl: with-param  name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" />   1287        <xsl: with-param  name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" />
1287        <xsl: with-param  name="Par amTextRun"  select="$ ParamParag raph/wwdoc :Number[1] " />   1288        <xsl: with-param  name="Par amTextRun"  select="$ ParamParag raph/wwdoc :Number[1] " />
1288        <xsl: with-param  name="Par amPosition " select=" 0" />   1289        <xsl: with-param  name="Par amPosition " select=" 0" />
1289       </xsl: call-templ ate>   1290       </xsl: call-templ ate>
1290      </xsl:o therwise>   1291      </xsl:o therwise>
1291     </xsl:ch oose>   1292     </xsl:ch oose>
1292    </xsl:tem plate>   1293    </xsl:tem plate>
1293     1294  
1294     1295  
1295    <xsl:temp late name= "Paragraph TextRuns">   1296    <xsl:temp late name= "Paragraph TextRuns">
1296     <xsl:par am name="P aramSplits " />   1297     <xsl:par am name="P aramSplits " />
1297     <xsl:par am name="P aramCargo"  />   1298     <xsl:par am name="P aramCargo"  />
1298     <xsl:par am name="P aramLinks"  />   1299     <xsl:par am name="P aramLinks"  />
1299     <xsl:par am name="P aramSplit"  />   1300     <xsl:par am name="P aramSplit"  />
1300     <xsl:par am name="P aramPreser veEmpty" / >   1301     <xsl:par am name="P aramPreser veEmpty" / >
1301     <xsl:par am name="P aramUseCha racterStyl es" />   1302     <xsl:par am name="P aramUseCha racterStyl es" />
1302     <xsl:par am name="P aramParagr aph" />   1303     <xsl:par am name="P aramParagr aph" />
1303     1304  
1304     <!-- Pre vent white space issu es with pr eformatted  text bloc ks -->   1305     <!-- Pre vent white space issu es with pr eformatted  text bloc ks -->
1305     <!--                                                               -->   1306     <!--                                                               -->
1306     <wwexsld oc:NoBreak  />   1307     <wwexsld oc:NoBreak  />
1307     1308  
1308     <!-- Non -empty tex t runs -->   1309     <!-- Non -empty tex t runs -->
1309     <!--                       -->   1310     <!--                       -->
1310     <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]" />   1311     <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]" />
1311     1312  
1312     <!-- Che ck for emp ty paragra phs -->   1313     <!-- Che ck for emp ty paragra phs -->
1313     <!--                               -->   1314     <!--                               -->
1314     <xsl:cho ose>   1315     <xsl:cho ose>
1315      <xsl:wh en test="c ount($VarT extRuns[1] ) = 1">   1316      <xsl:wh en test="c ount($VarT extRuns[1] ) = 1">
1316       <!-- P aragraph h as content  -->   1317       <!-- P aragraph h as content  -->
1317       <!--                          -->   1318       <!--                          -->
1318       <xsl:f or-each se lect="$Var TextRuns">   1319       <xsl:f or-each se lect="$Var TextRuns">
1319        <xsl: variable n ame="VarTe xtRun" sel ect="." />   1320        <xsl: variable n ame="VarTe xtRun" sel ect="." />
1320     1321  
1321        <xsl: call-templ ate name=" TextRun">   1322        <xsl: call-templ ate name=" TextRun">
1322         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   1323         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
1323         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   1324         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
1324         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   1325         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
1325         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   1326         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
1326         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param Paragraph/ @id" />   1327         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param Paragraph/ @id" />
1327         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" />   1328         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" />
1328         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" />   1329         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" />
1329         <xsl :with-para m name="Pa ramPositio n" select= "position( )" />   1330         <xsl :with-para m name="Pa ramPositio n" select= "position( )" />
1330        </xsl :call-temp late>   1331        </xsl :call-temp late>
1331       </xsl: for-each>   1332       </xsl: for-each>
1332      </xsl:w hen>   1333      </xsl:w hen>
1333     1334  
1334      <xsl:ot herwise>   1335      <xsl:ot herwise>
1335       <!-- E mpty parag raph! -->   1336       <!-- E mpty parag raph! -->
1336       <!--                    -->   1337       <!--                    -->
1337       <xsl:i f test="$P aramPreser veEmpty">   1338       <xsl:i f test="$P aramPreser veEmpty">
1338        <html :a name="{ $ParamPara graph/@id} ">&#160;</ html:a>   1339        <html :a name="{ $ParamPara graph/@id} ">&#160;</ html:a>
1339       </xsl: if>   1340       </xsl: if>
1340      </xsl:o therwise>   1341      </xsl:o therwise>
1341     </xsl:ch oose>   1342     </xsl:ch oose>
1342    </xsl:tem plate>   1343    </xsl:tem plate>
1343     1344  
1344     1345  
1345    <xsl:temp late name= "SplitOnSe micolon">   1346    <xsl:temp late name= "SplitOnSe micolon">
1346     <xsl:par am name="P aramString " />   1347     <xsl:par am name="P aramString " />
1347     1348  
1348     <xsl:cho ose>   1349     <xsl:cho ose>
1349      <xsl:wh en test="c ontains($P aramString , ';')">   1350      <xsl:wh en test="c ontains($P aramString , ';')">
1350       <xsl:v ariable na me="VarPre fix" selec t="substri ng-before( $ParamStri ng, ';')"  />   1351       <xsl:v ariable na me="VarPre fix" selec t="substri ng-before( $ParamStri ng, ';')"  />
1351       <xsl:v ariable na me="VarSuf fix" selec t="substri ng-after($ ParamStrin g, ';')" / >   1352       <xsl:v ariable na me="VarSuf fix" selec t="substri ng-after($ ParamStrin g, ';')" / >
1352     1353  
1353       <xsl:c all-templa te name="S plitOnSemi colon">   1354       <xsl:c all-templa te name="S plitOnSemi colon">
1354        <xsl: with-param  name="Par amString"  select="$V arPrefix"  />   1355        <xsl: with-param  name="Par amString"  select="$V arPrefix"  />
1355       </xsl: call-templ ate>   1356       </xsl: call-templ ate>
1356       <xsl:c all-templa te name="S plitOnSemi colon">   1357       <xsl:c all-templa te name="S plitOnSemi colon">
1357        <xsl: with-param  name="Par amString"  select="$V arSuffix"  />   1358        <xsl: with-param  name="Par amString"  select="$V arSuffix"  />
1358       </xsl: call-templ ate>   1359       </xsl: call-templ ate>
1359      </xsl:w hen>   1360      </xsl:w hen>
1360     1361  
1361      <xsl:ot herwise>   1362      <xsl:ot herwise>
1362       <xsl:v ariable na me="VarNor malizedStr ing" selec t="normali ze-space($ ParamStrin g)" />   1363       <xsl:v ariable na me="VarNor malizedStr ing" selec t="normali ze-space($ ParamStrin g)" />
1363     1364  
1364       <xsl:i f test="st ring-lengt h($VarNorm alizedStri ng) &gt; 0 ">   1365       <xsl:i f test="st ring-lengt h($VarNorm alizedStri ng) &gt; 0 ">
1365        <wwdo c:Text val ue="{$VarN ormalizedS tring}" />   1366        <wwdo c:Text val ue="{$VarN ormalizedS tring}" />
1366       </xsl: if>   1367       </xsl: if>
1367      </xsl:o therwise>   1368      </xsl:o therwise>
1368     </xsl:ch oose>   1369     </xsl:ch oose>
1369    </xsl:tem plate>   1370    </xsl:tem plate>
1370     1371  
1371     1372  
1372    <xsl:temp late name= "ALinkEntr ies">   1373    <xsl:temp late name= "ALinkEntr ies">
1373     <xsl:par am name="P aramMarker s" />   1374     <xsl:par am name="P aramMarker s" />
1374     1375  
1375     <xsl:var iable name ="VarALink KeywordsAs XML">   1376     <xsl:var iable name ="VarALink KeywordsAs XML">
1376      <xsl:fo r-each sel ect="$Para mMarkers">   1377      <xsl:fo r-each sel ect="$Para mMarkers">
1377       <xsl:v ariable na me="VarMar ker" selec t="." />   1378       <xsl:v ariable na me="VarMar ker" selec t="." />
1378     1379  
1379       <xsl:v ariable na me="VarMar kerRule" s elect="wwp rojext:Get Rule('Mark er', $VarM arker/@nam e)" />   1380       <xsl:v ariable na me="VarMar kerRule" s elect="wwp rojext:Get Rule('Mark er', $VarM arker/@nam e)" />
1380       <xsl:v ariable na me="VarMar kerType" s elect="$Va rMarkerRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'mark er-type']/ @Value" />   1381       <xsl:v ariable na me="VarMar kerType" s elect="$Va rMarkerRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'mark er-type']/ @Value" />
1381     1382  
1382       <xsl:i f test="$V arMarkerTy pe = 'alin k-link-key words'">   1383       <xsl:i f test="$V arMarkerTy pe = 'alin k-link-key words'">
1383        <xsl: variable n ame="VarMa rkerText">   1384        <xsl: variable n ame="VarMa rkerText">
1384         <xsl :for-each  select="$V arMarker/w wdoc:TextR un/wwdoc:T ext">   1385         <xsl :for-each  select="$V arMarker/w wdoc:TextR un/wwdoc:T ext">
1385          <xs l:value-of  select="@ value" />   1386          <xs l:value-of  select="@ value" />
1386         </xs l:for-each >   1387         </xs l:for-each >
1387        </xsl :variable>   1388        </xsl :variable>
1388     1389  
1389        <xsl: call-templ ate name=" SplitOnSem icolon">   1390        <xsl: call-templ ate name=" SplitOnSem icolon">
1390         <xsl :with-para m name="Pa ramString"  select="$ VarMarkerT ext" />   1391         <xsl :with-para m name="Pa ramString"  select="$ VarMarkerT ext" />
1391        </xsl :call-temp late>   1392        </xsl :call-temp late>
1392       </xsl: if>   1393       </xsl: if>
1393      </xsl:f or-each>   1394      </xsl:f or-each>
1394     </xsl:va riable>   1395     </xsl:va riable>
1395     <xsl:var iable name ="VarALink Keywords"  select="ms xsl:node-s et($VarALi nkKeywords AsXML)/*"  />   1396     <xsl:var iable name ="VarALink Keywords"  select="ms xsl:node-s et($VarALi nkKeywords AsXML)/*"  />
1396     1397  
1397     <xsl:var iable name ="VarALink UniqueKeyw ordsAsXML" >   1398     <xsl:var iable name ="VarALink UniqueKeyw ordsAsXML" >
1398      <xsl:fo r-each sel ect="$VarA LinkKeywor ds">   1399      <xsl:fo r-each sel ect="$VarA LinkKeywor ds">
1399       <xsl:v ariable na me="VarTex t" select= "." />   1400       <xsl:v ariable na me="VarTex t" select= "." />
1400     1401  
1401       <xsl:i f test="co unt($VarTe xt | key(' wwdoc-text -by-value' , $VarText /@value)[1 ]) = 1">   1402       <xsl:i f test="co unt($VarTe xt | key(' wwdoc-text -by-value' , $VarText /@value)[1 ]) = 1">
1402        <xsl: copy-of se lect="$Var Text" />   1403        <xsl: copy-of se lect="$Var Text" />
1403       </xsl: if>   1404       </xsl: if>
1404      </xsl:f or-each>   1405      </xsl:f or-each>
1405     </xsl:va riable>   1406     </xsl:va riable>
1406     <xsl:var iable name ="VarALink UniqueKeyw ords" sele ct="msxsl: node-set($ VarALinkUn iqueKeywor dsAsXML)/* " />   1407     <xsl:var iable name ="VarALink UniqueKeyw ords" sele ct="msxsl: node-set($ VarALinkUn iqueKeywor dsAsXML)/* " />
1407     1408  
1408     <xsl:for -each sele ct="$VarAL inkUniqueK eywords">   1409     <xsl:for -each sele ct="$VarAL inkUniqueK eywords">
1409      <xsl:va riable nam e="VarText " select=" ." />   1410      <xsl:va riable nam e="VarText " select=" ." />
1410     1411  
1411      <xsl:va lue-of sel ect="conca t('&quot;' , $VarText /@value, ' &quot;')"  />   1412      <xsl:va lue-of sel ect="conca t('&quot;' , $VarText /@value, ' &quot;')"  />
1412      <xsl:if  test="pos ition() !=  last()">   1413      <xsl:if  test="pos ition() !=  last()">
1413       <xsl:v alue-of se lect="', ' " />   1414       <xsl:v alue-of se lect="', ' " />
1414      </xsl:i f>   1415      </xsl:i f>
1415     </xsl:fo r-each>   1416     </xsl:fo r-each>
1416    </xsl:tem plate>   1417    </xsl:tem plate>
1417     1418  
1418     1419  
1419    <xsl:temp late name= "LinkInfo" >   1420    <xsl:temp late name= "LinkInfo" >
1420     <xsl:par am name="P aramSplits " />   1421     <xsl:par am name="P aramSplits " />
1421     <xsl:par am name="P aramLinks"  />   1422     <xsl:par am name="P aramLinks"  />
1422     <xsl:par am name="P aramSplit"  />   1423     <xsl:par am name="P aramSplit"  />
1423     <xsl:par am name="P aramDocume ntLink" />   1424     <xsl:par am name="P aramDocume ntLink" />
1424     1425  
1425     <xsl:ele ment name= "LinkInfo"  namespace ="urn:WebW orks-Engin e-Links-Sc hema">   1426     <xsl:ele ment name= "LinkInfo"  namespace ="urn:WebW orks-Engin e-Links-Sc hema">
1426      <xsl:if  test="cou nt($ParamD ocumentLin k) &gt; 0" >   1427      <xsl:if  test="cou nt($ParamD ocumentLin k) &gt; 0" >
1427       <!-- R esolve lin k -->   1428       <!-- R esolve lin k -->
1428       <!--                -->   1429       <!--                -->
1429       <xsl:v ariable na me="VarRes olvedLinkI nfoAsXML">   1430       <xsl:v ariable na me="VarRes olvedLinkI nfoAsXML">
1430        <xsl: call-templ ate name=" Links-Reso lve">   1431        <xsl: call-templ ate name=" Links-Reso lve">
1431         <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para meterAllow Baggage" / >   1432         <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para meterAllow Baggage" / >
1432         <xsl :with-para m name="Pa ramAllowGr oupToGroup " select=" $Parameter AllowGroup ToGroup" / >   1433         <xsl :with-para m name="Pa ramAllowGr oupToGroup " select=" $Parameter AllowGroup ToGroup" / >
1433         <xsl :with-para m name="Pa ramAllowUR L" select= "$Paramete rAllowURL"  />   1434         <xsl :with-para m name="Pa ramAllowUR L" select= "$Paramete rAllowURL"  />
1434         <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$Parame terBaggage SplitFileT ype" />   1435         <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$Parame terBaggage SplitFileT ype" />
1435         <xsl :with-para m name="Pa ramProject " select=" $GlobalPro ject" />   1436         <xsl :with-para m name="Pa ramProject " select=" $GlobalPro ject" />
1436         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   1437         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
1437         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   1438         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
1438         <xsl :with-para m name="Pa ramSplitGr oupID" sel ect="$Para mSplit/@gr oupID" />   1439         <xsl :with-para m name="Pa ramSplitGr oupID" sel ect="$Para mSplit/@gr oupID" />
1439         <xsl :with-para m name="Pa ramSplitDo cumentID"  select="$P aramSplit/ @documentI D" />   1440         <xsl :with-para m name="Pa ramSplitDo cumentID"  select="$P aramSplit/ @documentI D" />
1440         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" />   1441         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" />
1441        </xsl :call-temp late>   1442        </xsl :call-temp late>
1442       </xsl: variable>   1443       </xsl: variable>
1443       <xsl:v ariable na me="VarRes olvedLinkI nfo" selec t="msxsl:n ode-set($V arResolved LinkInfoAs XML)/wwlin ks:Resolve dLink" />   1444       <xsl:v ariable na me="VarRes olvedLinkI nfo" selec t="msxsl:n ode-set($V arResolved LinkInfoAs XML)/wwlin ks:Resolve dLink" />
1444     1445  
        1446       <!-- @ title -->
        1447       <!--         -->
        1448       <xsl:i f test="st ring-lengt h($VarReso lvedLinkIn fo/@title)  &gt; 0">
        1449        <xsl: attribute  name="titl e">
        1450         <xsl :value-of  select="$V arResolved LinkInfo/@ title" />
        1451        </xsl :attribute >
        1452       </xsl: if>
        1453  
1445       <xsl:c hoose>   1454       <xsl:c hoose>
1446        <!--  Baggage -- >   1455        <!--  Baggage -- >
1447        <!--          -- >   1456        <!--          -- >
1448        <xsl: when test= "$VarResol vedLinkInf o/@type =  'baggage'" >   1457        <xsl: when test= "$VarResol vedLinkInf o/@type =  'baggage'" >
1449         <xsl :variable  name="VarR elativePat h" select= "wwuri:Get RelativeTo ($VarResol vedLinkInf o/@path, $ ParamSplit /@path)" / >   1458         <xsl :variable  name="VarR elativePat h" select= "wwuri:Get RelativeTo ($VarResol vedLinkInf o/@path, $ ParamSplit /@path)" / >
1450     1459  
1451         <xsl :attribute  name="hre f">   1460         <xsl :attribute  name="hre f">
1452          <xs l:value-of  select="$ VarRelativ ePath" />   1461          <xs l:value-of  select="$ VarRelativ ePath" />
1453         </xs l:attribut e>   1462         </xs l:attribut e>
1454     1463  
1455         <xsl :variable  name="VarT arget" sel ect="wwpro jext:GetFo rmatSettin g('baggage -file-targ et', 'exte rnal_windo w')" />   1464         <xsl :variable  name="VarT arget" sel ect="wwpro jext:GetFo rmatSettin g('baggage -file-targ et', 'exte rnal_windo w')" />
1456     1465  
1457         <xsl :if test=" (string-le ngth($VarT arget) &gt ; 0) and ( $VarTarget  != 'none' )">   1466         <xsl :if test=" (string-le ngth($VarT arget) &gt ; 0) and ( $VarTarget  != 'none' )">
1458          <xs l:attribut e name="ta rget">   1467          <xs l:attribut e name="ta rget">
1459           <x sl:value-o f select=" $VarTarget " />   1468           <x sl:value-o f select=" $VarTarget " />
1460          </x sl:attribu te>   1469          </x sl:attribu te>
1461         </xs l:if>   1470         </xs l:if>
1462        </xsl :when>   1471        </xsl :when>
1463     1472  
1464        <!--  Document - ->   1473        <!--  Document - ->
1465        <!--           - ->   1474        <!--           - ->
1466        <xsl: when test= "($VarReso lvedLinkIn fo/@type =  'document ') or ($Va rResolvedL inkInfo/@t ype = 'gro up') or ($ VarResolve dLinkInfo/ @type = 'p roject')">   1475        <xsl: when test= "($VarReso lvedLinkIn fo/@type =  'document ') or ($Va rResolvedL inkInfo/@t ype = 'gro up') or ($ VarResolve dLinkInfo/ @type = 'p roject')">
1467         <!--  Valid lin k -->   1476         <!--  Valid lin k -->
1468         <!--              -->   1477         <!--              -->
1469         <xsl :variable  name="VarG roupName"  select="ww projext:Ge tGroupName ($VarResol vedLinkInf o/@groupID )" />   1478         <xsl :variable  name="VarG roupName"  select="ww projext:Ge tGroupName ($VarResol vedLinkInf o/@groupID )" />
1470         <xsl :variable  name="VarO utputDirec toryPath"  select="ww filesystem :Combine(w wprojext:G etTargetOu tputDirect oryPath(),  $VarGroup Name)" />   1479         <xsl :variable  name="VarO utputDirec toryPath"  select="ww filesystem :Combine(w wprojext:G etTargetOu tputDirect oryPath(),  $VarGroup Name)" />
1471         <xsl :variable  name="VarL inkPath" s elect="wwu ri:GetRela tiveTo($Va rResolvedL inkInfo/@p ath, wwfil esystem:Co mbine($Var OutputDire ctoryPath,  'dummy.co mponent')) " />   1480         <xsl :variable  name="VarL inkPath" s elect="wwu ri:GetRela tiveTo($Va rResolvedL inkInfo/@p ath, wwfil esystem:Co mbine($Var OutputDire ctoryPath,  'dummy.co mponent')) " />
1472         <xsl :variable  name="VarP opupPath">   1481         <xsl :variable  name="VarP opupPath">
1473          <xs l:for-each  select="$ GlobalProj ectSplits[ 1]">   1482          <xs l:for-each  select="$ GlobalProj ectSplits[ 1]">
1474           <x sl:variabl e name="Va rSplitsPop ups" selec t="key('ww splits-pop ups-by-id' , $VarReso lvedLinkIn fo/@linkid )[@documen tID = $Var ResolvedLi nkInfo/@do cumentID]"  />   1483           <x sl:variabl e name="Va rSplitsPop ups" selec t="key('ww splits-pop ups-by-id' , $VarReso lvedLinkIn fo/@linkid )[@documen tID = $Var ResolvedLi nkInfo/@do cumentID]"  />
1475           <x sl:for-eac h select=" $VarSplits Popups[1]" >   1484           <x sl:for-eac h select=" $VarSplits Popups[1]" >
1476            < xsl:variab le name="V arSplitsPo pup" selec t="." />   1485            < xsl:variab le name="V arSplitsPo pup" selec t="." />
1477     1486  
1478            < xsl:value- of select= "wwuri:Get RelativeTo ($VarSplit sPopup/@pa th, wwfile system:Com bine($VarO utputDirec toryPath,  'dummy.com ponent'))"  />   1487            < xsl:value- of select= "wwuri:Get RelativeTo ($VarSplit sPopup/@pa th, wwfile system:Com bine($VarO utputDirec toryPath,  'dummy.com ponent'))"  />
1479           </ xsl:for-ea ch>   1488           </ xsl:for-ea ch>
1480          </x sl:for-eac h>   1489          </x sl:for-eac h>
1481         </xs l:variable >   1490         </xs l:variable >
1482     1491  
1483         <!--  Popup onl y? -->   1492         <!--  Popup onl y? -->
1484         <!--               -->   1493         <!--               -->
1485         <xsl :attribute  name="hre f">   1494         <xsl :attribute  name="hre f">
1486          <!- - JavaScri pt Link -- >   1495          <!- - JavaScri pt Link -- >
1487          <!- -                  -- >   1496          <!- -                  -- >
1488          <xs l:text>jav ascript:WW HClickedPo pup('</xsl :text>   1497          <xs l:text>jav ascript:WW HClickedPo pup('</xsl :text>
1489     1498  
1490          <!- - Context  -->   1499          <!- - Context  -->
1491          <!- -          -->   1500          <!- -          -->
1492          <xs l:call-tem plate name ="WWHelpCo ntext">   1501          <xs l:call-tem plate name ="WWHelpCo ntext">
1493           <x sl:with-pa ram name=" ParamProje ct" select ="$GlobalP roject" />   1502           <x sl:with-pa ram name=" ParamProje ct" select ="$GlobalP roject" />
1494           <x sl:with-pa ram name=" ParamGroup ID" select ="$VarReso lvedLinkIn fo/@groupI D" />   1503           <x sl:with-pa ram name=" ParamGroup ID" select ="$VarReso lvedLinkIn fo/@groupI D" />
1495          </x sl:call-te mplate>   1504          </x sl:call-te mplate>
1496          <xs l:text>',  '</xsl:tex t>   1505          <xs l:text>',  '</xsl:tex t>
1497     1506  
1498          <!- - Link -->   1507          <!- - Link -->
1499          <!- -      -->   1508          <!- -      -->
1500          <xs l:if test= "(string-l ength($Var ResolvedLi nkInfo/@po pup-only)  = 0) or ($ VarResolve dLinkInfo/ @popup-onl y != 'true ')">   1509          <xs l:if test= "(string-l ength($Var ResolvedLi nkInfo/@po pup-only)  = 0) or ($ VarResolve dLinkInfo/ @popup-onl y != 'true ')">
1501           <x sl:value-o f select=" wwstring:J avaScriptE ncoding($V arLinkPath )" />   1510           <x sl:value-o f select=" wwstring:J avaScriptE ncoding($V arLinkPath )" />
1502           <x sl:if test ="(string- length($Pa ramDocumen tLink/@anc hor) &gt;  0) and (st ring-lengt h($VarReso lvedLinkIn fo/@linkid ) &gt; 0)" >   1511           <x sl:if test ="(string- length($Pa ramDocumen tLink/@anc hor) &gt;  0) and (st ring-lengt h($VarReso lvedLinkIn fo/@linkid ) &gt; 0)" >
1503            < xsl:text># </xsl:text >   1512            < xsl:text># </xsl:text >
1504            < xsl:value- of select= "wwstring: JavaScript Encoding($ VarResolve dLinkInfo/ @linkid)"  />   1513            < xsl:value- of select= "wwstring: JavaScript Encoding($ VarResolve dLinkInfo/ @linkid)"  />
1505           </ xsl:if>   1514           </ xsl:if>
1506          </x sl:if>   1515          </x sl:if>
1507          <xs l:text>',  '</xsl:tex t>   1516          <xs l:text>',  '</xsl:tex t>
1508     1517  
1509          <!- - Popup Li nk -->   1518          <!- - Popup Li nk -->
1510          <!- -             -->   1519          <!- -             -->
1511          <xs l:value-of  select="w wstring:Ja vaScriptEn coding($Va rPopupPath )" />   1520          <xs l:value-of  select="w wstring:Ja vaScriptEn coding($Va rPopupPath )" />
1512          <xs l:text>'); </xsl:text >   1521          <xs l:text>'); </xsl:text >
1513         </xs l:attribut e>   1522         </xs l:attribut e>
1514     1523  
1515         <!--  Popup -->   1524         <!--  Popup -->
1516         <!--        -->   1525         <!--        -->
1517         <xsl :if test=" $VarResolv edLinkInfo /@popup =  'true'">   1526         <xsl :if test=" $VarResolv edLinkInfo /@popup =  'true'">
1518          <xs l:attribut e name="on MouseOver" >   1527          <xs l:attribut e name="on MouseOver" >
1519           <! -- JavaScr ipt Link - ->   1528           <! -- JavaScr ipt Link - ->
1520           <! --                  - ->   1529           <! --                  - ->
1521           <x sl:text>ja vascript:W WHShowPopu p('</xsl:t ext>   1530           <x sl:text>ja vascript:W WHShowPopu p('</xsl:t ext>
1522     1531  
1523           <! -- Context  -->   1532           <! -- Context  -->
1524           <! --          -->   1533           <! --          -->
1525           <x sl:call-te mplate nam e="WWHelpC ontext">   1534           <x sl:call-te mplate nam e="WWHelpC ontext">
1526            < xsl:with-p aram name= "ParamProj ect" selec t="$Global Project" / >   1535            < xsl:with-p aram name= "ParamProj ect" selec t="$Global Project" / >
1527            < xsl:with-p aram name= "ParamGrou pID" selec t="$VarRes olvedLinkI nfo/@group ID" />   1536            < xsl:with-p aram name= "ParamGrou pID" selec t="$VarRes olvedLinkI nfo/@group ID" />
1528           </ xsl:call-t emplate>   1537           </ xsl:call-t emplate>
1529           <x sl:text>',  '</xsl:te xt>   1538           <x sl:text>',  '</xsl:te xt>
1530     1539  
1531           <! -- Popup L ink -->   1540           <! -- Popup L ink -->
1532           <! --             -->   1541           <! --             -->
1533           <x sl:value-o f select=" wwstring:J avaScriptE ncoding($V arPopupPat h)" />   1542           <x sl:value-o f select=" wwstring:J avaScriptE ncoding($V arPopupPat h)" />
1534           <x sl:text>',  (document .all||docu ment.getEl ementById| |document. layers)?ev ent:null); </xsl:text >   1543           <x sl:text>',  (document .all||docu ment.getEl ementById| |document. layers)?ev ent:null); </xsl:text >
1535          </x sl:attribu te>   1544          </x sl:attribu te>
1536     1545  
1537          <xs l:attribut e name="on MouseOut">   1546          <xs l:attribut e name="on MouseOut">
1538           <x sl:text>WW HHidePopup ();</xsl:t ext>   1547           <x sl:text>WW HHidePopup ();</xsl:t ext>
1539          </x sl:attribu te>   1548          </x sl:attribu te>
1540         </xs l:if>   1549         </xs l:if>
1541        </xsl :when>   1550        </xsl :when>
1542     1551  
1543        <!--  URL -->   1552        <!--  URL -->
1544        <!--      -->   1553        <!--      -->
1545        <xsl: when test= "$VarResol vedLinkInf o/@type =  'url'">   1554        <xsl: when test= "$VarResol vedLinkInf o/@type =  'url'">
1546         <xsl :attribute  name="hre f">   1555         <xsl :attribute  name="hre f">
1547          <xs l:value-of  select="$ VarResolve dLinkInfo/ @url" />   1556          <xs l:value-of  select="$ VarResolve dLinkInfo/ @url" />
1548         </xs l:attribut e>   1557         </xs l:attribut e>
1549     1558  
1550         <!--  External  URL Target  -->   1559         <!--  External  URL Target  -->
1551         <!--                        -->   1560         <!--                        -->
1552         <xsl :if test=" not(wwuri: IsFile($Va rResolvedL inkInfo/@u rl))">   1561         <xsl :if test=" not(wwuri: IsFile($Va rResolvedL inkInfo/@u rl))">
1553          <xs l:variable  name="Var Target" se lect="wwpr ojext:GetF ormatSetti ng('extern al-url-tar get', 'ext ernal_wind ow')" />   1562          <xs l:variable  name="Var Target" se lect="wwpr ojext:GetF ormatSetti ng('extern al-url-tar get', 'ext ernal_wind ow')" />
1554     1563  
1555          <xs l:if test= "(string-l ength($Var Target) &g t; 0) and  ($VarTarge t != 'none ')">   1564          <xs l:if test= "(string-l ength($Var Target) &g t; 0) and  ($VarTarge t != 'none ')">
1556           <x sl:attribu te name="t arget">   1565           <x sl:attribu te name="t arget">
1557            < xsl:value- of select= "$VarTarge t" />   1566            < xsl:value- of select= "$VarTarge t" />
1558           </ xsl:attrib ute>   1567           </ xsl:attrib ute>
1559          </x sl:if>   1568          </x sl:if>
1560         </xs l:if>   1569         </xs l:if>
1561        </xsl :when>   1570        </xsl :when>
1562       </xsl: choose>   1571       </xsl: choose>
1563      </xsl:i f>   1572      </xsl:i f>
1564     </xsl:el ement>   1573     </xsl:el ement>
1565    </xsl:tem plate>   1574    </xsl:tem plate>
1566     1575  
1567     1576  
1568    <xsl:temp late name= "TextRun">   1577    <xsl:temp late name= "TextRun">
1569     <xsl:par am name="P aramSplits " />   1578     <xsl:par am name="P aramSplits " />
1570     <xsl:par am name="P aramCargo"  />   1579     <xsl:par am name="P aramCargo"  />
1571     <xsl:par am name="P aramLinks"  />   1580     <xsl:par am name="P aramLinks"  />
1572     <xsl:par am name="P aramSplit"  />   1581     <xsl:par am name="P aramSplit"  />
1573     <xsl:par am name="P aramParagr aphID" />   1582     <xsl:par am name="P aramParagr aphID" />
1574     <xsl:par am name="P aramUseCha racterStyl es" />   1583     <xsl:par am name="P aramUseCha racterStyl es" />
1575     <xsl:par am name="P aramTextRu n" />   1584     <xsl:par am name="P aramTextRu n" />
1576     <xsl:par am name="P aramPositi on" />   1585     <xsl:par am name="P aramPositi on" />
1577     1586  
1578     <!-- Get  rule -->   1587     <!-- Get  rule -->
1579     <!--           -->   1588     <!--           -->
1580     <xsl:var iable name ="VarRule"  select="w wprojext:G etRule('Ch aracter',  $ParamText Run/@style name)" />   1589     <xsl:var iable name ="VarRule"  select="w wprojext:G etRule('Ch aracter',  $ParamText Run/@style name)" />
1581     1590  
1582     <!-- Gen erate outp ut? -->   1591     <!-- Gen erate outp ut? -->
1583     <!---                   -->   1592     <!---                   -->
1584     <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" />   1593     <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" />
1585     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" />   1594     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" />
1586     <xsl:if  test="$Var GenerateOu tput">   1595     <xsl:if  test="$Var GenerateOu tput">
1587      <!-- Pa ss-through ? -->   1596      <!-- Pa ss-through ? -->
1588      <!--                 -->   1597      <!--                 -->
1589      <xsl:va riable nam e="VarPass Through">   1598      <xsl:va riable nam e="VarPass Through">
1590       <xsl:c all-templa te name="C onditions- PassThroug h">   1599       <xsl:c all-templa te name="C onditions- PassThroug h">
1591        <xsl: with-param  name="Par amConditio ns" select ="$ParamTe xtRun/wwdo c:Conditio ns" />   1600        <xsl: with-param  name="Par amConditio ns" select ="$ParamTe xtRun/wwdo c:Conditio ns" />
1592       </xsl: call-templ ate>   1601       </xsl: call-templ ate>
1593      </xsl:v ariable>   1602      </xsl:v ariable>
1594     1603  
1595      <xsl:ch oose>   1604      <xsl:ch oose>
1596       <xsl:w hen test=" $VarPassTh rough = 't rue'">   1605       <xsl:w hen test=" $VarPassTh rough = 't rue'">
1597        <xsl: call-templ ate name=" TextRun-Pa ssThrough" >   1606        <xsl: call-templ ate name=" TextRun-Pa ssThrough" >
1598         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" />   1607         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" />
1599        </xsl :call-temp late>   1608        </xsl :call-temp late>
1600       </xsl: when>   1609       </xsl: when>
1601     1610  
1602       <xsl:o therwise>   1611       <xsl:o therwise>
1603        <!--  A-Link? -- >   1612        <!--  A-Link? -- >
1604        <!--          -- >   1613        <!--          -- >
1605        <xsl: variable n ame="VarAL inkOption"  select="$ VarRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'alink']/ @Value" />   1614        <xsl: variable n ame="VarAL inkOption"  select="$ VarRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'alink']/ @Value" />
1606        <xsl: variable n ame="VarAL ink" selec t="$VarALi nkOption =  'true'" / >   1615        <xsl: variable n ame="VarAL ink" selec t="$VarALi nkOption =  'true'" / >
1607     1616  
1608        <xsl: choose>   1617        <xsl: choose>
1609         <!--  Handle A- Links -->   1618         <!--  Handle A- Links -->
1610         <!--                  -->   1619         <!--                  -->
1611         <xsl :when test ="(count($ ParamCargo /wwalinks: ALink[1])  = 0) and ( $VarALink) ">   1620         <xsl :when test ="(count($ ParamCargo /wwalinks: ALink[1])  = 0) and ( $VarALink) ">
1612          <!- - Update c argo -->   1621          <!- - Update c argo -->
1613          <!- -               -->   1622          <!- -               -->
1614          <xs l:variable  name="Var CargoALink AsXML">   1623          <xs l:variable  name="Var CargoALink AsXML">
1615           <x sl:variabl e name="Va rALinkEntr ies">   1624           <x sl:variabl e name="Va rALinkEntr ies">
1616            < xsl:call-t emplate na me="ALinkE ntries">   1625            < xsl:call-t emplate na me="ALinkE ntries">
1617              <xsl:with- param name ="ParamMar kers" sele ct="$Param TextRun/ww doc:Marker " />   1626              <xsl:with- param name ="ParamMar kers" sele ct="$Param TextRun/ww doc:Marker " />
1618            < /xsl:call- template>   1627            < /xsl:call- template>
1619           </ xsl:variab le>   1628           </ xsl:variab le>
1620     1629  
1621           <w walinks:AL ink>   1630           <w walinks:AL ink>
1622            < xsl:attrib ute name=" href">   1631            < xsl:attrib ute name=" href">
1623              <xsl:value -of select ="'javascr ipt:WWHDoN othingHREF ();'" />   1632              <xsl:value -of select ="'javascr ipt:WWHDoN othingHREF ();'" />
1624            < /xsl:attri bute>   1633            < /xsl:attri bute>
1625            < xsl:attrib ute name=" onClick">   1634            < xsl:attrib ute name=" onClick">
1626              <xsl:value -of select ="concat(' WWHShowALi nksPopup(n ew Array(' , $VarALin kEntries,  '), (docum ent.all||d ocument.ge tElementBy Id||docume nt.layers) ?event:nul l);')" />   1635              <xsl:value -of select ="concat(' WWHShowALi nksPopup(n ew Array(' , $VarALin kEntries,  '), (docum ent.all||d ocument.ge tElementBy Id||docume nt.layers) ?event:nul l);')" />
1627            < /xsl:attri bute>   1636            < /xsl:attri bute>
1628           </ wwalinks:A Link>   1637           </ wwalinks:A Link>
1629          </x sl:variabl e>   1638          </x sl:variabl e>
1630          <xs l:variable  name="Var CargoALink " select=" msxsl:node -set($VarC argoALinkA sXML)" />   1639          <xs l:variable  name="Var CargoALink " select=" msxsl:node -set($VarC argoALinkA sXML)" />
1631          <xs l:variable  name="Var Cargo" sel ect="$Para mCargo/*/. . | $VarCa rgoALink"  />   1640          <xs l:variable  name="Var Cargo" sel ect="$Para mCargo/*/. . | $VarCa rgoALink"  />
1632     1641  
1633          <xs l:call-tem plate name ="TextRun- Normal">   1642          <xs l:call-tem plate name ="TextRun- Normal">
1634           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />   1643           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
1635           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  />   1644           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  />
1636           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />   1645           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
1637           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />   1646           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
1638           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" />   1647           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" />
1639           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$ParamU seCharacte rStyles" / >   1648           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$ParamU seCharacte rStyles" / >
1640           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" />   1649           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" />
1641           <x sl:with-pa ram name=" ParamRule"  select="$ VarRule" / >   1650           <x sl:with-pa ram name=" ParamRule"  select="$ VarRule" / >
1642           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / >   1651           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / >
1643          </x sl:call-te mplate>   1652          </x sl:call-te mplate>
1644         </xs l:when>   1653         </xs l:when>
1645     1654  
1646         <xsl :otherwise >   1655         <xsl :otherwise >
1647          <xs l:call-tem plate name ="TextRun- Normal">   1656          <xs l:call-tem plate name ="TextRun- Normal">
1648           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />   1657           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
1649           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" />   1658           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" />
1650           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />   1659           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
1651           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />   1660           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
1652           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" />   1661           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" />
1653           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$ParamU seCharacte rStyles" / >   1662           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$ParamU seCharacte rStyles" / >
1654           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" />   1663           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" />
1655           <x sl:with-pa ram name=" ParamRule"  select="$ VarRule" / >   1664           <x sl:with-pa ram name=" ParamRule"  select="$ VarRule" / >
1656           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / >   1665           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / >
1657          </x sl:call-te mplate>   1666          </x sl:call-te mplate>
1658         </xs l:otherwis e>   1667         </xs l:otherwis e>
1659        </xsl :choose>   1668        </xsl :choose>
1660       </xsl: otherwise>   1669       </xsl: otherwise>
1661      </xsl:c hoose>   1670      </xsl:c hoose>
1662     </xsl:if >   1671     </xsl:if >
1663    </xsl:tem plate>   1672    </xsl:tem plate>
1664     1673  
1665     1674  
1666    <xsl:temp late name= "TextRun-P assThrough ">   1675    <xsl:temp late name= "TextRun-P assThrough ">
1667     <xsl:par am name="P aramTextRu n" />   1676     <xsl:par am name="P aramTextRu n" />
1668     1677  
1669     <wwexsld oc:Text di sable-outp ut-escapin g="yes">   1678     <wwexsld oc:Text di sable-outp ut-escapin g="yes">
1670      <xsl:fo r-each sel ect="$Para mTextRun/w wdoc:Text" >   1679      <xsl:fo r-each sel ect="$Para mTextRun/w wdoc:Text" >
1671       <xsl:v ariable na me="VarTex t" select= "." />   1680       <xsl:v ariable na me="VarTex t" select= "." />
1672     1681  
1673       <xsl:v alue-of se lect="$Var Text/@valu e" />   1682       <xsl:v alue-of se lect="$Var Text/@valu e" />
1674      </xsl:f or-each>   1683      </xsl:f or-each>
1675     </wwexsl doc:Text>   1684     </wwexsl doc:Text>
1676    </xsl:tem plate>   1685    </xsl:tem plate>
1677     1686  
1678     1687  
1679    <xsl:temp late name= "TextRun-N ormal">   1688    <xsl:temp late name= "TextRun-N ormal">
1680     <xsl:par am name="P aramSplits " />   1689     <xsl:par am name="P aramSplits " />
1681     <xsl:par am name="P aramCargo"  />   1690     <xsl:par am name="P aramCargo"  />
1682     <xsl:par am name="P aramLinks"  />   1691     <xsl:par am name="P aramLinks"  />
1683     <xsl:par am name="P aramSplit"  />   1692     <xsl:par am name="P aramSplit"  />
1684     <xsl:par am name="P aramParagr aphID" />   1693     <xsl:par am name="P aramParagr aphID" />
1685     <xsl:par am name="P aramUseCha racterStyl es" />   1694     <xsl:par am name="P aramUseCha racterStyl es" />
1686     <xsl:par am name="P aramTextRu n" />   1695     <xsl:par am name="P aramTextRu n" />
1687     <xsl:par am name="P aramRule"  />   1696     <xsl:par am name="P aramRule"  />
1688     <xsl:par am name="P aramPositi on" />   1697     <xsl:par am name="P aramPositi on" />
1689     1698  
1690     <xsl:cho ose>   1699     <xsl:cho ose>
1691      <xsl:wh en test="( $ParamUseC haracterSt yles) and  ((string-l ength($Par amTextRun/ @stylename ) &gt; 0)  or (count( $ParamText Run/wwdoc: Style) = 1 ))">   1700      <xsl:wh en test="( $ParamUseC haracterSt yles) and  ((string-l ength($Par amTextRun/ @stylename ) &gt; 0)  or (count( $ParamText Run/wwdoc: Style) = 1 ))">
1692       <!-- G et overrid e rule -->   1701       <!-- G et overrid e rule -->
1693       <!--                     -->   1702       <!--                     -->
1694       <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)" / >   1703       <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)" / >
1695     1704  
1696       <!-- R esolve pro ject prope rties -->   1705       <!-- R esolve pro ject prope rties -->
1697       <!--                               -->   1706       <!--                               -->
1698       <xsl:v ariable na me="VarRes olvedPrope rtiesAsXML ">   1707       <xsl:v ariable na me="VarRes olvedPrope rtiesAsXML ">
1699        <xsl: call-templ ate name=" Properties -ResolveOv errideRule ">   1708        <xsl: call-templ ate name=" Properties -ResolveOv errideRule ">
1700         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarOve rrideRule/ wwproject: Properties /wwproject :Property"  />   1709         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarOve rrideRule/ wwproject: Properties /wwproject :Property"  />
1701         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mTextRun/w wdoc:Style " />   1710         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mTextRun/w wdoc:Style " />
1702        </xsl :call-temp late>   1711        </xsl :call-temp late>
1703       </xsl: variable>   1712       </xsl: variable>
1704       <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / >   1713       <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / >
1705     1714  
1706       <!-- C SS propert ies -->   1715       <!-- C SS propert ies -->
1707       <!--                  -->   1716       <!--                  -->
1708       <xsl:v ariable na me="VarCSS Properties AsXML">   1717       <xsl:v ariable na me="VarCSS Properties AsXML">
1709        <xsl: call-templ ate name=" CSS-Transl ateProject Properties ">   1718        <xsl: call-templ ate name=" CSS-Transl ateProject Properties ">
1710         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties" />   1719         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties" />
1711         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" />   1720         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" />
1712         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   1721         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
1713        </xsl :call-temp late>   1722        </xsl :call-temp late>
1714       </xsl: variable>   1723       </xsl: variable>
1715       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / >   1724       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / >
1716     1725  
1717       <!-- A bbreviatio n -->   1726       <!-- A bbreviatio n -->
1718       <!--                -->   1727       <!--                -->
1719       <xsl:v ariable na me="VarAbb reviationT itle">   1728       <xsl:v ariable na me="VarAbb reviationT itle">
1720        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker ">   1729        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker ">
1721         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" />   1730         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" />
1722         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   1731         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
1723         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" />   1732         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" />
1724         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / >   1733         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / >
1725         <xsl :with-para m name="Pa ramOption"  select="' abbreviati on'" />   1734         <xsl :with-para m name="Pa ramOption"  select="' abbreviati on'" />
1726        </xsl :call-temp late>   1735        </xsl :call-temp late>
1727       </xsl: variable>   1736       </xsl: variable>
1728     1737  
1729       <!-- A cronym -->   1738       <!-- A cronym -->
1730       <!--          -->   1739       <!--          -->
1731       <xsl:v ariable na me="VarAcr onymTitle" >   1740       <xsl:v ariable na me="VarAcr onymTitle" >
1732        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker ">   1741        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker ">
1733         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" />   1742         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" />
1734         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   1743         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
1735         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" />   1744         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" />
1736         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / >   1745         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / >
1737         <xsl :with-para m name="Pa ramOption"  select="' acronym'"  />   1746         <xsl :with-para m name="Pa ramOption"  select="' acronym'"  />
1738        </xsl :call-temp late>   1747        </xsl :call-temp late>
1739       </xsl: variable>   1748       </xsl: variable>
1740     1749  
1741       <!-- C itation -- >   1750       <!-- C itation -- >
1742       <!--           -- >   1751       <!--           -- >
1743       <xsl:v ariable na me="VarCit ation">   1752       <xsl:v ariable na me="VarCit ation">
1744        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker ">   1753        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker ">
1745         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" />   1754         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" />
1746         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   1755         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
1747         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" />   1756         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" />
1748         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / >   1757         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / >
1749         <xsl :with-para m name="Pa ramOption"  select="' citation'"  />   1758         <xsl :with-para m name="Pa ramOption"  select="' citation'"  />
1750        </xsl :call-temp late>   1759        </xsl :call-temp late>
1751       </xsl: variable>   1760       </xsl: variable>
1752     1761  
1753       <!-- T ag -->   1762       <!-- T ag -->
1754       <!--      -->   1763       <!--      -->
1755       <xsl:v ariable na me="VarTag Property"  select="$P aramRule/w wproject:P roperties/ wwproject: Property[@ Name = 'ta g']/@Value " />   1764       <xsl:v ariable na me="VarTag Property"  select="$P aramRule/w wproject:P roperties/ wwproject: Property[@ Name = 'ta g']/@Value " />
1756       <xsl:v ariable na me="VarTag ">   1765       <xsl:v ariable na me="VarTag ">
1757        <xsl: choose>   1766        <xsl: choose>
1758         <xsl :when test ="string-l ength($Var Abbreviati onTitle) & gt; 0">   1767         <xsl :when test ="string-l ength($Var Abbreviati onTitle) & gt; 0">
1759          <xs l:value-of  select="' abbr'" />   1768          <xs l:value-of  select="' abbr'" />
1760         </xs l:when>   1769         </xs l:when>
1761         <xsl :when test ="string-l ength($Var AcronymTit le) &gt; 0 ">   1770         <xsl :when test ="string-l ength($Var AcronymTit le) &gt; 0 ">
1762          <xs l:value-of  select="' acronym'"  />   1771          <xs l:value-of  select="' acronym'"  />
1763         </xs l:when>   1772         </xs l:when>
1764         <xsl :when test ="string-l ength($Var Citation)  &gt; 0">   1773         <xsl :when test ="string-l ength($Var Citation)  &gt; 0">
1765          <xs l:value-of  select="' q'" />   1774          <xs l:value-of  select="' q'" />
1766         </xs l:when>   1775         </xs l:when>
1767         <xsl :otherwise >   1776         <xsl :otherwise >
1768          <xs l:choose>   1777          <xs l:choose>
1769           <x sl:when te st="string -length($V arTagPrope rty) &gt;  0">   1778           <x sl:when te st="string -length($V arTagPrope rty) &gt;  0">
1770            < xsl:value- of select= "$VarTagPr operty" />   1779            < xsl:value- of select= "$VarTagPr operty" />
1771           </ xsl:when>   1780           </ xsl:when>
1772     1781  
1773           <x sl:otherwi se>   1782           <x sl:otherwi se>
1774            < xsl:value- of select= "'span'" / >   1783            < xsl:value- of select= "'span'" / >
1775           </ xsl:otherw ise>   1784           </ xsl:otherw ise>
1776          </x sl:choose>   1785          </x sl:choose>
1777         </xs l:otherwis e>   1786         </xs l:otherwis e>
1778        </xsl :choose>   1787        </xsl :choose>
1779       </xsl: variable>   1788       </xsl: variable>
1780     1789  
1781       <!-- C lass attri bute -->   1790       <!-- C lass attri bute -->
1782       <!--                   -->   1791       <!--                   -->
1783       <xsl:v ariable na me="VarCla ssAttribut e">   1792       <xsl:v ariable na me="VarCla ssAttribut e">
1784        <xsl: choose>   1793        <xsl: choose>
1785         <xsl :when test ="string-l ength($Par amCargo/ww project:Bu lletProper ties/wwpro ject:Prope rty[@Name  = 'bullet- style']/@V alue) &gt;  0">   1794         <xsl :when test ="string-l ength($Par amCargo/ww project:Bu lletProper ties/wwpro ject:Prope rty[@Name  = 'bullet- style']/@V alue) &gt;  0">
1786          <xs l:value-of  select="w wstring:CS SClassName ($ParamCar go/wwproje ct:BulletP roperties/ wwproject: Property[@ Name = 'bu llet-style ']/@Value) " />   1795          <xs l:value-of  select="w wstring:CS SClassName ($ParamCar go/wwproje ct:BulletP roperties/ wwproject: Property[@ Name = 'bu llet-style ']/@Value) " />
1787         </xs l:when>   1796         </xs l:when>
1788     1797  
1789         <xsl :otherwise >   1798         <xsl :otherwise >
1790          <xs l:value-of  select="w wstring:CS SClassName ($ParamTex tRun/@styl ename)" />   1799          <xs l:value-of  select="w wstring:CS SClassName ($ParamTex tRun/@styl ename)" />
1791         </xs l:otherwis e>   1800         </xs l:otherwis e>
1792        </xsl :choose>   1801        </xsl :choose>
1793     1802  
1794        <!--  Additional  CSS class es -->   1803        <!--  Additional  CSS class es -->
1795        <!--                           -->   1804        <!--                           -->
1796        <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)" />   1805        <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)" />
1797        <xsl: if test="s tring-leng th($VarAdd itionalCSS ClassesOpt ion) &gt;  0">   1806        <xsl: if test="s tring-leng th($VarAdd itionalCSS ClassesOpt ion) &gt;  0">
1798         <xsl :text> </x sl:text>   1807         <xsl :text> </x sl:text>
1799         <xsl :value-of  select="$V arAddition alCSSClass esOption"  />   1808         <xsl :value-of  select="$V arAddition alCSSClass esOption"  />
1800        </xsl :if>   1809        </xsl :if>
1801       </xsl: variable>   1810       </xsl: variable>
1802     1811  
1803       <!-- S tyle attri bute -->   1812       <!-- S tyle attri bute -->
1804       <!--                   -->   1813       <!--                   -->
1805       <xsl:v ariable na me="VarSty leAttribut e">   1814       <xsl:v ariable na me="VarSty leAttribut e">
1806        <xsl: call-templ ate name=" CSS-Inline Properties ">   1815        <xsl: call-templ ate name=" CSS-Inline Properties ">
1807         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " />   1816         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " />
1808        </xsl :call-temp late>   1817        </xsl :call-temp late>
1809       </xsl: variable>   1818       </xsl: variable>
1810     1819  
1811       <xsl:c hoose>   1820       <xsl:c hoose>
1812        <xsl: when test= "(string-l ength($Var ClassAttri bute) &gt;  0) or (st ring-lengt h($VarStyl eAttribute ) &gt; 0)" >   1821        <xsl: when test= "(string-l ength($Var ClassAttri bute) &gt;  0) or (st ring-lengt h($VarStyl eAttribute ) &gt; 0)" >
1813         <!--  Character  Style -->   1822         <!--  Character  Style -->
1814         <!--                   -->   1823         <!--                   -->
1815         <xsl :element n ame="{$Var Tag}" name space="{$G lobalDefau ltNamespac e}">   1824         <xsl :element n ame="{$Var Tag}" name space="{$G lobalDefau ltNamespac e}">
1816          <xs l:if test= "string-le ngth($VarC lassAttrib ute) &gt;  0">   1825          <xs l:if test= "string-le ngth($VarC lassAttrib ute) &gt;  0">
1817           <x sl:attribu te name="c lass">   1826           <x sl:attribu te name="c lass">
1818            < xsl:value- of select= "$VarClass Attribute"  />   1827            < xsl:value- of select= "$VarClass Attribute"  />
1819           </ xsl:attrib ute>   1828           </ xsl:attrib ute>
1820          </x sl:if>   1829          </x sl:if>
1821          <xs l:if test= "string-le ngth($VarS tyleAttrib ute) &gt;  0">   1830          <xs l:if test= "string-le ngth($VarS tyleAttrib ute) &gt;  0">
1822           <x sl:attribu te name="s tyle">   1831           <x sl:attribu te name="s tyle">
1823            < xsl:value- of select= "$VarStyle Attribute"  />   1832            < xsl:value- of select= "$VarStyle Attribute"  />
1824           </ xsl:attrib ute>   1833           </ xsl:attrib ute>
1825          </x sl:if>   1834          </x sl:if>
1826     1835  
1827          <!- - Abbrevia tion title  -->   1836          <!- - Abbrevia tion title  -->
1828          <!- -                      -->   1837          <!- -                      -->
1829          <xs l:if test= "string-le ngth($VarA bbreviatio nTitle) &g t; 0">   1838          <xs l:if test= "string-le ngth($VarA bbreviatio nTitle) &g t; 0">
1830           <x sl:attribu te name="t itle">   1839           <x sl:attribu te name="t itle">
1831            < xsl:value- of select= "$VarAbbre viationTit le" />   1840            < xsl:value- of select= "$VarAbbre viationTit le" />
1832           </ xsl:attrib ute>   1841           </ xsl:attrib ute>
1833          </x sl:if>   1842          </x sl:if>
1834     1843  
1835          <!- - Acronym  title -->   1844          <!- - Acronym  title -->
1836          <!- -                      -->   1845          <!- -                      -->
1837          <xs l:if test= "string-le ngth($VarA cronymTitl e) &gt; 0" >   1846          <xs l:if test= "string-le ngth($VarA cronymTitl e) &gt; 0" >
1838           <x sl:attribu te name="t itle">   1847           <x sl:attribu te name="t itle">
1839            < xsl:value- of select= "$VarAcron ymTitle" / >   1848            < xsl:value- of select= "$VarAcron ymTitle" / >
1840           </ xsl:attrib ute>   1849           </ xsl:attrib ute>
1841          </x sl:if>   1850          </x sl:if>
1842     1851  
1843          <!- - Cite att ribute -->   1852          <!- - Cite att ribute -->
1844          <!- -                 -->   1853          <!- -                 -->
1845          <xs l:if test= "string-le ngth($VarC itation) & gt; 0">   1854          <xs l:if test= "string-le ngth($VarC itation) & gt; 0">
1846           <x sl:attribu te name="c ite">   1855           <x sl:attribu te name="c ite">
1847            < xsl:value- of select= "$VarCitat ion" />   1856            < xsl:value- of select= "$VarCitat ion" />
1848           </ xsl:attrib ute>   1857           </ xsl:attrib ute>
1849          </x sl:if>   1858          </x sl:if>
1850     1859  
1851          <xs l:call-tem plate name ="TextRunC hildren">   1860          <xs l:call-tem plate name ="TextRunC hildren">
1852           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />   1861           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
1853           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" />   1862           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" />
1854           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />   1863           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
1855           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />   1864           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
1856           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" />   1865           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" />
1857           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" />   1866           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" />
1858           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / >   1867           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / >
1859          </x sl:call-te mplate>   1868          </x sl:call-te mplate>
1860         </xs l:element>   1869         </xs l:element>
1861        </xsl :when>   1870        </xsl :when>
1862     1871  
1863        <xsl: otherwise>   1872        <xsl: otherwise>
1864         <!--  No style  -->   1873         <!--  No style  -->
1865         <!--            -->   1874         <!--            -->
1866         <xsl :call-temp late name= "TextRunCh ildren">   1875         <xsl :call-temp late name= "TextRunCh ildren">
1867          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />   1876          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />
1868          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " />   1877          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " />
1869          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " />   1878          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " />
1870          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " />   1879          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " />
1871          <xs l:with-par am name="P aramParagr aphID" sel ect="$Para mParagraph ID" />   1880          <xs l:with-par am name="P aramParagr aphID" sel ect="$Para mParagraph ID" />
1872          <xs l:with-par am name="P aramTextRu n" select= "$ParamTex tRun" />   1881          <xs l:with-par am name="P aramTextRu n" select= "$ParamTex tRun" />
1873          <xs l:with-par am name="P aramPositi on" select ="$ParamPo sition" />   1882          <xs l:with-par am name="P aramPositi on" select ="$ParamPo sition" />
1874         </xs l:call-tem plate>   1883         </xs l:call-tem plate>
1875        </xsl :otherwise >   1884        </xsl :otherwise >
1876       </xsl: choose>   1885       </xsl: choose>
1877      </xsl:w hen>   1886      </xsl:w hen>
1878     1887  
1879      <xsl:ot herwise>   1888      <xsl:ot herwise>
1880       <!-- N o style -- >   1889       <!-- N o style -- >
1881       <!--           -- >   1890       <!--           -- >
1882       <xsl:c all-templa te name="T extRunChil dren">   1891       <xsl:c all-templa te name="T extRunChil dren">
1883        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />   1892        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />
1884        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  />   1893        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  />
1885        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  />   1894        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  />
1886        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  />   1895        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  />
1887        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraphID " />   1896        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraphID " />
1888        <xsl: with-param  name="Par amTextRun"  select="$ ParamTextR un" />   1897        <xsl: with-param  name="Par amTextRun"  select="$ ParamTextR un" />
1889        <xsl: with-param  name="Par amPosition " select=" $ParamPosi tion" />   1898        <xsl: with-param  name="Par amPosition " select=" $ParamPosi tion" />
1890       </xsl: call-templ ate>   1899       </xsl: call-templ ate>
1891      </xsl:o therwise>   1900      </xsl:o therwise>
1892     </xsl:ch oose>   1901     </xsl:ch oose>
1893    </xsl:tem plate>   1902    </xsl:tem plate>
1894     1903  
1895     1904  
1896    <xsl:temp late name= "TextRunCh ildren">   1905    <xsl:temp late name= "TextRunCh ildren">
1897     <xsl:par am name="P aramSplits " />   1906     <xsl:par am name="P aramSplits " />
1898     <xsl:par am name="P aramCargo"  />   1907     <xsl:par am name="P aramCargo"  />
1899     <xsl:par am name="P aramLinks"  />   1908     <xsl:par am name="P aramLinks"  />
1900     <xsl:par am name="P aramSplit"  />   1909     <xsl:par am name="P aramSplit"  />
1901     <xsl:par am name="P aramParagr aphID" />   1910     <xsl:par am name="P aramParagr aphID" />
1902     <xsl:par am name="P aramTextRu n" />   1911     <xsl:par am name="P aramTextRu n" />
1903     <xsl:par am name="P aramPositi on" />   1912     <xsl:par am name="P aramPositi on" />
1904     1913  
1905     <!-- For ce anchor  on same li ne as cont aining spa n -->   1914     <!-- For ce anchor  on same li ne as cont aining spa n -->
1906     <!--                                                   -->   1915     <!--                                                   -->
1907     <wwexsld oc:NoBreak  />   1916     <wwexsld oc:NoBreak  />
1908     1917  
1909     <!-- Lin k? -->   1918     <!-- Lin k? -->
1910     <!--        -->   1919     <!--        -->
1911     <xsl:var iable name ="VarLinkI nfoAsXML">   1920     <xsl:var iable name ="VarLinkI nfoAsXML">
1912      <xsl:ca ll-templat e name="Li nkInfo">   1921      <xsl:ca ll-templat e name="Li nkInfo">
1913       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />   1922       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />
1914       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >   1923       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >
1915       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >   1924       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >
1916       <xsl:w ith-param  name="Para mDocumentL ink" selec t="$ParamT extRun/wwd oc:Link" / >   1925       <xsl:w ith-param  name="Para mDocumentL ink" selec t="$ParamT extRun/wwd oc:Link" / >
1917      </xsl:c all-templa te>   1926      </xsl:c all-templa te>
1918     </xsl:va riable>   1927     </xsl:va riable>
1919     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" />   1928     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" />
1920     1929  
1921     <!-- Han dle links  and first  textrun an chor -->   1930     <!-- Han dle links  and first  textrun an chor -->
1922     <!--                                           -->   1931     <!--                                           -->
1923     <xsl:cho ose>   1932     <xsl:cho ose>
1924      <xsl:wh en test="s tring-leng th($ParamC argo/wwali nks:ALink[ 1]/@href)  &gt; 0">   1933      <xsl:wh en test="s tring-leng th($ParamC argo/wwali nks:ALink[ 1]/@href)  &gt; 0">
1925       <html: a href="{$ ParamCargo /wwalinks: ALink[1]/@ href}" onc lick="{$Pa ramCargo/w walinks:AL ink[1]/@on Click}">   1934       <html: a href="{$ ParamCargo /wwalinks: ALink[1]/@ href}" onc lick="{$Pa ramCargo/w walinks:AL ink[1]/@on Click}">
        1935        <xsl: if test="s tring-leng th($VarLin kInfo/@tit le) &gt; 0 ">
        1936         <xsl :attribute  name="tit le">
        1937          <xs l:value-of  select="$ VarLinkInf o/@title"  />
        1938         </xs l:attribut e>
        1939        </xsl :if>
1926        <xsl: if test="$ ParamPosit ion = 1">   1940        <xsl: if test="$ ParamPosit ion = 1">
1927         <xsl :attribute  name="nam e">   1941         <xsl :attribute  name="nam e">
1928          <xs l:value-of  select="$ ParamParag raphID" />   1942          <xs l:value-of  select="$ ParamParag raphID" />
1929         </xs l:attribut e>   1943         </xs l:attribut e>
1930        </xsl :if>   1944        </xsl :if>
1931     1945  
1932        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n">   1946        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n">
1933         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   1947         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
1934         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   1948         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
1935         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   1949         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
1936         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   1950         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
1937        </xsl :apply-tem plates>   1951        </xsl :apply-tem plates>
1938       </html :a>   1952       </html :a>
1939      </xsl:w hen>   1953      </xsl:w hen>
1940     1954  
1941      <xsl:wh en test="( string-len gth($VarLi nkInfo/@hr ef) &gt; 0 ) or (stri ng-length( $VarLinkIn fo/@onMous eOver) &gt ; 0)">   1955      <xsl:wh en test="( string-len gth($VarLi nkInfo/@hr ef) &gt; 0 ) or (stri ng-length( $VarLinkIn fo/@onMous eOver) &gt ; 0)">
1942       <html: a>   1956       <html: a>
1943        <xsl: if test="s tring-leng th($VarLin kInfo/@hre f) &gt; 0" >   1957        <xsl: if test="s tring-leng th($VarLin kInfo/@hre f) &gt; 0" >
1944         <xsl :attribute  name="hre f">   1958         <xsl :attribute  name="hre f">
1945          <xs l:value-of  select="$ VarLinkInf o/@href" / >   1959          <xs l:value-of  select="$ VarLinkInf o/@href" / >
1946         </xs l:attribut e>   1960         </xs l:attribut e>
1947        </xsl :if>   1961        </xsl :if>
        1962        <xsl: if test="s tring-leng th($VarLin kInfo/@tit le) &gt; 0 ">
        1963         <xsl :attribute  name="tit le">
        1964          <xs l:value-of  select="$ VarLinkInf o/@title"  />
        1965         </xs l:attribut e>
        1966        </xsl :if>
1948        <xsl: if test="s tring-leng th($VarLin kInfo/@tar get) &gt;  0">   1967        <xsl: if test="s tring-leng th($VarLin kInfo/@tar get) &gt;  0">
1949         <xsl :attribute  name="tar get">   1968         <xsl :attribute  name="tar get">
1950          <xs l:value-of  select="$ VarLinkInf o/@target"  />   1969          <xs l:value-of  select="$ VarLinkInf o/@target"  />
1951         </xs l:attribut e>   1970         </xs l:attribut e>
1952        </xsl :if>   1971        </xsl :if>
1953        <xsl: if test="s tring-leng th($VarLin kInfo/@onM ouseOver)  &gt; 0">   1972        <xsl: if test="s tring-leng th($VarLin kInfo/@onM ouseOver)  &gt; 0">
1954         <xsl :attribute  name="onM ouseOver">   1973         <xsl :attribute  name="onM ouseOver">
1955          <xs l:value-of  select="$ VarLinkInf o/@onMouse Over" />   1974          <xs l:value-of  select="$ VarLinkInf o/@onMouse Over" />
1956         </xs l:attribut e>   1975         </xs l:attribut e>
1957        </xsl :if>   1976        </xsl :if>
1958        <xsl: if test="s tring-leng th($VarLin kInfo/@onM ouseOut) & gt; 0">   1977        <xsl: if test="s tring-leng th($VarLin kInfo/@onM ouseOut) & gt; 0">
1959         <xsl :attribute  name="onM ouseOut">   1978         <xsl :attribute  name="onM ouseOut">
1960          <xs l:value-of  select="$ VarLinkInf o/@onMouse Out" />   1979          <xs l:value-of  select="$ VarLinkInf o/@onMouse Out" />
1961         </xs l:attribut e>   1980         </xs l:attribut e>
1962        </xsl :if>   1981        </xsl :if>
1963        <xsl: if test="$ ParamPosit ion = 1">   1982        <xsl: if test="$ ParamPosit ion = 1">
1964         <xsl :attribute  name="nam e">   1983         <xsl :attribute  name="nam e">
1965          <xs l:value-of  select="$ ParamParag raphID" />   1984          <xs l:value-of  select="$ ParamParag raphID" />
1966         </xs l:attribut e>   1985         </xs l:attribut e>
1967        </xsl :if>   1986        </xsl :if>
1968     1987  
1969        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n">   1988        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n">
1970         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   1989         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
1971         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   1990         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
1972         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   1991         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
1973         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   1992         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
1974        </xsl :apply-tem plates>   1993        </xsl :apply-tem plates>
1975       </html :a>   1994       </html :a>
1976      </xsl:w hen>   1995      </xsl:w hen>
1977     1996  
1978      <xsl:wh en test="$ ParamPosit ion = 1">   1997      <xsl:wh en test="$ ParamPosit ion = 1">
1979       <html: a name="{$ ParamParag raphID}">   1998       <html: a name="{$ ParamParag raphID}">
1980        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n">   1999        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n">
1981         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   2000         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
1982         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   2001         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
1983         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   2002         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
1984         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   2003         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
1985        </xsl :apply-tem plates>   2004        </xsl :apply-tem plates>
1986       </html :a>   2005       </html :a>
1987      </xsl:w hen>   2006      </xsl:w hen>
1988     2007  
1989      <xsl:ot herwise>   2008      <xsl:ot herwise>
1990       <xsl:a pply-templ ates selec t="$ParamT extRun/*"  mode="wwmo de:textrun ">   2009       <xsl:a pply-templ ates selec t="$ParamT extRun/*"  mode="wwmo de:textrun ">
1991        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />   2010        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />
1992        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  />   2011        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  />
1993        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  />   2012        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  />
1994        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  />   2013        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  />
1995       </xsl: apply-temp lates>   2014       </xsl: apply-temp lates>
1996      </xsl:o therwise>   2015      </xsl:o therwise>
1997     </xsl:ch oose>   2016     </xsl:ch oose>
1998     2017  
1999     <!-- For ce anchor  on same li ne as cont aining spa n -->   2018     <!-- For ce anchor  on same li ne as cont aining spa n -->
2000     <!--                                                   -->   2019     <!--                                                   -->
2001     <wwexsld oc:NoBreak  />   2020     <wwexsld oc:NoBreak  />
2002    </xsl:tem plate>   2021    </xsl:tem plate>
2003     2022  
2004     2023  
2005    <xsl:temp late match ="wwdoc:No te" mode=" wwmode:tex trun">   2024    <xsl:temp late match ="wwdoc:No te" mode=" wwmode:tex trun">
2006     <xsl:par am name="P aramSplits " />   2025     <xsl:par am name="P aramSplits " />
2007     <xsl:par am name="P aramCargo"  />   2026     <xsl:par am name="P aramCargo"  />
2008     <xsl:par am name="P aramLinks"  />   2027     <xsl:par am name="P aramLinks"  />
2009     <xsl:par am name="P aramSplit"  />   2028     <xsl:par am name="P aramSplit"  />
2010     2029  
2011     <xsl:var iable name ="VarConte xt" select ="." />   2030     <xsl:var iable name ="VarConte xt" select ="." />
2012     2031  
2013     <!-- Imp lement not es -->   2032     <!-- Imp lement not es -->
2014     <!--                   -->   2033     <!--                   -->
2015     <xsl:for -each sele ct="$Param Cargo/wwno tes:NoteNu mbering[1] ">   2034     <xsl:for -each sele ct="$Param Cargo/wwno tes:NoteNu mbering[1] ">
2016      <xsl:va riable nam e="VarNote Number" se lect="key( 'wwnotes-n otes-by-id ', $VarCon text/@id)/ @number" / >   2035      <xsl:va riable nam e="VarNote Number" se lect="key( 'wwnotes-n otes-by-id ', $VarCon text/@id)/ @number" / >
2017     2036  
2018      <!-- Fo rce sup on  same line  as contai ning span  -->   2037      <!-- Fo rce sup on  same line  as contai ning span  -->
2019      <!--                                                -->   2038      <!--                                                -->
2020      <wwexsl doc:NoBrea k />   2039      <wwexsl doc:NoBrea k />
2021     2040  
2022      <html:s up>   2041      <html:s up>
2023       <!-- F orce ancho r on same  line as co ntaining s up -->   2042       <!-- F orce ancho r on same  line as co ntaining s up -->
2024       <!--                                                  -->   2043       <!--                                                  -->
2025       <wwexs ldoc:NoBre ak />   2044       <wwexs ldoc:NoBre ak />
2026     2045  
2027       <html: a>   2046       <html: a>
2028        <xsl: attribute  name="name ">   2047        <xsl: attribute  name="name ">
2029         <xsl :text>wwfo otnote_inl ine_</xsl: text>   2048         <xsl :text>wwfo otnote_inl ine_</xsl: text>
2030         <xsl :value-of  select="$V arContext/ @id" />   2049         <xsl :value-of  select="$V arContext/ @id" />
2031        </xsl :attribute >   2050        </xsl :attribute >
2032        <xsl: attribute  name="href ">   2051        <xsl: attribute  name="href ">
2033         <xsl :text>#</x sl:text>   2052         <xsl :text>#</x sl:text>
2034         <xsl :value-of  select="$V arContext/ @id" />   2053         <xsl :value-of  select="$V arContext/ @id" />
2035        </xsl :attribute >   2054        </xsl :attribute >
2036     2055  
2037        <xsl: value-of s elect="$Va rNoteNumbe r" />   2056        <xsl: value-of s elect="$Va rNoteNumbe r" />
2038       </html :a>   2057       </html :a>
2039      </html: sup>   2058      </html: sup>
2040     </xsl:fo r-each>   2059     </xsl:fo r-each>
2041    </xsl:tem plate>   2060    </xsl:tem plate>
2042     2061  
2043     2062  
2044    <xsl:temp late match ="wwdoc:Li neBreak" m ode="wwmod e:textrun" >   2063    <xsl:temp late match ="wwdoc:Li neBreak" m ode="wwmod e:textrun" >
2045     <xsl:par am name="P aramSplits " />   2064     <xsl:par am name="P aramSplits " />
2046     <xsl:par am name="P aramCargo"  />   2065     <xsl:par am name="P aramCargo"  />
2047     <xsl:par am name="P aramLinks"  />   2066     <xsl:par am name="P aramLinks"  />
2048     <xsl:par am name="P aramSplit"  />   2067     <xsl:par am name="P aramSplit"  />
2049     2068  
2050     <html:br  />   2069     <html:br  />
2051    </xsl:tem plate>   2070    </xsl:tem plate>
2052     2071  
2053     2072  
2054    <xsl:temp late match ="wwdoc:In dexMarker"  mode="wwm ode:textru n">   2073    <xsl:temp late match ="wwdoc:In dexMarker"  mode="wwm ode:textru n">
2055     <xsl:par am name="P aramSplits " />   2074     <xsl:par am name="P aramSplits " />
2056     <xsl:par am name="P aramCargo"  />   2075     <xsl:par am name="P aramCargo"  />
2057     <xsl:par am name="P aramLinks"  />   2076     <xsl:par am name="P aramLinks"  />
2058     <xsl:par am name="P aramSplit"  />   2077     <xsl:par am name="P aramSplit"  />
2059     2078  
2060     <!-- Ign ore index  markers -- >   2079     <!-- Ign ore index  markers -- >
2061     <!--                        -- >   2080     <!--                        -- >
2062    </xsl:tem plate>   2081    </xsl:tem plate>
2063     2082  
2064     2083  
2065    <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:t extrun">   2084    <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:t extrun">
2066     <xsl:par am name="P aramSplits " />   2085     <xsl:par am name="P aramSplits " />
2067     <xsl:par am name="P aramCargo"  />   2086     <xsl:par am name="P aramCargo"  />
2068     <xsl:par am name="P aramLinks"  />   2087     <xsl:par am name="P aramLinks"  />
2069     <xsl:par am name="P aramSplit"  />   2088     <xsl:par am name="P aramSplit"  />
2070     2089  
2071     <!-- Ign ore marker s -->   2090     <!-- Ign ore marker s -->
2072     <!--                  -->   2091     <!--                  -->
2073    </xsl:tem plate>   2092    </xsl:tem plate>
2074     2093  
2075     2094  
2076    <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex trun">   2095    <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex trun">
2077     <xsl:par am name="P aramSplits " />   2096     <xsl:par am name="P aramSplits " />
2078     <xsl:par am name="P aramCargo"  />   2097     <xsl:par am name="P aramCargo"  />
2079     <xsl:par am name="P aramLinks"  />   2098     <xsl:par am name="P aramLinks"  />
2080     <xsl:par am name="P aramSplit"  />   2099     <xsl:par am name="P aramSplit"  />
2081     2100  
2082     <xsl:val ue-of sele ct="@value " />   2101     <xsl:val ue-of sele ct="@value " />
2083    </xsl:tem plate>   2102    </xsl:tem plate>
2084     2103  
2085     2104  
2086    <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:co ntent">   2105    <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:co ntent">
2087     <xsl:par am name="P aramSplits " />   2106     <xsl:par am name="P aramSplits " />
2088     <xsl:par am name="P aramCargo"  />   2107     <xsl:par am name="P aramCargo"  />
2089     <xsl:par am name="P aramLinks"  />   2108     <xsl:par am name="P aramLinks"  />
2090     <xsl:par am name="P aramTOCDat a" />   2109     <xsl:par am name="P aramTOCDat a" />
2091     <xsl:par am name="P aramSplit"  />   2110     <xsl:par am name="P aramSplit"  />
2092     2111  
2093     <xsl:var iable name ="VarTable " select=" ." />   2112     <xsl:var iable name ="VarTable " select=" ." />
2094     2113  
2095     <!-- Abo rted? -->   2114     <!-- Abo rted? -->
2096     <!--           -->   2115     <!--           -->
2097     <xsl:if  test="not( wwprogress :Abort())" >   2116     <xsl:if  test="not( wwprogress :Abort())" >
2098      <xsl:va riable nam e="VarOver rideRule"  select="ww projext:Ge tOverrideR ule('Table ', $VarTab le/@stylen ame, $Para mSplit/@do cumentID,  $VarTable/ @id)" />   2117      <xsl:va riable nam e="VarOver rideRule"  select="ww projext:Ge tOverrideR ule('Table ', $VarTab le/@stylen ame, $Para mSplit/@do cumentID,  $VarTable/ @id)" />
2099      <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" />   2118      <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" />
2100      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" />   2119      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" />
2101      <xsl:if  test="$Va rGenerateO utput">   2120      <xsl:if  test="$Va rGenerateO utput">
2102     2121  
2103       <!-- G et behavio r -->   2122       <!-- G et behavio r -->
2104       <!--                -->   2123       <!--                -->
2105       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]">   2124       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]">
2106        <xsl: variable n ame="VarTa bleBehavio r" select= "key('wwbe haviors-ta bles-by-id ', $VarTab le/@id)[1] " />   2125        <xsl: variable n ame="VarTa bleBehavio r" select= "key('wwbe haviors-ta bles-by-id ', $VarTab le/@id)[1] " />
2107     2126  
2108        <!--  Table -->   2127        <!--  Table -->
2109        <!--        -->   2128        <!--        -->
2110        <xsl: call-templ ate name=" Table">   2129        <xsl: call-templ ate name=" Table">
2111         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   2130         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
2112         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   2131         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
2113         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   2132         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
2114         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" />   2133         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" />
2115         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   2134         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
2116         <xsl :with-para m name="Pa ramTable"  select="$V arTable" / >   2135         <xsl :with-para m name="Pa ramTable"  select="$V arTable" / >
2117         <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" />   2136         <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" />
2118         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$VarO verrideRul e" />   2137         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$VarO verrideRul e" />
2119         <xsl :with-para m name="Pa ramTableBe havior" se lect="$Var TableBehav ior" />   2138         <xsl :with-para m name="Pa ramTableBe havior" se lect="$Var TableBehav ior" />
2120        </xsl :call-temp late>   2139        </xsl :call-temp late>
2121       </xsl: for-each>   2140       </xsl: for-each>
2122      </xsl:i f>   2141      </xsl:i f>
2123     </xsl:if >   2142     </xsl:if >
2124    </xsl:tem plate>   2143    </xsl:tem plate>
2125     2144  
2126     2145  
2127    <xsl:temp late name= "Table-Att ribute-In- Pixels">   2146    <xsl:temp late name= "Table-Att ribute-In- Pixels">
2128     <xsl:par am name="P aramValue"  />   2147     <xsl:par am name="P aramValue"  />
2129     2148  
2130     <xsl:cho ose>   2149     <xsl:cho ose>
2131      <xsl:wh en test="s tring-leng th($ParamV alue) &gt;  0">   2150      <xsl:wh en test="s tring-leng th($ParamV alue) &gt;  0">
2132       <!-- N ormalize v alue for H TML attrib ute-->   2151       <!-- N ormalize v alue for H TML attrib ute-->
2133       <!--                                       -->   2152       <!--                                       -->
2134       <xsl:v ariable na me="VarVal ueToEmit">   2153       <xsl:v ariable na me="VarVal ueToEmit">
2135        <xsl: variable n ame="VarUn itsSuffix"  select="w wunits:Uni tsSuffix($ ParamValue )" />   2154        <xsl: variable n ame="VarUn itsSuffix"  select="w wunits:Uni tsSuffix($ ParamValue )" />
2136     2155  
2137        <xsl: choose>   2156        <xsl: choose>
2138         <xsl :when test ="string-l ength($Var UnitsSuffi x) &gt; 0" >   2157         <xsl :when test ="string-l ength($Var UnitsSuffi x) &gt; 0" >
2139          <xs l:variable  name="Var NumPrefix"  select="w wunits:Num ericPrefix ($ParamVal ue)" />   2158          <xs l:variable  name="Var NumPrefix"  select="w wunits:Num ericPrefix ($ParamVal ue)" />
2140     2159  
2141          <xs l:value-of  select="w wunits:Con vert($VarN umPrefix,  $VarUnitsS uffix, 'px ')" />   2160          <xs l:value-of  select="w wunits:Con vert($VarN umPrefix,  $VarUnitsS uffix, 'px ')" />
2142         </xs l:when>   2161         </xs l:when>
2143     2162  
2144         <xsl :otherwise >   2163         <xsl :otherwise >
2145          <xs l:value-of  select="$ ParamValue " />   2164          <xs l:value-of  select="$ ParamValue " />
2146         </xs l:otherwis e>   2165         </xs l:otherwis e>
2147        </xsl :choose>   2166        </xsl :choose>
2148       </xsl: variable>   2167       </xsl: variable>
2149     2168  
2150       <xsl:v alue-of se lect="$Var ValueToEmi t" />   2169       <xsl:v alue-of se lect="$Var ValueToEmi t" />
2151      </xsl:w hen>   2170      </xsl:w hen>
2152     2171  
2153      <xsl:ot herwise>   2172      <xsl:ot herwise>
2154       <xsl:v alue-of se lect="''"  />   2173       <xsl:v alue-of se lect="''"  />
2155      </xsl:o therwise>   2174      </xsl:o therwise>
2156     </xsl:ch oose>   2175     </xsl:ch oose>
2157    </xsl:tem plate>   2176    </xsl:tem plate>
2158     2177  
2159     2178  
2160    <xsl:temp late name= "Table">   2179    <xsl:temp late name= "Table">
2161     <xsl:par am name="P aramSplits " />   2180     <xsl:par am name="P aramSplits " />
2162     <xsl:par am name="P aramCargo"  />   2181     <xsl:par am name="P aramCargo"  />
2163     <xsl:par am name="P aramLinks"  />   2182     <xsl:par am name="P aramLinks"  />
2164     <xsl:par am name="P aramTOCDat a" />   2183     <xsl:par am name="P aramTOCDat a" />
2165     <xsl:par am name="P aramSplit"  />   2184     <xsl:par am name="P aramSplit"  />
2166     <xsl:par am name="P aramTable"  />   2185     <xsl:par am name="P aramTable"  />
2167     <xsl:par am name="P aramStyleN ame" />   2186     <xsl:par am name="P aramStyleN ame" />
2168     <xsl:par am name="P aramOverri deRule" />   2187     <xsl:par am name="P aramOverri deRule" />
2169     <xsl:par am name="P aramTableB ehavior" / >   2188     <xsl:par am name="P aramTableB ehavior" / >
2170     2189  
2171     <!-- Not es -->   2190     <!-- Not es -->
2172     <!--        -->   2191     <!--        -->
2173     <xsl:var iable name ="VarNotes " select=" $ParamTabl e//wwdoc:N ote[not(an cestor::ww doc:Frame) ]" />   2192     <xsl:var iable name ="VarNotes " select=" $ParamTabl e//wwdoc:N ote[not(an cestor::ww doc:Frame) ]" />
2174     2193  
2175     <!-- Not e numberin g -->   2194     <!-- Not e numberin g -->
2176     <!--                  -->   2195     <!--                  -->
2177     <xsl:var iable name ="VarNoteN umberingAs XML">   2196     <xsl:var iable name ="VarNoteN umberingAs XML">
2178      <xsl:ca ll-templat e name="No tes-Number ">   2197      <xsl:ca ll-templat e name="No tes-Number ">
2179       <xsl:w ith-param  name="Para mNotes" se lect="$Var Notes" />   2198       <xsl:w ith-param  name="Para mNotes" se lect="$Var Notes" />
2180      </xsl:c all-templa te>   2199      </xsl:c all-templa te>
2181     </xsl:va riable>   2200     </xsl:va riable>
2182     <xsl:var iable name ="VarNoteN umbering"  select="ms xsl:node-s et($VarNot eNumbering AsXML)" />   2201     <xsl:var iable name ="VarNoteN umbering"  select="ms xsl:node-s et($VarNot eNumbering AsXML)" />
2183     2202  
2184     <!-- Car go for rec ursion -->   2203     <!-- Car go for rec ursion -->
2185     <!--                       -->   2204     <!--                       -->
2186     <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() !=  'NoteNumbe ring']/..  | $VarNote Numbering"  />   2205     <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() !=  'NoteNumbe ring']/..  | $VarNote Numbering"  />
2187     2206  
2188     <!-- Res olve proje ct propert ies -->   2207     <!-- Res olve proje ct propert ies -->
2189     <!--                               -->   2208     <!--                               -->
2190     <xsl:var iable name ="VarResol vedPropert iesAsXML">   2209     <xsl:var iable name ="VarResol vedPropert iesAsXML">
2191      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule">   2210      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule">
2192       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  />   2211       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  />
2193       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" />   2212       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" />
2194      </xsl:c all-templa te>   2213      </xsl:c all-templa te>
2195     </xsl:va riable>   2214     </xsl:va riable>
2196     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" />   2215     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" />
2197     2216  
2198     <!-- CSS  propertie s -->   2217     <!-- CSS  propertie s -->
2199     <!--                  -->   2218     <!--                  -->
2200     <xsl:var iable name ="VarCSSPr opertiesAs XML">   2219     <xsl:var iable name ="VarCSSPr opertiesAs XML">
2201      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties">   2220      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties">
2202       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" />   2221       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" />
2203       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" />   2222       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" />
2204       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />   2223       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />
2205      </xsl:c all-templa te>   2224      </xsl:c all-templa te>
2206     </xsl:va riable>   2225     </xsl:va riable>
2207     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" />   2226     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" />
2208     2227  
2209     <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Table',  $ParamTabl e/@stylena me, $Param Split/@doc umentID, $ ParamTable /@id)" />   2228     <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Table',  $ParamTabl e/@stylena me, $Param Split/@doc umentID, $ ParamTable /@id)" />
2210     2229  
2211     <!-- Res olve proje ct propert ies -->   2230     <!-- Res olve proje ct propert ies -->
2212     <!--                               -->   2231     <!--                               -->
2213     <xsl:var iable name ="VarResol vedContext Properties AsXML">   2232     <xsl:var iable name ="VarResol vedContext Properties AsXML">
2214      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule">   2233      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule">
2215       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amTable" / >   2234       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amTable" / >
2216       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" />   2235       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" />
2217       <xsl:w ith-param  name="Para mStyleName " select=" $ParamTabl e/@stylena me" />   2236       <xsl:w ith-param  name="Para mStyleName " select=" $ParamTabl e/@stylena me" />
2218       <xsl:w ith-param  name="Para mStyleType " select=" 'Table'" / >   2237       <xsl:w ith-param  name="Para mStyleType " select=" 'Table'" / >
2219       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" />   2238       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" />
2220      </xsl:c all-templa te>   2239      </xsl:c all-templa te>
2221     </xsl:va riable>   2240     </xsl:va riable>
2222     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  />   2241     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  />
2223     2242  
2224     <!-- Tab le class - ->   2243     <!-- Tab le class - ->
2225     <!--              - ->   2244     <!--              - ->
2226     <xsl:var iable name ="VarClass Attribute" >   2245     <xsl:var iable name ="VarClass Attribute" >
2227      <xsl:va lue-of sel ect="wwstr ing:CSSCla ssName($Pa ramStyleNa me)" />   2246      <xsl:va lue-of sel ect="wwstr ing:CSSCla ssName($Pa ramStyleNa me)" />
2228     2247  
2229      <!-- Ad ditional C SS classes  -->   2248      <!-- Ad ditional C SS classes  -->
2230      <!--                           -->   2249      <!--                           -->
2231      <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) " />   2250      <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) " />
2232      <xsl:if  test="str ing-length ($VarAddit ionalCSSCl assesOptio n) &gt; 0" >   2251      <xsl:if  test="str ing-length ($VarAddit ionalCSSCl assesOptio n) &gt; 0" >
2233       <xsl:t ext> </xsl :text>   2252       <xsl:t ext> </xsl :text>
2234       <xsl:v alue-of se lect="$Var Additional CSSClasses Option" />   2253       <xsl:v alue-of se lect="$Var Additional CSSClasses Option" />
2235      </xsl:i f>   2254      </xsl:i f>
2236     </xsl:va riable>   2255     </xsl:va riable>
2237     2256  
2238     <!-- Sty le attribu te -->   2257     <!-- Sty le attribu te -->
2239     <!--                   -->   2258     <!--                   -->
2240     <xsl:var iable name ="VarStyle Attribute" >   2259     <xsl:var iable name ="VarStyle Attribute" >
2241      <xsl:ca ll-templat e name="CS S-InlinePr operties">   2260      <xsl:ca ll-templat e name="CS S-InlinePr operties">
2242       <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties[( @Name != ' vertical-a lign')]" / >   2261       <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties[( @Name != ' vertical-a lign')]" / >
2243      </xsl:c all-templa te>   2262      </xsl:c all-templa te>
2244     </xsl:va riable>   2263     </xsl:va riable>
2245     2264  
2246     <!-- Bor der -->   2265     <!-- Bor der -->
2247     <!--         -->   2266     <!--         -->
2248     <xsl:var iable name ="VarTable Border">   2267     <xsl:var iable name ="VarTable Border">
2249      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els">   2268      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els">
2250       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'borde r']/@Value " />   2269       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'borde r']/@Value " />
2251      </xsl:c all-templa te>   2270      </xsl:c all-templa te>
2252     </xsl:va riable>   2271     </xsl:va riable>
2253     2272  
2254     <!-- Cel l padding  -->   2273     <!-- Cel l padding  -->
2255     <!--                -->   2274     <!--                -->
2256     <xsl:var iable name ="VarTable CellPaddin g">   2275     <xsl:var iable name ="VarTable CellPaddin g">
2257      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els">   2276      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els">
2258       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- padding']/ @Value" />   2277       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- padding']/ @Value" />
2259      </xsl:c all-templa te>   2278      </xsl:c all-templa te>
2260     </xsl:va riable>   2279     </xsl:va riable>
2261     2280  
2262     <!-- Cel l spacing  -->   2281     <!-- Cel l spacing  -->
2263     <!--                -->   2282     <!--                -->
2264     <xsl:var iable name ="VarTable CellSpacin g">   2283     <xsl:var iable name ="VarTable CellSpacin g">
2265      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els">   2284      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els">
2266       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- spacing']/ @Value" />   2285       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- spacing']/ @Value" />
2267      </xsl:c all-templa te>   2286      </xsl:c all-templa te>
2268     </xsl:va riable>   2287     </xsl:va riable>
2269     2288  
2270     <!-- Tab le vertica l alignmen t -->   2289     <!-- Tab le vertica l alignmen t -->
2271     <!--                             -->   2290     <!--                             -->
2272     <xsl:var iable name ="VarTable VerticalAl ignment">   2291     <xsl:var iable name ="VarTable VerticalAl ignment">
2273      <xsl:va riable nam e="VarTabl eVerticalA lignmentHi nt" select ="$VarReso lvedContex tPropertie s[@Name =  'vertical- align']/@V alue" />   2292      <xsl:va riable nam e="VarTabl eVerticalA lignmentHi nt" select ="$VarReso lvedContex tPropertie s[@Name =  'vertical- align']/@V alue" />
2274      <xsl:ch oose>   2293      <xsl:ch oose>
2275       <xsl:w hen test=" string-len gth($VarTa bleVertica lAlignment Hint) &gt;  0">   2294       <xsl:w hen test=" string-len gth($VarTa bleVertica lAlignment Hint) &gt;  0">
2276        <xsl: value-of s elect="$Va rTableVert icalAlignm entHint" / >   2295        <xsl: value-of s elect="$Va rTableVert icalAlignm entHint" / >
2277       </xsl: when>   2296       </xsl: when>
2278       <xsl:o therwise>   2297       <xsl:o therwise>
2279        <xsl: value-of s elect="''"  />   2298        <xsl: value-of s elect="''"  />
2280       </xsl: otherwise>   2299       </xsl: otherwise>
2281      </xsl:c hoose>   2300      </xsl:c hoose>
2282     </xsl:va riable>   2301     </xsl:va riable>
2283     2302  
2284     <!-- Tab le summary  -->   2303     <!-- Tab le summary  -->
2285     <!--                 -->   2304     <!--                 -->
2286     <xsl:var iable name ="VarTable Summary">   2305     <xsl:var iable name ="VarTable Summary">
2287      <xsl:ca ll-templat e name="Ta bles-Summa ry">   2306      <xsl:ca ll-templat e name="Ta bles-Summa ry">
2288       <xsl:w ith-param  name="Para mTableBeha vior" sele ct="$Param TableBehav ior" />   2307       <xsl:w ith-param  name="Para mTableBeha vior" sele ct="$Param TableBehav ior" />
2289      </xsl:c all-templa te>   2308      </xsl:c all-templa te>
2290     </xsl:va riable>   2309     </xsl:va riable>
2291     2310  
2292     <!-- Cap tion Side  -->   2311     <!-- Cap tion Side  -->
2293     <!--                -->   2312     <!--                -->
2294     <xsl:var iable name ="VarCapti onSide">   2313     <xsl:var iable name ="VarCapti onSide">
2295      <xsl:va lue-of sel ect="$VarR esolvedCon textProper ties[@Name  = 'captio n-side']/@ Value" />   2314      <xsl:va lue-of sel ect="$VarR esolvedCon textProper ties[@Name  = 'captio n-side']/@ Value" />
2296     </xsl:va riable>   2315     </xsl:va riable>
2297     2316  
2298     <!-- Det ermine tab le cell wi dths -->   2317     <!-- Det ermine tab le cell wi dths -->
2299     <!--                                -->   2318     <!--                                -->
2300     <xsl:var iable name ="VarTable CellWidths AsXML">   2319     <xsl:var iable name ="VarTable CellWidths AsXML">
2301      <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" />   2320      <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" />
2302      <xsl:va riable nam e="VarEmit TableWidth s" select= "$VarEmitT ableWidths Option = ' true'" />   2321      <xsl:va riable nam e="VarEmit TableWidth s" select= "$VarEmitT ableWidths Option = ' true'" />
2303     2322  
2304      <xsl:if  test="$Va rEmitTable Widths">   2323      <xsl:if  test="$Va rEmitTable Widths">
2305       <xsl:c all-templa te name="T able-CellW idths">   2324       <xsl:c all-templa te name="T able-CellW idths">
2306        <xsl: with-param  name="Par amTable" s elect="$Pa ramTable"  />   2325        <xsl: with-param  name="Par amTable" s elect="$Pa ramTable"  />
2307       </xsl: call-templ ate>   2326       </xsl: call-templ ate>
2308      </xsl:i f>   2327      </xsl:i f>
2309     </xsl:va riable>   2328     </xsl:va riable>
2310     <xsl:var iable name ="VarTable CellWidths " select=" msxsl:node -set($VarT ableCellWi dthsAsXML) /*" />   2329     <xsl:var iable name ="VarTable CellWidths " select=" msxsl:node -set($VarT ableCellWi dthsAsXML) /*" />
2311     2330  
2312     <!-- Emi t <table>  element wi th class,  style, and  summary a ttrs. -->   2331     <!-- Emi t <table>  element wi th class,  style, and  summary a ttrs. -->
2313     <!--                                                                       -->   2332     <!--                                                                       -->
2314     <html:ta ble class= "{$VarClas sAttribute }">   2333     <html:ta ble class= "{$VarClas sAttribute }">
2315     2334  
2316      <!-- st yle attrib ute -->   2335      <!-- st yle attrib ute -->
2317      <!--                   -->   2336      <!--                   -->
2318      <xsl:if  test="str ing-length ($VarStyle Attribute)  &gt; 0">   2337      <xsl:if  test="str ing-length ($VarStyle Attribute)  &gt; 0">
2319       <xsl:a ttribute n ame="style ">   2338       <xsl:a ttribute n ame="style ">
2320        <xsl: value-of s elect="$Va rStyleAttr ibute" />   2339        <xsl: value-of s elect="$Va rStyleAttr ibute" />
2321       </xsl: attribute>   2340       </xsl: attribute>
2322      </xsl:i f>   2341      </xsl:i f>
2323     2342  
2324      <!-- bo rder attri bute -->   2343      <!-- bo rder attri bute -->
2325      <!--                    -->   2344      <!--                    -->
2326      <xsl:if  test="str ing-length ($VarTable Border) &g t; 0">   2345      <xsl:if  test="str ing-length ($VarTable Border) &g t; 0">
2327       <xsl:a ttribute n ame="borde r">   2346       <xsl:a ttribute n ame="borde r">
2328        <xsl: value-of s elect="$Va rTableBord er" />   2347        <xsl: value-of s elect="$Va rTableBord er" />
2329       </xsl: attribute>   2348       </xsl: attribute>
2330      </xsl:i f>   2349      </xsl:i f>
2331     2350  
2332      <!-- ce llpadding  attribute  -->   2351      <!-- ce llpadding  attribute  -->
2333      <!--                          -->   2352      <!--                          -->
2334      <xsl:if  test="str ing-length ($VarTable CellPaddin g) &gt; 0" >   2353      <xsl:if  test="str ing-length ($VarTable CellPaddin g) &gt; 0" >
2335       <xsl:a ttribute n ame="cellp adding">   2354       <xsl:a ttribute n ame="cellp adding">
2336        <xsl: value-of s elect="$Va rTableCell Padding" / >   2355        <xsl: value-of s elect="$Va rTableCell Padding" / >
2337       </xsl: attribute>   2356       </xsl: attribute>
2338      </xsl:i f>   2357      </xsl:i f>
2339     2358  
2340      <!-- ce llspacing  attribute  -->   2359      <!-- ce llspacing  attribute  -->
2341      <!--                          -->   2360      <!--                          -->
2342      <xsl:if  test="str ing-length ($VarTable CellSpacin g) &gt; 0" >   2361      <xsl:if  test="str ing-length ($VarTable CellSpacin g) &gt; 0" >
2343       <xsl:a ttribute n ame="cells pacing">   2362       <xsl:a ttribute n ame="cells pacing">
2344        <xsl: value-of s elect="$Va rTableCell Spacing" / >   2363        <xsl: value-of s elect="$Va rTableCell Spacing" / >
2345       </xsl: attribute>   2364       </xsl: attribute>
2346      </xsl:i f>   2365      </xsl:i f>
2347     2366  
2348      <!-- su mmary attr ibute -->   2367      <!-- su mmary attr ibute -->
2349      <!--                     -->   2368      <!--                     -->
2350      <xsl:at tribute na me="summar y">   2369      <xsl:at tribute na me="summar y">
2351       <xsl:v alue-of se lect="$Var TableSumma ry" />   2370       <xsl:v alue-of se lect="$Var TableSumma ry" />
2352      </xsl:a ttribute>   2371      </xsl:a ttribute>
2353     2372  
2354      <!-- Ap ply captio n template s -->   2373      <!-- Ap ply captio n template s -->
2355      <!--                            -->   2374      <!--                            -->
2356      <xsl:fo r-each sel ect="$Para mTable/wwd oc:Caption [1]">   2375      <xsl:fo r-each sel ect="$Para mTable/wwd oc:Caption [1]">
2357       <html: caption>   2376       <html: caption>
2358     2377  
2359        <xsl: if test="s tring-leng th($VarCap tionSide)  &gt; 0">   2378        <xsl: if test="s tring-leng th($VarCap tionSide)  &gt; 0">
2360         <xsl :attribute  name="sty le">   2379         <xsl :attribute  name="sty le">
2361          <xs l:value-of  select="c oncat('cap tion-side:  ', $VarCa ptionSide) " />   2380          <xs l:value-of  select="c oncat('cap tion-side:  ', $VarCa ptionSide) " />
2362         </xs l:attribut e>   2381         </xs l:attribut e>
2363        </xsl :if>   2382        </xsl :if>
2364     2383  
2365        <xsl: apply-temp lates sele ct="./*" m ode="wwmod e:content" >   2384        <xsl: apply-temp lates sele ct="./*" m ode="wwmod e:content" >
2366         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   2385         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
2367         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />   2386         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
2368         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   2387         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
2369         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" />   2388         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" />
2370         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   2389         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
2371        </xsl :apply-tem plates>   2390        </xsl :apply-tem plates>
2372     2391  
2373       </html :caption>   2392       </html :caption>
2374      </xsl:f or-each>   2393      </xsl:f or-each>
2375     2394  
2376      <xsl:fo r-each sel ect="$Para mTable/wwd oc:TableHe ad|$ParamT able/wwdoc :TableBody |$ParamTab le/wwdoc:T ableFoot">   2395      <xsl:fo r-each sel ect="$Para mTable/wwd oc:TableHe ad|$ParamT able/wwdoc :TableBody |$ParamTab le/wwdoc:T ableFoot">
2377       <xsl:v ariable na me="VarSec tion" sele ct="." />   2396       <xsl:v ariable na me="VarSec tion" sele ct="." />
2378     2397  
2379       <!-- R esolve sec tion prope rties -->   2398       <!-- R esolve sec tion prope rties -->
2380       <!--                               -->   2399       <!--                               -->
2381       <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML">   2400       <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML">
2382        <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule">   2401        <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule">
2383         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property"  />   2402         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property"  />
2384         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramTable"  />   2403         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramTable"  />
2385         <xsl :with-para m name="Pa ramTable"  select="$P aramTable"  />   2404         <xsl :with-para m name="Pa ramTable"  select="$P aramTable"  />
2386         <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" />   2405         <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" />
2387        </xsl :call-temp late>   2406        </xsl :call-temp late>
2388       </xsl: variable>   2407       </xsl: variable>
2389       <xsl:v ariable na me="VarRes olvedSecti onProperti es" select ="msxsl:no de-set($Va rResolvedS ectionProp ertiesAsXM L)/wwproje ct:Propert y" />   2408       <xsl:v ariable na me="VarRes olvedSecti onProperti es" select ="msxsl:no de-set($Va rResolvedS ectionProp ertiesAsXM L)/wwproje ct:Propert y" />
2390     2409  
2391       <!-- P rocess sec tion rows  -->   2410       <!-- P rocess sec tion rows  -->
2392       <!--                         -->   2411       <!--                         -->
2393       <xsl:f or-each se lect="$Var Section/ww doc:TableR ow">   2412       <xsl:f or-each se lect="$Var Section/ww doc:TableR ow">
2394        <xsl: variable n ame="VarTa bleRow" se lect="." / >   2413        <xsl: variable n ame="VarTa bleRow" se lect="." / >
2395        <xsl: variable n ame="VarRo wPosition"  select="p osition()"  />   2414        <xsl: variable n ame="VarRo wPosition"  select="p osition()"  />
2396     2415  
2397        <html :tr>   2416        <html :tr>
2398     2417  
2399         <!--  Handle ta ble level  vertical a lign at ro w level -- >   2418         <!--  Handle ta ble level  vertical a lign at ro w level -- >
2400         <!--                                                     -- >   2419         <!--                                                     -- >
2401         <xsl :if test=" string-len gth($VarTa bleVertica lAlignment ) &gt; 0">   2420         <xsl :if test=" string-len gth($VarTa bleVertica lAlignment ) &gt; 0">
2402          <xs l:attribut e name="st yle">   2421          <xs l:attribut e name="st yle">
2403           <x sl:value-o f select=" concat('ve rtical-ali gn: ', $Va rTableVert icalAlignm ent, ';')"  />   2422           <x sl:value-o f select=" concat('ve rtical-ali gn: ', $Va rTableVert icalAlignm ent, ';')"  />
2404          </x sl:attribu te>   2423          </x sl:attribu te>
2405         </xs l:if>   2424         </xs l:if>
2406     2425  
2407         <xsl :for-each  select="$V arTableRow /wwdoc:Tab leCell">   2426         <xsl :for-each  select="$V arTableRow /wwdoc:Tab leCell">
2408          <xs l:variable  name="Var TableCell"  select=". " />   2427          <xs l:variable  name="Var TableCell"  select=". " />
2409          <xs l:variable  name="Var CellPositi on" select ="position ()" />   2428          <xs l:variable  name="Var CellPositi on" select ="position ()" />
2410     2429  
2411          <!- - Resolve  cell prope rties -->   2430          <!- - Resolve  cell prope rties -->
2412          <!- -                           -->   2431          <!- -                           -->
2413          <xs l:variable  name="Var ResolvedCe llProperti esAsXML">   2432          <xs l:variable  name="Var ResolvedCe llProperti esAsXML">
2414           <x sl:call-te mplate nam e="Propert ies-Table- Cell-Resol veProperti es">   2433           <x sl:call-te mplate nam e="Propert ies-Table- Cell-Resol veProperti es">
2415            < xsl:with-p aram name= "ParamSect ionPropert ies" selec t="$VarRes olvedSecti onProperti es" />   2434            < xsl:with-p aram name= "ParamSect ionPropert ies" selec t="$VarRes olvedSecti onProperti es" />
2416            < xsl:with-p aram name= "ParamCell Style" sel ect="$VarT ableCell/w wdoc:Style " />   2435            < xsl:with-p aram name= "ParamCell Style" sel ect="$VarT ableCell/w wdoc:Style " />
2417            < xsl:with-p aram name= "ParamRowI ndex" sele ct="$VarRo wPosition"  />   2436            < xsl:with-p aram name= "ParamRowI ndex" sele ct="$VarRo wPosition"  />
2418            < xsl:with-p aram name= "ParamColu mnIndex" s elect="$Va rCellPosit ion" />   2437            < xsl:with-p aram name= "ParamColu mnIndex" s elect="$Va rCellPosit ion" />
2419           </ xsl:call-t emplate>   2438           </ xsl:call-t emplate>
2420     2439  
2421           <! -- Width a ttribute - ->   2440           <! -- Width a ttribute - ->
2422           <! --                  - ->   2441           <! --                  - ->
2423           <x sl:if test ="$VarRowP osition =  1">   2442           <x sl:if test ="$VarRowP osition =  1">
2424            < xsl:for-ea ch select= "$VarTable CellWidths [@id = $Va rTableCell /@id][1]">   2443            < xsl:for-ea ch select= "$VarTable CellWidths [@id = $Va rTableCell /@id][1]">
2425              <xsl:varia ble name=" VarTableCe llWidth" s elect="."  />   2444              <xsl:varia ble name=" VarTableCe llWidth" s elect="."  />
2426     2445  
2427              <wwproject :Property  Name="widt h" Value=" {$VarTable CellWidth/ @width}" / >   2446              <wwproject :Property  Name="widt h" Value=" {$VarTable CellWidth/ @width}" / >
2428            < /xsl:for-e ach>   2447            < /xsl:for-e ach>
2429           </ xsl:if>   2448           </ xsl:if>
2430          </x sl:variabl e>   2449          </x sl:variabl e>
2431          <xs l:variable  name="Var ResolvedCe llProperti es" select ="msxsl:no de-set($Va rResolvedC ellPropert iesAsXML)/ wwproject: Property"  />   2450          <xs l:variable  name="Var ResolvedCe llProperti es" select ="msxsl:no de-set($Va rResolvedC ellPropert iesAsXML)/ wwproject: Property"  />
2432     2451  
2433          <!- - Valid CS S properti es -->   2452          <!- - Valid CS S properti es -->
2434          <!- -                        -->   2453          <!- -                        -->
2435          <xs l:variable  name="Var TableCellC SSProperti esAsXML">   2454          <xs l:variable  name="Var TableCellC SSProperti esAsXML">
2436           <x sl:call-te mplate nam e="CSS-Tra nslateProj ectPropert ies">   2455           <x sl:call-te mplate nam e="CSS-Tra nslateProj ectPropert ies">
2437            < xsl:with-p aram name= "ParamProp erties" se lect="$Var ResolvedCe llProperti es" />   2456            < xsl:with-p aram name= "ParamProp erties" se lect="$Var ResolvedCe llProperti es" />
2438            < xsl:with-p aram name= "ParamFrom AbsoluteUR I" select= "$ParamSpl it/@path"  />   2457            < xsl:with-p aram name= "ParamFrom AbsoluteUR I" select= "$ParamSpl it/@path"  />
2439            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" />   2458            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" />
2440           </ xsl:call-t emplate>   2459           </ xsl:call-t emplate>
2441          </x sl:variabl e>   2460          </x sl:variabl e>
2442          <xs l:variable  name="Var TableCellC SSProperti es" select ="msxsl:no de-set($Va rTableCell CSSPropert iesAsXML)/ wwproject: Property"  />   2461          <xs l:variable  name="Var TableCellC SSProperti es" select ="msxsl:no de-set($Va rTableCell CSSPropert iesAsXML)/ wwproject: Property"  />
2443     2462  
2444          <!- - Inline C SS propert ies -->   2463          <!- - Inline C SS propert ies -->
2445          <!- -                         -->   2464          <!- -                         -->
2446          <xs l:variable  name="Var InlineCSSP roperties" >   2465          <xs l:variable  name="Var InlineCSSP roperties" >
2447           <x sl:call-te mplate nam e="CSS-Inl inePropert ies">   2466           <x sl:call-te mplate nam e="CSS-Inl inePropert ies">
2448            < xsl:with-p aram name= "ParamProp erties" se lect="$Var TableCellC SSProperti es" />   2467            < xsl:with-p aram name= "ParamProp erties" se lect="$Var TableCellC SSProperti es" />
2449           </ xsl:call-t emplate>   2468           </ xsl:call-t emplate>
2450          </x sl:variabl e>   2469          </x sl:variabl e>
2451     2470  
2452          <!- - Calculat e row span  -->   2471          <!- - Calculat e row span  -->
2453          <!- -                      -->   2472          <!- -                      -->
2454          <xs l:variable  name="Var RowSpan">   2473          <xs l:variable  name="Var RowSpan">
2455           <x sl:variabl e name="Va rRowSpanHi nt" select ="$VarTabl eCell/wwdo c:Style/ww doc:Attrib ute[@name  = 'row-spa n']/@value " />   2474           <x sl:variabl e name="Va rRowSpanHi nt" select ="$VarTabl eCell/wwdo c:Style/ww doc:Attrib ute[@name  = 'row-spa n']/@value " />
2456           <x sl:choose>   2475           <x sl:choose>
2457            < xsl:when t est="strin g-length($ VarRowSpan Hint) &gt;  0">   2476            < xsl:when t est="strin g-length($ VarRowSpan Hint) &gt;  0">
2458              <xsl:value -of select ="$VarRowS panHint" / >   2477              <xsl:value -of select ="$VarRowS panHint" / >
2459            < /xsl:when>   2478            < /xsl:when>
2460            < xsl:otherw ise>   2479            < xsl:otherw ise>
2461              <xsl:value -of select ="'0'" />   2480              <xsl:value -of select ="'0'" />
2462            < /xsl:other wise>   2481            < /xsl:other wise>
2463           </ xsl:choose >   2482           </ xsl:choose >
2464          </x sl:variabl e>   2483          </x sl:variabl e>
2465     2484  
2466          <!- - Calculat e column s pan -->   2485          <!- - Calculat e column s pan -->
2467          <!- -                         -->   2486          <!- -                         -->
2468          <xs l:variable  name="Var ColumnSpan ">   2487          <xs l:variable  name="Var ColumnSpan ">
2469           <x sl:variabl e name="Va rColumnSpa nHint" sel ect="$VarT ableCell/w wdoc:Style /wwdoc:Att ribute[@na me = 'colu mn-span']/ @value" />   2488           <x sl:variabl e name="Va rColumnSpa nHint" sel ect="$VarT ableCell/w wdoc:Style /wwdoc:Att ribute[@na me = 'colu mn-span']/ @value" />
2470           <x sl:choose>   2489           <x sl:choose>
2471            < xsl:when t est="strin g-length($ VarColumnS panHint) & gt; 0">   2490            < xsl:when t est="strin g-length($ VarColumnS panHint) & gt; 0">
2472              <xsl:value -of select ="$VarColu mnSpanHint " />   2491              <xsl:value -of select ="$VarColu mnSpanHint " />
2473            < /xsl:when>   2492            < /xsl:when>
2474            < xsl:otherw ise>   2493            < xsl:otherw ise>
2475              <xsl:value -of select ="'0'" />   2494              <xsl:value -of select ="'0'" />
2476            < /xsl:other wise>   2495            < /xsl:other wise>
2477           </ xsl:choose >   2496           </ xsl:choose >
2478          </x sl:variabl e>   2497          </x sl:variabl e>
2479     2498  
2480          <!- - Emit cel l -->   2499          <!- - Emit cel l -->
2481          <!- -            -->   2500          <!- -            -->
2482          <ht ml:td>   2501          <ht ml:td>
2483           <! -- Style a ttribute - ->   2502           <! -- Style a ttribute - ->
2484           <! --                  - ->   2503           <! --                  - ->
2485           <x sl:if test ="string-l ength($Var InlineCSSP roperties)  &gt; 0">   2504           <x sl:if test ="string-l ength($Var InlineCSSP roperties)  &gt; 0">
2486            < xsl:attrib ute name=" style">   2505            < xsl:attrib ute name=" style">
2487              <xsl:value -of select ="$VarInli neCSSPrope rties" />   2506              <xsl:value -of select ="$VarInli neCSSPrope rties" />
2488            < /xsl:attri bute>   2507            < /xsl:attri bute>
2489           </ xsl:if>   2508           </ xsl:if>
2490     2509  
2491           <! -- Row spa n attribut e -->   2510           <! -- Row spa n attribut e -->
2492           <! --                      -->   2511           <! --                      -->
2493           <x sl:if test ="number($ VarRowSpan ) &gt; 0">   2512           <x sl:if test ="number($ VarRowSpan ) &gt; 0">
2494            < xsl:attrib ute name=" rowspan">   2513            < xsl:attrib ute name=" rowspan">
2495              <xsl:value -of select ="$VarRowS pan" />   2514              <xsl:value -of select ="$VarRowS pan" />
2496            < /xsl:attri bute>   2515            < /xsl:attri bute>
2497           </ xsl:if>   2516           </ xsl:if>
2498     2517  
2499           <! -- Column  span attri bute -->   2518           <! -- Column  span attri bute -->
2500           <! --                         -->   2519           <! --                         -->
2501           <x sl:if test ="number($ VarColumnS pan) &gt;  0">   2520           <x sl:if test ="number($ VarColumnS pan) &gt;  0">
2502            < xsl:attrib ute name=" colspan">   2521            < xsl:attrib ute name=" colspan">
2503              <xsl:value -of select ="$VarColu mnSpan" />   2522              <xsl:value -of select ="$VarColu mnSpan" />
2504            < /xsl:attri bute>   2523            < /xsl:attri bute>
2505           </ xsl:if>   2524           </ xsl:if>
2506     2525  
2507           <! -- Recurse  -->   2526           <! -- Recurse  -->
2508           <! --          -->   2527           <! --          -->
2509           <x sl:apply-t emplates s elect="./* " mode="ww mode:conte nt">   2528           <x sl:apply-t emplates s elect="./* " mode="ww mode:conte nt">
2510            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" />   2529            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" />
2511            < xsl:with-p aram name= "ParamCarg o" select= "$VarCargo " />   2530            < xsl:with-p aram name= "ParamCarg o" select= "$VarCargo " />
2512            < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" />   2531            < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" />
2513            < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" />   2532            < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" />
2514            < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" />   2533            < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" />
2515           </ xsl:apply- templates>   2534           </ xsl:apply- templates>
2516          </h tml:td>   2535          </h tml:td>
2517         </xs l:for-each >   2536         </xs l:for-each >
2518     2537  
2519        </htm l:tr>   2538        </htm l:tr>
2520       </xsl: for-each>   2539       </xsl: for-each>
2521      </xsl:f or-each>   2540      </xsl:f or-each>
2522     2541  
2523     </html:t able>   2542     </html:t able>
2524     2543  
2525     <!-- Tab le Footnot es -->   2544     <!-- Tab le Footnot es -->
2526     <!--                   -->   2545     <!--                   -->
2527     <xsl:cal l-template  name="Con tent-Notes ">   2546     <xsl:cal l-template  name="Con tent-Notes ">
2528      <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" />   2547      <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" />
2529      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  />   2548      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  />
2530      <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" />   2549      <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" />
2531      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />   2550      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />
2532      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " />   2551      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " />
2533      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />   2552      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
2534     </xsl:ca ll-templat e>   2553     </xsl:ca ll-templat e>
2535     2554  
2536     <!-- Dro pdown End  -->   2555     <!-- Dro pdown End  -->
2537     <!--                -->   2556     <!--                -->
2538     <xsl:if  test="$Par amTableBeh avior/@dro pdown = 'e nd'">   2557     <xsl:if  test="$Par amTableBeh avior/@dro pdown = 'e nd'">
2539      <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ks_WriteDI VClose();< /html:scri pt>   2558      <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ks_WriteDI VClose();< /html:scri pt>
2540     </xsl:if >   2559     </xsl:if >
2541    </xsl:tem plate>   2560    </xsl:tem plate>
2542     2561  
2543     2562  
2544    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:co ntent">   2563    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:co ntent">
2545     <xsl:par am name="P aramSplits " />   2564     <xsl:par am name="P aramSplits " />
2546     <xsl:par am name="P aramCargo"  />   2565     <xsl:par am name="P aramCargo"  />
2547     <xsl:par am name="P aramLinks"  />   2566     <xsl:par am name="P aramLinks"  />
2548     <xsl:par am name="P aramTOCDat a" />   2567     <xsl:par am name="P aramTOCDat a" />
2549     <xsl:par am name="P aramSplit"  />   2568     <xsl:par am name="P aramSplit"  />
2550     2569  
2551     <!-- Abo rted? -->   2570     <!-- Abo rted? -->
2552     <!--           -->   2571     <!--           -->
2553     <xsl:if  test="not( wwprogress :Abort())" >   2572     <xsl:if  test="not( wwprogress :Abort())" >
2554      <xsl:ca ll-templat e name="Fr ame">   2573      <xsl:ca ll-templat e name="Fr ame">
2555       <xsl:w ith-param  name="Para mFrame" se lect="." / >   2574       <xsl:w ith-param  name="Para mFrame" se lect="." / >
2556       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />   2575       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />
2557       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >   2576       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >
2558       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >   2577       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >
2559       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >   2578       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >
2560      </xsl:c all-templa te>   2579      </xsl:c all-templa te>
2561     </xsl:if >   2580     </xsl:if >
2562    </xsl:tem plate>   2581    </xsl:tem plate>
2563     2582  
2564     2583  
2565    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:te xtrun">   2584    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:te xtrun">
2566     <xsl:par am name="P aramSplits " />   2585     <xsl:par am name="P aramSplits " />
2567     <xsl:par am name="P aramCargo"  />   2586     <xsl:par am name="P aramCargo"  />
2568     <xsl:par am name="P aramLinks"  />   2587     <xsl:par am name="P aramLinks"  />
2569     <xsl:par am name="P aramSplit"  />   2588     <xsl:par am name="P aramSplit"  />
2570     2589  
2571     <xsl:cal l-template  name="Fra me">   2590     <xsl:cal l-template  name="Fra me">
2572      <xsl:wi th-param n ame="Param Frame" sel ect="." />   2591      <xsl:wi th-param n ame="Param Frame" sel ect="." />
2573      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  />   2592      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  />
2574      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" />   2593      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" />
2575      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />   2594      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" />
2576      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />   2595      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" />
2577     </xsl:ca ll-templat e>   2596     </xsl:ca ll-templat e>
2578    </xsl:tem plate>   2597    </xsl:tem plate>
2579     2598  
2580     2599  
2581    <xsl:temp late name= "Frame">   2600    <xsl:temp late name= "Frame">
2582     <xsl:par am name="P aramFrame"  />   2601     <xsl:par am name="P aramFrame"  />
2583     <xsl:par am name="P aramSplits " />   2602     <xsl:par am name="P aramSplits " />
2584     <xsl:par am name="P aramCargo"  />   2603     <xsl:par am name="P aramCargo"  />
2585     <xsl:par am name="P aramLinks"  />   2604     <xsl:par am name="P aramLinks"  />
2586     <xsl:par am name="P aramSplit"  />   2605     <xsl:par am name="P aramSplit"  />
2587     2606  
2588     <!-- Get  splits fr ame -->   2607     <!-- Get  splits fr ame -->
2589     <!--                    -->   2608     <!--                    -->
2590     <xsl:for -each sele ct="$Param Splits[1]" >   2609     <xsl:for -each sele ct="$Param Splits[1]" >
2591      <xsl:va riable nam e="VarSpli tsFrame" s elect="key ('wwsplits -frames-by -id', $Par amFrame/@i d)[@docume ntID = $Pa ramSplit/@ documentID ]" />   2610      <xsl:va riable nam e="VarSpli tsFrame" s elect="key ('wwsplits -frames-by -id', $Par amFrame/@i d)[@docume ntID = $Pa ramSplit/@ documentID ]" />
2592     2611  
2593      <!-- Fr ame known?  -->   2612      <!-- Fr ame known?  -->
2594      <!--                -->   2613      <!--                -->
2595      <xsl:if  test="cou nt($VarSpl itsFrame)  = 1">   2614      <xsl:if  test="cou nt($VarSpl itsFrame)  = 1">
2596       <!-- T humbnail  file exis ts for thi s frame ? -->   2615       <!-- T humbnail
? -->
2597       <!--                                            -->   2616       <!--             
-->
2598       <xsl:f or-each se lect="$Glo balFiles[1 ]">   2617       <xsl:f or-each se lect="$Glo balFiles[1 ]">
2599        <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 " />
  2618        <xsl: variable n ame="Var Splits Thumbnail
" select="
$VarSplits Frame/wwsp lits:Thumb nail
" />
        2619        <xsl: variable n ame="VarTh umbnailDef ined" sele ct="count( key('wwfil es-files-b y-path', $ VarSplitsT humbnail/@ path)[1])  &gt; 0" />
2600     2620  
        2621        <!--  Emit image  -->
        2622        <!--              -->
2601        <xsl: choose>   2623        <xsl: choose>
2602         < xsl:when   test="$Var Thumbnail Exists" >   2624         < !--  
Thumbnail  -- >
2603          <xs l:call-tem plate name ="Frame- Thumbn a il ">   2625         <!--             -->
        2626         <xsl :when test ="$VarThum bnailDefin ed">
        2627          <!- - Emit mar kup -->
        2628          <!- -              -->
        2629          <xs l:call-tem plate name ="Frame- M a rkup ">
2604           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" />   2630           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" />
2605           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />   2631           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
2606           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" />   2632           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" />
2607           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />   2633           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
2608           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />   2634           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
        2635           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" />
        2636           <x sl:with-pa ram name=" ParamThumb nail" sele ct="true() " />
2609          </x sl:call-te mplate>   2637          </x sl:call-te mplate>
2610         </xs l:when>   2638         </xs l:when>
2611     2639  
        2640         <!--  Fullsize  -->
        2641         <!--            -->
2612         <xsl :otherwise >   2642         <xsl :otherwise >
2613          <xs l:call-tem plate name ="Frame- F u llSize ">   2643          <!- - Note num bering -->
        2644          <!- -                 -->
        2645          <xs l:variable  name="Var Notes" sel ect="$Para mFrame//ww doc:Note"  />
        2646          <xs l:variable  name="Var NoteNumber ingAsXML">
        2647           <x sl:call-te mplate nam e="Notes-N umber">
        2648            < xsl:with-p aram name= "ParamNote s" select= "$VarNotes " />
        2649           </ xsl:call-t emplate>
        2650          </x sl:variabl e>
        2651          <xs l:variable  name="Var NoteNumber ing" selec t="msxsl:n ode-set($V arNoteNumb eringAsXML )" />
        2652  
        2653          <!- - Frame ca rgo -->
        2654          <!- -              -->
        2655          <xs l:variable  name="Var Cargo" sel ect="$Para mCargo/*[l ocal-name( ) != 'Note Numbering' ]/.. | $Va rNoteNumbe ring" />
        2656  
        2657          <!- - Emit mar kup -->
        2658          <!- -              -->
        2659          <xs l:call-tem plate name ="Frame- Mark u p ">
2614           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" />   2660           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" />
2615           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />   2661           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" />
2616           <x sl:with-pa ram name=" ParamCargo " select=" $ P ar am Cargo" />   2662           <x sl:with-pa ram name=" ParamCargo " select=" $ V ar
Cargo" />
2617           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />   2663           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" />
2618           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />   2664           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" />
        2665           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" />
        2666           <x sl:with-pa ram name=" ParamThumb nail" sele ct="false( )" />
2619          </x sl:call-te mplate>   2667          </x sl:call-te mplate>
2620         </xs l:otherwis e>   2668         </xs l:otherwis e>
2621        </xsl :choose>   2669        </xsl :choose>
2622       </xsl: for-each>   2670       </xsl: for-each>
2623      </xsl:i f>   2671      </xsl:i f>
2624     </xsl:fo r-each>   2672     </xsl:fo r-each>
2625    </xsl:tem plate>   2673    </xsl:tem plate>
2626     2674  
2627     2675  
2628    <xsl:temp late name= "Frame- Thumbn a il ">   2676    <xsl:temp late name= "Frame- M a rkup ">
2629     <xsl:par am name="P aramFrame"  />   2677     <xsl:par am name="P aramFrame"  />
2630     <xsl:par am name="P aramSplits " />   2678     <xsl:par am name="P aramSplits " />
2631     <xsl:par am name="P aramCargo"  />   2679     <xsl:par am name="P aramCargo"  />
2632     <xsl:par am name="P aramLinks"  />   2680     <xsl:par am name="P aramLinks"  />
2633     <xsl:par am name="P aramSplit"  />   2681     <xsl:par am name="P aramSplit"  />
        2682     <xsl:par am name="P aramSplits Frame" />
        2683     <xsl:par am name="P aramThumbn ail" />
2634     2684  
2635     <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] " />
  2685     <!-- Con text Rule  -->
        2686     <!--                -->
        2687     <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 ) " />
2636     2688  
2637     <!--  No te s  -->   2689     <!--  Genera te ?  -->
2638     <!--        
-->
  2690     <!--              -->
2639     <xsl:var iable name ="Var No te s " select=" $ P ar amFram e/
/ww d o
c
:
N
o
t
e" />
  2691     <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" />
        2692     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" />
        2693     <xsl:if  test="$Var GenerateOu tput">
        2694      <!-- De termine im age path - ->
        2695      <!--                        - ->
        2696      <xsl:va riable nam e="VarImag ePath">
        2697       <xsl:c hoose>
        2698        <xsl: when test= "$ParamThu mbnail">
        2699         <xsl :value-of  select="$P aramSplits Frame/wwsp lits:Thumb nail/@path " />
        2700        </xsl :when>
2640     2701  
2641     <!-- Not e numberin g -->   2702        <xsl: otherwise>
2642     <!--                  -->   2703           <xsl: v a lu e - o f  select="$ P ar amSpli t
s Frame/@pat h " />
2643     <xsl:var iable name ="VarNoteN umberingAs XML">   2704          </xsl: o t h e rwis e>
2644      <xsl:ca ll-templat e name="No tes-Number ">   2705         </xsl: choos e>
2645       
<xsl: with-param  n a m e ="ParamN o tes"  select="$ V ar No t e s
" />
  2706      </xsl:v ariable>
2646      
</xsl: call- t
e mplat e>
       
2647     
</xsl: variabl e>
       
2648     <xsl:var iable name ="VarNoteN umbering"  select="ms xsl:node-s et($VarNot eNumbering AsXML)" />        
2649     2707  
2650     
<!--  Fram e
  c a r g
o -->
  2708        <!--  Acc e ss   im a
g e inf o -->
2651     
<!--              
-->
  2709        <!--                      -->
2652     
<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
" />
  2710        <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) " />
2653     2711  
2654     
<!--  G et  i m ag pa t h  -->
  2712        <!--  D et er m in
t ype  -->
2655     
<!--                  -->
  2713        <!--                  -->
2656     <xsl:for -each sele ct="$Param Splits[1]" >   2714      <xsl:va riable nam e="VarVect orImageAsT ext">
2657      <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] " />
  2715       <xsl:c all-templa te name="I mages-Vect orImageFor mat">
        2716        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" />
        2717       </xsl: call-templ ate>
        2718      </xsl:v ariable>
        2719      <xsl:va riable nam e="VarVect orImage" s elect="$Va rVectorIma geAsText =  string(tr ue())" />
        2720      <xsl:va riable nam e="VarRast erImageAsT ext">
        2721       <xsl:c all-templa te name="I mages-Rast erImageFor mat">
        2722        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" />
        2723       </xsl: call-templ ate>
        2724      </xsl:v ariable>
        2725      <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 ()) " />
2658     2726  
2659      <!--  Graph i c   Rul e -->   2727      <!--  Em i t   imag e -->
2660      <!--                 -->   2728      <!--             
-->
2661      <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)" />   2729      <xsl:ch oose>
2662      <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" />   2730       <!--  V ect
o
r  Imag e
 -->
2663      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" />   2731       <!--                
-->
2664      <xsl:if  test="$Va rGenerateO utput">   2732       <xsl:w hen test=" $VarVector Image">
2665       <!--  Resolve pr oj ect  pr o pe r ti e s  -->   2733        <xsl: call-templ ate name=" Frame-Mark up-Vector" >
2666       <!--                                 -->   2734         <xsl :with-para m name="Pa ramFrame"  select="$P aramFrame"  />
2667       
<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 "
>
  2735         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
2668        
<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"
>
  2736         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
2669         <xsl :with-para m name="Pa ram Properti e s " select=" $Var OverrideRu le/wwproje ct:Propert ies/wwproj e ct:Pr o perty " />   2737         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
2670         <xsl :with-para m name="Pa ram Co n textSty l e " select=" $Param Fra m e " />   2738         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
        2739           <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 "  / >
        2740           <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"  / >
        2741         <xsl :with-para m name="Pa ram Imag e Info " select=" $Var Imag e Inf o
" />
        2742         <xsl :with-para m name="Pa ram Thumb n ai l
" select=" $Param Thu m bnail " />
2671        </xsl :call-temp late>   2743        </xsl :call-temp late>
2672       </xsl: variabl e
>
  2744       </xsl: wh e n >
2673       <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / >        
2674     2745  
2675       <!--  CSS prop er ti e s  -->   2746       <!--  Rast er  Imag e
 -->
2676       <!--                    -->   2747       <!--                
-->
2677       <xsl: variabl e   n am e
="
Var CSSProp er ti e sAsXML ">
  2748       <xsl: wh e
n  t e st =" $ Var Rast er Imag e
">
2678        <xsl: call-templ ate name=" CSS-T ra nslateProj e ctP r o p er t i e s ">   2749        <xsl: call-templ ate name=" F ra m e -Ma r ku p -Ras t
e r ">
2679         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties[(@Na me != 'wid th') and ( @Name != ' height')]"  />   2750         <xsl :with-para m name="Pa ramFr a m
e
" select=" $Param Fr a me " />
2680         <xsl :with-para m name="Pa ramFr o m Absolut e URI " select=" $Param Split/@p a th " />        
2681         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   2751         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
        2752         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
        2753         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
        2754         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
        2755         <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" />
        2756         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule"  />
        2757         <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" />
        2758         <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / >
2682        </xsl :call-temp late>   2759        </xsl :call-temp late>
2683       </xsl: variabl e
>
  2760       </xsl: wh e n >
2684       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / >   2761      </xsl:c hoose>
2685       <xsl:v ariable na me="VarInl ineCSSProp erties">   2762     
</xsl: if >
2686        <xsl: call-templ ate name=" CSS-Inline Properties ">   2763    
</xsl: temp l at e>
2687         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties [string-le ngth(@Valu e) &gt; 0] " />        
2688          </xsl: call-templ ate >        
2689         </xsl: variab l
e>
       
2690     2764  
2691       <!-- W idth/Heigh t -->        
2692       <!--                -->        
2693       <xsl:v ariable na me="VarIma geInfo" se lect="wwim aging:GetI nfo($VarSp litsFrame/ wwsplits:T humbnail/@ path)" />        
2694       <xsl:v ariable na me="VarWid th" select ="number($ VarImageIn fo/@width) " />        
2695       <xsl:v ariable na me="VarHei ght" selec t="number( $VarImageI nfo/@heigh t)" />        
2696     2765  
2697       <!-- S rc -->   2766    <xsl:temp late name= "Frame-Mar kup-Vector ">
2698       <!--       -->   2767     <xsl:par am name="P aramFrame"  />
2699       <xsl:v ariable na me="VarSrc " select=" wwuri:GetR elativeTo( $VarSplits Frame/wwsp lits:Thumb nail/@path , $ParamSp lit/@path) " />   2768     <xsl:par am name="P aramSplits " />
        2769     <xsl:par am name="P aramCargo"  />
        2770     <xsl:par am name="P aramLinks"  />
        2771     <xsl:par am name="P aramSplit"  />
        2772     <xsl:par am name="P aramSplits Frame" />
        2773     <xsl:par am name="P aramContex tRule" />
        2774     <xsl:par am name="P aramImageI nfo" />
        2775     <xsl:par am name="P aramThumbn ail" />
2700     2776  
2701         <!--  Define Use  Map  -->   2777     <xsl:cho ose>
2702         <!--                   -->   2778      
<!--  SVG  -->
2703       <xsl: vari a b l
e name=" Va r Us e
Ma
p
">
  2779      
<!--     
-->
2704        <xsl: text>#</xs l:text>   2780      <xsl:wh en test="$ ParamImage Info/@form at = 'svg' ">
2705        <xsl: v a lu e -of  select="$ V ar Splits Frame /@document ID " />   2781       <xsl: c a
l l-templat e name=" F r am e - Ma rku p -Vector-SV G ">
2706        <xsl: text>_</xs l:text>   2782        <xsl: with-p a ram nam e ="ParamFra me"  select="$ P ar am Frame
" />
2707        <xsl: v a lu e -of  select="$ V ar
Split sFrame/@id " />
  2783        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />
2708         </xsl: variab l
e>
  2784        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  />
        2785        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  />
        2786        <xsl: with-p a ram nam e ="ParamSpl it"  select="$ P ar am Split
" />
        2787        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " />
        2788        <xsl: with-param  name="Par amContextR ule" selec t="$ParamC ontextRule " />
        2789        <xsl: with-param  name="Par amImageInf o" select= "$ParamIma geInfo" />
        2790        <xsl: with-param  name="Par amThumbnai l" select= "$ParamThu mbnail" />
        2791       </xsl: call-templ ate>
        2792      </xsl:w hen>
        2793     </xsl:ch oose>
        2794    
</xsl: temp l at e>
2709     2795  
2710       <!-- A lt Text -- >        
2711       <!--           -- >        
2712       <xsl:v ariable na me="VarAlt Text">        
2713        <xsl: call-templ ate name=" Images-Alt Text">        
2714         <xsl :with-para m name="Pa ramFrame"  select="$P aramFrame"  />        
2715         <xsl :with-para m name="Pa ramBehavio rFrame" se lect="$Var BehaviorFr ame" />        
2716        </xsl :call-temp late>        
2717       </xsl: variable>        
2718     2796  
2719       <!-- L ong Descri ption -->   2797    <xsl:temp late name= "Frame-Mar kup-Vector -SVG">
2720       <!--                    -->   2798     
<xsl: p ar
a m  name=" P ar amF r ame "  / >
2721         <xsl: v ar i a ble  name=" V ar LongDesc r iption "
>
  2799     
<xsl:
p
a ram  name=" P a
r amS p l i ts "  / >
2722          <xsl: call-tem p l a te  name=" Im a ges-LongDe sc r i p t i on "
>
  2800     
<xsl:
param name ="Param C ar go " />
2723           <xsl: with- param name ="Param SplitsFram e" select= "$V ar SplitsFram e " />   2801     
<xsl:
param name ="Param L i nk s
" />
2724           <xsl: with- param name ="Param Behav i orFrame"  s elect="$Va rBehaviorF rame " />   2802     <xsl:par am name="P aramSplit"  />
2725        </xsl :call-temp late>   2803     <xsl:par am name="P aramSplits Frame" />
2726       </xsl: variable>   2804     <xsl:par am name="P aramContex tRule" />
        2805     <xsl:par am name="P aramImageI nfo" />
        2806     <xsl:par am name="P aramThumbn ail" />
2727     2807  
2728         <!--  G e t  
r ul e
 -->
  2808     
<!--  Acc e ss   f r ame b e havior  -->
2729         <!--           
-->
  2809     
<!--                           -->
2730         <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)
" />
  2810     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] ">
        2811      
<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] " />
2731     2812  
2732       <!-- T ag -->   2813      <!-- Re solve proj ect proper ties -->
2733         <!--     
-->
  2814      
<!--                                -->
2734       
<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 " />
  2815      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" >
2735       
<xsl: v ar i a ble  name=" V ar
T
a g "
>
  2816       <xsl:c all-templa te name="P roperties- ResolveCon textRule">
2736        <xsl: choose>   2817        <xsl: with-param  name="Par amDocument Context" s elect="$Pa ramFrame"  />
2737         <xsl :when test ="string-l ength($Var TagPropert y) &gt; 0" >   2818          <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
" />
2738            <xsl: v a lu e - o f  select="$ V ar T a gP r op e rty " />   2819        <xsl: with-param  name="Par amStyleNam e" select= "$ParamFra me/@stylen ame" />
2739           </xsl: wh e n >   2820          <xsl: with-p ar
a m  name=" P ar amStyle T ype" selec t="'Gr a phic' "  / >
        2821        
<xsl: with-p a ram nam e ="ParamC o ntextStyle "  select="$ P ar
a mF r am e
" />
        2822       
</xsl: call-templ at e
>
        2823      </xsl:v ariable>
        2824      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" />
2740     2825  
2741         <xsl :otherwise >   2826      <!-- CS S properti es -->
2742            <
xsl: v al ue - of s e
l ec t ="'img'" / >
  2827      <!--                  -->
2743           </xsl: othe r w i s e>   2828      <xsl:va riable nam e="VarCSSP ropertiesA sXML">
2744          </xsl:c hoos e>   2829       <xsl:c all-templa te name="C SS-Transla teProjectP roperties" >
2745         </xsl:vari able>   2830        <xsl: with-param  name="Par amProperti es" select ="$VarReso lvedProper ties[(@Nam e != 'widt h') and (@ Name != 'h eight')]"  />
        2831        <xsl: with-param  name="Par amFromAbso luteURI" s elect="$Pa ramSplit/@ path" />
        2832        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />
        2833       
< / xsl: c al l - t e mp l a t e >
        2834      
</xsl: va r
i abl e>
        2835      <xsl:va riable nam e="VarCSSP roperties"  select="m sxsl:node- set($VarCS SPropertie sAsXML)/ww project:Pr operty" />
        2836      <xsl:va riable nam e="VarInli neCSSPrope rties">
        2837       <xsl:c all-templa te name="C SS-InlineP roperties" >
        2838        <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties[ string-len gth(@Value ) &gt; 0]"  />
        2839       
</xsl:c all-templa t e>
        2840      
</xsl:vari able>
2746     2841  
2747         <!--  Graph i c elem e n t -->   2842      
<!--  W i dth/H e igh t -->
2748         <!--                    -->   2843      
<!--               
-->
2749       <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} ">   2844      <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"  />
2750        <!--  Class attr ibute -->   2845      <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 ')" />
2751        <!--                   -->   2846      <xsl:va riable nam e="VarWidt h">
2752        <xsl: a t
t
r ib u te  na me="c l ass ">
  2847       <xsl:c hoose>
2753         <xsl :value-of  select=" wwstri n g:CSSClass Na m
e
($Param Fra m
e
/@ s t ylename )" />
  2848        <xsl: when  t es t ="$Pa r amTh u mb na i l
">
        2849         <xsl :value-of  select="
n u m b e r ($Param I m ag e Info /@ wid t h )" />
        2850        </xsl :when>
2754     2851  
2755         <!--  Additiona l CSS clas ses -->   2852        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'">
2756         <!--                           -->   2853           <
xsl: choos e>
2757         <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)" />   2854          <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions)  or (number ($ParamIma geInfo/@wi dth) = 0)" >
2758         <xsl :if test=" string-len gth($VarAd ditionalCS SClassesOp tion) &gt;  0">   2855           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." />
2759          <xs l:text> </ xsl:text>        
2760          <xs l:value-of  select="$ VarAdditio nalCSSClas sesOption"  />        
2761         </xs l:if>        
2762        
< / xsl: attribut e>
       
2763     2856  
2764        <!--  Src attrib ute -->   2857           <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'))"  />
2765        <!--                 -->   2858            </xsl: wh e n >
2766        <xsl: attribute  name="src" >        
2767         <xsl :value-of  select="$V arSrc" />        
2768        
</xsl: attribut e
>
       
2769     2859  
2770        <!--  Width attr ibute -->   2860            <xsl: o t h e
r w i se >
2771        <!--                   -->   2861             <xsl: v a l u
e -of   select=" n umber($P a ramI m ag e Info/@ width ) "  / >
2772        
<xsl: if  t
e st="$Va r W i dth &gt; 0 " >
  2862          < / xsl:
o
t he r w i se >
2773         
<xsl:
a ttrib u t e
 
n
a
m
e =" width
"
>
  2863         </xs l: choos e>
2774          <
xsl: value- o f selec t ="$Va r W i dth"/ >
  2864        </xsl : when >
2775         </xs l: attribut e>        
2776        </xsl : if >        
2777     2865  
2778        <!--  Height att ribute -->   2866        <xsl: o t h e
r w i se >
2779        <!--                    -->   2867         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  />
2780        <xsl: if  t
e st="$Va r He i ght &gt; 0 " >
  2868        
< / xsl: o t
he rw i se >
2781           <
xsl: attribu t e name=" he
i ght" >
  2869       </xsl: choose>
2782            <xsl:va
l u e -of   sel e ct =" $ VarHeight" / >
  2870      </xsl:v ariable>
2783           < / xsl: a t
t
r ib u te >
  2871      
<xsl:va riab l
e
  nam e
="
VarHeight"
>
2784        </xsl : if >   2872       <xsl:c hoose>
        2873        
<
xsl: when  t es t ="$Pa r amTh u mbnail" >
        2874         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  />
        2875        </xsl : when >
2785     2876  
2786        <!--  Style attr ibute -->   2877        
<xsl: wh e n   t e s t="$ P ar amSp li tsF r am e /@by r ef = ' t ru e ' "
>
2787        <!--                   -->   2878         <
xsl: choos e>
2788        <xsl: if test="s tring-leng th($VarInl ineCSSProp erties) &g t; 0">   2879          <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions)  or (number ($ParamIma geInfo/@he ight) = 0) ">
2789         <xsl :attribute  name="sty le">   2880           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." />
2790            <xsl: valu e -of   sel e c t="$ V ar In li neCSSP r op e
r
t i e s "  / >
       
2791         < / xsl: attribut e>        
2792        </xsl :if>        
2793     2881  
2794        <!--  Alt attrib ute -->   2882           <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')) " />
2795        <!--                 -->   2883            </xsl: wh e n >
2796        <xsl: attribute  name="alt" >        
2797         <xsl :value-of  select="$V arAltText"  />        
2798        
</xsl: attribut e
>
       
2799     2884  
2800        <!--  Longdesc a ttribute - ->   2885            <xsl: o t he r w i
s e >
2801        <!--                      - ->   2886             <xsl:value -of select =" number( $ P ar amIma g
e Info/@he i gh t ) " />
2802        <xsl: if test="s tring-leng th($VarLon gDescripti on) &gt; 0 ">   2887          </x sl:otherwi se>
2803         
<xsl: at t
r
i bute name= "longde s c" >
  2888         </xs l: choos e>
2804          
<xsl:value -of select ="
$ V ar Lon g D e scr i p t ion " />
  2889        </xsl : when >
2805         </xs l: attribut e>        
2806        </xsl : if >        
2807     2890  
2808        <!--  Usemap att ribute -->   2891        <xsl: otherwise>
2809        <!--                    -->   2892         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  />
2810        <xsl: attribute  name="usem ap">   2893        </xsl :otherwise >
2811         <xsl :value-of  select="$V arUseMap"  />   2894       </xsl: choose>
2812          < / xsl: a t
t
r
i bu t e >
  2895      </xsl:v ariable>
2813        <xsl: attribute  name=" bor d er ">   2896  
2814         <xsl :value-of  select=" '0' "   />   2897      <!-- Sr c -->
        2898      <!--      -->
        2899      <xsl:va riable nam e="VarSrc"  select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " />
        2900  
        2901      <!-- Al t Text -->
        2902      <!--           -->
        2903      <xsl:va riable nam e="VarAltT ext">
        2904       <xsl:c all-templa te name="I mages-AltT ext">
        2905        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  />
        2906        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" />
        2907       </xsl: call-templ ate>
        2908      </xsl:v ariable>
        2909  
        2910      <!-- Lo ng Descrip tion -->
        2911      <!--                    -->
        2912      <xsl:va riable nam e="VarLong Descriptio n">
        2913       <xsl:c all-templa te name="I mages-Long Descriptio n">
        2914        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " />
        2915        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" />
        2916       </xsl: call-templ ate>
        2917      </xsl:v ariable>
        2918  
        2919      <!-- SV G object t ag info:                                               -->
        2920      <!--    http://jol iclic.free .fr/html/o bject-tag/ en/object- svg.html   -->
        2921      <!--    http://vol ity.org/wi ki/index.c gi?SVG_Sca ling                  -->
        2922      <!--                                                                      -->
        2923  
        2924      <!-- Gr aphic elem ent -->
        2925      <!--                   -->
        2926      <html:o bject>
        2927       <!-- T ype attrib ute -->
        2928       <!--                  -->
        2929       <xsl:a ttribute n ame="type" >
        2930        <xsl: text>image /svg+xml</ xsl:text>
        2931       </xsl: attribute>
        2932  
        2933       <!-- D ata attrib ute -->
        2934       <!--                  -->
        2935       <xsl:a ttribute n ame="data" >
        2936        <xsl: value-of s elect="$Va rSrc" />
        2937       </xsl: attribute>
        2938  
        2939       <!-- W idth attri bute -->
        2940       <!--                   -->
        2941       
<
xsl: if  t es t ="$Va r W i d t h &gt; 0" >
        2942        <xsl: attribute  name=" wi d th ">
        2943         <xsl :value-of  select=" $VarWidth "
/>
2815        </xsl :attribute >   2944        </xsl :attribute >
2816       </xsl: element >   2945       </xsl: if >
2817     2946  
2818       <!--  Gen e ra t e D   L i nks  -->   2947       <!--  H e igh t
  attr i bute  -->
2819       <!--                    -->   2948       <!--                    -->
2820       <xsl:v ariable na me="VarGen erateDLink s" select= "wwprojext :GetFormat Setting('a ccessibili ty-image-d -links', ' false')" / >   2949       
<xsl:if te st="
$Var H e
i gh t
 &gt; 0">
2821       <xsl:i f test="$V arGenerate DLinks = ' true'">   2950        
<xsl: a t
t ribu te  name="hei gh t " >
2822          <xsl:if te st=" string-len gth( $Var LongD e scr i p t ion)  &gt; 0">   2951         <xsl :value-of  select="$V arHeight"/ >
2823           <xsl:
t ex t > </xsl: te x t
>
  2952        </xsl : attr i bute >
2824         <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 />        
2825        </xsl :
i f >
       
2826       </xsl: if>   2953       </xsl: if>
2827     2954  
2828       <!--  Imag m a p  -->   2955       <!--  Styl
a ttribute  -->
2829       <!--            
-->
  2956       <!--                    -->
2830       <html: map name=" {concat($V arSplitsFr ame/@docum entID, '_' , $VarSpli tsFrame/@i d)}">   2957       <xsl:i f test="st ring-lengt h($VarInli neCSSPrope rties) &gt ; 0">
2831        <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)}" >   2958        <xsl: attribute  name="styl e">
2832         <xsl :attribute  name=" al t
">
  2959         <xsl :value-of  select="$V arInlineCS SPropertie s" />
        2960        </xsl :attribute >
        2961       </xsl: if>
        2962  
        2963       <!-- T itle attri bute -->
        2964       <!--                   -->
        2965       <xsl:c hoose>
        2966        <xsl: when test= "string-le ngth($VarA ltText) &g t; 0">
        2967         <xsl :attribute  name="
t itle ">
2833          <xs l:value-of  select="$ VarAltText " />   2968          <xs l:value-of  select="$ VarAltText " />
2834         </xs l:attribut e>   2969         </xs l:attribut e>
2835        </ htm l: ar e a >   2970        </ xs l: wh e n >
2836       </ htm l: map >   2971  
        2972        <xsl: when test= "string-le ngth($Para mSplitsFra me/@title)  &gt; 0">
        2973         <xsl :attribute  name="tit le">
        2974          <xs l:value-of  select="$ ParamSplit sFrame/@ti tle" />
        2975         </xs l:attribut e>
        2976        </xsl :when>
        2977       </xsl: choose>
        2978  
        2979       <!-- S rc paramet er -->
        2980       <!--                 -->
        2981       <html: param name ="src" val ue="{$VarS rc}" value type="data " />
        2982      </html: object>
        2983  
        2984      <!-- Ge nerate D L inks -->
        2985      <!--                    -->
        2986      <xsl:va riable nam e="VarGene rateDLinks " select=" wwprojext: GetFormatS etting('ac cessibilit y-image-d- links', 'f alse')" />
        2987      <xsl:if  test="$Va rGenerateD Links = 't rue'">
        2988       <xsl:i f test="st ring-lengt h($VarLong Descriptio n) &gt; 0" >
        2989        <xsl: text> </xs l:text>
        2990        <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 />
        2991       </ xs l: if >
2837      </xsl:i f>   2992      </xsl:i f>
        2993  
        2994      <!-- No tes -->
        2995      <!--        -->
        2996      <xsl:ch oose>
        2997       <!-- T humbnail - ->
        2998       <!--            - ->
        2999       <xsl:w hen test=" $ParamThum bnail">
        3000        <!--  Nothing to  do -->
        3001        <!--                 -->
        3002       </xsl: when>
        3003  
        3004       <!-- F ullsize -- >
        3005       <!--           -- >
        3006       <xsl:o therwise>
        3007        <!--  Frame Foot notes -->
        3008        <!--                   -->
        3009        <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" />
        3010        <xsl: call-templ ate name=" Content-No tes">
        3011         <xsl :with-para m name="Pa ramNotes"  select="$V arNotes" / >
        3012         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
        3013         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  />
        3014         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
        3015         <xsl :with-para m name="Pa ramTOCData " select=" ''" />
        3016         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
        3017        </xsl :call-temp late>
        3018       </xsl: otherwise>
        3019      </xsl:c hoose>
2838     </xsl:fo r-each>   3020     </xsl:fo r-each>
2839    </xsl:tem plate>   3021    </xsl:tem plate>
2840     3022  
2841     3023  
2842    <xsl:temp late name= "Frame- F u llSiz e
">
  3024    <xsl:temp late name= "Frame- Mark u p-Rast e r ">
2843     <xsl:par am name="P aramFrame"  />   3025     <xsl:par am name="P aramFrame"  />
2844     <xsl:par am name="P aramSplits " />   3026     <xsl:par am name="P aramSplits " />
2845     <xsl:par am name="P aramCargo"  />   3027     <xsl:par am name="P aramCargo"  />
2846     <xsl:par am name="P aramLinks"  />   3028     <xsl:par am name="P aramLinks"  />
2847     <xsl:par am name="P aramSplit"  />   3029     <xsl:par am name="P aramSplit"  />
        3030     <xsl:par am name="P aramSplits Frame" />
        3031     <xsl:par am name="P aramContex tRule" />
        3032     <xsl:par am name="P aramImageI nfo" />
        3033     <xsl:par am name="P aramThumbn ail" />
2848     3034  
2849     <xsl:var iable name ="VarBehav iorFrame"  select="$P aramCargo/ wwbehavior s:Behavior s//wwbehav iors:Frame [@id = $Pa ramFrame/@ id][1]" />   3035     <!--  Acc es s frame be havior  -->
2850     3036     <!--                           -->
2851     <!--  Not es
 -->
  3037     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] ">
2852     <!--        
-->
  3038        <xsl:varia ble name=" Var Behavi o rFram e
" select=" key('wwbeh aviors-fra mes-by-id' $ParamFram e/ @i d )[1] " />
2853     
<xsl:varia ble name=" Var N o t e s " select="
$ParamFram e/ /ww d oc:Note " />
       
2854     3039  
2855     
<!--  Not n u mb e ring  -->
  3040        <!--  Overrid R u l e
 -->
2856     
<!--                   -->
  3041        <!--                
-->
2857     <xsl:var iable name ="VarNoteN umberingAs XML">   3042      <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)"  />
2858      <xsl:ca ll-templat e name="No tes-Number ">        
2859       <xsl:w ith-param  name="Para mNotes" se lect="$Var Notes" />        
2860      </xsl:c all-templa te>        
2861     </xsl:va riable>        
2862     <xsl:var iable name ="VarNoteN umbering"  select="ms xsl:node-s et($VarNot eNumbering AsXML)" />        
2863     3043  
2864     
<!--  Fram
c a r g o
 -->
  3044        <!--  Resolv proje c t p r
o perties  -->
2865     
<!--              
-->
  3045        <!--                                -->
2866     <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() !=  'NoteNumbe ring']/..  | $VarNote Numbering"  />   3046      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" >
        3047       <xsl:c all-templa te name="P roperties- ResolveOve rrideRule" >
        3048        <xsl: with-param  name="Par amProperti es" select ="$VarOver rideRule/w wproject:P roperties/ wwproject: Property"  />
        3049        <xsl: with-param  name="Par amContextS tyle" sele ct="$Param Frame" />
        3050       </xsl: call-templ ate>
        3051      </xsl:v ariable>
        3052      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" />
2867     3053  
2868     
<!--  G e
t   i mag e  path  -->
  3054        <!--  CSS prop e r t
i
e s  -->
2869     
<!--                  -->
  3055        <!--                  -->
2870     
<xsl: for -
e
a ch  select="$ ParamSplit s[1] "
>
  3056      <xsl:va riable nam e="VarCSSP ropertiesA sXML">
2871      <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] " />
  3057       <xsl:c all-templa te name="C SS-Transla teProjectP roperties" >
        3058        <xsl: with-param  name="Par amProperti es" select ="$VarReso lvedProper ties[(@Nam e != 'widt h') and (@ Name != 'h eight')]"  />
        3059          <xsl: with - param nam e ="P a ramFromAbs oluteURI"  select="$ ParamSplit /@path "  / >
        3060        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " />
        3061       </xsl: call-templ ate>
        3062      </xsl:v ariable>
        3063      <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 " />
        3064      <xsl:va riable nam e="VarInli neCSSPrope rties">
        3065       <xsl:c all-templa te name="C SS-InlineP roperties" >
        3066        <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties[ string-len gth(@Value ) &gt; 0]"  />
        3067       </xsl: call-templ ate>
        3068      </xsl:v ariable>
2872     3069  
2873      <!--  Graph i c Rul e
 -->
  3070      <!--  W i dth/H e ight  -->
2874      <!--                -->   3071      <!--                -->
2875      <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)" />   3072      <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"  />
2876      <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"  />
  3073      <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')" />
2877      <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')" />
  3074      <xsl: var i able   nam e
="
Var Wid t h ">
2878      <xsl:
i f   t e st =" $ Var GenerateOu tpu t
">
  3075       
<
xsl:c hoos e>
2879       <!-- R esolve pro ject prope rties -->   3076          <
xsl: when test= "$P ar
a mThum b nai l " >
2880       <!--                               -->   3077         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  />
2881       <xsl:v ariable na me="VarRes olvedPrope rtiesAsXML ">   3078        </xsl :when>
2882        <xsl: call-templ ate name=" Properties -ResolveOv errideRule ">        
2883         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarOve rrideRule/ wwproject: Properties /wwproject :Property"  />        
2884         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mFrame" />        
2885          < / xsl:c all-templa t e>        
2886       
< / xsl: v ar i a
b
l e >
       
2887       <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / >        
2888     3079  
2889       <!-- C SS propert ies -->   3080        
<xsl:w
h e n  t e st =" $ ParamSplit s F ram e/@byref =  ' t rue' "
>
2890       <!--                  -->   3081           <
xsl: choos e>
2891       <xsl:v ariable na me="VarCSS Properties AsXML">   3082          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions">
2892        <xsl: call-templ ate name=" CSS-Transl ateProject Properties ">   3083             <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]/../.. " />
2893         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties[(@Na me != 'wid th') and ( @Name != ' height')]"  />        
2894         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" />        
2895           <xsl:w it h -param  n am e
="
ParamSplit s " select=" $Pa ram Spli t s "  / >
       
2896        </xsl :call-temp late>        
2897       
< / xsl: variabl e>
       
2898       
<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
" />
       
2899       <xsl:v ariable na me="VarInl ineCSSProp erties">        
2900        <xsl: call-templ ate name=" CSS-Inline Properties ">        
2901         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties [string-le ngth(@Valu e) &gt; 0] " />        
2902        </xsl :call-temp late>        
2903       </xsl: variable>        
2904     3084  
2905       <!-- W idth/Heigh t -->   3085           <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'))"  />
2906       <!--                -->   3086            < / xsl: w h
e n >
2907       <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"  />        
2908       <xsl:v ariable na me="VarIma geInfo" se lect="wwim aging:GetI nfo($VarSp litsFrame/ @path)" />        
2909       <xsl:v ariable na me="VarWid th">        
2910        
<
xsl: c h oos e
>
       
2911         <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')">        
2912          <xs l:variable  name="Var ByReferenc eFrame" se lect="$Par amFrame//w wdoc:Facet [@type = ' by-referen ce'][1]/.. /.." />        
2913     3087  
2914          <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'))"  />   3088          <xs l:otherwis e>
2915           </xsl:when >   3089           <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " />
        3090          </x sl:otherwi se>
        3091         </xs l:choose>
        3092        
</xsl:when >
2916     3093  
2917           <xsl:other wise>   3094        
<xsl:other wise>
2918            <xsl:value -of select ="number($ V ar
ImageInfo/ @width)" / >
  3095         
<xsl:value -of select ="number($ P ar am ImageInfo/ @width)" / >
2919           </xsl:othe rwise>   3096        
</xsl:othe rwise>
2920          </xsl:choo se>   3097       
</xsl:choo se>
2921         </xsl:vari able>   3098      
</xsl:vari able>
2922         <xsl:varia ble name=" VarHeight" >   3099      
<xsl:varia ble name=" VarHeight" >
2923          <xsl:choos e>   3100       
<xsl:choos e>
2924         <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')">   3101        <xsl: when test= "$ParamThu mbnail">
2925          <xs l:variable  name="Var ByReferenc eFrame" se lect="$Par amFrame//w wdoc:Facet [@type = ' by-referen ce'][1]/.. /.." />   3102         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  />
        3103        </xsl :when>
2926     3104  
2927          <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'))"  />   3105        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'">
2928         < / xsl: w h
e n >
  3106         <
xsl: c h oos e
>
        3107          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions">
        3108           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." />
2929     3109  
2930         <xsl :otherwise >   3110             <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') )" />
2931          
<xsl:value -of select ="
n
um b er
($Var Imag e In f o /
@
height
)" />
  3111            </xsl: wh e n >
2932         </xs l:otherwis e>        
2933        </xsl :choose>        
2934       
</xsl: variabl e
>
       
2935     3112  
2936       <!-- S rc -->   3113          <xs l:otherwis e>
2937       <!--       -->   3114           <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" />
2938       <xsl:v ariable na me="VarSrc " select=" wwuri:GetR elativeTo( $VarSplits Frame/@pat h, $ParamS plit/@path )" />   3115          </x sl:otherwi se>
        3116         </xs l:choose>
        3117        </xsl :when>
2939     3118  
2940       <!-- N eed to def ine usemap ? -->   3119          <xsl: oth e
r wi se
>
2941       <!--                           -->   3120           <xsl:va
l u e -of  select="
n umber ($Param I m ag e Inf o /@he i ght )" />
2942       
<xsl: variable n am e ="Va r U se Map" >
  3121        
< / xsl: o t h e rwi s
e
>
2943        
<xsl:va riab l
e  name="Var UseMapHint "  select=" cou n t ($Param Fra m
e //wwd o c:L i nk )" />
  3122       
</xsl: choos e
>
2944        <xsl: choose>   3123      
</xsl: variabl e
>
2945         <xsl :when test ="$VarUseM apHint &gt ; 0">        
2946            <
xsl:
t
e xt>#</x s l:t e xt >
       
2947          <xs l:value-of  select="$ VarSplitsF rame/@docu mentID" />        
2948           <xsl:te xt>_ </xsl: t e xt >        
2949          <xs l:value-of  select="$ VarSplitsF rame/@id"  />        
2950           </xsl: wh e n >        
2951     3124  
2952         <xsl :otherwise >   3125      <!-- Sr c -->
2953          <xs l:value-of  select="' '" />   3126      <!--      -->
2954         </xs l:otherwis e>   3127      <xsl:va riable nam e="VarSrc"  select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " />
2955        </xsl :choose>        
2956       </xsl: variable>        
2957     3128  
2958         <!--  Alt   T e xt  -->   3129      
<!--  Define   Us e  Map  -->
2959         <!--           
-->
  3130      
<!--                   -->
2960         <xsl:varia ble name=" Var AltT e xt ">   3131      
<xsl:varia ble name=" Var Us e Map ">
2961        <xsl: call-templ ate name=" Images-Alt Text">   3132       <xsl:c hoose>
2962           <xsl:w it h -param  n am e
="
Param Fra m e" se l e c
t =" $ParamFram e /
>
  3133        
<xsl:w
h e n  t e st =" ($ Param Thu m bnai l ) or ( c oun t ( $ParamFram e
/ /wwdoc:Lin k) &gt; 0) " >
2963         <xsl : with-param  name="Par amBeha v iorFr a m e "  select="$ V ar Beh a v i or Frame
" />
  3134         <xsl :text>#</x sl:text>
2964        
< / xsl: c al l - t e
m
pl a t
e
>
  3135         <xsl :
v
a lu e -of  select="$ P ar
a mSpl i ts Frame /@document ID " />
2965       
</xsl: variabl e
>
  3136         <xsl :text>_</x sl:text>
        3137           <
xsl: v al ue - of s e lect="$Par a m S pl i t sFram e /@id" / >
        3138          </xsl: wh e n >
2966     3139  
2967       <!-- L ong Descri ption -->   3140        <xsl: otherwise>
2968       <!--                    -->   3141         <xsl : v a
l u e -of  select=" '' " />
2969       <xsl:v ariable na me="VarLon gDescripti on">   3142        </xsl :otherwise >
2970        <xsl: call-templ ate name=" Images-Lon gDescripti on">   3143       
</xsl:c hoos e>
2971         <xsl : with-param  name="Par a mSp l itsFram e "  select=" $VarSplits Frame " />   3144      
</xsl:vari able>
2972         <xsl :with-para m name="Pa ramBehavio rFrame" se lect="$Var BehaviorFr ame" />        
2973          </xsl:c all-templa t e>        
2974         </xsl:vari able>        
2975     3145  
2976         <!--  Ge rul e
 -->
  3146      
<!--  Al T e xt  -->
2977         <!--           -->   3147      
<!--           -->
2978       <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 )" />   3148      <xsl:va riable nam e="VarAltT ext">
        3149       <xsl:c all-templa te name="I mages-AltT ext">
        3150        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  />
        3151        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" />
        3152       </xsl: call-templ ate>
        3153      </xsl:v ariable>
2979     3154  
2980         <!--  Ta
-->
  3155      
<!--  Lon Descriptio -->
2981         <!--     
-->
  3156      
<!--                     -->
2982       <xsl:v ariable na me="VarTag Property"  select="$V arContextR ule/wwproj ect:Proper ties/wwpro ject:Prope rty[@Name  = 'tag']/@ Value" />   3157      
<xsl:varia ble name=" Var Lon g Descriptio n ">
2983         <xsl:varia ble name=" Var Ta g
">
  3158       <xsl:c all-templa te name="I mages-Long Descriptio n">
2984        <xsl: choose>   3159        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " />
2985         <xsl :when test ="string-l ength($Var TagPropert y) &gt; 0" >   3160        
<xsl: with-p a ram nam e ="ParamBeh avi o rFrame"  select="$ Var Beh a vi o
r Frame " />
2986            <xsl: v a lu e - o f  select="$ Var T a gPr o pe r ty " />   3161       </xsl: call-templ ate>
2987           </xsl: wh e n >   3162      
</xsl: variabl e
>
2988     3163  
2989           <xsl:other wise>   3164      <!-- Ta g -->
2990            <xsl:value -of select ="'img'" / >   3165      <!--      -->
2991           </xsl:othe rwise>   3166      <xsl:va riable nam e="VarTagP roperty" s elect="$Pa ramContext Rule/wwpro ject:Prope rties/wwpr oject:Prop erty[@Name  = 'tag']/ @Value" />
2992          </xsl:choo se>   3167      <xsl:va riable nam e="VarTag" >
2993         </xsl:vari able>   3168       <xsl:c hoose>
        3169        <xsl: when test= "string-le ngth($VarT agProperty ) &gt; 0">
        3170         <xsl :value-of  select="$V arTagPrope rty" />
        3171        </xsl :when>
        3172  
        3173        
<xsl:other wise>
        3174         
<xsl:value -of select ="'img'" / >
        3175        
</xsl:othe rwise>
        3176       
</xsl:choo se>
        3177      
</xsl:vari able>
2994     3178  
2995         <!-- Graph ic element  -->   3179      
<!-- Graph ic element  -->
        3180      <!--                   -->
        3181      <xsl:el ement name ="{$VarTag }" namespa ce="{$Glob alDefaultN amespace}" >
        3182       <!-- C lass attri bute -->
2996       <!--                   -->   3183       <!--                   -->
2997       <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} ">   3184       
<xsl:attri bute name= "class">
2998        <!--  Class attr ibute -->   3185        
<xsl:value -of select ="wwstring :CSSClassN ame($Param Frame/@sty lename)" / >
2999        <!--                   -->        
3000          <xsl:attri bute name= "class">        
3001           <xsl:value -of select ="wwstring :CSSClassN ame($Param Frame/@sty lename)" / >        
3002     3186  
3003           <!-- Addit ional CSS  classes -- >   3187        
<!-- Addit ional CSS  classes -- >
3004           <!--                          -- >   3188        
<!--                          -- >
3005           <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)"  />
  3189        
<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)"  />
3006           <xsl:if te st="string -length($V arAddition alCSSClass esOption)  &gt; 0">   3190        
<xsl:if te st="string -length($V arAddition alCSSClass esOption)  &gt; 0">
3007            <xsl:text>  </xsl:tex t>   3191         
<xsl:text>  </xsl:tex t>
3008            <xsl:value -of select ="$VarAddi tionalCSSC lassesOpti on" />   3192         
<xsl:value -of select ="$VarAddi tionalCSSC lassesOpti on" />
3009           </xsl:if>   3193        
</xsl:if>
        3194       </xsl: attribute>
        3195  
        3196       <!-- S rc attribu te -->
        3197       <!--                 -->
        3198       <xsl:a ttribute n ame="src">
        3199        <xsl: value-of s elect="$Va rSrc" />
        3200       </xsl: attribute>
        3201  
        3202       <!-- W idth attri bute -->
        3203       <!--                   -->
        3204       <xsl:i f test="$V arWidth &g t; 0">
        3205        <xsl: attribute  name="widt h">
        3206         <xsl :value-of  select="$V arWidth"/>
3010        </xsl :attribute >   3207        </xsl :attribute >
        3208       </xsl: if>
3011     3209  
3012          <!--  Src  attribute  -->   3210       
<!--  Height  attribute  -->
3013          <!--                
-->
  3211       
<!--                     -->
3014        <xsl: attribute  name=" src ">   3212       <xsl:i f test="$V arHeight & gt; 0">
3015         <xsl :value-of  select="$V ar Src "   />   3213        <xsl: attribute  name=" height ">
        3214         <xsl :value-of  select="$V ar Height "
/>
3016        </xsl :attribute >   3215        </xsl :attribute >
        3216       </xsl: if>
3017     3217  
3018          <!--  Wid t h  attribute  -->   3218       
<!--  S t yle  attribute  -->
3019          <!--                   -->   3219       
<!--                   -->
3020          <xsl:if te st="
$Var W i d t h  &gt; 0">
  3220       
<xsl:if te st=" string-len gth( $Var Inl i neCSSPrope r t ies)  &gt; 0">
3021           <xsl:attri bute name= " wid t h ">   3221        
<xsl:attri bute name= " s t yle ">
3022            <xsl:value -of select ="$Var W i d t h "
/>
  3222         
<xsl:value -of select ="$Var Inl i neCSSPrope r t ies "   />
3023           </xsl:attr ibute>   3223        
</xsl:attr ibute>
3024          </xsl:if>   3224       
</xsl:if>
3025     3225  
3026          <!--  Heigh t attribut e -->   3226       
<!--  Al t attribut e -->
3027          <!--                     -->   3227       
<!--                
-->
3028          <xsl: if  t es t ="$Va r He i gh t
  &g t ; 0 ">
  3228       
<xsl: a t
t
r
i bu t e   name="al t
">
3029         <xsl :attribute  name="hei ght">   3229        
<
xsl: v a lue-of sel ec t ="$Va r Al t T e xt" / >
3030          <xs l:value-of  select="$ VarHeight" />   3230       
</xsl: attr i bute >
3031           < / xsl:
a
t t r ibu t
e
>
       
3032          </xsl:
i f >
       
3033     3231  
3034          <!--  Styl e
 attribute  -->
  3232       
<!--  Longd e sc  attribute  -->
3035          <!--                   
-->
  3233       
<!--                        -->
3036          <xsl:if te st="string -length($V ar Inli n
e CSSP r o p er ti es ) &gt; 0">
  3234       
<xsl:if te st="string -length($V ar Lo n gD e sc r i p
ti on ) &gt; 0">
3037           <xsl:attri bute name= " sty l
e
">
  3235        
<xsl:attri bute name= "
l ongd e sc ">
3038            <xsl:value -of select ="$Var Inli n
e CSSP r o p er ti es " />
  3236         
<xsl:value -of select ="$Var Lo n gD e sc r i p
ti on " />
3039           </xsl:attr ibute>   3237        
</xsl:attr ibute>
3040          </xsl:if>   3238       
</xsl:if>
3041     3239  
3042          <!--  Alt  attribute  -->   3240       
<!--  Usemap  attribute  -->
3043          <!--                
-->
  3241       
<!--                     -->
3044        <xsl: attribute  name="
a lt ">
  3242       <xsl:i f test="st ring-lengt h($VarUseM ap) &gt; 0 ">
3045         <xsl :value-of  select="$V ar AltT e xt " />   3243        <xsl: attribute  name=" usem a p ">
        3244         <xsl :value-of  select="$V ar Us e Map " />
3046        </xsl :attribute >   3245        </xsl :attribute >
        3246        <xsl: attribute  name="bord er">
        3247         <xsl :value-of  select="'0 '" />
        3248        </xsl :attribute >
        3249       </xsl: if>
        3250      </xsl:e lement>
3047     3251  
3048          <!--  Lo n gd e sc att r ibu te 
-->
  3252      
<!--  Ge n
e
r a te  D Links  -->
3049          <!--                        -->   3253      
<!--                    
-->
3050          <xsl:if te st=" string-len gth( $Var Lo n gD e sc r ip t
i o n )   &gt;   0 ">
  3254      <xsl:va riable nam e="VarGene rateDLinks " select=" wwprojext: GetFormatS etting('ac cessibilit y-image-d- links', 'f alse')" />
3051         <xsl :attribute  name="lon gdesc">   3255      
<xsl:if te st="
$Var Ge n
e
r a t eDL i
n ks   =   'true' ">
3052            <xsl: value-o sel e c t="
$VarLongDe scription "   / >
  3256       
<xsl: i t e s t=" string-len gth( $VarLongDe scription )   &gt; 0" >
3053           </xsl: attr i bute >   3257        <xsl: text> </xs l:text>
3054          </xsl:if>   3258        <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 />
        3259       
</xsl:
i f >
        3260      
</xsl:if>
3055     3261  
3056          <!--  Use ma p  
a ttribute  -->
  3262      
<!--  I ma ge   m a p  -->
3057          <!--                     -->   3263      
<!--            
-->
3058          <xsl:if te st="string -length($V arUseMap)  &gt; 0">   3264      
<xsl:if te st="string -length($V arUseMap)  &gt; 0">
3059           <xsl: attribute  name="u se map" >   3265       <html: map name=" {concat($P aramSplits Frame/@doc umentID, ' _', $Param SplitsFram e/@id)}">
3060          <xs l:value-of  select="$ VarUseMap"  />   3266        
<xsl: choo se
>
3061         < / xsl: a t
t
r ib u te >
  3267         <!--  Thumbnail  -->
3062         
<xsl:attri bute name= " border ">
  3268         <!--             -->
3063          
<xsl:value -of select =" '0' " />
  3269         <
xsl: when  t es t ="$Pa r amTh u mbnail" >
3064         
</xsl:attr ibute>
  3270          <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)}">
3065        
</ xs l: if >
  3271             <xsl:attri bute name= " alt ">
3066       
</xsl: elem en t >
  3272              <xsl:value -of select =" $VarAltTex t " />
        3273             </xsl:attr ibute>
        3274            </ htm l: area >
        3275           </xsl: wh en
>
3067     3276  
3068       
<!--  Generate D  Link s
 -->
  3277           <!--  Full s ize  -->
3069       
<!--                     -->
  3278           <!--           
-->
3070       <xsl:v ariable na me="VarGen erateDLink s" select= "wwprojext :GetFormat Setting('a ccessibili ty-image-d -links', ' false')" / >   3279         <xsl : o t h e rwi s
e
>
3071       <xsl:i f test="$V arGenerate DLinks = ' true'">   3280          <xs l:variable  name="Var Horizontal ScalingAsT ext">
3072        <xsl: if test="s tring-leng th($VarLon gDescripti on) &gt; 0 ">   3281             <
xsl: choose >
3073         <xsl :
t
e xt> </x s l:t e xt >
  3282            < xsl:when t est="$VarW idth &gt;  0">
3074         <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 />   3283              <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 ')))" />
3075        
< / xsl: if >
  3284              <xsl:value -of select ="number($ VarWidth)  div number ($VarWidth AsPixels)"  />
3076       
</xsl: if >
  3285              </xsl: when >
3077     3286  
3078       <xsl:i f test="st ring-lengt h($VarUseM ap) &gt; 0 ">   3287              <xsl:
o therwi se>
3079        <html :map name= "{concat($ VarSplitsF rame/@docu mentID, '_ ', $VarSpl itsFrame/@ id)}">   3288               <xsl: valu e -of  
s elec t=" 1 "  / >
3080         <xsl :variable  name="VarH orizontalS calingAsTe xt">   3289            < /xsl:other wise>
3081          
<xsl: cho o
se>
  3290           </ xsl:choose >
3082           
<xsl: wh e n   te s
t=" $VarWidth  &gt; 0 "
>
  3291          
</xsl: variabl e
>
3083            < 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' )))" />        
3084            < xsl:value- of select= "number($V arWidth) d iv number( $VarWidthA sPixels)"  />        
3085             </xsl: wh e n >        
3086     3292  
3087           <x sl:otherwi se>   3293          
<xsl:va riab l
e
  nam e ="VarV e rticalS c alingAsTex t
"
>
3088              <xsl:va
l u e -of   s e l e
c
t ="1 "  / >
  3294           <
xsl: c h oo se>
3089           < / xsl: ot h erwi se>   3295              <
xsl: w h en te s t="$VarH e ight &gt;  0" >
3090          
< / xsl: c h oo s
e
>
  3296              <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')))" />
3091         
</xsl: variabl e
>
  3297              <xsl:value -of select ="number($ VarHeight)  div numbe r($VarHeig htAsPixels )" />
        3298              </xsl: wh e n >
3092     3299  
3093         <xsl :variable  name="VarV erticalSca lingAsText ">   3300              <xsl:other wise>
3094          <xs l:choose>   3301               <xsl:value -of select ="1" />
3095           <x sl:when te st="$VarHe ight &gt;  0">   3302              </xsl:othe rwise>
3096            < 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')))" />   3303             </xsl:choo se>
3097            < xsl:value- of select= "number($V arHeight)  div number ($VarHeigh tAsPixels) " />   3304            </xsl:vari able>
3098           </ xsl:when>        
3099                   
3100           
<xsl:other wise>
       
3101            
<xsl:value -of select ="1" />
       
3102           
</xsl:othe rwise>
       
3103          
</xsl:choo se>
       
3104         
</xsl:vari able>
       
3105     3305  
3106         
<xsl:call- template n ame="Image Map">
  3306            <xsl:call- template n ame="Image Map">
3107          
<xsl:with- param name ="ParamFra me" select ="$ParamFr ame" />
  3307             <xsl:with- param name ="ParamFra me" select ="$ParamFr ame" />
3108          
<xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />
  3308             <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />
3109          
<xsl:with- param name ="ParamCar go" select ="$ V ar
Cargo" />
  3309             <xsl:with- param name ="ParamCar go" select ="$ P ar am Cargo" />
3110          
<xsl:with- param name ="ParamPar entBehavio r" select= "$VarBehav iorFrame"  />
  3310             <xsl:with- param name ="ParamPar entBehavio r" select= "$VarBehav iorFrame"  />
3111          
<xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />
  3311             <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />
3112          
<xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />
  3312             <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />
3113          
<xsl:with- param name ="ParamHor izontalSca ling" sele ct="number ($VarHoriz ontalScali ngAsText)"  />
  3313             <xsl:with- param name ="ParamHor izontalSca ling" sele ct="number ($VarHoriz ontalScali ngAsText)"  />
3114          
<xsl:with- param name ="ParamVer ticalScali ng" select ="number($ VarVertica lScalingAs Text)" />
  3314             <xsl:with- param name ="ParamVer ticalScali ng" select ="number($ VarVertica lScalingAs Text)" />
3115         </xs l: call- t
e mplat e>
  3315          </x sl:call-te mplate>
3116        </ htm l: map >   3316         </xs l: o t h e rwis e>
3117       </ xs l: if >   3317        </ xs l: choose >
        3318       </ htm l: map >
3118      </xsl:i f>   3319      </xsl:i f>
3119     </xsl:fo r-each>        
3120     3320  
3121     
<!--  Frame Foot n otes -->
  3321        <!--  N otes -->
3122     
<!--                    -->
  3322        <!--        
-->
3123     
<xsl:call- template n ame="Conte nt-Notes">
  3323      <xsl:ch oose>
3124      
<xsl:with- param name ="ParamNot es" select ="$VarNote s" />
  3324       <!-- T humbnail - ->
3125      
<xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />
  3325       <!--            - ->
3126      
<xsl:with- param name ="ParamCar go" select ="$ V ar
Cargo" />
  3326       <xsl:w hen test=" $ParamThum bnail">
3127      
<xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />
  3327        <!--  Nothing to  do -->
3128      
<xsl:with- param name ="ParamTOC Data" sele ct="''" />
  3328        <!--                 -->
3129      
<xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />
  3329       </xsl: when>
3130     </xsl: call - t e mpl a te >   3330  
        3331       <!-- F ullsize -- >
        3332       <!--           -- >
        3333       <xsl:o therwise>
        3334        <!--  Frame Foot notes -->
        3335        <!--                   -->
        3336        <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" />
        3337          <xsl:call- template n ame="Conte nt-Notes">
        3338           <xsl:with- param name ="ParamNot es" select ="$VarNote s" />
        3339           <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" />
        3340           <xsl:with- param name ="ParamCar go" select ="$ P ar am Cargo" />
        3341           <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" />
        3342           <xsl:with- param name ="ParamTOC Data" sele ct="''" />
        3343           <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" />
        3344        </xsl :call-temp late>
        3345       </xsl: otherwise>
        3346      </xsl:c hoose>
        3347     </xsl: for -
e
a ch >
3131    </xsl:tem plate>   3348    </xsl:tem plate>
3132     3349  
3133     3350  
3134    <xsl:temp late name= "ImageMap" >   3351    <xsl:temp late name= "ImageMap" >
3135     <xsl:par am name="P aramFrame"  />   3352     <xsl:par am name="P aramFrame"  />
3136     <xsl:par am name="P aramSplits " />   3353     <xsl:par am name="P aramSplits " />
3137     <xsl:par am name="P aramCargo"  />   3354     <xsl:par am name="P aramCargo"  />
3138     <xsl:par am name="P aramParent Behavior"  />   3355     <xsl:par am name="P aramParent Behavior"  />
3139     <xsl:par am name="P aramLinks"  />   3356     <xsl:par am name="P aramLinks"  />
3140     <xsl:par am name="P aramSplit"  />   3357     <xsl:par am name="P aramSplit"  />
3141     <xsl:par am name="P aramHorizo ntalScalin g" />   3358     <xsl:par am name="P aramHorizo ntalScalin g" />
3142     <xsl:par am name="P aramVertic alScaling"  />   3359     <xsl:par am name="P aramVertic alScaling"  />
3143     3360  
3144     <!-- Pro cess child  frames fi rst -->   3361     <!-- Pro cess child  frames fi rst -->
3145     <!--                               -->   3362     <!--                               -->
3146     <xsl:for -each sele ct="$Param Frame/wwdo c:Content/ /wwdoc:Fra me[count($ ParamFrame  | ancesto r::wwdoc:F rame[1]) =  1]">   3363     <xsl:for -each sele ct="$Param Frame/wwdo c:Content/ /wwdoc:Fra me[count($ ParamFrame  | ancesto r::wwdoc:F rame[1]) =  1]">
3147      <xsl:ca ll-templat e name="Im ageMap">   3364      <xsl:ca ll-templat e name="Im ageMap">
3148       <xsl:w ith-param  name="Para mFrame" se lect="." / >   3365       <xsl:w ith-param  name="Para mFrame" se lect="." / >
3149       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />   3366       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  />
3150       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >   3367       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / >
3151       <xsl:w ith-param  name="Para mParentBeh avior" sel ect="$Para mParentBeh avior" />   3368       <xsl:w ith-param  name="Para mParentBeh avior" sel ect="$Para mParentBeh avior" />
3152       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >   3369       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / >
3153       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >   3370       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / >
3154       <xsl:w ith-param  name="Para mHorizonta lScaling"  select="$P aramHorizo ntalScalin g" />   3371       <xsl:w ith-param  name="Para mHorizonta lScaling"  select="$P aramHorizo ntalScalin g" />
3155       <xsl:w ith-param  name="Para mVerticalS caling" se lect="$Par amVertical Scaling" / >   3372       <xsl:w ith-param  name="Para mVerticalS caling" se lect="$Par amVertical Scaling" / >
3156      </xsl:c all-templa te>   3373      </xsl:c all-templa te>
3157     </xsl:fo r-each>   3374     </xsl:fo r-each>
3158     3375  
3159     <!-- Get  link -->   3376     <!-- Get  link -->
3160     <!--           -->   3377     <!--           -->
3161     <xsl:var iable name ="VarLinkI nfoAsXML">   3378     <xsl:var iable name ="VarLinkI nfoAsXML">
3162      <xsl:ch oose>   3379      <xsl:ch oose>
3163       <xsl:w hen test=" count($Par amFrame/ww doc:Link[1 ]) = 1">   3380       <xsl:w hen test=" count($Par amFrame/ww doc:Link[1 ]) = 1">
3164        <xsl: call-templ ate name=" LinkInfo">   3381        <xsl: call-templ ate name=" LinkInfo">
3165         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />   3382         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" />
3166         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />   3383         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  />
3167         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />   3384         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  />
3168         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mFrame/wwd oc:Link" / >   3385         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mFrame/wwd oc:Link" / >
3169        </xsl :call-temp late>   3386        </xsl :call-temp late>
3170       </xsl: when>   3387       </xsl: when>
3171     3388  
3172       <xsl:o therwise>   3389       <xsl:o therwise>
3173        <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]" />   3390        <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]" />
3174        <xsl: variable n ame="VarCh ildLinksCo unt" selec t="count($ VarChildLi nks)" />   3391        <xsl: variable n ame="VarCh ildLinksCo unt" selec t="count($ VarChildLi nks)" />
3175        <xsl: if test="$ VarChildLi nksCount & gt; 0">   3392        <xsl: if test="$ VarChildLi nksCount & gt; 0">
3176         <xsl :call-temp late name= "LinkInfo" >   3393         <xsl :call-temp late name= "LinkInfo" >
3177          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />   3394          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" />
3178          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " />   3395          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " />
3179          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " />   3396          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " />
3180          <xs l:with-par am name="P aramDocume ntLink" se lect="$Var ChildLinks [$VarChild LinksCount ]" />   3397          <xs l:with-par am name="P aramDocume ntLink" se lect="$Var ChildLinks [$VarChild LinksCount ]" />
3181         </xs l:call-tem plate>   3398         </xs l:call-tem plate>
3182        </xsl :if>   3399        </xsl :if>
3183       </xsl: otherwise>   3400       </xsl: otherwise>
3184      </xsl:c hoose>   3401      </xsl:c hoose>
3185     </xsl:va riable>   3402     </xsl:va riable>
3186     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" />   3403     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" />
3187     3404  
3188     <xsl:if  test="(str ing-length ($VarLinkI nfo/@href)  &gt; 0) o r (string- length($Va rLinkInfo/ @onMouseOv er) &gt; 0 )">   3405     <xsl:if  test="(str ing-length ($VarLinkI nfo/@href)  &gt; 0) o r (string- length($Va rLinkInfo/ @onMouseOv er) &gt; 0 )">
3189      <!-- Ge t coords a ttribute - ->   3406      <!-- Ge t coords a ttribute - ->
3190      <!--                        - ->   3407      <!--                        - ->
3191      <xsl:va riable nam e="VarLeft AsPixels">   3408      <xsl:va riable nam e="VarLeft AsPixels">
3192       <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'))) " />   3409       <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'))) " />
3193       <xsl:c hoose>   3410       <xsl:c hoose>
3194        <xsl: when test= "$ParamHor izontalSca ling != 1" >   3411        <xsl: when test= "$ParamHor izontalSca ling != 1" >
3195         <xsl :value-of  select="nu mber($VarO rigLeftAsP ixels) * n umber($Par amHorizont alScaling) " />   3412         <xsl :value-of  select="nu mber($VarO rigLeftAsP ixels) * n umber($Par amHorizont alScaling) " />
3196        </xsl :when>   3413        </xsl :when>
3197        <xsl: otherwise>   3414        <xsl: otherwise>
3198         <xsl :value-of  select="$V arOrigLeft AsPixels"  />   3415         <xsl :value-of  select="$V arOrigLeft AsPixels"  />
3199        </xsl :otherwise >   3416        </xsl :otherwise >
3200       </xsl: choose>   3417       </xsl: choose>
3201      </xsl:v ariable>   3418      </xsl:v ariable>
3202     3419  
3203      <xsl:va riable nam e="VarTopA sPixels">   3420      <xsl:va riable nam e="VarTopA sPixels">
3204       <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')))"  />   3421       <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')))"  />
3205       <xsl:c hoose>   3422       <xsl:c hoose>
3206        <xsl: when test= "$ParamVer ticalScali ng != 1">   3423        <xsl: when test= "$ParamVer ticalScali ng != 1">
3207         <xsl :value-of  select="nu mber($VarO rigTopAsPi xels) * nu mber($Para mVerticalS caling)" / >   3424         <xsl :value-of  select="nu mber($VarO rigTopAsPi xels) * nu mber($Para mVerticalS caling)" / >
3208        </xsl :when>   3425        </xsl :when>
3209        <xsl: otherwise>   3426        <xsl: otherwise>
3210         <xsl :value-of  select="$V arOrigTopA sPixels" / >   3427         <xsl :value-of  select="$V arOrigTopA sPixels" / >
3211        </xsl :otherwise >   3428        </xsl :otherwise >
3212       </xsl: choose>   3429       </xsl: choose>
3213      </xsl:v ariable>   3430      </xsl:v ariable>
3214     3431  
3215      <xsl:va riable nam e="VarWidt hAsPixels" >   3432      <xsl:va riable nam e="VarWidt hAsPixels" >
3216       <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') ))" />   3433       <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') ))" />
3217       <xsl:c hoose>   3434       <xsl:c hoose>
3218        <xsl: when test= "$ParamHor izontalSca ling != 1" >   3435        <xsl: when test= "$ParamHor izontalSca ling != 1" >
3219         <xsl :value-of  select="nu mber($VarO rigWidthAs Pixels) *  number($Pa ramHorizon talScaling )" />   3436         <xsl :value-of  select="nu mber($VarO rigWidthAs Pixels) *  number($Pa ramHorizon talScaling )" />
3220        </xsl :when>   3437        </xsl :when>
3221        <xsl: otherwise>   3438        <xsl: otherwise>
3222         <xsl :value-of  select="$V arOrigWidt hAsPixels"  />   3439         <xsl :value-of  select="$V arOrigWidt hAsPixels"  />
3223        </xsl :otherwise >   3440        </xsl :otherwise >
3224       </xsl: choose>   3441       </xsl: choose>
3225      </xsl:v ariable>   3442      </xsl:v ariable>
3226     3443  
3227      <xsl:va riable nam e="VarHeig htAsPixels ">   3444      <xsl:va riable nam e="VarHeig htAsPixels ">
3228       <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 ')))" />   3445       <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 ')))" />
3229       <xsl:c hoose>   3446       <xsl:c hoose>
3230        <xsl: when test= "$ParamVer ticalScali ng != 1">   3447        <xsl: when test= "$ParamVer ticalScali ng != 1">
3231         <xsl :value-of  select="nu mber($VarO rigHeightA sPixels) *  number($P aramVertic alScaling) " />   3448         <xsl :value-of  select="nu mber($VarO rigHeightA sPixels) *  number($P aramVertic alScaling) " />
3232        </xsl :when>   3449        </xsl :when>
3233        <xsl: otherwise>   3450        <xsl: otherwise>
3234         <xsl :value-of  select="$V arOrigHeig htAsPixels " />   3451         <xsl :value-of  select="$V arOrigHeig htAsPixels " />
3235        </xsl :otherwise >   3452        </xsl :otherwise >
3236       </xsl: choose>   3453       </xsl: choose>
3237      </xsl:v ariable>   3454      </xsl:v ariable>
3238     3455  
3239      <!-- co ords -->   3456      <!-- co ords -->
3240      <!--         -->   3457      <!--         -->
3241      <xsl:va riable nam e="VarCoor dsString">   3458      <xsl:va riable nam e="VarCoor dsString">
3242       <xsl:c hoose>   3459       <xsl:c hoose>
3243        <xsl: when test= "string-le ngth($VarL eftAsPixel s) &gt; 0" >   3460        <xsl: when test= "string-le ngth($VarL eftAsPixel s) &gt; 0" >
3244         <xsl :value-of  select="$V arLeftAsPi xels" />   3461         <xsl :value-of  select="$V arLeftAsPi xels" />
3245        </xsl :when>   3462        </xsl :when>
3246        <xsl: otherwise>   3463        <xsl: otherwise>
3247         <xsl :value-of  select="'0 '" />   3464         <xsl :value-of  select="'0 '" />
3248        </xsl :otherwise >   3465        </xsl :otherwise >
3249       </xsl: choose>   3466       </xsl: choose>
3250     3467  
3251       <xsl:v alue-of se lect="','" />   3468       <xsl:v alue-of se lect="','" />
3252     3469  
3253       <xsl:c hoose>   3470       <xsl:c hoose>
3254        <xsl: when test= "string-le ngth($VarT opAsPixels ) &gt; 0">   3471        <xsl: when test= "string-le ngth($VarT opAsPixels ) &gt; 0">
3255         <xsl :value-of  select="$V arTopAsPix els" />   3472         <xsl :value-of  select="$V arTopAsPix els" />
3256        </xsl :when>   3473        </xsl :when>
3257        <xsl: otherwise>   3474        <xsl: otherwise>
3258         <xsl :value-of  select="'0 '" />   3475         <xsl :value-of  select="'0 '" />
3259        </xsl :otherwise >   3476        </xsl :otherwise >
3260       </xsl: choose>   3477       </xsl: choose>
3261     3478  
3262       <xsl:v alue-of se lect="','" />   3479       <xsl:v alue-of se lect="','" />
3263     3480  
3264       <xsl:c hoose>   3481       <xsl:c hoose>
3265        <xsl: when test= "string-le ngth($VarW idthAsPixe ls) &gt; 0 ">   3482        <xsl: when test= "string-le ngth($VarW idthAsPixe ls) &gt; 0 ">
3266         <xsl :value-of  select="st ring(numbe r($VarWidt hAsPixels)  + number( $VarLeftAs Pixels))"  />   3483         <xsl :value-of  select="st ring(numbe r($VarWidt hAsPixels)  + number( $VarLeftAs Pixels))"  />
3267        </xsl :when>   3484        </xsl :when>
3268        <xsl: otherwise>   3485        <xsl: otherwise>
3269         <xsl :value-of  select="'0 '" />   3486         <xsl :value-of  select="'0 '" />
3270        </xsl :otherwise >   3487        </xsl :otherwise >
3271       </xsl: choose>   3488       </xsl: choose>
3272     3489  
3273       <xsl:v alue-of se lect="','" />   3490       <xsl:v alue-of se lect="','" />
3274     3491  
3275       <xsl:c hoose>   3492       <xsl:c hoose>
3276        <xsl: when test= "string-le ngth($VarH eightAsPix els) &gt;  0">   3493        <xsl: when test= "string-le ngth($VarH eightAsPix els) &gt;  0">
3277         <xsl :value-of  select="st ring(numbe r($VarHeig htAsPixels ) + number ($VarTopAs Pixels))"  />   3494         <xsl :value-of  select="st ring(numbe r($VarHeig htAsPixels ) + number ($VarTopAs Pixels))"  />
3278        </xsl :when>   3495        </xsl :when>
3279        <xsl: otherwise>   3496        <xsl: otherwise>
3280         <xsl :value-of  select="'0 '" />   3497         <xsl :value-of  select="'0 '" />
3281        </xsl :otherwise >   3498        </xsl :otherwise >
3282       </xsl: choose>   3499       </xsl: choose>
3283      </xsl:v ariable>   3500      </xsl:v ariable>
3284     3501  
3285      <!-- al t -->   3502      <!-- al t -->
3286      <!--      -->   3503      <!--      -->
3287      <xsl:va riable nam e="VarAltT ext">   3504      <xsl:va riable nam e="VarAltT ext">
3288       <xsl:c all-templa te name="I mages-Imag eAreaAltTe xt">   3505       <xsl:c all-templa te name="I mages-Imag eAreaAltTe xt">
3289        <xsl: with-param  name="Par amParentBe havior" se lect="$Par amParentBe havior" />   3506        <xsl: with-param  name="Par amParentBe havior" se lect="$Par amParentBe havior" />
3290        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  />   3507        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  />
3291       </xsl: call-templ ate>   3508       </xsl: call-templ ate>
3292      </xsl:v ariable>   3509      </xsl:v ariable>
3293     3510  
3294      <!-- ar ea -->   3511      <!-- ar ea -->
3295      <!--       -->   3512      <!--       -->
3296      <html:a rea href=" {$VarLinkI nfo/@href} " coords=" {$VarCoord sString}"  shape="rec t">   3513      <html:a rea href=" {$VarLinkI nfo/@href} " coords=" {$VarCoord sString}"  shape="rec t">
3297       <!-- t arget -->   3514       <!-- t arget -->
3298       <!--         -->   3515       <!--         -->
3299       <xsl:i f test="st ring-lengt h($VarLink Info/@targ et) &gt; 0 ">   3516       <xsl:i f test="st ring-lengt h($VarLink Info/@targ et) &gt; 0 ">
3300        <xsl: attribute  name="targ et">   3517        <xsl: attribute  name="targ et">
3301         <xsl :value-of  select="$V arLinkInfo /@target"  />   3518         <xsl :value-of  select="$V arLinkInfo /@target"  />
3302        </xsl :attribute >   3519        </xsl :attribute >
3303       </xsl: if>   3520       </xsl: if>
3304     3521  
3305       <!-- o nMouseOver  -->   3522       <!-- o nMouseOver  -->
3306       <!--               -->   3523       <!--               -->
3307       <xsl:i f test="st ring-lengt h($VarLink Info/@onMo useOver) & gt; 0">   3524       <xsl:i f test="st ring-lengt h($VarLink Info/@onMo useOver) & gt; 0">
3308        <xsl: attribute  name="onMo useOver">   3525        <xsl: attribute  name="onMo useOver">
3309         <xsl :value-of  select="$V arLinkInfo /@onMouseO ver" />   3526         <xsl :value-of  select="$V arLinkInfo /@onMouseO ver" />
3310        </xsl :attribute >   3527        </xsl :attribute >
3311       </xsl: if>   3528       </xsl: if>
3312     3529  
3313       <!-- o nMouseOut  -->   3530       <!-- o nMouseOut  -->
3314       <!--              -->   3531       <!--              -->
3315       <xsl:i f test="st ring-lengt h($VarLink Info/@onMo useOut) &g t; 0">   3532       <xsl:i f test="st ring-lengt h($VarLink Info/@onMo useOut) &g t; 0">
3316        <xsl: attribute  name="onMo useOut">   3533        <xsl: attribute  name="onMo useOut">
3317         <xsl :value-of  select="$V arLinkInfo /@onMouseO ut" />   3534         <xsl :value-of  select="$V arLinkInfo /@onMouseO ut" />
3318        </xsl :attribute >   3535        </xsl :attribute >
3319       </xsl: if>   3536       </xsl: if>
3320     3537  
3321       <!-- a lt -->   3538       <!-- a lt -->
3322       <!--      -->   3539       <!--      -->
3323       <xsl:a ttribute n ame="alt">   3540       <xsl:a ttribute n ame="alt">
3324        <xsl: value-of s elect="$Va rAltText"  />   3541        <xsl: value-of s elect="$Va rAltText"  />
3325       </xsl: attribute>   3542       </xsl: attribute>
3326      </html: area>   3543      </html: area>
3327     </xsl:if >   3544     </xsl:if >
3328    </xsl:tem plate>   3545    </xsl:tem plate>
3329   </xsl:styl esheet>   3546   </xsl:styl esheet>