61. Araxis Merge File Comparison Report

Produced by Araxis Merge on Thu Oct 16 22:30:04 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.

61.1 Files compared

# Location File Last Modified
1 C:\Documents and Settings\lauren\Desktop\ww-version-snapshots\ww-version-snapshots\2008.2\WebWorks\ePublisher Pro\Formats\WebWorks Help 5.0\Transforms content.xsl Wed Jul 2 00:18:22 2008 UTC
2 C:\Documents and Settings\lauren\Desktop\ww-version-snapshots\ww-version-snapshots\2008.3\WebWorks\ePublisher Pro\Formats\WebWorks Help 5.0\Transforms content.xsl Mon Oct 13 05:52:00 2008 UTC

61.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 7088
Changed 0 0
Inserted 0 0
Removed 2 2

61.3 Comparison options

Whitespace All differences in whitespace within lines are ignored
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

61.4 Active regular expressions

No regular expressions were active.

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