44. Araxis Merge File Comparison Report

Produced by Araxis Merge on Wed Jan 21 22:23:32 2009 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.

44.1 Files compared

# Location File Last Modified
1 Q:\Formats.2008.3.20682\WebWorks Help 5.0\Transforms content.xsl Mon Oct 13 05:52:00 2008 UTC
2 Q:\Formats.2008.4.20859\WebWorks Help 5.0\Transforms content.xsl Mon Jan 19 18:02:50 2009 UTC

44.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 20 7080
Changed 6 25
Inserted 6 22
Removed 0 0

44.3 Comparison options

Whitespace Differences in whitespace at the start of 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 Shown in the comparison detail

44.4 Active regular expressions

Expression Description
\$(Id|Author|Date|Header|Id|Locker|Name|RCSfile|Revision|Source|State):[^$]*\$ CVS comments
<LastModified>.*</LastModified> last modified
- Title ignore - Title

44.5 Comparison detail

1   <?xml vers ion="1.0"  encoding=" UTF-8"?> CR LF   1   <?xml vers ion="1.0"  encoding=" UTF-8"?> CR LF
2   <xsl:style sheet vers ion="1.0"  xmlns="htt p://www.w3 .org/1999/ xhtml" CR LF   2   <xsl:style sheet vers ion="1.0"  xmlns="htt p://www.w3 .org/1999/ xhtml" CR LF
3                                    xmlns:html ="http://w ww.w3.org/ 1999/xhtml " CR LF   3                                    xmlns:html ="http://w ww.w3.org/ 1999/xhtml " CR LF
4                                    xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform" CR LF   4                                    xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform" CR LF
5                                    xmlns:msxs l="urn:sch emas-micro soft-com:x slt" CR LF   5                                    xmlns:msxs l="urn:sch emas-micro soft-com:x slt" CR LF
6                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode" CR LF   6                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode" CR LF
7                                    xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema" CR LF   7                                    xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema" CR LF
8                                    xmlns:wwal inks="urn: WebWorks-A Links-Sche ma" CR LF   8                                    xmlns:wwal inks="urn: WebWorks-A Links-Sche ma" CR LF
9                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema" CR LF   9                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema" CR LF
10                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a" CR LF   10                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a" CR LF
11                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema" CR LF   11                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema" CR LF
12                                    xmlns:wwto c="urn:Web Works-Engi ne-TOC-Sch ema" CR LF   12                                    xmlns:wwto c="urn:Web Works-Engi ne-TOC-Sch ema" CR LF
13                                    xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema" CR LF   13                                    xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema" CR LF
14                                    xmlns:wwno tes="urn:W ebWorks-Fo otnote-Sch ema" CR LF   14                                    xmlns:wwno tes="urn:W ebWorks-Fo otnote-Sch ema" CR LF
15                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject" CR LF   15                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject" CR LF
16                                    xmlns:wwpa ge="urn:We bWorks-Pag e-Template -Schema" CR LF   16                                    xmlns:wwpa ge="urn:We bWorks-Pag e-Template -Schema" CR LF
17                                    xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma" CR LF   17                                    xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma" CR LF
18                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress" CR LF   18                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress" CR LF
19                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log" CR LF   19                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log" CR LF
20                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem" CR LF   20                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem" CR LF
21                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI" CR LF   21                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI" CR LF
22                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities" CR LF   22                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities" CR LF
23                                    xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units" CR LF   23                                    xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units" CR LF
24                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s" CR LF   24                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s" CR LF
25                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct" CR LF   25                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct" CR LF
26                                    xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng" CR LF   26                                    xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng" CR LF
27                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent" CR LF   27                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent" CR LF
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" CR LF   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" CR LF
29   > CR LF   29   > CR LF
30    <xsl:key  name="wwsp lits-files -by-groupi d-type" ma tch="wwspl its:File"  use="conca t(@groupID , ':', @ty pe)" /> CR LF   30    <xsl:key  name="wwsp lits-files -by-groupi d-type" ma tch="wwspl its:File"  use="conca t(@groupID , ':', @ty pe)" /> CR LF
31    <xsl:key  name="wwsp lits-files -by-source -lowercase " match="w wsplits:Fi le" use="@ source-low ercase" /> CR LF   31    <xsl:key  name="wwsp lits-files -by-source -lowercase " match="w wsplits:Fi le" use="@ source-low ercase" /> CR LF
32    <xsl:key  name="wwsp lits-frame s-by-id" m atch="wwsp lits:Frame " use="@id " /> CR LF   32    <xsl:key  name="wwsp lits-frame s-by-id" m atch="wwsp lits:Frame " use="@id " /> CR LF
33    <xsl:key  name="wwsp lits-popup s-by-id" m atch="wwsp lits:Popup " use="@id " /> CR LF   33    <xsl:key  name="wwsp lits-popup s-by-id" m atch="wwsp lits:Popup " use="@id " /> CR LF
34    <xsl:key  name="wwto c-entry-by -id" match ="wwtoc:En try" use=" @id" /> CR LF   34    <xsl:key  name="wwto c-entry-by -id" match ="wwtoc:En try" use=" @id" /> CR LF
35    <xsl:key  name="wwbe haviors-pa ragraphs-b y-id" matc h="wwbehav iors:Parag raph" use= "@id" /> CR LF   35    <xsl:key  name="wwbe haviors-pa ragraphs-b y-id" matc h="wwbehav iors:Parag raph" use= "@id" /> CR LF
36    <xsl:key  name="wwbe haviors-pa ragraphs-b y-relatedt opic" matc h="wwbehav iors:Parag raph" use= "@relatedt opic" /> CR LF   36    <xsl:key  name="wwbe haviors-pa ragraphs-b y-relatedt opic" matc h="wwbehav iors:Parag raph" use= "@relatedt opic" /> CR LF
37    <xsl:key  name="wwbe haviors-fr ames-by-id " match="w wbehaviors :Frame" us e="@id" /> CR LF   37    <xsl:key  name="wwbe haviors-fr ames-by-id " match="w wbehaviors :Frame" us e="@id" /> CR LF
38    <xsl:key  name="wwbe haviors-ta bles-by-id " match="w wbehaviors :Table" us e="@id" /> CR LF   38    <xsl:key  name="wwbe haviors-ta bles-by-id " match="w wbehaviors :Table" us e="@id" /> CR LF
    39    <xsl:key  name="wwbe haviors-ma rkers-by-i d" match=" wwbehavior s:Marker"  use="@id"  /> CR LF
39    <xsl:key  name="wwdo c-paragrap hs-by-id"  match="wwd oc:Paragra ph" use="@ id" /> CR LF   40    <xsl:key  name="wwdo c-paragrap hs-by-id"  match="wwd oc:Paragra ph" use="@ id" /> CR LF
40    <xsl:key  name="wwdo c-text-by- value" mat ch="wwdoc: Text" use= "@value" / > CR LF   41    <xsl:key  name="wwdo c-text-by- value" mat ch="wwdoc: Text" use= "@value" / > CR LF
41    <xsl:key  name="wwno tes-notes- by-id" mat ch="wwnote s:Note" us e="@id" /> CR LF   42    <xsl:key  name="wwno tes-notes- by-id" mat ch="wwnote s:Note" us e="@id" /> CR LF
42    <xsl:key  name="wwfi les-files- by-path" m atch="wwfi les:File"  use="@path " /> CR LF   43    <xsl:key  name="wwfi les-files- by-path" m atch="wwfi les:File"  use="@path " /> CR LF
43    <xsl:key  name="wwpr oject-prop erty-by-na me" match= "wwproject :Property"  use="@Nam e"/> CR LF   44    <xsl:key  name="wwpr oject-prop erty-by-na me" match= "wwproject :Property"  use="@Nam e"/> CR LF
44   CR LF   45   CR LF
45   CR LF   46   CR LF
46    <xsl:temp late name= "Breadcrum bs"> CR LF   47    <xsl:temp late name= "Breadcrum bs"> CR LF
47     <xsl:par am name="P aramPageRu le" /> CR LF   48     <xsl:par am name="P aramPageRu le" /> CR LF
48     <xsl:par am name="P aramSplit"  /> CR LF   49     <xsl:par am name="P aramSplit"  /> CR LF
49     <xsl:par am name="P aramBreadc rumbTOCEnt ry" /> CR LF   50     <xsl:par am name="P aramBreadc rumbTOCEnt ry" /> CR LF
50   CR LF   51   CR LF
51     <xsl:for -each sele ct="$Param Breadcrumb TOCEntry/. ./ancestor -or-self:: wwtoc:Entr y"> CR LF   52     <xsl:for -each sele ct="$Param Breadcrumb TOCEntry/. ./ancestor -or-self:: wwtoc:Entr y"> CR LF
52      <xsl:va riable nam e="VarTOCE ntry" sele ct="." /> CR LF   53      <xsl:va riable nam e="VarTOCE ntry" sele ct="." /> CR LF
53   CR LF   54   CR LF
54      <!-- Em it entry - -> CR LF   55      <!-- Em it entry - -> CR LF
55      <!--             - -> CR LF   56      <!--             - -> CR LF
56      <xsl:ch oose> CR LF   57      <xsl:ch oose> CR LF
57       <xsl:w hen test=" string-len gth($VarTO CEntry/@pa th) &gt; 0 "> CR LF   58       <xsl:w hen test=" string-len gth($VarTO CEntry/@pa th) &gt; 0 "> CR LF
58        <!--  Entry with  link --> CR LF   59        <!--  Entry with  link --> CR LF
59        <!--                   --> CR LF   60        <!--                   --> CR LF
60        <xsl: variable n ame="VarRe lativePath " select=" wwuri:GetR elativeTo( $VarTOCEnt ry/@path,  $ParamSpli t/@path)"  /> CR LF   61        <xsl: variable n ame="VarRe lativePath " select=" wwuri:GetR elativeTo( $VarTOCEnt ry/@path,  $ParamSpli t/@path)"  /> CR LF
61   CR LF   62   CR LF
62        <html :a class=" WebWorks_B readcrumb_ Link" href ="{$VarRel ativePath} #{$ParamBr eadcrumbTO CEntry/@li nkid}"> CR LF   63        <html :a class=" WebWorks_B readcrumb_ Link" href ="{$VarRel ativePath} #{$ParamBr eadcrumbTO CEntry/@li nkid}"> CR LF
63         <xsl :call-temp late name= "Breadcrum bEntry"> CR LF   64         <xsl :call-temp late name= "Breadcrum bEntry"> CR LF
64          <xs l:with-par am name="P aramTOCEnt ry" select ="$VarTOCE ntry" /> CR LF   65          <xs l:with-par am name="P aramTOCEnt ry" select ="$VarTOCE ntry" /> CR LF
65         </xs l:call-tem plate> CR LF   66         </xs l:call-tem plate> CR LF
66        </htm l:a> CR LF   67        </htm l:a> CR LF
67       </xsl: when> CR LF   68       </xsl: when> CR LF
68   CR LF   69   CR LF
69       <xsl:o therwise> CR LF   70       <xsl:o therwise> CR LF
70        <!--  Entry with out link - -> CR LF   71        <!--  Entry with out link - -> CR LF
71        <!--                      - -> CR LF   72        <!--                      - -> CR LF
72        <xsl: call-templ ate name=" Breadcrumb Entry"> CR LF   73        <xsl: call-templ ate name=" Breadcrumb Entry"> CR LF
73         <xsl :with-para m name="Pa ramTOCEntr y" select= "$VarTOCEn try" /> CR LF   74         <xsl :with-para m name="Pa ramTOCEntr y" select= "$VarTOCEn try" /> CR LF
74        </xsl :call-temp late> CR LF   75        </xsl :call-temp late> CR LF
75       </xsl: otherwise> CR LF   76       </xsl: otherwise> CR LF
76      </xsl:c hoose> CR LF   77      </xsl:c hoose> CR LF
77   CR LF   78   CR LF
78      <!-- Em it separat or --> CR LF   79      <!-- Em it separat or --> CR LF
79      <!--                  --> CR LF   80      <!--                  --> CR LF
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 " /> CR LF   81      <xsl:va riable nam e="VarBrea dcrumbsSep arator" se lect="$Par amPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' breadcrumb s-separato r']/@Value " /> CR LF
81      <xsl:ch oose> CR LF   82      <xsl:ch oose> CR LF
82       <xsl:w hen test=" string-len gth($VarBr eadcrumbsS eparator)  &gt; 0"> CR LF   83       <xsl:w hen test=" string-len gth($VarBr eadcrumbsS eparator)  &gt; 0"> CR LF
83        <xsl: value-of s elect="$Va rBreadcrum bsSeparato r" /> CR LF   84        <xsl: value-of s elect="$Va rBreadcrum bsSeparato r" /> CR LF
84       </xsl: when> CR LF   85       </xsl: when> CR LF
85   CR LF   86   CR LF
86       <xsl:o therwise> CR LF   87       <xsl:o therwise> CR LF
87        <xsl: text> : </ xsl:text> CR LF   88        <xsl: text> : </ xsl:text> CR LF
88       </xsl: otherwise> CR LF   89       </xsl: otherwise> CR LF
89      </xsl:c hoose> CR LF   90      </xsl:c hoose> CR LF
90     </xsl:fo r-each> CR LF   91     </xsl:fo r-each> CR LF
91   CR LF   92   CR LF
92     <!-- Emi t entry -- > CR LF   93     <!-- Emi t entry -- > CR LF
93     <!--             -- > CR LF   94     <!--             -- > CR LF
94     <xsl:cal l-template  name="Bre adcrumbEnt ry"> CR LF   95     <xsl:cal l-template  name="Bre adcrumbEnt ry"> CR LF
95      <xsl:wi th-param n ame="Param TOCEntry"  select="$P aramBreadc rumbTOCEnt ry" /> CR LF   96      <xsl:wi th-param n ame="Param TOCEntry"  select="$P aramBreadc rumbTOCEnt ry" /> CR LF
96     </xsl:ca ll-templat e> CR LF   97     </xsl:ca ll-templat e> CR LF
97    </xsl:tem plate> CR LF   98    </xsl:tem plate> CR LF
98   CR LF   99   CR LF
99   CR LF   100   CR LF
100    <xsl:temp late name= "Breadcrum bEntry"> CR LF   101    <xsl:temp late name= "Breadcrum bEntry"> CR LF
101     <xsl:par am name="P aramTOCEnt ry" /> CR LF   102     <xsl:par am name="P aramTOCEnt ry" /> CR LF
102   CR LF   103   CR LF
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"> CR LF   104     <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"> CR LF
104      <xsl:va riable nam e="VarText " select=" ." /> CR LF   105      <xsl:va riable nam e="VarText " select=" ." /> CR LF
105   CR LF   106   CR LF
106      <xsl:va lue-of sel ect="$VarT ext/@value " /> CR LF   107      <xsl:va lue-of sel ect="$VarT ext/@value " /> CR LF
107     </xsl:fo r-each> CR LF   108     </xsl:fo r-each> CR LF
108    </xsl:tem plate> CR LF   109    </xsl:tem plate> CR LF
109   CR LF   110   CR LF
110   CR LF   111   CR LF
111    <xsl:temp late name= "Content-C ontent"> CR LF   112    <xsl:temp late name= "Content-C ontent"> CR LF
112     <xsl:par am name="P aramConten t" /> CR LF   113     <xsl:par am name="P aramConten t" /> CR LF
113     <xsl:par am name="P aramSplits " /> CR LF   114     <xsl:par am name="P aramSplits " /> CR LF
114     <xsl:par am name="P aramCargo"  /> CR LF   115     <xsl:par am name="P aramCargo"  /> CR LF
115     <xsl:par am name="P aramLinks"  /> CR LF   116     <xsl:par am name="P aramLinks"  /> CR LF
116     <xsl:par am name="P aramTOCDat a" /> CR LF   117     <xsl:par am name="P aramTOCDat a" /> CR LF
117     <xsl:par am name="P aramSplit"  /> CR LF   118     <xsl:par am name="P aramSplit"  /> CR LF
118   CR LF   119   CR LF
119     <!-- Con tent --> CR LF   120     <!-- Con tent --> CR LF
120     <!--          --> CR LF   121     <!--          --> CR LF
121     <xsl:app ly-templat es select= "$ParamCon tent" mode ="wwmode:c ontent"> CR LF   122     <xsl:app ly-templat es select= "$ParamCon tent" mode ="wwmode:c ontent"> CR LF
122      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   123      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
123      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF   124      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF
124      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   125      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
125      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> CR LF   126      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> CR LF
126      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   127      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
127     </xsl:ap ply-templa tes> CR LF   128     </xsl:ap ply-templa tes> CR LF
128   CR LF   129   CR LF
129     <!-- Rel ated Topic s --> CR LF   130     <!-- Rel ated Topic s --> CR LF
130     <!--                  --> CR LF   131     <!--                  --> CR LF
131     <xsl:cal l-template  name="Rel atedTopics "> CR LF   132     <xsl:cal l-template  name="Rel atedTopics "> CR LF
132      <xsl:wi th-param n ame="Param Content" s elect="$Pa ramContent " /> CR LF   133      <xsl:wi th-param n ame="Param Content" s elect="$Pa ramContent " /> CR LF
133      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   134      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
134      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF   135      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF
135      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   136      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
136      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   137      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
137     </xsl:ca ll-templat e> CR LF   138     </xsl:ca ll-templat e> CR LF
138    </xsl:tem plate> CR LF   139    </xsl:tem plate> CR LF
139   CR LF   140   CR LF
140   CR LF   141   CR LF
141    <xsl:temp late name= "RelatedTo pics"> CR LF   142    <xsl:temp late name= "RelatedTo pics"> CR LF
142     <xsl:par am name="P aramConten t" /> CR LF   143     <xsl:par am name="P aramConten t" /> CR LF
143     <xsl:par am name="P aramSplits " /> CR LF   144     <xsl:par am name="P aramSplits " /> CR LF
144     <xsl:par am name="P aramCargo"  /> CR LF   145     <xsl:par am name="P aramCargo"  /> CR LF
145     <xsl:par am name="P aramLinks"  /> CR LF   146     <xsl:par am name="P aramLinks"  /> CR LF
146     <xsl:par am name="P aramSplit"  /> CR LF   147     <xsl:par am name="P aramSplit"  /> CR LF
147   CR LF   148   CR LF
148     <xsl:var iable name ="VarRelat edTopicPar agraphsAsX ML"> CR LF   149     <xsl:var iable name ="VarRelat edTopicPar agraphsAsX ML"> CR LF
149      <xsl:ca ll-templat e name="Re latedTopic Paragraphs "> CR LF   150      <xsl:ca ll-templat e name="Re latedTopic Paragraphs "> CR LF
150       <xsl:w ith-param  name="Para mContent"  select="$P aramConten t" /> CR LF   151       <xsl:w ith-param  name="Para mContent"  select="$P aramConten t" /> CR LF
151       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   152       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
152       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   153       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
153      </xsl:c all-templa te> CR LF   154      </xsl:c all-templa te> CR LF
154     </xsl:va riable> CR LF   155     </xsl:va riable> CR LF
155     <xsl:var iable name ="VarRelat edTopicPar agraphs" s elect="msx sl:node-se t($VarRela tedTopicPa ragraphsAs XML)/wwdoc :Paragraph " /> CR LF   156     <xsl:var iable name ="VarRelat edTopicPar agraphs" s elect="msx sl:node-se t($VarRela tedTopicPa ragraphsAs XML)/wwdoc :Paragraph " /> CR LF
156   CR LF   157   CR LF
157     <html:sc ript type= "text/java script" la nguage="Ja vaScript1. 2"> CR LF   158     <html:sc ript type= "text/java script" la nguage="Ja vaScript1. 2"> CR LF
158      <xsl:co mment> CR LF   159      <xsl:co mment> CR LF
159       <xsl:t ext> CR LF   160       <xsl:t ext> CR LF
160   </xsl:text > CR LF   161   </xsl:text > CR LF
161       <xsl:t ext>           // Cle ar related  topics CR LF   162       <xsl:t ext>           // Cle ar related  topics CR LF
162   </xsl:text > CR LF   163   </xsl:text > CR LF
163       <xsl:t ext>           // CR LF   164       <xsl:t ext>           // CR LF
164   </xsl:text > CR LF   165   </xsl:text > CR LF
165       <xsl:t ext>           WWHCle arRelatedT opics(); CR LF   166       <xsl:t ext>           WWHCle arRelatedT opics(); CR LF
166   </xsl:text > CR LF   167   </xsl:text > CR LF
167   CR LF   168   CR LF
168       <xsl:i f test="co unt($VarRe latedTopic Paragraphs ) &gt; 0"> CR LF   169       <xsl:i f test="co unt($VarRe latedTopic Paragraphs ) &gt; 0"> CR LF
169        <xsl: text> CR LF   170        <xsl: text> CR LF
170   </xsl:text > CR LF   171   </xsl:text > CR LF
171        <xsl: text>           // Ad d related  topics CR LF   172        <xsl: text>           // Ad d related  topics CR LF
172   </xsl:text > CR LF   173   </xsl:text > CR LF
173        <xsl: text>           // CR LF   174        <xsl: text>           // CR LF
174   </xsl:text > CR LF   175   </xsl:text > CR LF
175        <xsl: for-each s elect="$Va rRelatedTo picParagra phs"> CR LF   176        <xsl: for-each s elect="$Va rRelatedTo picParagra phs"> CR LF
176         <xsl :variable  name="VarR elatedTopi cParagraph " select=" ." /> CR LF   177         <xsl :variable  name="VarR elatedTopi cParagraph " select=" ." /> CR LF
177   CR LF   178   CR LF
178         <!--  Resolve l ink --> CR LF   179         <!--  Resolve l ink --> CR LF
179         <!--                --> CR LF   180         <!--                --> CR LF
180         <xsl :variable  name="VarR esolvedLin kInfoAsXML "> CR LF   181         <xsl :variable  name="VarR esolvedLin kInfoAsXML "> CR LF
181          <xs l:call-tem plate name ="Links-Re solve"> CR LF   182          <xs l:call-tem plate name ="Links-Re solve"> CR LF
182           <x sl:with-pa ram name=" ParamAllow Baggage" s elect="$Pa rameterAll owBaggage"  /> CR LF   183           <x sl:with-pa ram name=" ParamAllow Baggage" s elect="$Pa rameterAll owBaggage"  /> CR LF
183           <x sl:with-pa ram name=" ParamAllow GroupToGro up" select ="$Paramet erAllowGro upToGroup"  /> CR LF   184           <x sl:with-pa ram name=" ParamAllow GroupToGro up" select ="$Paramet erAllowGro upToGroup"  /> CR LF
184           <x sl:with-pa ram name=" ParamAllow URL" selec t="$Parame terAllowUR L" /> CR LF   185           <x sl:with-pa ram name=" ParamAllow URL" selec t="$Parame terAllowUR L" /> CR LF
185           <x sl:with-pa ram name=" ParamBagga geSplitFil eType" sel ect="$Para meterBagga geSplitFil eType" /> CR LF   186           <x sl:with-pa ram name=" ParamBagga geSplitFil eType" sel ect="$Para meterBagga geSplitFil eType" /> CR LF
186           <x sl:with-pa ram name=" ParamProje ct" select ="$GlobalP roject" /> CR LF   187           <x sl:with-pa ram name=" ParamProje ct" select ="$GlobalP roject" /> CR LF
187           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   188           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
188           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   189           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
189           <x sl:with-pa ram name=" ParamSplit GroupID" s elect="$Pa ramSplit/@ groupID" / > CR LF   190           <x sl:with-pa ram name=" ParamSplit GroupID" s elect="$Pa ramSplit/@ groupID" / > CR LF
190           <x sl:with-pa ram name=" ParamSplit DocumentID " select=" $ParamSpli t/@documen tID" /> CR LF   191           <x sl:with-pa ram name=" ParamSplit DocumentID " select=" $ParamSpli t/@documen tID" /> CR LF
191           <x sl:with-pa ram name=" ParamDocum entLink" s elect="$Va rRelatedTo picParagra ph/wwdoc:L ink" /> CR LF   192           <x sl:with-pa ram name=" ParamDocum entLink" s elect="$Va rRelatedTo picParagra ph/wwdoc:L ink" /> CR LF
192          </x sl:call-te mplate> CR LF   193          </x sl:call-te mplate> CR LF
193         </xs l:variable > CR LF   194         </xs l:variable > CR LF
194         <xsl :variable  name="VarR esolvedLin kInfo" sel ect="msxsl :node-set( $VarResolv edLinkInfo AsXML)/wwl inks:Resol vedLink" / > CR LF   195         <xsl :variable  name="VarR esolvedLin kInfo" sel ect="msxsl :node-set( $VarResolv edLinkInfo AsXML)/wwl inks:Resol vedLink" / > CR LF
195   CR LF   196   CR LF
196         <xsl :choose> CR LF   197         <xsl :choose> CR LF
197          <!- - Document  --> CR LF   198          <!- - Document  --> CR LF
198          <!- -           --> CR LF   199          <!- -           --> CR LF
199          <xs l:when tes t="($VarRe solvedLink Info/@type  = 'docume nt') or ($ VarResolve dLinkInfo/ @type = 'g roup') or  ($VarResol vedLinkInf o/@type =  'project') "> CR LF   200          <xs l:when tes t="($VarRe solvedLink Info/@type  = 'docume nt') or ($ VarResolve dLinkInfo/ @type = 'g roup') or  ($VarResol vedLinkInf o/@type =  'project') "> CR LF
200           <! -- Project  link --> CR LF   201           <! -- Project  link --> CR LF
201           <! --               --> CR LF   202           <! --               --> CR LF
202           <x sl:variabl e name="Va rGroupName " select=" wwprojext: GetGroupNa me($VarRes olvedLinkI nfo/@group ID)" /> CR LF   203           <x sl:variabl e name="Va rGroupName " select=" wwprojext: GetGroupNa me($VarRes olvedLinkI nfo/@group ID)" /> CR LF
203           <x sl:variabl e name="Va rOutputDir ectoryPath " select=" wwfilesyst em:Combine (wwprojext :GetTarget OutputDire ctoryPath( ), $VarGro upName)" / > CR LF   204           <x sl:variabl e name="Va rOutputDir ectoryPath " select=" wwfilesyst em:Combine (wwprojext :GetTarget OutputDire ctoryPath( ), $VarGro upName)" / > CR LF
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'))" /> CR LF   205           <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'))" /> CR LF
205   CR LF   206   CR LF
206           <! -- Add ent ry --> CR LF   207           <! -- Add ent ry --> CR LF
207           <! --            --> CR LF   208           <! --            --> CR LF
208           <x sl:text>           </ xsl:text> CR LF   209           <x sl:text>           </ xsl:text> CR LF
209           <x sl:text>WW HAddRelate dTopic(&qu ot;</xsl:t ext> CR LF   210           <x sl:text>WW HAddRelate dTopic(&qu ot;</xsl:t ext> CR LF
210   CR LF   211   CR LF
211           <! -- Paragra ph text -- > CR LF   212           <! -- Paragra ph text -- > CR LF
212           <! --                 -- > CR LF   213           <! --                 -- > CR LF
213           <x sl:for-eac h select=" $VarRelate dTopicPara graph/wwdo c:TextRun/ wwdoc:Text "> CR LF   214           <x sl:for-eac h select=" $VarRelate dTopicPara graph/wwdo c:TextRun/ wwdoc:Text "> CR LF
214            < xsl:value- of select= "wwstring: JavaScript Encoding(@ value)" /> CR LF   215            < xsl:value- of select= "wwstring: JavaScript Encoding(@ value)" /> CR LF
215           </ xsl:for-ea ch> CR LF   216           </ xsl:for-ea ch> CR LF
216           <x sl:text>&q uot;, &quo t;</xsl:te xt> CR LF   217           <x sl:text>&q uot;, &quo t;</xsl:te xt> CR LF
217   CR LF   218   CR LF
218           <! -- Context  --> CR LF   219           <! -- Context  --> CR LF
219           <! --          --> CR LF   220           <! --          --> CR LF
220           <x sl:call-te mplate nam e="WWHelpC ontext"> CR LF   221           <x sl:call-te mplate nam e="WWHelpC ontext"> CR LF
221            < xsl:with-p aram name= "ParamProj ect" selec t="$Global Project" / > CR LF   222            < xsl:with-p aram name= "ParamProj ect" selec t="$Global Project" / > CR LF
222            < xsl:with-p aram name= "ParamGrou pID" selec t="$VarRes olvedLinkI nfo/@group ID" /> CR LF   223            < xsl:with-p aram name= "ParamGrou pID" selec t="$VarRes olvedLinkI nfo/@group ID" /> CR LF
223           </ xsl:call-t emplate> CR LF   224           </ xsl:call-t emplate> CR LF
224           <x sl:text>&q uot;, &quo t;</xsl:te xt> CR LF   225           <x sl:text>&q uot;, &quo t;</xsl:te xt> CR LF
225   CR LF   226   CR LF
226           <! -- Link -- > CR LF   227           <! -- Link -- > CR LF
227           <! --      -- > CR LF   228           <! --      -- > CR LF
228           <x sl:value-o f select=" wwstring:J avaScriptE ncoding($V arRelative Path)" /> CR LF   229           <x sl:value-o f select=" wwstring:J avaScriptE ncoding($V arRelative Path)" /> CR LF
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)"> CR LF   230           <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)"> CR LF
230            < xsl:text># </xsl:text > CR LF   231            < xsl:text># </xsl:text > CR LF
231            < xsl:value- of select= "wwstring: JavaScript Encoding($ VarResolve dLinkInfo/ @linkid)"  /> CR LF   232            < xsl:value- of select= "wwstring: JavaScript Encoding($ VarResolve dLinkInfo/ @linkid)"  /> CR LF
232           </ xsl:if> CR LF   233           </ xsl:if> CR LF
233           <x sl:text>&q uot;</xsl: text> CR LF   234           <x sl:text>&q uot;</xsl: text> CR LF
234           <x sl:text>); CR LF   235           <x sl:text>); CR LF
235   </xsl:text > CR LF   236   </xsl:text > CR LF
236          </x sl:when> CR LF   237          </x sl:when> CR LF
237         </xs l:choose> CR LF   238         </xs l:choose> CR LF
238        </xsl :for-each> CR LF   239        </xsl :for-each> CR LF
239       </xsl: if> CR LF   240       </xsl: if> CR LF
240   CR LF   241   CR LF
241       <xsl:t ext> CR LF   242       <xsl:t ext> CR LF
242   </xsl:text > CR LF   243   </xsl:text > CR LF
243       <xsl:t ext>           docume nt.writeln (WWHRelate dTopicsInl ineHTML()) ; CR LF   244       <xsl:t ext>           docume nt.writeln (WWHRelate dTopicsInl ineHTML()) ; CR LF
244   </xsl:text > CR LF   245   </xsl:text > CR LF
245       <xsl:t ext>         // </xsl :text> CR LF   246       <xsl:t ext>         // </xsl :text> CR LF
246      </xsl:c omment> CR LF   247      </xsl:c omment> CR LF
247     </html:s cript> CR LF   248     </html:s cript> CR LF
248    </xsl:tem plate> CR LF   249    </xsl:tem plate> CR LF
249   CR LF   250   CR LF
250   CR LF   251   CR LF
251    <xsl:temp late name= "RelatedTo picParagra phs"> CR LF   252    <xsl:temp late name= "RelatedTo picParagra phs"> CR LF
252     <xsl:par am name="P aramConten t" /> CR LF   253     <xsl:par am name="P aramConten t" /> CR LF
253     <xsl:par am name="P aramCargo"  /> CR LF   254     <xsl:par am name="P aramCargo"  /> CR LF
254     <xsl:par am name="P aramSplit"  /> CR LF   255     <xsl:par am name="P aramSplit"  /> CR LF
255   CR LF   256   CR LF
256     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF   257     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF
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')"  /> CR LF   258      <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')"  /> CR LF
258   CR LF   259   CR LF
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)]"> CR LF   260      <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)]"> CR LF
260       <xsl:v ariable na me="VarBeh aviorParag raph" sele ct="." /> CR LF   261       <xsl:v ariable na me="VarBeh aviorParag raph" sele ct="." /> CR LF
261   CR LF   262   CR LF
262       <xsl:f or-each se lect="$Par amContent[ 1]"> CR LF   263       <xsl:f or-each se lect="$Par amContent[ 1]"> CR LF
263        <xsl: for-each s elect="key ('wwdoc-pa ragraphs-b y-id', $Va rBehaviorP aragraph/@ id)[1]"> CR LF   264        <xsl: for-each s elect="key ('wwdoc-pa ragraphs-b y-id', $Va rBehaviorP aragraph/@ id)[1]"> CR LF
264         <xsl :variable  name="VarP aragraph"  select="."  /> CR LF   265         <xsl :variable  name="VarP aragraph"  select="."  /> CR LF
265   CR LF   266   CR LF
266         <!--  Paragraph  has link?  --> CR LF   267         <!--  Paragraph  has link?  --> CR LF
267         <!--                        --> CR LF   268         <!--                        --> CR LF
268         <xsl :variable  name="VarC hildLinks"  select="$ VarParagra ph//wwdoc: Link[count ($VarParag raph | anc estor::wwd oc:Paragra ph[1]) = 1 ]" /> CR LF   269         <xsl :variable  name="VarC hildLinks"  select="$ VarParagra ph//wwdoc: Link[count ($VarParag raph | anc estor::wwd oc:Paragra ph[1]) = 1 ]" /> CR LF
269         <xsl :variable  name="VarC hildLinksC ount" sele ct="count( $VarChildL inks)" /> CR LF   270         <xsl :variable  name="VarC hildLinksC ount" sele ct="count( $VarChildL inks)" /> CR LF
270         <xsl :if test=" $VarChildL inksCount  &gt; 0"> CR LF   271         <xsl :if test=" $VarChildL inksCount  &gt; 0"> CR LF
271          <!- - Emit par agraph --> CR LF   272          <!- - Emit par agraph --> CR LF
272          <!- -                 --> CR LF   273          <!- -                 --> CR LF
273          <ww doc:Paragr aph> CR LF   274          <ww doc:Paragr aph> CR LF
274           <x sl:copy-of  select="$ VarParagra ph/@*" /> CR LF   275           <x sl:copy-of  select="$ VarParagra ph/@*" /> CR LF
275   CR LF   276   CR LF
276           <! -- Insure  link is de fined --> CR LF   277           <! -- Insure  link is de fined --> CR LF
277           <! --                          --> CR LF   278           <! --                          --> CR LF
278           <x sl:if test ="count($V arParagrap h/wwdoc:Li nk) = 0"> CR LF   279           <x sl:if test ="count($V arParagrap h/wwdoc:Li nk) = 0"> CR LF
279            < xsl:copy-o f select=" $VarChildL inks[1]" / > CR LF   280            < xsl:copy-o f select=" $VarChildL inks[1]" / > CR LF
280           </ xsl:if> CR LF   281           </ xsl:if> CR LF
281   CR LF   282   CR LF
282           <x sl:copy-of  select="$ VarParagra ph/*" /> CR LF   283           <x sl:copy-of  select="$ VarParagra ph/*" /> CR LF
283          </w wdoc:Parag raph> CR LF   284          </w wdoc:Parag raph> CR LF
284         </xs l:if> CR LF   285         </xs l:if> CR LF
285        </xsl :for-each> CR LF   286        </xsl :for-each> CR LF
286       </xsl: for-each> CR LF   287       </xsl: for-each> CR LF
287      </xsl:f or-each> CR LF   288      </xsl:f or-each> CR LF
288     </xsl:fo r-each> CR LF   289     </xsl:fo r-each> CR LF
289    </xsl:tem plate> CR LF   290    </xsl:tem plate> CR LF
290   CR LF   291   CR LF
291   CR LF   292   CR LF
292    <xsl:temp late name= "Content-N otes"> CR LF   293    <xsl:temp late name= "Content-N otes"> CR LF
293     <xsl:par am name="P aramNotes"  /> CR LF   294     <xsl:par am name="P aramNotes"  /> CR LF
294     <xsl:par am name="P aramSplits " /> CR LF   295     <xsl:par am name="P aramSplits " /> CR LF
295     <xsl:par am name="P aramCargo"  /> CR LF   296     <xsl:par am name="P aramCargo"  /> CR LF
296     <xsl:par am name="P aramLinks"  /> CR LF   297     <xsl:par am name="P aramLinks"  /> CR LF
297     <xsl:par am name="P aramTOCDat a" /> CR LF   298     <xsl:par am name="P aramTOCDat a" /> CR LF
298     <xsl:par am name="P aramSplit"  /> CR LF   299     <xsl:par am name="P aramSplit"  /> CR LF
299   CR LF   300   CR LF
300     <xsl:if  test="coun t($ParamNo tes[1]) =  1"> CR LF   301     <xsl:if  test="coun t($ParamNo tes[1]) =  1"> CR LF
301      <html:h r /> CR LF   302      <html:h r /> CR LF
302      <xsl:fo r-each sel ect="$Para mNotes"> CR LF   303      <xsl:fo r-each sel ect="$Para mNotes"> CR LF
303       <xsl:v ariable na me="VarNot e" select= "." /> CR LF   304       <xsl:v ariable na me="VarNot e" select= "." /> CR LF
304   CR LF   305   CR LF
305       <xsl:v ariable na me="VarNot eNumber" s elect="$Pa ramCargo/w wnotes:Not eNumbering /wwnotes:N ote[@id =  $VarNote/@ id]/@numbe r" /> CR LF   306       <xsl:v ariable na me="VarNot eNumber" s elect="$Pa ramCargo/w wnotes:Not eNumbering /wwnotes:N ote[@id =  $VarNote/@ id]/@numbe r" /> CR LF
306   CR LF   307   CR LF
307       <xsl:i f test="st ring-lengt h($VarNote Number) &g t; 0"> CR LF   308       <xsl:i f test="st ring-lengt h($VarNote Number) &g t; 0"> CR LF
308        <html :div style ="font-siz e: smaller ; float: l eft; paddi ng-right:  10px;"> CR LF   309        <html :div style ="font-siz e: smaller ; float: l eft; paddi ng-right:  10px;"> CR LF
309         <htm l:a name=" {$VarNote/ @id}"> CR LF   310         <htm l:a name=" {$VarNote/ @id}"> CR LF
310          <xs l:attribut e name="hr ef"> CR LF   311          <xs l:attribut e name="hr ef"> CR LF
311           <x sl:text>#w wfootnote_ inline_</x sl:text> CR LF   312           <x sl:text>#w wfootnote_ inline_</x sl:text> CR LF
312           <x sl:value-o f select=" $VarNote/@ id" /> CR LF   313           <x sl:value-o f select=" $VarNote/@ id" /> CR LF
313          </x sl:attribu te> CR LF   314          </x sl:attribu te> CR LF
314   CR LF   315   CR LF
315          <xs l:value-of  select="$ VarNoteNum ber"/> CR LF   316          <xs l:value-of  select="$ VarNoteNum ber"/> CR LF
316         </ht ml:a> CR LF   317         </ht ml:a> CR LF
317        </htm l:div> CR LF   318        </htm l:div> CR LF
318   CR LF   319   CR LF
319        <xsl: apply-temp lates sele ct="$VarNo te/*" mode ="wwmode:c ontent"> CR LF   320        <xsl: apply-temp lates sele ct="$VarNo te/*" mode ="wwmode:c ontent"> CR LF
320         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   321         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
321         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   322         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
322         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   323         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
323         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF   324         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF
324         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   325         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
325        </xsl :apply-tem plates> CR LF   326        </xsl :apply-tem plates> CR LF
326        <html :br style= "clear: al l;" /> CR LF   327        <html :br style= "clear: al l;" /> CR LF
327       </xsl: if> CR LF   328       </xsl: if> CR LF
328      </xsl:f or-each> CR LF   329      </xsl:f or-each> CR LF
329     </xsl:if > CR LF   330     </xsl:if > CR LF
330    </xsl:tem plate> CR LF   331    </xsl:tem plate> CR LF
331   CR LF   332   CR LF
332   CR LF   333   CR LF
333    <xsl:temp late name= "Content-B ullet"> CR LF   334    <xsl:temp late name= "Content-B ullet"> CR LF
334     <xsl:par am name="P aramSplits " /> CR LF   335     <xsl:par am name="P aramSplits " /> CR LF
335     <xsl:par am name="P aramSplit"  /> CR LF   336     <xsl:par am name="P aramSplit"  /> CR LF
336     <xsl:par am name="P aramParagr aph" /> CR LF   337     <xsl:par am name="P aramParagr aph" /> CR LF
337     <xsl:par am name="P aramCharac ter" /> CR LF   338     <xsl:par am name="P aramCharac ter" /> CR LF
338     <xsl:par am name="P aramImage"  /> CR LF   339     <xsl:par am name="P aramImage"  /> CR LF
339     <xsl:par am name="P aramSepara tor" /> CR LF   340     <xsl:par am name="P aramSepara tor" /> CR LF
340     <xsl:par am name="P aramStyle"  /> CR LF   341     <xsl:par am name="P aramStyle"  /> CR LF
341   CR LF   342   CR LF
342     <xsl:cho ose> CR LF   343     <xsl:cho ose> CR LF
343      <xsl:wh en test="s tring-leng th($ParamS tyle) &gt;  0"> CR LF   344      <xsl:wh en test="s tring-leng th($ParamS tyle) &gt;  0"> CR LF
344   CR LF   345   CR LF
345       <!-- G et rule -- > CR LF   346       <!-- G et rule -- > CR LF
346       <!--           -- > CR LF   347       <!--           -- > CR LF
347       <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Character' , $ParamSt yle)" /> CR LF   348       <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Character' , $ParamSt yle)" /> CR LF
348   CR LF   349   CR LF
349       <!-- R esolve pro ject prope rties --> CR LF   350       <!-- R esolve pro ject prope rties --> CR LF
350       <!--                               --> CR LF   351       <!--                               --> CR LF
351       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> CR LF   352       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> CR LF
352        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > CR LF   353        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > CR LF
353         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramParagr aph" /> CR LF   354         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramParagr aph" /> CR LF
354         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRul e/wwprojec t:Properti es/wwproje ct:Propert y" /> CR LF   355         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRul e/wwprojec t:Properti es/wwproje ct:Propert y" /> CR LF
355         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yle" /> CR LF   356         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yle" /> CR LF
356         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> CR LF   357         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> CR LF
357         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mParagraph /wwdoc:Num ber[1]/wwd oc:Style"  /> CR LF   358         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mParagraph /wwdoc:Num ber[1]/wwd oc:Style"  /> CR LF
358        </xsl :call-temp late> CR LF   359        </xsl :call-temp late> CR LF
359       </xsl: variable> CR LF   360       </xsl: variable> CR LF
360       <xsl:v ariable na me="VarRes olvedConte xtProperti es" select ="msxsl:no de-set($Va rResolvedC ontextProp ertiesAsXM L)/wwproje ct:Propert y" /> CR LF   361       <xsl:v ariable na me="VarRes olvedConte xtProperti es" select ="msxsl:no de-set($Va rResolvedC ontextProp ertiesAsXM L)/wwproje ct:Propert y" /> CR LF
361   CR LF   362   CR LF
362       <!-- C SS propert ies --> CR LF   363       <!-- C SS propert ies --> CR LF
363       <!--                  --> CR LF   364       <!--                  --> CR LF
364       <xsl:v ariable na me="VarCSS Properties AsXML"> CR LF   365       <xsl:v ariable na me="VarCSS Properties AsXML"> CR LF
365        <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> CR LF   366        <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> CR LF
366         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> CR LF   367         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> CR LF
367         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" /> CR LF   368         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" /> CR LF
368         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   369         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
369        </xsl :call-temp late> CR LF   370        </xsl :call-temp late> CR LF
370       </xsl: variable> CR LF   371       </xsl: variable> CR LF
371       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > CR LF   372       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > CR LF
372   CR LF   373   CR LF
373       <!-- S tyle attri bute --> CR LF   374       <!-- S tyle attri bute --> CR LF
374       <!--                   --> CR LF   375       <!--                   --> CR LF
375       <xsl:v ariable na me="VarSty leAttribut e"> CR LF   376       <xsl:v ariable na me="VarSty leAttribut e"> CR LF
376        <xsl: call-templ ate name=" CSS-Inline Properties "> CR LF   377        <xsl: call-templ ate name=" CSS-Inline Properties "> CR LF
377         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> CR LF   378         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> CR LF
378        </xsl :call-temp late> CR LF   379        </xsl :call-temp late> CR LF
379       </xsl: variable> CR LF   380       </xsl: variable> CR LF
380   CR LF   381   CR LF
381       <xsl:v ariable na me="VarTag Property"  select="$V arRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'tag' ]/@Value"  /> CR LF   382       <xsl:v ariable na me="VarTag Property"  select="$V arRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'tag' ]/@Value"  /> CR LF
382       <xsl:v ariable na me="VarTag "> CR LF   383       <xsl:v ariable na me="VarTag "> CR LF
383        <xsl: choose> CR LF   384        <xsl: choose> CR LF
384         <xsl :when test ="string-l ength($Var TagPropert y) &gt; 0" > CR LF   385         <xsl :when test ="string-l ength($Var TagPropert y) &gt; 0" > CR LF
385          <xs l:value-of  select="$ VarTagProp erty" /> CR LF   386          <xs l:value-of  select="$ VarTagProp erty" /> CR LF
386         </xs l:when> CR LF   387         </xs l:when> CR LF
387   CR LF   388   CR LF
388         <xsl :otherwise > CR LF   389         <xsl :otherwise > CR LF
389          <xs l:value-of  select="' span'" /> CR LF   390          <xs l:value-of  select="' span'" /> CR LF
390         </xs l:otherwis e> CR LF   391         </xs l:otherwis e> CR LF
391        </xsl :choose> CR LF   392        </xsl :choose> CR LF
392       </xsl: variable> CR LF   393       </xsl: variable> CR LF
393   CR LF   394   CR LF
394       <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} "> CR LF   395       <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} "> CR LF
395        <!--  Style attr ibute --> CR LF   396        <!--  Style attr ibute --> CR LF
396        <!--                   --> CR LF   397        <!--                   --> CR LF
397        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" > CR LF   398        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" > CR LF
398         <xsl :attribute  name="sty le"> CR LF   399         <xsl :attribute  name="sty le"> CR LF
399          <xs l:value-of  select="$ VarStyleAt tribute" / > CR LF   400          <xs l:value-of  select="$ VarStyleAt tribute" / > CR LF
400         </xs l:attribut e> CR LF   401         </xs l:attribut e> CR LF
401        </xsl :if> CR LF   402        </xsl :if> CR LF
402   CR LF   403   CR LF
403        <xsl: if test="s tring-leng th($ParamI mage) &gt;  0"> CR LF   404        <xsl: if test="s tring-leng th($ParamI mage) &gt;  0"> CR LF
404         <!--  Get absol ute path f or imaging  info --> CR LF   405         <!--  Get absol ute path f or imaging  info --> CR LF
405         <!--                                        --> CR LF   406         <!--                                        --> CR LF
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)"  /> CR LF   407         <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)"  /> CR LF
407         <xsl :variable  name="VarI mageInfo"  select="ww imaging:Ge tInfo($Var ImageFileS ystemPath) " /> CR LF   408         <xsl :variable  name="VarI mageInfo"  select="ww imaging:Ge tInfo($Var ImageFileS ystemPath) " /> CR LF
408   CR LF   409   CR LF
409         <xsl :variable  name="VarI magePath"> CR LF   410         <xsl :variable  name="VarI magePath"> CR LF
410          <xs l:call-tem plate name ="URI-Reso lveProject FileURI"> CR LF   411          <xs l:call-tem plate name ="URI-Reso lveProject FileURI"> CR LF
411           <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamSpli t/@path" / > CR LF   412           <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamSpli t/@path" / > CR LF
412           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   413           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
413           <x sl:with-pa ram name=" ParamURI"  select="$P aramImage"  /> CR LF   414           <x sl:with-pa ram name=" ParamURI"  select="$P aramImage"  /> CR LF
414          </x sl:call-te mplate> CR LF   415          </x sl:call-te mplate> CR LF
415         </xs l:variable > CR LF   416         </xs l:variable > CR LF
416   CR LF   417   CR LF
417         <!--  Image --> CR LF   418         <!--  Image --> CR LF
418         <!--        --> CR LF   419         <!--        --> CR LF
419         <htm l:img src= "{$VarImag ePath}" al t="*" bord er="0" wid th="{$VarI mageInfo/@ width}" he ight="{$Va rImageInfo /@height}"  /> CR LF   420         <htm l:img src= "{$VarImag ePath}" al t="*" bord er="0" wid th="{$VarI mageInfo/@ width}" he ight="{$Va rImageInfo /@height}"  /> CR LF
420        </xsl :if> CR LF   421        </xsl :if> CR LF
421   CR LF   422   CR LF
422        <!--  Characters  --> CR LF   423        <!--  Characters  --> CR LF
423        <!--              --> CR LF   424        <!--              --> CR LF
424        <xsl: value-of s elect="$Pa ramCharact er" /> CR LF   425        <xsl: value-of s elect="$Pa ramCharact er" /> CR LF
425   CR LF   426   CR LF
426        <!--  Separator  --> CR LF   427        <!--  Separator  --> CR LF
427        <!--             --> CR LF   428        <!--             --> CR LF
428        <xsl: value-of s elect="$Pa ramSeparat or" /> CR LF   429        <xsl: value-of s elect="$Pa ramSeparat or" /> CR LF
429       </xsl: element> CR LF   430       </xsl: element> CR LF
430      </xsl:w hen> CR LF   431      </xsl:w hen> CR LF
431   CR LF   432   CR LF
432      <xsl:ot herwise> CR LF   433      <xsl:ot herwise> CR LF
433       <xsl:i f test="st ring-lengt h($ParamIm age) &gt;  0"> CR LF   434       <xsl:i f test="st ring-lengt h($ParamIm age) &gt;  0"> CR LF
434        <!--  Get absolu te path fo r imaging  info --> CR LF   435        <!--  Get absolu te path fo r imaging  info --> CR LF
435        <!--                                        --> CR LF   436        <!--                                        --> CR LF
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)"  /> CR LF   437        <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)"  /> CR LF
437        <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Get Info($VarI mageFileSy stemPath)"  /> CR LF   438        <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Get Info($VarI mageFileSy stemPath)"  /> CR LF
438   CR LF   439   CR LF
439        <xsl: variable n ame="VarIm agePath"> CR LF   440        <xsl: variable n ame="VarIm agePath"> CR LF
440         <xsl :call-temp late name= "URI-Resol veProjectF ileURI"> CR LF   441         <xsl :call-temp late name= "URI-Resol veProjectF ileURI"> CR LF
441          <xs l:with-par am name="P aramFromAb soluteURI"  select="$ ParamSplit /@path" /> CR LF   442          <xs l:with-par am name="P aramFromAb soluteURI"  select="$ ParamSplit /@path" /> CR LF
442          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   443          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
443          <xs l:with-par am name="P aramURI" s elect="$Pa ramImage"  /> CR LF   444          <xs l:with-par am name="P aramURI" s elect="$Pa ramImage"  /> CR LF
444         </xs l:call-tem plate> CR LF   445         </xs l:call-tem plate> CR LF
445        </xsl :variable> CR LF   446        </xsl :variable> CR LF
446   CR LF   447   CR LF
447        <!--  Image --> CR LF   448        <!--  Image --> CR LF
448        <!--        --> CR LF   449        <!--        --> CR LF
449        <html :img src=" {$VarImage Path}" alt ="*" borde r="0" widt h="{$VarIm ageInfo/@w idth}" hei ght="{$Var ImageInfo/ @height}"  /> CR LF   450        <html :img src=" {$VarImage Path}" alt ="*" borde r="0" widt h="{$VarIm ageInfo/@w idth}" hei ght="{$Var ImageInfo/ @height}"  /> CR LF
450       </xsl: if> CR LF   451       </xsl: if> CR LF
451   CR LF   452   CR LF
452       <!-- C haracters  --> CR LF   453       <!-- C haracters  --> CR LF
453       <!--              --> CR LF   454       <!--              --> CR LF
454       <xsl:v alue-of se lect="$Par amCharacte r" /> CR LF   455       <xsl:v alue-of se lect="$Par amCharacte r" /> CR LF
455   CR LF   456   CR LF
456       <!-- S eparator - -> CR LF   457       <!-- S eparator - -> CR LF
457       <!--            - -> CR LF   458       <!--            - -> CR LF
458       <xsl:v alue-of se lect="$Par amSeparato r" /> CR LF   459       <xsl:v alue-of se lect="$Par amSeparato r" /> CR LF
459      </xsl:o therwise> CR LF   460      </xsl:o therwise> CR LF
460     </xsl:ch oose> CR LF   461     </xsl:ch oose> CR LF
461    </xsl:tem plate> CR LF   462    </xsl:tem plate> CR LF
462   CR LF   463   CR LF
463   CR LF   464   CR LF
464    <xsl:temp late name= "Notes-Num ber"> CR LF   465    <xsl:temp late name= "Notes-Num ber"> CR LF
465     <xsl:par am name="P aramNotes"  /> CR LF   466     <xsl:par am name="P aramNotes"  /> CR LF
466   CR LF   467   CR LF
467     <wwnotes :NoteNumbe ring versi on="1.0"> CR LF   468     <wwnotes :NoteNumbe ring versi on="1.0"> CR LF
468      <xsl:fo r-each sel ect="$Para mNotes"> CR LF   469      <xsl:fo r-each sel ect="$Para mNotes"> CR LF
469       <xsl:v ariable na me="VarNot e" select= "." /> CR LF   470       <xsl:v ariable na me="VarNot e" select= "." /> CR LF
470   CR LF   471   CR LF
471       <wwnot es:Note id ="{$VarNot e/@id}" nu mber="{pos ition()}"  /> CR LF   472       <wwnot es:Note id ="{$VarNot e/@id}" nu mber="{pos ition()}"  /> CR LF
472      </xsl:f or-each> CR LF   473      </xsl:f or-each> CR LF
473     </wwnote s:NoteNumb ering> CR LF   474     </wwnote s:NoteNumb ering> CR LF
474    </xsl:tem plate> CR LF   475    </xsl:tem plate> CR LF
475   CR LF   476   CR LF
476   CR LF   477   CR LF
477    <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:content" > CR LF   478    <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:content" > CR LF
478     <xsl:par am name="P aramSplits " /> CR LF   479     <xsl:par am name="P aramSplits " /> CR LF
479     <xsl:par am name="P aramCargo"  /> CR LF   480     <xsl:par am name="P aramCargo"  /> CR LF
480     <xsl:par am name="P aramLinks"  /> CR LF   481     <xsl:par am name="P aramLinks"  /> CR LF
481     <xsl:par am name="P aramTOCDat a" /> CR LF   482     <xsl:par am name="P aramTOCDat a" /> CR LF
482     <xsl:par am name="P aramSplit"  /> CR LF   483     <xsl:par am name="P aramSplit"  /> CR LF
483   CR LF   484   CR LF
484     <xsl:var iable name ="VarParag raph" sele ct="." /> CR LF   485     <xsl:var iable name ="VarParag raph" sele ct="." /> CR LF
485   CR LF   486   CR LF
486     <!-- Abo rted? --> CR LF   487     <!-- Abo rted? --> CR LF
487     <!--           --> CR LF   488     <!--           --> CR LF
488     <xsl:if  test="not( wwprogress :Abort())" > CR LF   489     <xsl:if  test="not( wwprogress :Abort())" > CR LF
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)" /> CR LF   490      <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)" /> CR LF
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" /> CR LF   491      <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" /> CR LF
491      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF   492      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF
492      <xsl:if  test="$Va rGenerateO utput"> CR LF   493      <xsl:if  test="$Va rGenerateO utput"> CR LF
493       <!-- R elated Top ic Only or  Popup Onl y? --> CR LF   494       <!-- R elated Top ic Only or  Popup Onl y? --> CR LF
494       <!--                                       --> CR LF   495       <!--                                       --> CR LF
495       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF   496       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF
496        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="key(' wwbehavior s-paragrap hs-by-id',  $VarParag raph/@id)[ 1]" /> CR LF   497        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="key(' wwbehavior s-paragrap hs-by-id',  $VarParag raph/@id)[ 1]" /> CR LF
497        <xsl: variable n ame="VarIn PopupPage"  select="c ount($Para mCargo/wwb ehaviors:P opupPage)  &gt; 0" /> CR LF   498        <xsl: variable n ame="VarIn PopupPage"  select="c ount($Para mCargo/wwb ehaviors:P opupPage)  &gt; 0" /> CR LF
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')" /> CR LF   499        <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')" /> CR LF
499        <xsl: variable n ame="VarRe latedTopic Only" sele ct="$VarPa ragraphBeh avior/@rel atedtopic  = 'define- no-output' " /> CR LF   500        <xsl: variable n ame="VarRe latedTopic Only" sele ct="$VarPa ragraphBeh avior/@rel atedtopic  = 'define- no-output' " /> CR LF
500   CR LF   501   CR LF
501        <xsl: if test="$ VarInPopup Page or (n ot($VarPop upOnly) an d not($Var RelatedTop icOnly))"> CR LF   502        <xsl: if test="$ VarInPopup Page or (n ot($VarPop upOnly) an d not($Var RelatedTop icOnly))"> CR LF
502         <!--  Paragraph  --> CR LF   503         <!--  Paragraph  --> CR LF
503         <!--             --> CR LF   504         <!--             --> CR LF
504         <xsl :call-temp late name= "Paragraph "> CR LF   505         <xsl :call-temp late name= "Paragraph "> CR LF
505          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   506          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
506          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF   507          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF
507          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF   508          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF
508          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   509          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
509          <xs l:with-par am name="P aramParagr aph" selec t="$VarPar agraph" /> CR LF   510          <xs l:with-par am name="P aramParagr aph" selec t="$VarPar agraph" /> CR LF
510          <xs l:with-par am name="P aramStyleN ame" selec t="$VarPar agraph/@st ylename" / > CR LF   511          <xs l:with-par am name="P aramStyleN ame" selec t="$VarPar agraph/@st ylename" / > CR LF
511          <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> CR LF   512          <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> CR LF
512          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> CR LF   513          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> CR LF
513         </xs l:call-tem plate> CR LF   514         </xs l:call-tem plate> CR LF
514   CR LF   515   CR LF
515         <!--  MiniTOC - -> CR LF   516         <!--  MiniTOC - -> CR LF
516         <!--          - -> CR LF   517         <!--          - -> CR LF
517         <xsl :if test=" not($VarIn PopupPage) "> CR LF   518         <xsl :if test=" not($VarIn PopupPage) "> CR LF
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" /> CR LF   519          <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" /> CR LF
519          <xs l:variable  name="Var MiniTOCSub LevelsNume ricPrefix"  select="w wunits:Num ericPrefix ($VarMiniT OCSubLevel s)" /> CR LF   520          <xs l:variable  name="Var MiniTOCSub LevelsNume ricPrefix"  select="w wunits:Num ericPrefix ($VarMiniT OCSubLevel s)" /> CR LF
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)" /> CR LF   521          <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)" /> CR LF
521          <xs l:if test= "($VarMini TOCSubLeve lsGreaterT hanZero) o r ($VarMin iTOCSubLev els = 'all ')"> CR LF   522          <xs l:if test= "($VarMini TOCSubLeve lsGreaterT hanZero) o r ($VarMin iTOCSubLev els = 'all ')"> CR LF
522           <x sl:for-eac h select=" $ParamTOCD ata[1]"> CR LF   523           <x sl:for-eac h select=" $ParamTOCD ata[1]"> CR LF
523            < xsl:variab le name="V arTOCEntry " select=" key('wwtoc -entry-by- id', $VarP aragraph/@ id)[@docum entID = $P aramSplit/ @documentI D]" /> CR LF   524            < xsl:variab le name="V arTOCEntry " select=" key('wwtoc -entry-by- id', $VarP aragraph/@ id)[@docum entID = $P aramSplit/ @documentI D]" /> CR LF
524            < xsl:for-ea ch select= "$VarTOCEn try[1]"> CR LF   525            < xsl:for-ea ch select= "$VarTOCEn try[1]"> CR LF
525              <xsl:call- template n ame="MiniT OC"> CR LF   526              <xsl:call- template n ame="MiniT OC"> CR LF
526               <xsl:with -param nam e="ParamSp lit" selec t="$ParamS plit" /> CR LF   527               <xsl:with -param nam e="ParamSp lit" selec t="$ParamS plit" /> CR LF
527               <xsl:with -param nam e="ParamTO CEntry" se lect="$Var TOCEntry[1 ]" /> CR LF   528               <xsl:with -param nam e="ParamTO CEntry" se lect="$Var TOCEntry[1 ]" /> CR LF
528               <xsl:with -param nam e="ParamEm itTOCEntry " select=" false()" / > CR LF   529               <xsl:with -param nam e="ParamEm itTOCEntry " select=" false()" / > CR LF
529               <xsl:with -param nam e="ParamMi niTOCSubLe vels" sele ct="$VarMi niTOCSubLe vels" /> CR LF   530               <xsl:with -param nam e="ParamMi niTOCSubLe vels" sele ct="$VarMi niTOCSubLe vels" /> CR LF
530              </xsl:call -template> CR LF   531              </xsl:call -template> CR LF
531            < /xsl:for-e ach> CR LF   532            < /xsl:for-e ach> CR LF
532           </ xsl:for-ea ch> CR LF   533           </ xsl:for-ea ch> CR LF
533          </x sl:if> CR LF   534          </x sl:if> CR LF
534         </xs l:if> CR LF   535         </xs l:if> CR LF
535        </xsl :if> CR LF   536        </xsl :if> CR LF
536       </xsl: for-each> CR LF   537       </xsl: for-each> CR LF
537      </xsl:i f> CR LF   538      </xsl:i f> CR LF
538     </xsl:if > CR LF   539     </xsl:if > CR LF
539    </xsl:tem plate> CR LF   540    </xsl:tem plate> CR LF
540   CR LF   541   CR LF
541   CR LF   542   CR LF
542    <xsl:temp late name= "MiniTOC"> CR LF   543    <xsl:temp late name= "MiniTOC"> CR LF
543     <xsl:par am name="P aramSplit"  /> CR LF   544     <xsl:par am name="P aramSplit"  /> CR LF
544     <xsl:par am name="P aramTOCEnt ry" /> CR LF   545     <xsl:par am name="P aramTOCEnt ry" /> CR LF
545     <xsl:par am name="P aramEmitTO CEntry" /> CR LF   546     <xsl:par am name="P aramEmitTO CEntry" /> CR LF
546     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF   547     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF
547   CR LF   548   CR LF
548     <xsl:if  test="($Pa ramEmitTOC Entry = tr ue()) or ( count($Par amTOCEntry /wwtoc:Ent ry[1]) = 1 )"> CR LF   549     <xsl:if  test="($Pa ramEmitTOC Entry = tr ue()) or ( count($Par amTOCEntry /wwtoc:Ent ry[1]) = 1 )"> CR LF
549      <html:d iv class=" WebWorks_M iniTOC"> CR LF   550      <html:d iv class=" WebWorks_M iniTOC"> CR LF
550       <!-- E mit top-le vel entry?  --> CR LF   551       <!-- E mit top-le vel entry?  --> CR LF
551       <!--                          --> CR LF   552       <!--                          --> CR LF
552       <xsl:c hoose> CR LF   553       <xsl:c hoose> CR LF
553        <xsl: when test= "$ParamEmi tTOCEntry  = true()"> CR LF   554        <xsl: when test= "$ParamEmi tTOCEntry  = true()"> CR LF
554         <htm l:div clas s="WebWork s_MiniTOC_ Level1"> CR LF   555         <htm l:div clas s="WebWork s_MiniTOC_ Level1"> CR LF
555          <!- - Paragrap h --> CR LF   556          <!- - Paragrap h --> CR LF
556          <!- -            --> CR LF   557          <!- -            --> CR LF
557          <xs l:call-tem plate name ="MiniTOCP aragraph"> CR LF   558          <xs l:call-tem plate name ="MiniTOCP aragraph"> CR LF
558           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param TOCEntry/w wdoc:Parag raph" /> CR LF   559           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param TOCEntry/w wdoc:Parag raph" /> CR LF
559          </x sl:call-te mplate> CR LF   560          </x sl:call-te mplate> CR LF
560         </ht ml:div> CR LF   561         </ht ml:div> CR LF
561   CR LF   562   CR LF
562         <!--  Children  --> CR LF   563         <!--  Children  --> CR LF
563         <!--            --> CR LF   564         <!--            --> CR LF
564         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF   565         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF
565          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> CR LF   566          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> CR LF
566          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> CR LF   567          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> CR LF
567          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF   568          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF
568          <xs l:with-par am name="P aramLevel"  select="2 " /> CR LF   569          <xs l:with-par am name="P aramLevel"  select="2 " /> CR LF
569         </xs l:call-tem plate> CR LF   570         </xs l:call-tem plate> CR LF
570        </xsl :when> CR LF   571        </xsl :when> CR LF
571   CR LF   572   CR LF
572        <xsl: otherwise> CR LF   573        <xsl: otherwise> CR LF
573         <!--  Children  --> CR LF   574         <!--  Children  --> CR LF
574         <!--            --> CR LF   575         <!--            --> CR LF
575         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF   576         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF
576          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> CR LF   577          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> CR LF
577          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> CR LF   578          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> CR LF
578          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF   579          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF
579          <xs l:with-par am name="P aramLevel"  select="1 " /> CR LF   580          <xs l:with-par am name="P aramLevel"  select="1 " /> CR LF
580         </xs l:call-tem plate> CR LF   581         </xs l:call-tem plate> CR LF
581        </xsl :otherwise > CR LF   582        </xsl :otherwise > CR LF
582       </xsl: choose> CR LF   583       </xsl: choose> CR LF
583      </html: div> CR LF   584      </html: div> CR LF
584     </xsl:if > CR LF   585     </xsl:if > CR LF
585    </xsl:tem plate> CR LF   586    </xsl:tem plate> CR LF
586   CR LF   587   CR LF
587   CR LF   588   CR LF
588    <xsl:temp late name= "MiniTOCEn tries"> CR LF   589    <xsl:temp late name= "MiniTOCEn tries"> CR LF
589     <xsl:par am name="P aramRefere ncePath" / > CR LF   590     <xsl:par am name="P aramRefere ncePath" / > CR LF
590     <xsl:par am name="P aramParent " /> CR LF   591     <xsl:par am name="P aramParent " /> CR LF
591     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF   592     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF
592     <xsl:par am name="P aramLevel"  /> CR LF   593     <xsl:par am name="P aramLevel"  /> CR LF
593   CR LF   594   CR LF
594     <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry"  /> CR LF   595     <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry"  /> CR LF
595   CR LF   596   CR LF
596     <xsl:for -each sele ct="$VarSu bEntries[1 ]"> CR LF   597     <xsl:for -each sele ct="$VarSu bEntries[1 ]"> CR LF
597      <xsl:fo r-each sel ect="$VarS ubEntries" > CR LF   598      <xsl:fo r-each sel ect="$VarS ubEntries" > CR LF
598       <xsl:v ariable na me="VarEnt ry" select ="." /> CR LF   599       <xsl:v ariable na me="VarEnt ry" select ="." /> CR LF
599   CR LF   600   CR LF
600       <html: div> CR LF   601       <html: div> CR LF
601        <xsl: attribute  name="clas s"> CR LF   602        <xsl: attribute  name="clas s"> CR LF
602         <xsl :text>WebW orks_MiniT OC_Level</ xsl:text> CR LF   603         <xsl :text>WebW orks_MiniT OC_Level</ xsl:text> CR LF
603         <xsl :value-of  select="$P aramLevel"  /> CR LF   604         <xsl :value-of  select="$P aramLevel"  /> CR LF
604        </xsl :attribute > CR LF   605        </xsl :attribute > CR LF
605   CR LF   606   CR LF
606        <xsl: choose> CR LF   607        <xsl: choose> CR LF
607         <xsl :when test ="string-l ength($Var Entry/@pat h) &gt; 0" > CR LF   608         <xsl :when test ="string-l ength($Var Entry/@pat h) &gt; 0" > CR LF
608          <!- - Get link  --> CR LF   609          <!- - Get link  --> CR LF
609          <!- -           --> CR LF   610          <!- -           --> CR LF
610          <xs l:variable  name="Var RelativeLi nkPath" se lect="wwur i:GetRelat iveTo($Var Entry/@pat h, $ParamR eferencePa th)" /> CR LF   611          <xs l:variable  name="Var RelativeLi nkPath" se lect="wwur i:GetRelat iveTo($Var Entry/@pat h, $ParamR eferencePa th)" /> CR LF
611   CR LF   612   CR LF
612          <ht ml:a class ="WebWorks _MiniTOC_L ink" href= "{$VarRela tiveLinkPa th}#{$VarE ntry/@link id}"> CR LF   613          <ht ml:a class ="WebWorks _MiniTOC_L ink" href= "{$VarRela tiveLinkPa th}#{$VarE ntry/@link id}"> CR LF
613           <x sl:call-te mplate nam e="MiniTOC Paragraph" > CR LF   614           <x sl:call-te mplate nam e="MiniTOC Paragraph" > CR LF
614            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarE ntry/wwdoc :Paragraph " /> CR LF   615            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarE ntry/wwdoc :Paragraph " /> CR LF
615           </ xsl:call-t emplate> CR LF   616           </ xsl:call-t emplate> CR LF
616          </h tml:a> CR LF   617          </h tml:a> CR LF
617         </xs l:when> CR LF   618         </xs l:when> CR LF
618   CR LF   619   CR LF
619         <xsl :otherwise > CR LF   620         <xsl :otherwise > CR LF
620          <xs l:call-tem plate name ="MiniTOCP aragraph"> CR LF   621          <xs l:call-tem plate name ="MiniTOCP aragraph"> CR LF
621           <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph"  /> CR LF   622           <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph"  /> CR LF
622          </x sl:call-te mplate> CR LF   623          </x sl:call-te mplate> CR LF
623         </xs l:otherwis e> CR LF   624         </xs l:otherwis e> CR LF
624        </xsl :choose> CR LF   625        </xsl :choose> CR LF
625       </html :div> CR LF   626       </html :div> CR LF
626   CR LF   627   CR LF
627       <!-- R ecurse --> CR LF   628       <!-- R ecurse --> CR LF
628       <!--          --> CR LF   629       <!--          --> CR LF
629       <xsl:c hoose> CR LF   630       <xsl:c hoose> CR LF
630        <xsl: when test= "$ParamMin iTOCSubLev els = 'all '"> CR LF   631        <xsl: when test= "$ParamMin iTOCSubLev els = 'all '"> CR LF
631         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF   632         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF
632          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF   633          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF
633          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF   634          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF
634          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF   635          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF
635          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" /> CR LF   636          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" /> CR LF
636         </xs l:call-tem plate> CR LF   637         </xs l:call-tem plate> CR LF
637        </xsl :when> CR LF   638        </xsl :when> CR LF
638   CR LF   639   CR LF
639        <xsl: when test= "($ParamMi niTOCSubLe vels - 1)  &gt; 0"> CR LF   640        <xsl: when test= "($ParamMi niTOCSubLe vels - 1)  &gt; 0"> CR LF
640         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF   641         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF
641          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF   642          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF
642          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF   643          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF
643          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls - 1" /> CR LF   644          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls - 1" /> CR LF
644          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" /> CR LF   645          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" /> CR LF
645         </xs l:call-tem plate> CR LF   646         </xs l:call-tem plate> CR LF
646        </xsl :when> CR LF   647        </xsl :when> CR LF
647       </xsl: choose> CR LF   648       </xsl: choose> CR LF
648      </xsl:f or-each> CR LF   649      </xsl:f or-each> CR LF
649     </xsl:fo r-each> CR LF   650     </xsl:fo r-each> CR LF
650    </xsl:tem plate> CR LF   651    </xsl:tem plate> CR LF
651   CR LF   652   CR LF
652   CR LF   653   CR LF
653    <xsl:temp late name= "MiniTOCPa ragraph"> CR LF   654    <xsl:temp late name= "MiniTOCPa ragraph"> CR LF
654     <xsl:par am name="P aramParagr aph" /> CR LF   655     <xsl:par am name="P aramParagr aph" /> CR LF
655   CR LF   656   CR LF
656     <xsl:for -each sele ct="$Param Paragraph/ wwdoc:Numb er/wwdoc:T ext | $Par amParagrap h/wwdoc:Te xtRun/wwdo c:Text"> CR LF   657     <xsl:for -each sele ct="$Param Paragraph/ wwdoc:Numb er/wwdoc:T ext | $Par amParagrap h/wwdoc:Te xtRun/wwdo c:Text"> CR LF
657      <xsl:va lue-of sel ect="@valu e" /> CR LF   658      <xsl:va lue-of sel ect="@valu e" /> CR LF
658     </xsl:fo r-each> CR LF   659     </xsl:fo r-each> CR LF
659    </xsl:tem plate> CR LF   660    </xsl:tem plate> CR LF
660   CR LF   661   CR LF
661   CR LF   662   CR LF
662    <xsl:temp late name= "Paragraph "> CR LF   663    <xsl:temp late name= "Paragraph "> CR LF
663     <xsl:par am name="P aramSplits " /> CR LF   664     <xsl:par am name="P aramSplits " /> CR LF
664     <xsl:par am name="P aramCargo"  /> CR LF   665     <xsl:par am name="P aramCargo"  /> CR LF
665     <xsl:par am name="P aramLinks"  /> CR LF   666     <xsl:par am name="P aramLinks"  /> CR LF
666     <xsl:par am name="P aramSplit"  /> CR LF   667     <xsl:par am name="P aramSplit"  /> CR LF
667     <xsl:par am name="P aramParagr aph" /> CR LF   668     <xsl:par am name="P aramParagr aph" /> CR LF
668     <xsl:par am name="P aramStyleN ame" /> CR LF   669     <xsl:par am name="P aramStyleN ame" /> CR LF
669     <xsl:par am name="P aramOverri deRule" /> CR LF   670     <xsl:par am name="P aramOverri deRule" /> CR LF
670     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF   671     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF
671   CR LF   672   CR LF
672     <!-- Pre serve empt y? --> CR LF   673     <!-- Pre serve empt y? --> CR LF
673     <!--                   --> CR LF   674     <!--                   --> CR LF
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 " /> CR LF   675     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " /> CR LF
675     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF   676     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF
676   CR LF   677   CR LF
677     <!-- Non -empty tex t runs --> CR LF   678     <!-- Non -empty tex t runs --> CR LF
678     <!--                       --> CR LF   679     <!--                       --> CR LF
679      <xsl:varia ble name=" VarTextRun s" select= "$ParamPar agraph/wwd oc:TextRun [count(chi ld::wwdoc: Text[1] |  child::wwd oc:Frame[1 ] | child: :wwdoc:Not e[1] | chi ld::wwdoc: LineBreak[ 1]
) &gt; 0]"  /> CR LF
  680      <xsl:varia ble name=" VarTextRun s" select= "$ParamPar agraph/wwd oc:TextRun [count(chi ld::wwdoc: Text[1] |  child::wwd oc:Frame[1 ] | child: :wwdoc:Not e[1] | chi ld::wwdoc: LineBreak[ 1]  | child:: wwdoc:Mark er[1] ) &gt; 0]"  /> CR LF
680   CR LF   681   CR LF
681     <!-- Pro cess this  paragraph  at all? -- > CR LF   682     <!-- Pro cess this  paragraph  at all? -- > CR LF
682     <!--                                   -- > CR LF   683     <!--                                   -- > CR LF
683     <xsl:if  test="($Va rPreserveE mpty) or ( count($Var TextRuns[1 ]) = 1)"> CR LF   684     <xsl:if  test="($Va rPreserveE mpty) or ( count($Var TextRuns[1 ]) = 1)"> CR LF
684      <!-- Pa ss-through ? --> CR LF   685      <!-- Pa ss-through ? --> CR LF
685      <!--                 --> CR LF   686      <!--                 --> CR LF
686      <xsl:va riable nam e="VarPass Through"> CR LF   687      <xsl:va riable nam e="VarPass Through"> CR LF
    688       <xsl:v ariable na me="VarPas sThroughOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pas s-through' ]/@Value"  /> CR LF
    689   CR LF
    690       <xsl:c hoose> CR LF
    691        <xsl: when test= "$VarPassT hroughOpti on = 'true '"> CR LF
    692         <xsl :value-of  select="tr ue()" /> CR LF
    693        </xsl :when> CR LF
    694   CR LF
    695        <xsl: otherwise> CR LF
687       <xsl:c all-templa te name="C onditions- PassThroug h"> CR LF   696         <xsl :call-temp late name= "Condition s-PassThro ugh"> CR LF
688        <xsl: with-param  name="Par amConditio ns" select ="$ParamPa ragraph/ww doc:Condit ions" /> CR LF   697          <xs l:with-par am name="P aramCondit ions" sele ct="$Param Paragraph/ wwdoc:Cond itions" /> CR LF
689       </xsl: call-templ ate> CR LF   698         </xs l:call-tem plate> CR LF
    699        </xsl :otherwise > CR LF
    700       </xsl: choose> CR LF
690      </xsl:v ariable> CR LF   701      </xsl:v ariable> CR LF
691   CR LF   702   CR LF
692      <!-- A- Link? --> CR LF   703      <!-- A- Link? --> CR LF
693      <!--          --> CR LF   704      <!--          --> CR LF
694      <xsl:va riable nam e="VarALin kOption" s elect="$Pa ramOverrid eRule/wwpr oject:Opti ons/wwproj ect:Option [@Name = ' alink']/@V alue" /> CR LF   705      <xsl:va riable nam e="VarALin kOption" s elect="$Pa ramOverrid eRule/wwpr oject:Opti ons/wwproj ect:Option [@Name = ' alink']/@V alue" /> CR LF
695      <xsl:va riable nam e="VarALin k" select= "$VarALink Option = ' true'" /> CR LF   706      <xsl:va riable nam e="VarALin k" select= "$VarALink Option = ' true'" /> CR LF
696   CR LF   707   CR LF
697      <xsl:ch oose> CR LF   708      <xsl:ch oose> CR LF
698       <!-- P ass-throug h --> CR LF   709       <!-- P ass-throug h --> CR LF
699       <!--                --> CR LF   710       <!--                --> CR LF
700       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF   711       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF
701        <xsl: call-templ ate name=" Paragraph- PassThroug h"> CR LF   712        <xsl: call-templ ate name=" Paragraph- PassThroug h"> CR LF
702         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF   713         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF
703        </xsl :call-temp late> CR LF   714        </xsl :call-temp late> CR LF
704       </xsl: when> CR LF   715       </xsl: when> CR LF
705   CR LF   716   CR LF
706       <!-- A -Link arou nd whole p aragraph - -> CR LF   717       <!-- A -Link arou nd whole p aragraph - -> CR LF
707       <!--                                  - -> CR LF   718       <!--                                  - -> CR LF
708       <xsl:w hen test=" $VarALink" > CR LF   719       <xsl:w hen test=" $VarALink" > CR LF
709        <!--  Update car go --> CR LF   720        <!--  Update car go --> CR LF
710        <!--                --> CR LF   721        <!--                --> CR LF
711        <xsl: variable n ame="VarCa rgoALinkAs XML"> CR LF   722        <xsl: variable n ame="VarCa rgoALinkAs XML"> CR LF
712         <xsl :variable  name="VarA LinkEntrie s"> CR LF   723         <xsl :variable  name="VarA LinkEntrie s"> CR LF
713          <xs l:call-tem plate name ="ALinkEnt ries"> CR LF   724          <xs l:call-tem plate name ="ALinkEnt ries"> CR LF
714           <x sl:with-pa ram name=" ParamMarke rs" select ="$ParamPa ragraph/ww doc:TextRu n/wwdoc:Ma rker" /> CR LF   725           <x sl:with-pa ram name=" ParamMarke rs" select ="$ParamPa ragraph/ww doc:TextRu n/wwdoc:Ma rker" /> CR LF
715          </x sl:call-te mplate> CR LF   726          </x sl:call-te mplate> CR LF
716         </xs l:variable > CR LF   727         </xs l:variable > CR LF
717   CR LF   728   CR LF
718         <wwa links:ALin k> CR LF   729         <wwa links:ALin k> CR LF
719          <xs l:attribut e name="hr ef"> CR LF   730          <xs l:attribut e name="hr ef"> CR LF
720           <x sl:value-o f select=" 'javascrip t:WWHDoNot hingHREF() ;'" /> CR LF   731           <x sl:value-o f select=" 'javascrip t:WWHDoNot hingHREF() ;'" /> CR LF
721          </x sl:attribu te> CR LF   732          </x sl:attribu te> CR LF
722          <xs l:attribut e name="on Click"> CR LF   733          <xs l:attribut e name="on Click"> CR LF
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) ;')" /> CR LF   734           <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) ;')" /> CR LF
724          </x sl:attribu te> CR LF   735          </x sl:attribu te> CR LF
725         </ww alinks:ALi nk> CR LF   736         </ww alinks:ALi nk> CR LF
726        </xsl :variable> CR LF   737        </xsl :variable> CR LF
727        <xsl: variable n ame="VarCa rgoALink"  select="ms xsl:node-s et($VarCar goALinkAsX ML)" /> CR LF   738        <xsl: variable n ame="VarCa rgoALink"  select="ms xsl:node-s et($VarCar goALinkAsX ML)" /> CR LF
728        <xsl: variable n ame="VarCa rgo" selec t="$ParamC argo/*/..  | $VarCarg oALink" /> CR LF   739        <xsl: variable n ame="VarCa rgo" selec t="$ParamC argo/*/..  | $VarCarg oALink" /> CR LF
729   CR LF   740   CR LF
730        <xsl: for-each s elect="$Pa ramSplits[ 1]"> CR LF   741        <xsl: for-each s elect="$Pa ramSplits[ 1]"> CR LF
731         <!--  Determine  image pat hs --> CR LF   742         <!--  Determine  image pat hs --> CR LF
732         <!--                          --> CR LF   743         <!--                          --> CR LF
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)" /> CR LF   744         <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)" /> CR LF
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)" /> CR LF   745         <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)" /> CR LF
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)" /> CR LF   746         <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)" /> CR LF
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)" /> CR LF   747         <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)" /> CR LF
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)" /> CR LF   748         <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)" /> CR LF
738   CR LF   749   CR LF
739         <htm l:table bo rder="0" c ellspacing ="0" cellp adding="0"  onclick=" {$VarCargo /wwalinks: ALink[1]/@ onClick}"  summary="" > CR LF   750         <htm l:table bo rder="0" c ellspacing ="0" cellp adding="0"  onclick=" {$VarCargo /wwalinks: ALink[1]/@ onClick}"  summary="" > CR LF
740          <ht ml:tr> CR LF   751          <ht ml:tr> CR LF
741           <h tml:td hei ght="2" co lspan="4"  bgcolor="# FFFFFF"></ html:td> CR LF   752           <h tml:td hei ght="2" co lspan="4"  bgcolor="# FFFFFF"></ html:td> CR LF
742           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer tup}"></ht ml:td> CR LF   753           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer tup}"></ht ml:td> CR LF
743          </h tml:tr> CR LF   754          </h tml:tr> CR LF
744          <ht ml:tr> CR LF   755          <ht ml:tr> CR LF
745           <h tml:td wid th="2" hei ght="2" bg color="#FF FFFF"></ht ml:td> CR LF   756           <h tml:td wid th="2" hei ght="2" bg color="#FF FFFF"></ht ml:td> CR LF
746           <h tml:td hei ght="2" co lspan="3"  bgcolor="# EEEEEE"></ html:td> CR LF   757           <h tml:td hei ght="2" co lspan="3"  bgcolor="# EEEEEE"></ html:td> CR LF
747           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer ight}"></h tml:td> CR LF   758           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer ight}"></h tml:td> CR LF
748          </h tml:tr> CR LF   759          </h tml:tr> CR LF
749          <ht ml:tr> CR LF   760          <ht ml:tr> CR LF
750           <h tml:td wid th="2" bgc olor="#FFF FFF"></htm l:td> CR LF   761           <h tml:td wid th="2" bgc olor="#FFF FFF"></htm l:td> CR LF
751           <h tml:td wid th="2" bgc olor="#EEE EEE"></htm l:td> CR LF   762           <h tml:td wid th="2" bgc olor="#EEE EEE"></htm l:td> CR LF
752           <h tml:td bgc olor="#EEE EEE"> CR LF   763           <h tml:td bgc olor="#EEE EEE"> CR LF
753   CR LF   764   CR LF
754            < xsl:call-t emplate na me="Paragr aph-Normal "> CR LF   765            < xsl:call-t emplate na me="Paragr aph-Normal "> CR LF
755              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF   766              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF
756              <xsl:with- param name ="ParamCar go" select ="$VarCarg o" /> CR LF   767              <xsl:with- param name ="ParamCar go" select ="$VarCarg o" /> CR LF
757              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF   768              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF
758              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF   769              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF
759              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF   770              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF
760              <xsl:with- param name ="ParamSty leName" se lect="$Par amStyleNam e" /> CR LF   771              <xsl:with- param name ="ParamSty leName" se lect="$Par amStyleNam e" /> CR LF
761              <xsl:with- param name ="ParamOve rrideRule"  select="$ ParamOverr ideRule" / > CR LF   772              <xsl:with- param name ="ParamOve rrideRule"  select="$ ParamOverr ideRule" / > CR LF
762              <xsl:with- param name ="ParamPar agraphBeha vior" sele ct="$Param ParagraphB ehavior" / > CR LF   773              <xsl:with- param name ="ParamPar agraphBeha vior" sele ct="$Param ParagraphB ehavior" / > CR LF
763            < /xsl:call- template> CR LF   774            < /xsl:call- template> CR LF
764   CR LF   775   CR LF
765           </ html:td> CR LF   776           </ html:td> CR LF
766           <h tml:td wid th="2" bgc olor="#EEE EEE"></htm l:td> CR LF   777           <h tml:td wid th="2" bgc olor="#EEE EEE"></htm l:td> CR LF
767           <h tml:td wid th="2" bac kground="{ $Var_seeri ght}"></ht ml:td> CR LF   778           <h tml:td wid th="2" bac kground="{ $Var_seeri ght}"></ht ml:td> CR LF
768          </h tml:tr> CR LF   779          </h tml:tr> CR LF
769          <ht ml:tr> CR LF   780          <ht ml:tr> CR LF
770           <h tml:td wid th="2" hei ght="2" bg color="#FF FFFF"></ht ml:td> CR LF   781           <h tml:td wid th="2" hei ght="2" bg color="#FF FFFF"></ht ml:td> CR LF
771           <h tml:td hei ght="2" co lspan="3"  bgcolor="# EEEEEE"></ html:td> CR LF   782           <h tml:td hei ght="2" co lspan="3"  bgcolor="# EEEEEE"></ html:td> CR LF
772           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer ight}"></h tml:td> CR LF   783           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer ight}"></h tml:td> CR LF
773          </h tml:tr> CR LF   784          </h tml:tr> CR LF
774          <ht ml:tr> CR LF   785          <ht ml:tr> CR LF
775           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seel flow}"></h tml:td> CR LF   786           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seel flow}"></h tml:td> CR LF
776           <h tml:td hei ght="2" co lspan="3"  background ="{$Var_se ebttm}"></ html:td> CR LF   787           <h tml:td hei ght="2" co lspan="3"  background ="{$Var_se ebttm}"></ html:td> CR LF
777           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer tlow}"></h tml:td> CR LF   788           <h tml:td wid th="2" hei ght="2" ba ckground=" {$Var_seer tlow}"></h tml:td> CR LF
778          </h tml:tr> CR LF   789          </h tml:tr> CR LF
779         </ht ml:table> CR LF   790         </ht ml:table> CR LF
780        </xsl :for-each> CR LF   791        </xsl :for-each> CR LF
781       </xsl: when> CR LF   792       </xsl: when> CR LF
782   CR LF   793   CR LF
783       <xsl:o therwise> CR LF   794       <xsl:o therwise> CR LF
784        <xsl: call-templ ate name=" Paragraph- Normal"> CR LF   795        <xsl: call-templ ate name=" Paragraph- Normal"> CR LF
785         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   796         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
786         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   797         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
787         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   798         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
788         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   799         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
789         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF   800         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF
790         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yleName" / > CR LF   801         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yleName" / > CR LF
791         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$Para mOverrideR ule" /> CR LF   802         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$Para mOverrideR ule" /> CR LF
792         <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" /> CR LF   803         <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" /> CR LF
793        </xsl :call-temp late> CR LF   804        </xsl :call-temp late> CR LF
794       </xsl: otherwise> CR LF   805       </xsl: otherwise> CR LF
795      </xsl:c hoose> CR LF   806      </xsl:c hoose> CR LF
796     </xsl:if > CR LF   807     </xsl:if > CR LF
797    </xsl:tem plate> CR LF   808    </xsl:tem plate> CR LF
798   CR LF   809   CR LF
799   CR LF   810   CR LF
800    <xsl:temp late name= "Paragraph -PassThrou gh"> CR LF   811    <xsl:temp late name= "Paragraph -PassThrou gh"> CR LF
801     <xsl:par am name="P aramParagr aph" /> CR LF   812     <xsl:par am name="P aramParagr aph" /> CR LF
802   CR LF   813   CR LF
803     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF   814     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF
804      <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Tex tRun/wwdoc :Text"> CR LF   815      <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Tex tRun/wwdoc :Text"> CR LF
805       <xsl:v ariable na me="VarTex t" select= "." /> CR LF   816       <xsl:v ariable na me="VarTex t" select= "." /> CR LF
806   CR LF   817   CR LF
807       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF   818       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF
808      </xsl:f or-each> CR LF   819      </xsl:f or-each> CR LF
809     </wwexsl doc:Text> CR LF   820     </wwexsl doc:Text> CR LF
810    </xsl:tem plate> CR LF   821    </xsl:tem plate> CR LF
811   CR LF   822   CR LF
812   CR LF   823   CR LF
813    <xsl:temp late name= "Paragraph -Normal"> CR LF   824    <xsl:temp late name= "Paragraph -Normal"> CR LF
814     <xsl:par am name="P aramSplits " /> CR LF   825     <xsl:par am name="P aramSplits " /> CR LF
815     <xsl:par am name="P aramCargo"  /> CR LF   826     <xsl:par am name="P aramCargo"  /> CR LF
816     <xsl:par am name="P aramLinks"  /> CR LF   827     <xsl:par am name="P aramLinks"  /> CR LF
817     <xsl:par am name="P aramSplit"  /> CR LF   828     <xsl:par am name="P aramSplit"  /> CR LF
818     <xsl:par am name="P aramParagr aph" /> CR LF   829     <xsl:par am name="P aramParagr aph" /> CR LF
819     <xsl:par am name="P aramStyleN ame" /> CR LF   830     <xsl:par am name="P aramStyleN ame" /> CR LF
820     <xsl:par am name="P aramOverri deRule" /> CR LF   831     <xsl:par am name="P aramOverri deRule" /> CR LF
821     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF   832     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF
822   CR LF   833   CR LF
823     <!-- Res olve proje ct propert ies --> CR LF   834     <!-- Res olve proje ct propert ies --> CR LF
824     <!--                               --> CR LF   835     <!--                               --> CR LF
825     <xsl:var iable name ="VarResol vedPropert iesAsXML"> CR LF   836     <xsl:var iable name ="VarResol vedPropert iesAsXML"> CR LF
826      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> CR LF   837      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> CR LF
827       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF   838       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF
828       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> CR LF   839       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> CR LF
829      </xsl:c all-templa te> CR LF   840      </xsl:c all-templa te> CR LF
830     </xsl:va riable> CR LF   841     </xsl:va riable> CR LF
831     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> CR LF   842     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> CR LF
832   CR LF   843   CR LF
833     <!-- CSS  propertie s --> CR LF   844     <!-- CSS  propertie s --> CR LF
834     <!--                  --> CR LF   845     <!--                  --> CR LF
835     <xsl:var iable name ="VarCSSPr opertiesAs XML"> CR LF   846     <xsl:var iable name ="VarCSSPr opertiesAs XML"> CR LF
836      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF   847      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF
837       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" /> CR LF   848       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" /> CR LF
838       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF   849       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF
839       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   850       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
840      </xsl:c all-templa te> CR LF   851      </xsl:c all-templa te> CR LF
841     </xsl:va riable> CR LF   852     </xsl:va riable> CR LF
842     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> CR LF   853     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> CR LF
843   CR LF   854   CR LF
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)" / > CR LF   855     <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)" / > CR LF
845   CR LF   856   CR LF
846     <!-- Res olve proje ct propert ies --> CR LF   857     <!-- Res olve proje ct propert ies --> CR LF
847     <!--                               --> CR LF   858     <!--                               --> CR LF
848     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF   859     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF
849      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF   860      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF
850       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amParagrap h" /> CR LF   861       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amParagrap h" /> CR LF
851       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF   862       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF
852       <xsl:w ith-param  name="Para mStyleName " select=" $ParamPara graph/@sty lename" /> CR LF   863       <xsl:w ith-param  name="Para mStyleName " select=" $ParamPara graph/@sty lename" /> CR LF
853       <xsl:w ith-param  name="Para mStyleType " select=" 'Paragraph '" /> CR LF   864       <xsl:w ith-param  name="Para mStyleType " select=" 'Paragraph '" /> CR LF
854       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> CR LF   865       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> CR LF
855      </xsl:c all-templa te> CR LF   866      </xsl:c all-templa te> CR LF
856     </xsl:va riable> CR LF   867     </xsl:va riable> CR LF
857     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF   868     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF
858   CR LF   869   CR LF
859     <!-- CSS  propertie s --> CR LF   870     <!-- CSS  propertie s --> CR LF
860     <!--                  --> CR LF   871     <!--                  --> CR LF
861     <xsl:var iable name ="VarCSSCo ntextPrope rtiesAsXML "> CR LF   872     <xsl:var iable name ="VarCSSCo ntextPrope rtiesAsXML "> CR LF
862      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF   873      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF
863       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedContext Properties " /> CR LF   874       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedContext Properties " /> CR LF
864       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF   875       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF
865       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   876       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
866      </xsl:c all-templa te> CR LF   877      </xsl:c all-templa te> CR LF
867     </xsl:va riable> CR LF   878     </xsl:va riable> CR LF
868     <xsl:var iable name ="VarCSSCo ntextPrope rties" sel ect="msxsl :node-set( $VarCSSCon textProper tiesAsXML) /wwproject :Property"  /> CR LF   879     <xsl:var iable name ="VarCSSCo ntextPrope rties" sel ect="msxsl :node-set( $VarCSSCon textProper tiesAsXML) /wwproject :Property"  /> CR LF
869   CR LF   880   CR LF
870     <!-- Use  numbering ? --> CR LF   881     <!-- Use  numbering ? --> CR LF
871     <!--                  --> CR LF   882     <!--                  --> CR LF
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" /> CR LF   883     <xsl:var iable name ="VarUseNu mberingOpt ion" selec t="$VarCon textRule/w wproject:O ptions/wwp roject:Opt ion[@Name  = 'use-num bering']/@ Value" /> CR LF
873     <xsl:var iable name ="VarUseNu mbering" s elect="(st ring-lengt h($VarUseN umberingOp tion) = 0)  or ($VarU seNumberin gOption =  'true')" / > CR LF   884     <xsl:var iable name ="VarUseNu mbering" s elect="(st ring-lengt h($VarUseN umberingOp tion) = 0)  or ($VarU seNumberin gOption =  'true')" / > CR LF
874   CR LF   885   CR LF
875     <!-- Tex t Indent - -> CR LF   886     <!-- Tex t Indent - -> CR LF
876     <!--              - -> CR LF   887     <!--              - -> CR LF
877     <xsl:var iable name ="VarTextI ndent"> CR LF   888     <xsl:var iable name ="VarTextI ndent"> CR LF
878      <xsl:if  test="$Va rUseNumber ing"> CR LF   889      <xsl:if  test="$Va rUseNumber ing"> CR LF
879       <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarC SSProperti es[@Name =  'text-ind ent']/@Val ue" /> CR LF   890       <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarC SSProperti es[@Name =  'text-ind ent']/@Val ue" /> CR LF
880       <xsl:c hoose> CR LF   891       <xsl:c hoose> CR LF
881        <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0"> CR LF   892        <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0"> CR LF
882         <xsl :value-of  select="$V arOverride TextIndent " /> CR LF   893         <xsl :value-of  select="$V arOverride TextIndent " /> CR LF
883        </xsl :when> CR LF   894        </xsl :when> CR LF
884   CR LF   895   CR LF
885        <xsl: otherwise> CR LF   896        <xsl: otherwise> CR LF
886         <!--  Text inde nt defined ? --> CR LF   897         <!--  Text inde nt defined ? --> CR LF
887         <!--                         --> CR LF   898         <!--                         --> CR LF
888         <xsl :variable  name="VarC ontextText Indent" se lect="$Var CSSContext Properties [@Name = ' text-inden t']/@Value " /> CR LF   899         <xsl :variable  name="VarC ontextText Indent" se lect="$Var CSSContext Properties [@Name = ' text-inden t']/@Value " /> CR LF
889         <xsl :if test=" string-len gth($VarCo ntextTextI ndent) &gt ; 0"> CR LF   900         <xsl :if test=" string-len gth($VarCo ntextTextI ndent) &gt ; 0"> CR LF
890          <xs l:value-of  select="$ VarContext TextIndent " /> CR LF   901          <xs l:value-of  select="$ VarContext TextIndent " /> CR LF
891         </xs l:if> CR LF   902         </xs l:if> CR LF
892        </xsl :otherwise > CR LF   903        </xsl :otherwise > CR LF
893       </xsl: choose> CR LF   904       </xsl: choose> CR LF
894      </xsl:i f> CR LF   905      </xsl:i f> CR LF
895     </xsl:va riable> CR LF   906     </xsl:va riable> CR LF
896   CR LF   907   CR LF
897     <xsl:var iable name ="VarTextI ndentNumer icPrefix"  select="ww units:Nume ricPrefix( $VarTextIn dent)" /> CR LF   908     <xsl:var iable name ="VarTextI ndentNumer icPrefix"  select="ww units:Nume ricPrefix( $VarTextIn dent)" /> CR LF
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)" / > CR LF   909     <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)" / > CR LF
899   CR LF   910   CR LF
900     <!-- Use  bullet fr om UI? --> CR LF   911     <!-- Use  bullet fr om UI? --> CR LF
901     <!--                       --> CR LF   912     <!--                       --> CR LF
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 " /> CR LF   913     <xsl:var iable name ="VarBulle tCharacter " select=" $VarContex tRule/wwpr oject:Prop erties/wwp roject:Pro perty[@Nam e = 'bulle t-characte r']/@Value " /> CR LF
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" /> CR LF   914     <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" /> CR LF
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 " /> CR LF   915     <xsl:var iable name ="VarBulle tSeparator " select=" $VarContex tRule/wwpr oject:Prop erties/wwp roject:Pro perty[@Nam e = 'bulle t-separato r']/@Value " /> CR LF
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" /> CR LF   916     <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" /> CR LF
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)"  /> CR LF   917     <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)"  /> CR LF
907   CR LF   918   CR LF
908     <!-- Is  numbered p aragraph - -> CR LF   919     <!-- Is  numbered p aragraph - -> CR LF
909     <!--                         - -> CR LF   920     <!--                         - -> CR LF
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 ))" /> CR LF   921     <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 ))" /> CR LF
911   CR LF   922   CR LF
912     <!-- Cit ation --> CR LF   923     <!-- Cit ation --> CR LF
913     <!--           --> CR LF   924     <!--           --> CR LF
914     <xsl:var iable name ="VarCitat ion"> CR LF   925     <xsl:var iable name ="VarCitat ion"> CR LF
915      <xsl:ca ll-templat e name="Be haviors-Op tions-Opti onMarker"> CR LF   926      <xsl:ca ll-templat e name="Be haviors-Op tions-Opti onMarker"> CR LF
916       <xsl:w ith-param  name="Para mContainer " select=" $ParamPara graph" /> CR LF   927       <xsl:w ith-param  name="Para mContainer " select=" $ParamPara graph" /> CR LF
917       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   928       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
918       <xsl:w ith-param  name="Para mParagraph ID" select ="$ParamPa ragraph/@i d" /> CR LF   929       <xsl:w ith-param  name="Para mParagraph ID" select ="$ParamPa ragraph/@i d" /> CR LF
919       <xsl:w ith-param  name="Para mRule" sel ect="$VarC ontextRule " /> CR LF   930       <xsl:w ith-param  name="Para mRule" sel ect="$VarC ontextRule " /> CR LF
920       <xsl:w ith-param  name="Para mOption" s elect="'ci tation'" / > CR LF   931       <xsl:w ith-param  name="Para mOption" s elect="'ci tation'" / > CR LF
921      </xsl:c all-templa te> CR LF   932      </xsl:c all-templa te> CR LF
922     </xsl:va riable> CR LF   933     </xsl:va riable> CR LF
923   CR LF   934   CR LF
924     <!-- Tag  --> CR LF   935     <!-- Tag  --> CR LF
925     <!--      --> CR LF   936     <!--      --> CR LF
926     <xsl:var iable name ="VarTagPr operty" se lect="$Var ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y[@Name =  'tag']/@Va lue" /> CR LF   937     <xsl:var iable name ="VarTagPr operty" se lect="$Var ContextRul e/wwprojec t:Properti es/wwproje ct:Propert y[@Name =  'tag']/@Va lue" /> CR LF
927     <xsl:var iable name ="VarTag"> CR LF   938     <xsl:var iable name ="VarTag"> CR LF
928      <xsl:ch oose> CR LF   939      <xsl:ch oose> CR LF
929       <xsl:w hen test=" string-len gth($VarTa gProperty)  &gt; 0"> CR LF   940       <xsl:w hen test=" string-len gth($VarTa gProperty)  &gt; 0"> CR LF
930        <xsl: value-of s elect="$Va rTagProper ty" /> CR LF   941        <xsl: value-of s elect="$Va rTagProper ty" /> CR LF
931       </xsl: when> CR LF   942       </xsl: when> CR LF
932   CR LF   943   CR LF
933       <xsl:o therwise> CR LF   944       <xsl:o therwise> CR LF
934        <xsl: value-of s elect="'di v'" /> CR LF   945        <xsl: value-of s elect="'di v'" /> CR LF
935       </xsl: otherwise> CR LF   946       </xsl: otherwise> CR LF
936      </xsl:c hoose> CR LF   947      </xsl:c hoose> CR LF
937     </xsl:va riable> CR LF   948     </xsl:va riable> CR LF
938   CR LF   949   CR LF
939     <!-- Tag  to use fo r outer wr apper --> CR LF   950     <!-- Tag  to use fo r outer wr apper --> CR LF
940     <!--                                 --> CR LF   951     <!--                                 --> CR LF
941     <xsl:var iable name ="VarOuter Tag"> CR LF   952     <xsl:var iable name ="VarOuter Tag"> CR LF
942      <xsl:ch oose> CR LF   953      <xsl:ch oose> CR LF
943       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> CR LF   954       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> CR LF
944        <xsl: value-of s elect="'di v'" /> CR LF   955        <xsl: value-of s elect="'di v'" /> CR LF
945       </xsl: when> CR LF   956       </xsl: when> CR LF
946   CR LF   957   CR LF
947       <xsl:o therwise> CR LF   958       <xsl:o therwise> CR LF
948        <xsl: value-of s elect="$Va rTag" /> CR LF   959        <xsl: value-of s elect="$Va rTag" /> CR LF
949       </xsl: otherwise> CR LF   960       </xsl: otherwise> CR LF
950      </xsl:c hoose> CR LF   961      </xsl:c hoose> CR LF
951     </xsl:va riable> CR LF   962     </xsl:va riable> CR LF
952   CR LF   963   CR LF
953     <!-- Use  character  styles? - -> CR LF   964     <!-- Use  character  styles? - -> CR LF
954     <!--                         - -> CR LF   965     <!--                         - -> CR LF
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" /> CR LF   966     <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" /> CR LF
956     <xsl:var iable name ="VarUseCh aracterSty les" selec t="(string -length($V arUseChara cterStyles Option) =  0) or ($Va rUseCharac terStylesO ption = 't rue')" /> CR LF   967     <xsl:var iable name ="VarUseCh aracterSty les" selec t="(string -length($V arUseChara cterStyles Option) =  0) or ($Va rUseCharac terStylesO ption = 't rue')" /> CR LF
957   CR LF   968   CR LF
958     <!-- Pre serve empt y? --> CR LF   969     <!-- Pre serve empt y? --> CR LF
959     <!--                   --> CR LF   970     <!--                   --> CR LF
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 " /> CR LF   971     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " /> CR LF
961     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF   972     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF
962   CR LF   973   CR LF
963     <!-- Beg in paragra ph emit -- > CR LF   974     <!-- Beg in paragra ph emit -- > CR LF
964     <!--                        -- > CR LF   975     <!--                        -- > CR LF
965     <xsl:ele ment name= "{$VarOute rTag}" nam espace="{$ GlobalDefa ultNamespa ce}"> CR LF   976     <xsl:ele ment name= "{$VarOute rTag}" nam espace="{$ GlobalDefa ultNamespa ce}"> CR LF
966      <!-- Cl ass attrib ute --> CR LF   977      <!-- Cl ass attrib ute --> CR LF
967      <!--                   --> CR LF   978      <!--                   --> CR LF
968      <xsl:at tribute na me="class" > CR LF   979      <xsl:at tribute na me="class" > CR LF
969       <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" /> CR LF   980       <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" /> CR LF
970       <xsl:i f test="$V arIsNumber edParagrap h = true() "> CR LF   981       <xsl:i f test="$V arIsNumber edParagrap h = true() "> CR LF
971        <xsl: value-of s elect="'_o uter'" /> CR LF   982        <xsl: value-of s elect="'_o uter'" /> CR LF
972       </xsl: if> CR LF   983       </xsl: if> CR LF
973   CR LF   984   CR LF
974       <!-- A dditional  CSS classe s --> CR LF   985       <!-- A dditional  CSS classe s --> CR LF
975       <!--                           --> CR LF   986       <!--                           --> CR LF
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)" /> CR LF   987       <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)" /> CR LF
977       <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) &gt; 0 "> CR LF   988       <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) &gt; 0 "> CR LF
978        <xsl: text> </xs l:text> CR LF   989        <xsl: text> </xs l:text> CR LF
979        <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / > CR LF   990        <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / > CR LF
980        <xsl: if test="$ VarIsNumbe redParagra ph = true( )"> CR LF   991        <xsl: if test="$ VarIsNumbe redParagra ph = true( )"> CR LF
981         <xsl :text> Web Works_Para graph_List _Outer</xs l:text> CR LF   992         <xsl :text> Web Works_Para graph_List _Outer</xs l:text> CR LF
982        </xsl :if> CR LF   993        </xsl :if> CR LF
983       </xsl: if> CR LF   994       </xsl: if> CR LF
984      </xsl:a ttribute> CR LF   995      </xsl:a ttribute> CR LF
985   CR LF   996   CR LF
986      <!-- St yle attrib ute --> CR LF   997      <!-- St yle attrib ute --> CR LF
987      <!--                   --> CR LF   998      <!--                   --> CR LF
988      <xsl:ch oose> CR LF   999      <xsl:ch oose> CR LF
989       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> CR LF   1000       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> CR LF
990        <xsl: variable n ame="VarSt yleAttribu teOuter"> CR LF   1001        <xsl: variable n ame="VarSt yleAttribu teOuter"> CR LF
991         <xsl :call-temp late name= "CSS-Inlin ePropertie sOuter"> CR LF   1002         <xsl :call-temp late name= "CSS-Inlin ePropertie sOuter"> CR LF
992          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" /> CR LF   1003          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" /> CR LF
993          <xs l:with-par am name="P aramContex tPropertie s" select= "$VarCSSCo ntextPrope rties" /> CR LF   1004          <xs l:with-par am name="P aramContex tPropertie s" select= "$VarCSSCo ntextPrope rties" /> CR LF
994         </xs l:call-tem plate> CR LF   1005         </xs l:call-tem plate> CR LF
995        </xsl :variable> CR LF   1006        </xsl :variable> CR LF
996   CR LF   1007   CR LF
997        <xsl: if test="s tring-leng th($VarSty leAttribut eOuter) &g t; 0"> CR LF   1008        <xsl: if test="s tring-leng th($VarSty leAttribut eOuter) &g t; 0"> CR LF
998         <xsl :attribute  name="sty le"> CR LF   1009         <xsl :attribute  name="sty le"> CR LF
999          <xs l:value-of  select="$ VarStyleAt tributeOut er" /> CR LF   1010          <xs l:value-of  select="$ VarStyleAt tributeOut er" /> CR LF
1000         </xs l:attribut e> CR LF   1011         </xs l:attribut e> CR LF
1001        </xsl :if> CR LF   1012        </xsl :if> CR LF
1002       </xsl: when> CR LF   1013       </xsl: when> CR LF
1003   CR LF   1014   CR LF
1004       <xsl:o therwise> CR LF   1015       <xsl:o therwise> CR LF
1005        <xsl: variable n ame="VarSt yleAttribu te"> CR LF   1016        <xsl: variable n ame="VarSt yleAttribu te"> CR LF
1006         <xsl :call-temp late name= "CSS-Inlin ePropertie s"> CR LF   1017         <xsl :call-temp late name= "CSS-Inlin ePropertie s"> CR LF
1007          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" /> CR LF   1018          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" /> CR LF
1008         </xs l:call-tem plate> CR LF   1019         </xs l:call-tem plate> CR LF
1009        </xsl :variable> CR LF   1020        </xsl :variable> CR LF
1010   CR LF   1021   CR LF
1011        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" > CR LF   1022        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" > CR LF
1012         <xsl :attribute  name="sty le"> CR LF   1023         <xsl :attribute  name="sty le"> CR LF
1013          <xs l:value-of  select="$ VarStyleAt tribute" / > CR LF   1024          <xs l:value-of  select="$ VarStyleAt tribute" / > CR LF
1014         </xs l:attribut e> CR LF   1025         </xs l:attribut e> CR LF
1015        </xsl :if> CR LF   1026        </xsl :if> CR LF
1016       </xsl: otherwise> CR LF   1027       </xsl: otherwise> CR LF
1017      </xsl:c hoose> CR LF   1028      </xsl:c hoose> CR LF
1018   CR LF   1029   CR LF
1019      <!-- Ci te attribu te --> CR LF   1030      <!-- Ci te attribu te --> CR LF
1020      <!--                  --> CR LF   1031      <!--                  --> CR LF
1021      <xsl:if  test="str ing-length ($VarCitat ion) &gt;  0"> CR LF   1032      <xsl:if  test="str ing-length ($VarCitat ion) &gt;  0"> CR LF
1022       <xsl:a ttribute n ame="cite" > CR LF   1033       <xsl:a ttribute n ame="cite" > CR LF
1023        <xsl: value-of s elect="$Va rCitation"  /> CR LF   1034        <xsl: value-of s elect="$Va rCitation"  /> CR LF
1024       </xsl: attribute> CR LF   1035       </xsl: attribute> CR LF
1025      </xsl:i f> CR LF   1036      </xsl:i f> CR LF
1026   CR LF   1037   CR LF
1027      <!-- Dr opdown --> CR LF   1038      <!-- Dr opdown --> CR LF
1028      <!--           --> CR LF   1039      <!--           --> CR LF
1029      <xsl:if  test="($P aramParagr aphBehavio r/@dropdow n = 'start -open') or  ($ParamPa ragraphBeh avior/@dro pdown = 's tart-close d')"> CR LF   1040      <xsl:if  test="($P aramParagr aphBehavio r/@dropdow n = 'start -open') or  ($ParamPa ragraphBeh avior/@dro pdown = 's tart-close d')"> CR LF
1030       <xsl:a ttribute n ame="oncli ck"> CR LF   1041       <xsl:a ttribute n ame="oncli ck"> CR LF
1031        <xsl: value-of s elect="con cat('WebWo rks_Toggle DIV(WebWor ksRootPath , &quot;ww dd', $Para mParagraph /@id, '&qu ot;);')" / > CR LF   1042        <xsl: value-of s elect="con cat('WebWo rks_Toggle DIV(WebWor ksRootPath , &quot;ww dd', $Para mParagraph /@id, '&qu ot;);')" / > CR LF
1032       </xsl: attribute> CR LF   1043       </xsl: attribute> CR LF
1033      </xsl:i f> CR LF   1044      </xsl:i f> CR LF
1034   CR LF   1045   CR LF
1035      <!-- Us e numberin g? --> CR LF   1046      <!-- Us e numberin g? --> CR LF
1036      <!--                  --> CR LF   1047      <!--                  --> CR LF
1037      <xsl:ch oose> CR LF   1048      <xsl:ch oose> CR LF
1038       <!-- U se Number  --> CR LF   1049       <!-- U se Number  --> CR LF
1039       <!--              --> CR LF   1050       <!--              --> CR LF
1040       <xsl:w hen test=" $VarUseNum bering"> CR LF   1051       <xsl:w hen test=" $VarUseNum bering"> CR LF
1041        <xsl: choose> CR LF   1052        <xsl: choose> CR LF
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)"> CR LF   1053         <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)"> CR LF
1043          <xs l:choose> CR LF   1054          <xs l:choose> CR LF
1044           <x sl:when te st="$VarTe xtIndentLe ssThanZero "> CR LF   1055           <x sl:when te st="$VarTe xtIndentLe ssThanZero "> CR LF
1045   CR LF   1056   CR LF
1046            < html:table  border="0 " cellspac ing="0" ce llpadding= "0" summar y=""> CR LF   1057            < html:table  border="0 " cellspac ing="0" ce llpadding= "0" summar y=""> CR LF
1047              <html:tr s tyle="vert ical-align : baseline ;"> CR LF   1058              <html:tr s tyle="vert ical-align : baseline ;"> CR LF
1048               <html:td> CR LF   1059               <html:td> CR LF
1049                <!-- Emi t number w ith inner  class and  specific n umber styl e attribut e --> CR LF   1060                <!-- Emi t number w ith inner  class and  specific n umber styl e attribut e --> CR LF
1050                <!--                                                                         --> CR LF   1061                <!--                                                                         --> CR LF
1051                <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}"> CR LF   1062                <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}"> CR LF
1052                 <xsl:at tribute na me="class" > CR LF   1063                 <xsl:at tribute na me="class" > CR LF
1053                  <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" /> CR LF   1064                  <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" /> CR LF
1054                  <xsl:t ext>_inner </xsl:text > CR LF   1065                  <xsl:t ext>_inner </xsl:text > CR LF
1055   CR LF   1066   CR LF
1056                  <!-- A dditional  CSS classe s --> CR LF   1067                  <!-- A dditional  CSS classe s --> CR LF
1057                  <!--                           --> CR LF   1068                  <!--                           --> CR LF
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)" /> CR LF   1069                  <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)" /> CR LF
1059                  <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) &gt; 0 "> CR LF   1070                  <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) &gt; 0 "> CR LF
1060                   <xsl: text> </xs l:text> CR LF   1071                   <xsl: text> </xs l:text> CR LF
1061                   <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / > CR LF   1072                   <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / > CR LF
1062                   <xsl: text> WebW orks_Parag raph_List_ Inner</xsl :text> CR LF   1073                   <xsl: text> WebW orks_Parag raph_List_ Inner</xsl :text> CR LF
1063                  </xsl: if> CR LF   1074                  </xsl: if> CR LF
1064                 </xsl:a ttribute> CR LF   1075                 </xsl:a ttribute> CR LF
1065   CR LF   1076   CR LF
1066                 <xsl:va riable nam e="VarText IndentNumb erAsUnits"  select="w wunits:Num ericPrefix ($VarTextI ndent)" /> CR LF   1077                 <xsl:va riable nam e="VarText IndentNumb erAsUnits"  select="w wunits:Num ericPrefix ($VarTextI ndent)" /> CR LF
1067                 <xsl:va riable nam e="VarText IndentUnit s" select= "wwunits:U nitsSuffix ($VarTextI ndent)" /> CR LF   1078                 <xsl:va riable nam e="VarText IndentUnit s" select= "wwunits:U nitsSuffix ($VarTextI ndent)" /> CR LF
1068   CR LF   1079   CR LF
1069                 <xsl:at tribute na me="style" > CR LF   1080                 <xsl:at tribute na me="style" > CR LF
1070                  <xsl:v alue-of se lect="conc at('width:  ', 0 - $V arTextInde ntNumberAs Units, $Va rTextInden tUnits, ';  white-spa ce: nowrap ;')" /> CR LF   1081                  <xsl:v alue-of se lect="conc at('width:  ', 0 - $V arTextInde ntNumberAs Units, $Va rTextInden tUnits, ';  white-spa ce: nowrap ;')" /> CR LF
1071                  <xsl:c all-templa te name="C SS-InlineP ropertiesI nnerNumber "> CR LF   1082                  <xsl:c all-templa te name="C SS-InlineP ropertiesI nnerNumber "> CR LF
1072                   <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties"  /> CR LF   1083                   <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties"  /> CR LF
1073                  </xsl: call-templ ate> CR LF   1084                  </xsl: call-templ ate> CR LF
1074                 </xsl:a ttribute> CR LF   1085                 </xsl:a ttribute> CR LF
1075   CR LF   1086   CR LF
1076                 <xsl:ca ll-templat e name="Nu mber"> CR LF   1087                 <xsl:ca ll-templat e name="Nu mber"> CR LF
1077                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   1088                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
1078                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   1089                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
1079                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   1090                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
1080                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   1091                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
1081                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" /> CR LF   1092                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" /> CR LF
1082                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" /> CR LF   1093                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" /> CR LF
1083                  <xsl:w ith-param  name="Para mIgnoreDoc umentNumbe r" select= "$VarIgnor eDocumentN umber" /> CR LF   1094                  <xsl:w ith-param  name="Para mIgnoreDoc umentNumbe r" select= "$VarIgnor eDocumentN umber" /> CR LF
1084                  <xsl:w ith-param  name="Para mCharacter " select=" $VarBullet Character"  /> CR LF   1095                  <xsl:w ith-param  name="Para mCharacter " select=" $VarBullet Character"  /> CR LF
1085                  <xsl:w ith-param  name="Para mImage" se lect="$Var BulletImag e" /> CR LF   1096                  <xsl:w ith-param  name="Para mImage" se lect="$Var BulletImag e" /> CR LF
1086                  <xsl:w ith-param  name="Para mSeparator " select=" $VarBullet Separator"  /> CR LF   1097                  <xsl:w ith-param  name="Para mSeparator " select=" $VarBullet Separator"  /> CR LF
1087                  <xsl:w ith-param  name="Para mStyle" se lect="$Var BulletStyl e" /> CR LF   1098                  <xsl:w ith-param  name="Para mStyle" se lect="$Var BulletStyl e" /> CR LF
1088                 </xsl:c all-templa te> CR LF   1099                 </xsl:c all-templa te> CR LF
1089                </xsl:el ement> CR LF   1100                </xsl:el ement> CR LF
1090               </html:td > CR LF   1101               </html:td > CR LF
1091   CR LF   1102   CR LF
1092               <!-- Forc e second c ell to hon or first c ell width  --> CR LF   1103               <!-- Forc e second c ell to hon or first c ell width  --> CR LF
1093               <!--                                                  --> CR LF   1104               <!--                                                  --> CR LF
1094               <html:td  width="100 %"> CR LF   1105               <html:td  width="100 %"> CR LF
1095                <xsl:var iable name ="VarStyle AttributeI nnerConten t"> CR LF   1106                <xsl:var iable name ="VarStyle AttributeI nnerConten t"> CR LF
1096                 <xsl:ca ll-templat e name="CS S-InlinePr opertiesIn nerContent "> CR LF   1107                 <xsl:ca ll-templat e name="CS S-InlinePr opertiesIn nerContent "> CR LF
1097                  <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties"  /> CR LF   1108                  <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties"  /> CR LF
1098                 </xsl:c all-templa te> CR LF   1109                 </xsl:c all-templa te> CR LF
1099                </xsl:va riable> CR LF   1110                </xsl:va riable> CR LF
1100   CR LF   1111   CR LF
1101                <!-- Emi t content  --> CR LF   1112                <!-- Emi t content  --> CR LF
1102                <!--                --> CR LF   1113                <!--                --> CR LF
1103                <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}"> CR LF   1114                <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}"> CR LF
1104                 <xsl:at tribute na me="class" > CR LF   1115                 <xsl:at tribute na me="class" > CR LF
1105                  <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" /> CR LF   1116                  <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" /> CR LF
1106                  <xsl:t ext>_inner </xsl:text > CR LF   1117                  <xsl:t ext>_inner </xsl:text > CR LF
1107   CR LF   1118   CR LF
1108                  <!-- A dditional  CSS classe s --> CR LF   1119                  <!-- A dditional  CSS classe s --> CR LF
1109                  <!--                           --> CR LF   1120                  <!--                           --> CR LF
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)" /> CR LF   1121                  <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)" /> CR LF
1111                  <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) &gt; 0 "> CR LF   1122                  <xsl:i f test="st ring-lengt h($VarAddi tionalCSSC lassesOpti on) &gt; 0 "> CR LF
1112                   <xsl: text> </xs l:text> CR LF   1123                   <xsl: text> </xs l:text> CR LF
1113                   <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / > CR LF   1124                   <xsl: value-of s elect="$Va rAdditiona lCSSClasse sOption" / > CR LF
1114                   <xsl: text> WebW orks_Parag raph_List_ Inner</xsl :text> CR LF   1125                   <xsl: text> WebW orks_Parag raph_List_ Inner</xsl :text> CR LF
1115                  </xsl: if> CR LF   1126                  </xsl: if> CR LF
1116                 </xsl:a ttribute> CR LF   1127                 </xsl:a ttribute> CR LF
1117                 <xsl:if  test="str ing-length ($VarStyle AttributeI nnerConten t) &gt; 0" > CR LF   1128                 <xsl:if  test="str ing-length ($VarStyle AttributeI nnerConten t) &gt; 0" > CR LF
1118                  <xsl:a ttribute n ame="style "> CR LF   1129                  <xsl:a ttribute n ame="style "> CR LF
1119                   <xsl: value-of s elect="$Va rStyleAttr ibuteInner Content" / > CR LF   1130                   <xsl: value-of s elect="$Va rStyleAttr ibuteInner Content" / > CR LF
1120                  </xsl: attribute> CR LF   1131                  </xsl: attribute> CR LF
1121                 </xsl:i f> CR LF   1132                 </xsl:i f> CR LF
1122   CR LF   1133   CR LF
1123                 <!-- Te xt Runs -- > CR LF   1134                 <!-- Te xt Runs -- > CR LF
1124                 <!--            -- > CR LF   1135                 <!--            -- > CR LF
1125                 <xsl:ca ll-templat e name="Pa ragraphTex tRuns"> CR LF   1136                 <xsl:ca ll-templat e name="Pa ragraphTex tRuns"> CR LF
1126                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   1137                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
1127                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   1138                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
1128                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   1139                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
1129                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   1140                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
1130                  <xsl:w ith-param  name="Para mPreserveE mpty" sele ct="$VarPr eserveEmpt y" /> CR LF   1141                  <xsl:w ith-param  name="Para mPreserveE mpty" sele ct="$VarPr eserveEmpt y" /> CR LF
1131                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" /> CR LF   1142                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" /> CR LF
1132                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" /> CR LF   1143                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" /> CR LF
1133                 </xsl:c all-templa te> CR LF   1144                 </xsl:c all-templa te> CR LF
1134   CR LF   1145   CR LF
1135                 <!-- Dr opdown Arr ow --> CR LF   1146                 <!-- Dr opdown Arr ow --> CR LF
1136                 <!--                  --> CR LF   1147                 <!--                  --> CR LF
1137                 <xsl:if  test="($P aramParagr aphBehavio r/@dropdow n = 'start -open') or  ($ParamPa ragraphBeh avior/@dro pdown = 's tart-close d')"> CR LF   1148                 <xsl:if  test="($P aramParagr aphBehavio r/@dropdow n = 'start -open') or  ($ParamPa ragraphBeh avior/@dro pdown = 's tart-close d')"> CR LF
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> CR LF   1149                  <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> CR LF
1139                 </xsl:i f> CR LF   1150                 </xsl:i f> CR LF
1140                </xsl:el ement> CR LF   1151                </xsl:el ement> CR LF
1141               </html:td > CR LF   1152               </html:td > CR LF
1142              </html:tr> CR LF   1153              </html:tr> CR LF
1143            < /html:tabl e> CR LF   1154            < /html:tabl e> CR LF
1144           </ xsl:when> CR LF   1155           </ xsl:when> CR LF
1145   CR LF   1156   CR LF
1146           <x sl:otherwi se> CR LF   1157           <x sl:otherwi se> CR LF
1147            < xsl:call-t emplate na me="Number "> CR LF   1158            < xsl:call-t emplate na me="Number "> CR LF
1148              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF   1159              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF
1149              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF   1160              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF
1150              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF   1161              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF
1151              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF   1162              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF
1152              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF   1163              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF
1153              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > CR LF   1164              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > CR LF
1154              <xsl:with- param name ="ParamIgn oreDocumen tNumber" s elect="$Va rIgnoreDoc umentNumbe r" /> CR LF   1165              <xsl:with- param name ="ParamIgn oreDocumen tNumber" s elect="$Va rIgnoreDoc umentNumbe r" /> CR LF
1155              <xsl:with- param name ="ParamCha racter" se lect="$Var BulletChar acter" /> CR LF   1166              <xsl:with- param name ="ParamCha racter" se lect="$Var BulletChar acter" /> CR LF
1156              <xsl:with- param name ="ParamIma ge" select ="$VarBull etImage" / > CR LF   1167              <xsl:with- param name ="ParamIma ge" select ="$VarBull etImage" / > CR LF
1157              <xsl:with- param name ="ParamSep arator" se lect="$Var BulletSepa rator" /> CR LF   1168              <xsl:with- param name ="ParamSep arator" se lect="$Var BulletSepa rator" /> CR LF
1158              <xsl:with- param name ="ParamSty le" select ="$VarBull etStyle" / > CR LF   1169              <xsl:with- param name ="ParamSty le" select ="$VarBull etStyle" / > CR LF
1159            < /xsl:call- template> CR LF   1170            < /xsl:call- template> CR LF
1160   CR LF   1171   CR LF
1161            < !-- Text R uns --> CR LF   1172            < !-- Text R uns --> CR LF
1162            < !--            --> CR LF   1173            < !--            --> CR LF
1163            < xsl:call-t emplate na me="Paragr aphTextRun s"> CR LF   1174            < xsl:call-t emplate na me="Paragr aphTextRun s"> CR LF
1164              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF   1175              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF
1165              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF   1176              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF
1166              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF   1177              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF
1167              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF   1178              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF
1168              <xsl:with- param name ="ParamPre serveEmpty " select=" $VarPreser veEmpty" / > CR LF   1179              <xsl:with- param name ="ParamPre serveEmpty " select=" $VarPreser veEmpty" / > CR LF
1169              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > CR LF   1180              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > CR LF
1170              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF   1181              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF
1171            < /xsl:call- template> CR LF   1182            < /xsl:call- template> CR LF
1172   CR LF   1183   CR LF
1173            < !-- Dropdo wn Arrow - -> CR LF   1184            < !-- Dropdo wn Arrow - -> CR LF
1174            < !--                 - -> CR LF   1185            < !--                 - -> CR LF
1175            < xsl:if tes t="($Param ParagraphB ehavior/@d ropdown =  'start-ope n') or ($P aramParagr aphBehavio r/@dropdow n = 'start -closed')" > CR LF   1186            < xsl:if tes t="($Param ParagraphB ehavior/@d ropdown =  'start-ope n') or ($P aramParagr aphBehavio r/@dropdow n = 'start -closed')" > CR LF
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> CR LF   1187              <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> CR LF
1177            < /xsl:if> CR LF   1188            < /xsl:if> CR LF
1178           </ xsl:otherw ise> CR LF   1189           </ xsl:otherw ise> CR LF
1179          </x sl:choose> CR LF   1190          </x sl:choose> CR LF
1180         </xs l:when> CR LF   1191         </xs l:when> CR LF
1181   CR LF   1192   CR LF
1182         <xsl :otherwise > CR LF   1193         <xsl :otherwise > CR LF
1183          <!- - Text Run s --> CR LF   1194          <!- - Text Run s --> CR LF
1184          <!- -            --> CR LF   1195          <!- -            --> CR LF
1185          <xs l:call-tem plate name ="Paragrap hTextRuns" > CR LF   1196          <xs l:call-tem plate name ="Paragrap hTextRuns" > CR LF
1186           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   1197           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
1187           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF   1198           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF
1188           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   1199           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
1189           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   1200           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
1190           <x sl:with-pa ram name=" ParamPrese rveEmpty"  select="$V arPreserve Empty" /> CR LF   1201           <x sl:with-pa ram name=" ParamPrese rveEmpty"  select="$V arPreserve Empty" /> CR LF
1191           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$VarUse CharacterS tyles" /> CR LF   1202           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$VarUse CharacterS tyles" /> CR LF
1192           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param Paragraph"  /> CR LF   1203           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param Paragraph"  /> CR LF
1193          </x sl:call-te mplate> CR LF   1204          </x sl:call-te mplate> CR LF
1194   CR LF   1205   CR LF
1195          <!- - Dropdown  Arrow --> CR LF   1206          <!- - Dropdown  Arrow --> CR LF
1196          <!- -                 --> CR LF   1207          <!- -                 --> CR LF
1197          <xs l:if test= "($ParamPa ragraphBeh avior/@dro pdown = 's tart-open' ) or ($Par amParagrap hBehavior/ @dropdown  = 'start-c losed')"> CR LF   1208          <xs l:if test= "($ParamPa ragraphBeh avior/@dro pdown = 's tart-open' ) or ($Par amParagrap hBehavior/ @dropdown  = 'start-c losed')"> CR LF
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> CR LF   1209           <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> CR LF
1199          </x sl:if> CR LF   1210          </x sl:if> CR LF
1200         </xs l:otherwis e> CR LF   1211         </xs l:otherwis e> CR LF
1201        </xsl :choose> CR LF   1212        </xsl :choose> CR LF
1202       </xsl: when> CR LF   1213       </xsl: when> CR LF
1203   CR LF   1214   CR LF
1204       <!-- S kip Number  --> CR LF   1215       <!-- S kip Number  --> CR LF
1205       <!--               --> CR LF   1216       <!--               --> CR LF
1206       <xsl:o therwise> CR LF   1217       <xsl:o therwise> CR LF
1207        <!--  Text Runs  --> CR LF   1218        <!--  Text Runs  --> CR LF
1208        <!--             --> CR LF   1219        <!--             --> CR LF
1209        <xsl: call-templ ate name=" ParagraphT extRuns"> CR LF   1220        <xsl: call-templ ate name=" ParagraphT extRuns"> CR LF
1210         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1221         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1211         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1222         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1212         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1223         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1213         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1224         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1214         <xsl :with-para m name="Pa ramPreserv eEmpty" se lect="$Var PreserveEm pty" /> CR LF   1225         <xsl :with-para m name="Pa ramPreserv eEmpty" se lect="$Var PreserveEm pty" /> CR LF
1215         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$VarUseCh aracterSty les" /> CR LF   1226         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$VarUseCh aracterSty les" /> CR LF
1216         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF   1227         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF
1217        </xsl :call-temp late> CR LF   1228        </xsl :call-temp late> CR LF
1218   CR LF   1229   CR LF
1219        <!--  Dropdown A rrow --> CR LF   1230        <!--  Dropdown A rrow --> CR LF
1220        <!--                  --> CR LF   1231        <!--                  --> CR LF
1221        <xsl: if test="( $ParamPara graphBehav ior/@dropd own = 'sta rt-open')  or ($Param ParagraphB ehavior/@d ropdown =  'start-clo sed')"> CR LF   1232        <xsl: if test="( $ParamPara graphBehav ior/@dropd own = 'sta rt-open')  or ($Param ParagraphB ehavior/@d ropdown =  'start-clo sed')"> CR LF
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> CR LF   1233         <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> CR LF
1223        </xsl :if> CR LF   1234        </xsl :if> CR LF
1224       </xsl: otherwise> CR LF   1235       </xsl: otherwise> CR LF
1225      </xsl:c hoose> CR LF   1236      </xsl:c hoose> CR LF
1226   CR LF   1237   CR LF
1227     <!-- End  paragraph  emit --> CR LF   1238     <!-- End  paragraph  emit --> CR LF
1228     <!--                      --> CR LF   1239     <!--                      --> CR LF
1229     </xsl:el ement> CR LF   1240     </xsl:el ement> CR LF
1230   CR LF   1241   CR LF
1231     <!-- Dro pdown Star t --> CR LF   1242     <!-- Dro pdown Star t --> CR LF
1232     <!--                  --> CR LF   1243     <!--                  --> CR LF
1233     <xsl:if  test="($Pa ramParagra phBehavior /@dropdown  = 'start- open') or  ($ParamPar agraphBeha vior/@drop down = 'st art-closed ')"> CR LF   1244     <xsl:if  test="($Pa ramParagra phBehavior /@dropdown  = 'start- open') or  ($ParamPar agraphBeha vior/@drop down = 'st art-closed ')"> CR LF
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 > CR LF   1245      <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 > CR LF
1235     </xsl:if > CR LF   1246     </xsl:if > CR LF
1236   CR LF   1247   CR LF
1237     <!-- Dro pdown End  --> CR LF   1248     <!-- Dro pdown End  --> CR LF
1238     <!--                --> CR LF   1249     <!--                --> CR LF
1239     <xsl:if  test="$Par amParagrap hBehavior/ @dropdown  = 'end'"> CR LF   1250     <xsl:if  test="$Par amParagrap hBehavior/ @dropdown  = 'end'"> CR LF
1240      <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ks_WriteDI VClose();< /html:scri pt> CR LF   1251      <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ks_WriteDI VClose();< /html:scri pt> CR LF
1241     </xsl:if > CR LF   1252     </xsl:if > CR LF
1242    </xsl:tem plate> CR LF   1253    </xsl:tem plate> CR LF
1243   CR LF   1254   CR LF
1244   CR LF   1255   CR LF
1245    <xsl:temp late name= "Number"> CR LF   1256    <xsl:temp late name= "Number"> CR LF
1246     <xsl:par am name="P aramSplits " /> CR LF   1257     <xsl:par am name="P aramSplits " /> CR LF
1247     <xsl:par am name="P aramCargo"  /> CR LF   1258     <xsl:par am name="P aramCargo"  /> CR LF
1248     <xsl:par am name="P aramLinks"  /> CR LF   1259     <xsl:par am name="P aramLinks"  /> CR LF
1249     <xsl:par am name="P aramSplit"  /> CR LF   1260     <xsl:par am name="P aramSplit"  /> CR LF
1250     <xsl:par am name="P aramParagr aph" /> CR LF   1261     <xsl:par am name="P aramParagr aph" /> CR LF
1251     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1262     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1252     <xsl:par am name="P aramIgnore DocumentNu mber" /> CR LF   1263     <xsl:par am name="P aramIgnore DocumentNu mber" /> CR LF
1253     <xsl:par am name="P aramCharac ter" /> CR LF   1264     <xsl:par am name="P aramCharac ter" /> CR LF
1254     <xsl:par am name="P aramImage"  /> CR LF   1265     <xsl:par am name="P aramImage"  /> CR LF
1255     <xsl:par am name="P aramSepara tor" /> CR LF   1266     <xsl:par am name="P aramSepara tor" /> CR LF
1256     <xsl:par am name="P aramStyle"  /> CR LF   1267     <xsl:par am name="P aramStyle"  /> CR LF
1257   CR LF   1268   CR LF
1258     <xsl:cho ose> CR LF   1269     <xsl:cho ose> CR LF
1259      <xsl:wh en test="$ ParamIgnor eDocumentN umber"> CR LF   1270      <xsl:wh en test="$ ParamIgnor eDocumentN umber"> CR LF
1260       <xsl:c all-templa te name="C ontent-Bul let"> CR LF   1271       <xsl:c all-templa te name="C ontent-Bul let"> CR LF
1261        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1272        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1262        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1273        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1263        <xsl: with-param  name="Par amParagrap h" select= "$ParamPar agraph" /> CR LF   1274        <xsl: with-param  name="Par amParagrap h" select= "$ParamPar agraph" /> CR LF
1264        <xsl: with-param  name="Par amCharacte r" select= "$ParamCha racter" /> CR LF   1275        <xsl: with-param  name="Par amCharacte r" select= "$ParamCha racter" /> CR LF
1265        <xsl: with-param  name="Par amImage" s elect="$Pa ramImage"  /> CR LF   1276        <xsl: with-param  name="Par amImage" s elect="$Pa ramImage"  /> CR LF
1266        <xsl: with-param  name="Par amSeparato r" select= "$ParamSep arator" /> CR LF   1277        <xsl: with-param  name="Par amSeparato r" select= "$ParamSep arator" /> CR LF
1267        <xsl: with-param  name="Par amStyle" s elect="$Pa ramStyle"  /> CR LF   1278        <xsl: with-param  name="Par amStyle" s elect="$Pa ramStyle"  /> CR LF
1268       </xsl: call-templ ate> CR LF   1279       </xsl: call-templ ate> CR LF
1269      </xsl:w hen> CR LF   1280      </xsl:w hen> CR LF
1270   CR LF   1281   CR LF
1271      <xsl:ot herwise> CR LF   1282      <xsl:ot herwise> CR LF
1272       <xsl:v ariable na me="VarBul letPropert iesAsXML"> CR LF   1283       <xsl:v ariable na me="VarBul letPropert iesAsXML"> CR LF
1273        <wwpr oject:Bull etProperti es> CR LF   1284        <wwpr oject:Bull etProperti es> CR LF
1274         <wwp roject:Pro perty Name ="bullet-s tyle" Valu e="{$Param Style}" /> CR LF   1285         <wwp roject:Pro perty Name ="bullet-s tyle" Valu e="{$Param Style}" /> CR LF
1275        </wwp roject:Bul letPropert ies> CR LF   1286        </wwp roject:Bul letPropert ies> CR LF
1276       </xsl: variable> CR LF   1287       </xsl: variable> CR LF
1277       <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)" /> CR LF   1288       <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)" /> CR LF
1278   CR LF   1289   CR LF
1279       <xsl:v ariable na me="VarCar go" select ="$ParamCa rgo/*[loca l-name() ! = 'BulletP roperties' ]/.. | $Va rBulletPro perties" / > CR LF   1290       <xsl:v ariable na me="VarCar go" select ="$ParamCa rgo/*[loca l-name() ! = 'BulletP roperties' ]/.. | $Va rBulletPro perties" / > CR LF
1280   CR LF   1291   CR LF
1281       <xsl:c all-templa te name="T extRun"> CR LF   1292       <xsl:c all-templa te name="T extRun"> CR LF
1282        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1293        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1283        <xsl: with-param  name="Par amCargo" s elect="$Va rCargo" /> CR LF   1294        <xsl: with-param  name="Par amCargo" s elect="$Va rCargo" /> CR LF
1284        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   1295        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
1285        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1296        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1286        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraph/@ id" /> CR LF   1297        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraph/@ id" /> CR LF
1287        <xsl: with-param  name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" /> CR LF   1298        <xsl: with-param  name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" /> CR LF
1288        <xsl: with-param  name="Par amTextRun"  select="$ ParamParag raph/wwdoc :Number[1] " /> CR LF   1299        <xsl: with-param  name="Par amTextRun"  select="$ ParamParag raph/wwdoc :Number[1] " /> CR LF
1289        <xsl: with-param  name="Par amPosition " select=" 0" /> CR LF   1300        <xsl: with-param  name="Par amPosition " select=" 0" /> CR LF
1290       </xsl: call-templ ate> CR LF   1301       </xsl: call-templ ate> CR LF
1291      </xsl:o therwise> CR LF   1302      </xsl:o therwise> CR LF
1292     </xsl:ch oose> CR LF   1303     </xsl:ch oose> CR LF
1293    </xsl:tem plate> CR LF   1304    </xsl:tem plate> CR LF
1294   CR LF   1305   CR LF
1295   CR LF   1306   CR LF
1296    <xsl:temp late name= "Paragraph TextRuns"> CR LF   1307    <xsl:temp late name= "Paragraph TextRuns"> CR LF
1297     <xsl:par am name="P aramSplits " /> CR LF   1308     <xsl:par am name="P aramSplits " /> CR LF
1298     <xsl:par am name="P aramCargo"  /> CR LF   1309     <xsl:par am name="P aramCargo"  /> CR LF
1299     <xsl:par am name="P aramLinks"  /> CR LF   1310     <xsl:par am name="P aramLinks"  /> CR LF
1300     <xsl:par am name="P aramSplit"  /> CR LF   1311     <xsl:par am name="P aramSplit"  /> CR LF
1301     <xsl:par am name="P aramPreser veEmpty" / > CR LF   1312     <xsl:par am name="P aramPreser veEmpty" / > CR LF
1302     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1313     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1303     <xsl:par am name="P aramParagr aph" /> CR LF   1314     <xsl:par am name="P aramParagr aph" /> CR LF
1304   CR LF   1315   CR LF
1305     <!-- Pre vent white space issu es with pr eformatted  text bloc ks --> CR LF   1316     <!-- Pre vent white space issu es with pr eformatted  text bloc ks --> CR LF
1306     <!--                                                               --> CR LF   1317     <!--                                                               --> CR LF
1307     <wwexsld oc:NoBreak  /> CR LF   1318     <wwexsld oc:NoBreak  /> CR LF
1308   CR LF   1319   CR LF
1309     <!-- Non -empty tex t runs --> CR LF   1320     <!-- Non -empty tex t runs --> CR LF
1310     <!--                       --> CR LF   1321     <!--                       --> CR LF
1311      <xsl:varia ble name=" VarTextRun s" select= "$ParamPar agraph/wwd oc:TextRun [count(chi ld::wwdoc: Text[1] |  child::wwd oc:Frame[1 ] | child: :wwdoc:Not e[1] | chi ld::wwdoc: LineBreak[ 1]
) &gt; 0]"  /> CR LF
  1322      <xsl:varia ble name=" VarTextRun s" select= "$ParamPar agraph/wwd oc:TextRun [count(chi ld::wwdoc: Text[1] |  child::wwd oc:Frame[1 ] | child: :wwdoc:Not e[1] | chi ld::wwdoc: LineBreak[ 1]  | child:: wwdoc:Mark er[1] ) &gt; 0]"  /> CR LF
1312   CR LF   1323   CR LF
1313     <!-- Che ck for emp ty paragra phs --> CR LF   1324     <!-- Che ck for emp ty paragra phs --> CR LF
1314     <!--                               --> CR LF   1325     <!--                               --> CR LF
1315     <xsl:cho ose> CR LF   1326     <xsl:cho ose> CR LF
1316      <xsl:wh en test="c ount($VarT extRuns[1] ) = 1"> CR LF   1327      <xsl:wh en test="c ount($VarT extRuns[1] ) = 1"> CR LF
1317       <!-- P aragraph h as content  --> CR LF   1328       <!-- P aragraph h as content  --> CR LF
1318       <!--                          --> CR LF   1329       <!--                          --> CR LF
1319       <xsl:f or-each se lect="$Var TextRuns"> CR LF   1330       <xsl:f or-each se lect="$Var TextRuns"> CR LF
1320        <xsl: variable n ame="VarTe xtRun" sel ect="." /> CR LF   1331        <xsl: variable n ame="VarTe xtRun" sel ect="." /> CR LF
1321   CR LF   1332   CR LF
1322        <xsl: call-templ ate name=" TextRun"> CR LF   1333        <xsl: call-templ ate name=" TextRun"> CR LF
1323         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1334         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1324         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1335         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1325         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1336         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1326         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1337         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1327         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param Paragraph/ @id" /> CR LF   1338         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param Paragraph/ @id" /> CR LF
1328         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF   1339         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF
1329         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> CR LF   1340         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> CR LF
1330         <xsl :with-para m name="Pa ramPositio n" select= "position( )" /> CR LF   1341         <xsl :with-para m name="Pa ramPositio n" select= "position( )" /> CR LF
1331        </xsl :call-temp late> CR LF   1342        </xsl :call-temp late> CR LF
1332       </xsl: for-each> CR LF   1343       </xsl: for-each> CR LF
1333      </xsl:w hen> CR LF   1344      </xsl:w hen> CR LF
1334   CR LF   1345   CR LF
1335      <xsl:ot herwise> CR LF   1346      <xsl:ot herwise> CR LF
1336       <!-- E mpty parag raph! --> CR LF   1347       <!-- E mpty parag raph! --> CR LF
1337       <!--                    --> CR LF   1348       <!--                    --> CR LF
1338       <xsl:i f test="$P aramPreser veEmpty"> CR LF   1349       <xsl:i f test="$P aramPreser veEmpty"> CR LF
1339        <html :a name="{ $ParamPara graph/@id} ">&#160;</ html:a> CR LF   1350        <html :a name="{ $ParamPara graph/@id} ">&#160;</ html:a> CR LF
1340       </xsl: if> CR LF   1351       </xsl: if> CR LF
1341      </xsl:o therwise> CR LF   1352      </xsl:o therwise> CR LF
1342     </xsl:ch oose> CR LF   1353     </xsl:ch oose> CR LF
1343    </xsl:tem plate> CR LF   1354    </xsl:tem plate> CR LF
1344   CR LF   1355   CR LF
1345   CR LF   1356   CR LF
1346    <xsl:temp late name= "SplitOnSe micolon"> CR LF   1357    <xsl:temp late name= "SplitOnSe micolon"> CR LF
1347     <xsl:par am name="P aramString " /> CR LF   1358     <xsl:par am name="P aramString " /> CR LF
1348   CR LF   1359   CR LF
1349     <xsl:cho ose> CR LF   1360     <xsl:cho ose> CR LF
1350      <xsl:wh en test="c ontains($P aramString , ';')"> CR LF   1361      <xsl:wh en test="c ontains($P aramString , ';')"> CR LF
1351       <xsl:v ariable na me="VarPre fix" selec t="substri ng-before( $ParamStri ng, ';')"  /> CR LF   1362       <xsl:v ariable na me="VarPre fix" selec t="substri ng-before( $ParamStri ng, ';')"  /> CR LF
1352       <xsl:v ariable na me="VarSuf fix" selec t="substri ng-after($ ParamStrin g, ';')" / > CR LF   1363       <xsl:v ariable na me="VarSuf fix" selec t="substri ng-after($ ParamStrin g, ';')" / > CR LF
1353   CR LF   1364   CR LF
1354       <xsl:c all-templa te name="S plitOnSemi colon"> CR LF   1365       <xsl:c all-templa te name="S plitOnSemi colon"> CR LF
1355        <xsl: with-param  name="Par amString"  select="$V arPrefix"  /> CR LF   1366        <xsl: with-param  name="Par amString"  select="$V arPrefix"  /> CR LF
1356       </xsl: call-templ ate> CR LF   1367       </xsl: call-templ ate> CR LF
1357       <xsl:c all-templa te name="S plitOnSemi colon"> CR LF   1368       <xsl:c all-templa te name="S plitOnSemi colon"> CR LF
1358        <xsl: with-param  name="Par amString"  select="$V arSuffix"  /> CR LF   1369        <xsl: with-param  name="Par amString"  select="$V arSuffix"  /> CR LF
1359       </xsl: call-templ ate> CR LF   1370       </xsl: call-templ ate> CR LF
1360      </xsl:w hen> CR LF   1371      </xsl:w hen> CR LF
1361   CR LF   1372   CR LF
1362      <xsl:ot herwise> CR LF   1373      <xsl:ot herwise> CR LF
1363       <xsl:v ariable na me="VarNor malizedStr ing" selec t="normali ze-space($ ParamStrin g)" /> CR LF   1374       <xsl:v ariable na me="VarNor malizedStr ing" selec t="normali ze-space($ ParamStrin g)" /> CR LF
1364   CR LF   1375   CR LF
1365       <xsl:i f test="st ring-lengt h($VarNorm alizedStri ng) &gt; 0 "> CR LF   1376       <xsl:i f test="st ring-lengt h($VarNorm alizedStri ng) &gt; 0 "> CR LF
1366        <wwdo c:Text val ue="{$VarN ormalizedS tring}" /> CR LF   1377        <wwdo c:Text val ue="{$VarN ormalizedS tring}" /> CR LF
1367       </xsl: if> CR LF   1378       </xsl: if> CR LF
1368      </xsl:o therwise> CR LF   1379      </xsl:o therwise> CR LF
1369     </xsl:ch oose> CR LF   1380     </xsl:ch oose> CR LF
1370    </xsl:tem plate> CR LF   1381    </xsl:tem plate> CR LF
1371   CR LF   1382   CR LF
1372   CR LF   1383   CR LF
1373    <xsl:temp late name= "ALinkEntr ies"> CR LF   1384    <xsl:temp late name= "ALinkEntr ies"> CR LF
1374     <xsl:par am name="P aramMarker s" /> CR LF   1385     <xsl:par am name="P aramMarker s" /> CR LF
1375   CR LF   1386   CR LF
1376     <xsl:var iable name ="VarALink KeywordsAs XML"> CR LF   1387     <xsl:var iable name ="VarALink KeywordsAs XML"> CR LF
1377      <xsl:fo r-each sel ect="$Para mMarkers"> CR LF   1388      <xsl:fo r-each sel ect="$Para mMarkers"> CR LF
1378       <xsl:v ariable na me="VarMar ker" selec t="." /> CR LF   1389       <xsl:v ariable na me="VarMar ker" selec t="." /> CR LF
1379   CR LF   1390   CR LF
1380       <xsl:v ariable na me="VarMar kerRule" s elect="wwp rojext:Get Rule('Mark er', $VarM arker/@nam e)" /> CR LF   1391       <xsl:v ariable na me="VarMar kerRule" s elect="wwp rojext:Get Rule('Mark er', $VarM arker/@nam e)" /> CR LF
1381       <xsl:v ariable na me="VarMar kerType" s elect="$Va rMarkerRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'mark er-type']/ @Value" /> CR LF   1392       <xsl:v ariable na me="VarMar kerType" s elect="$Va rMarkerRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'mark er-type']/ @Value" /> CR LF
1382   CR LF   1393   CR LF
1383       <xsl:i f test="$V arMarkerTy pe = 'alin k-link-key words'"> CR LF   1394       <xsl:i f test="$V arMarkerTy pe = 'alin k-link-key words'"> CR LF
1384        <xsl: variable n ame="VarMa rkerText"> CR LF   1395        <xsl: variable n ame="VarMa rkerText"> CR LF
1385         <xsl :for-each  select="$V arMarker/w wdoc:TextR un/wwdoc:T ext"> CR LF   1396         <xsl :for-each  select="$V arMarker/w wdoc:TextR un/wwdoc:T ext"> CR LF
1386          <xs l:value-of  select="@ value" /> CR LF   1397          <xs l:value-of  select="@ value" /> CR LF
1387         </xs l:for-each > CR LF   1398         </xs l:for-each > CR LF
1388        </xsl :variable> CR LF   1399        </xsl :variable> CR LF
1389   CR LF   1400   CR LF
1390        <xsl: call-templ ate name=" SplitOnSem icolon"> CR LF   1401        <xsl: call-templ ate name=" SplitOnSem icolon"> CR LF
1391         <xsl :with-para m name="Pa ramString"  select="$ VarMarkerT ext" /> CR LF   1402         <xsl :with-para m name="Pa ramString"  select="$ VarMarkerT ext" /> CR LF
1392        </xsl :call-temp late> CR LF   1403        </xsl :call-temp late> CR LF
1393       </xsl: if> CR LF   1404       </xsl: if> CR LF
1394      </xsl:f or-each> CR LF   1405      </xsl:f or-each> CR LF
1395     </xsl:va riable> CR LF   1406     </xsl:va riable> CR LF
1396     <xsl:var iable name ="VarALink Keywords"  select="ms xsl:node-s et($VarALi nkKeywords AsXML)/*"  /> CR LF   1407     <xsl:var iable name ="VarALink Keywords"  select="ms xsl:node-s et($VarALi nkKeywords AsXML)/*"  /> CR LF
1397   CR LF   1408   CR LF
1398     <xsl:var iable name ="VarALink UniqueKeyw ordsAsXML" > CR LF   1409     <xsl:var iable name ="VarALink UniqueKeyw ordsAsXML" > CR LF
1399      <xsl:fo r-each sel ect="$VarA LinkKeywor ds"> CR LF   1410      <xsl:fo r-each sel ect="$VarA LinkKeywor ds"> CR LF
1400       <xsl:v ariable na me="VarTex t" select= "." /> CR LF   1411       <xsl:v ariable na me="VarTex t" select= "." /> CR LF
1401   CR LF   1412   CR LF
1402       <xsl:i f test="co unt($VarTe xt | key(' wwdoc-text -by-value' , $VarText /@value)[1 ]) = 1"> CR LF   1413       <xsl:i f test="co unt($VarTe xt | key(' wwdoc-text -by-value' , $VarText /@value)[1 ]) = 1"> CR LF
1403        <xsl: copy-of se lect="$Var Text" /> CR LF   1414        <xsl: copy-of se lect="$Var Text" /> CR LF
1404       </xsl: if> CR LF   1415       </xsl: if> CR LF
1405      </xsl:f or-each> CR LF   1416      </xsl:f or-each> CR LF
1406     </xsl:va riable> CR LF   1417     </xsl:va riable> CR LF
1407     <xsl:var iable name ="VarALink UniqueKeyw ords" sele ct="msxsl: node-set($ VarALinkUn iqueKeywor dsAsXML)/* " /> CR LF   1418     <xsl:var iable name ="VarALink UniqueKeyw ords" sele ct="msxsl: node-set($ VarALinkUn iqueKeywor dsAsXML)/* " /> CR LF
1408   CR LF   1419   CR LF
1409     <xsl:for -each sele ct="$VarAL inkUniqueK eywords"> CR LF   1420     <xsl:for -each sele ct="$VarAL inkUniqueK eywords"> CR LF
1410      <xsl:va riable nam e="VarText " select=" ." /> CR LF   1421      <xsl:va riable nam e="VarText " select=" ." /> CR LF
1411   CR LF   1422   CR LF
1412      <xsl:va lue-of sel ect="conca t('&quot;' , $VarText /@value, ' &quot;')"  /> CR LF   1423      <xsl:va lue-of sel ect="conca t('&quot;' , $VarText /@value, ' &quot;')"  /> CR LF
1413      <xsl:if  test="pos ition() !=  last()"> CR LF   1424      <xsl:if  test="pos ition() !=  last()"> CR LF
1414       <xsl:v alue-of se lect="', ' " /> CR LF   1425       <xsl:v alue-of se lect="', ' " /> CR LF
1415      </xsl:i f> CR LF   1426      </xsl:i f> CR LF
1416     </xsl:fo r-each> CR LF   1427     </xsl:fo r-each> CR LF
1417    </xsl:tem plate> CR LF   1428    </xsl:tem plate> CR LF
1418   CR LF   1429   CR LF
1419   CR LF   1430   CR LF
1420    <xsl:temp late name= "LinkInfo" > CR LF   1431    <xsl:temp late name= "LinkInfo" > CR LF
1421     <xsl:par am name="P aramSplits " /> CR LF   1432     <xsl:par am name="P aramSplits " /> CR LF
1422     <xsl:par am name="P aramLinks"  /> CR LF   1433     <xsl:par am name="P aramLinks"  /> CR LF
1423     <xsl:par am name="P aramSplit"  /> CR LF   1434     <xsl:par am name="P aramSplit"  /> CR LF
1424     <xsl:par am name="P aramDocume ntLink" /> CR LF   1435     <xsl:par am name="P aramDocume ntLink" /> CR LF
1425   CR LF   1436   CR LF
1426     <xsl:ele ment name= "LinkInfo"  namespace ="urn:WebW orks-Engin e-Links-Sc hema"> CR LF   1437     <xsl:ele ment name= "LinkInfo"  namespace ="urn:WebW orks-Engin e-Links-Sc hema"> CR LF
1427      <xsl:if  test="cou nt($ParamD ocumentLin k) &gt; 0" > CR LF   1438      <xsl:if  test="cou nt($ParamD ocumentLin k) &gt; 0" > CR LF
1428       <!-- R esolve lin k --> CR LF   1439       <!-- R esolve lin k --> CR LF
1429       <!--                --> CR LF   1440       <!--                --> CR LF
1430       <xsl:v ariable na me="VarRes olvedLinkI nfoAsXML"> CR LF   1441       <xsl:v ariable na me="VarRes olvedLinkI nfoAsXML"> CR LF
1431        <xsl: call-templ ate name=" Links-Reso lve"> CR LF   1442        <xsl: call-templ ate name=" Links-Reso lve"> CR LF
1432         <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para meterAllow Baggage" / > CR LF   1443         <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para meterAllow Baggage" / > CR LF
1433         <xsl :with-para m name="Pa ramAllowGr oupToGroup " select=" $Parameter AllowGroup ToGroup" / > CR LF   1444         <xsl :with-para m name="Pa ramAllowGr oupToGroup " select=" $Parameter AllowGroup ToGroup" / > CR LF
1434         <xsl :with-para m name="Pa ramAllowUR L" select= "$Paramete rAllowURL"  /> CR LF   1445         <xsl :with-para m name="Pa ramAllowUR L" select= "$Paramete rAllowURL"  /> CR LF
1435         <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$Parame terBaggage SplitFileT ype" /> CR LF   1446         <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$Parame terBaggage SplitFileT ype" /> CR LF
1436         <xsl :with-para m name="Pa ramProject " select=" $GlobalPro ject" /> CR LF   1447         <xsl :with-para m name="Pa ramProject " select=" $GlobalPro ject" /> CR LF
1437         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1448         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1438         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1449         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1439         <xsl :with-para m name="Pa ramSplitGr oupID" sel ect="$Para mSplit/@gr oupID" /> CR LF   1450         <xsl :with-para m name="Pa ramSplitGr oupID" sel ect="$Para mSplit/@gr oupID" /> CR LF
1440         <xsl :with-para m name="Pa ramSplitDo cumentID"  select="$P aramSplit/ @documentI D" /> CR LF   1451         <xsl :with-para m name="Pa ramSplitDo cumentID"  select="$P aramSplit/ @documentI D" /> CR LF
1441         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" /> CR LF   1452         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" /> CR LF
1442        </xsl :call-temp late> CR LF   1453        </xsl :call-temp late> CR LF
1443       </xsl: variable> CR LF   1454       </xsl: variable> CR LF
1444       <xsl:v ariable na me="VarRes olvedLinkI nfo" selec t="msxsl:n ode-set($V arResolved LinkInfoAs XML)/wwlin ks:Resolve dLink" /> CR LF   1455       <xsl:v ariable na me="VarRes olvedLinkI nfo" selec t="msxsl:n ode-set($V arResolved LinkInfoAs XML)/wwlin ks:Resolve dLink" /> CR LF
1445   CR LF   1456   CR LF
1446       <!-- @ title --> CR LF   1457       <!-- @ title --> CR LF
1447       <!--         --> CR LF   1458       <!--         --> CR LF
1448       <xsl:i f test="st ring-lengt h($VarReso lvedLinkIn fo/@title)  &gt; 0"> CR LF   1459       <xsl:i f test="st ring-lengt h($VarReso lvedLinkIn fo/@title)  &gt; 0"> CR LF
1449        <xsl: attribute  name="titl e"> CR LF   1460        <xsl: attribute  name="titl e"> CR LF
1450         <xsl :value-of  select="$V arResolved LinkInfo/@ title" /> CR LF   1461         <xsl :value-of  select="$V arResolved LinkInfo/@ title" /> CR LF
1451        </xsl :attribute > CR LF   1462        </xsl :attribute > CR LF
1452       </xsl: if> CR LF   1463       </xsl: if> CR LF
1453   CR LF   1464   CR LF
1454       <xsl:c hoose> CR LF   1465       <xsl:c hoose> CR LF
1455        <!--  Baggage -- > CR LF   1466        <!--  Baggage -- > CR LF
1456        <!--          -- > CR LF   1467        <!--          -- > CR LF
1457        <xsl: when test= "$VarResol vedLinkInf o/@type =  'baggage'" > CR LF   1468        <xsl: when test= "$VarResol vedLinkInf o/@type =  'baggage'" > CR LF
1458         <xsl :variable  name="VarR elativePat h" select= "wwuri:Get RelativeTo ($VarResol vedLinkInf o/@path, $ ParamSplit /@path)" / > CR LF   1469         <xsl :variable  name="VarR elativePat h" select= "wwuri:Get RelativeTo ($VarResol vedLinkInf o/@path, $ ParamSplit /@path)" / > CR LF
1459   CR LF   1470   CR LF
1460         <xsl :attribute  name="hre f"> CR LF   1471         <xsl :attribute  name="hre f"> CR LF
1461          <xs l:value-of  select="$ VarRelativ ePath" /> CR LF   1472          <xs l:value-of  select="$ VarRelativ ePath" /> CR LF
1462         </xs l:attribut e> CR LF   1473         </xs l:attribut e> CR LF
1463   CR LF   1474   CR LF
1464         <xsl :variable  name="VarT arget" sel ect="wwpro jext:GetFo rmatSettin g('baggage -file-targ et', 'exte rnal_windo w')" /> CR LF   1475         <xsl :variable  name="VarT arget" sel ect="wwpro jext:GetFo rmatSettin g('baggage -file-targ et', 'exte rnal_windo w')" /> CR LF
1465   CR LF   1476   CR LF
1466         <xsl :if test=" (string-le ngth($VarT arget) &gt ; 0) and ( $VarTarget  != 'none' )"> CR LF   1477         <xsl :if test=" (string-le ngth($VarT arget) &gt ; 0) and ( $VarTarget  != 'none' )"> CR LF
1467          <xs l:attribut e name="ta rget"> CR LF   1478          <xs l:attribut e name="ta rget"> CR LF
1468           <x sl:value-o f select=" $VarTarget " /> CR LF   1479           <x sl:value-o f select=" $VarTarget " /> CR LF
1469          </x sl:attribu te> CR LF   1480          </x sl:attribu te> CR LF
1470         </xs l:if> CR LF   1481         </xs l:if> CR LF
1471        </xsl :when> CR LF   1482        </xsl :when> CR LF
1472   CR LF   1483   CR LF
1473        <!--  Document - -> CR LF   1484        <!--  Document - -> CR LF
1474        <!--           - -> CR LF   1485        <!--           - -> CR LF
1475        <xsl: when test= "($VarReso lvedLinkIn fo/@type =  'document ') or ($Va rResolvedL inkInfo/@t ype = 'gro up') or ($ VarResolve dLinkInfo/ @type = 'p roject')"> CR LF   1486        <xsl: when test= "($VarReso lvedLinkIn fo/@type =  'document ') or ($Va rResolvedL inkInfo/@t ype = 'gro up') or ($ VarResolve dLinkInfo/ @type = 'p roject')"> CR LF
1476         <!--  Valid lin k --> CR LF   1487         <!--  Valid lin k --> CR LF
1477         <!--              --> CR LF   1488         <!--              --> CR LF
1478         <xsl :variable  name="VarG roupName"  select="ww projext:Ge tGroupName ($VarResol vedLinkInf o/@groupID )" /> CR LF   1489         <xsl :variable  name="VarG roupName"  select="ww projext:Ge tGroupName ($VarResol vedLinkInf o/@groupID )" /> CR LF
1479         <xsl :variable  name="VarO utputDirec toryPath"  select="ww filesystem :Combine(w wprojext:G etTargetOu tputDirect oryPath(),  $VarGroup Name)" /> CR LF   1490         <xsl :variable  name="VarO utputDirec toryPath"  select="ww filesystem :Combine(w wprojext:G etTargetOu tputDirect oryPath(),  $VarGroup Name)" /> CR LF
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')) " /> CR LF   1491         <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')) " /> CR LF
1481         <xsl :variable  name="VarP opupPath"> CR LF   1492         <xsl :variable  name="VarP opupPath"> CR LF
1482          <xs l:for-each  select="$ GlobalProj ectSplits[ 1]"> CR LF   1493          <xs l:for-each  select="$ GlobalProj ectSplits[ 1]"> CR LF
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]"  /> CR LF   1494           <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]"  /> CR LF
1484           <x sl:for-eac h select=" $VarSplits Popups[1]" > CR LF   1495           <x sl:for-eac h select=" $VarSplits Popups[1]" > CR LF
1485            < xsl:variab le name="V arSplitsPo pup" selec t="." /> CR LF   1496            < xsl:variab le name="V arSplitsPo pup" selec t="." /> CR LF
1486   CR LF   1497   CR LF
1487            < xsl:value- of select= "wwuri:Get RelativeTo ($VarSplit sPopup/@pa th, wwfile system:Com bine($VarO utputDirec toryPath,  'dummy.com ponent'))"  /> CR LF   1498            < xsl:value- of select= "wwuri:Get RelativeTo ($VarSplit sPopup/@pa th, wwfile system:Com bine($VarO utputDirec toryPath,  'dummy.com ponent'))"  /> CR LF
1488           </ xsl:for-ea ch> CR LF   1499           </ xsl:for-ea ch> CR LF
1489          </x sl:for-eac h> CR LF   1500          </x sl:for-eac h> CR LF
1490         </xs l:variable > CR LF   1501         </xs l:variable > CR LF
1491   CR LF   1502   CR LF
1492         <!--  Popup onl y? --> CR LF   1503         <!--  Popup onl y? --> CR LF
1493         <!--               --> CR LF   1504         <!--               --> CR LF
1494         <xsl :attribute  name="hre f"> CR LF   1505         <xsl :attribute  name="hre f"> CR LF
1495          <!- - JavaScri pt Link -- > CR LF   1506          <!- - JavaScri pt Link -- > CR LF
1496          <!- -                  -- > CR LF   1507          <!- -                  -- > CR LF
1497          <xs l:text>jav ascript:WW HClickedPo pup('</xsl :text> CR LF   1508          <xs l:text>jav ascript:WW HClickedPo pup('</xsl :text> CR LF
1498   CR LF   1509   CR LF
1499          <!- - Context  --> CR LF   1510          <!- - Context  --> CR LF
1500          <!- -          --> CR LF   1511          <!- -          --> CR LF
1501          <xs l:call-tem plate name ="WWHelpCo ntext"> CR LF   1512          <xs l:call-tem plate name ="WWHelpCo ntext"> CR LF
1502           <x sl:with-pa ram name=" ParamProje ct" select ="$GlobalP roject" /> CR LF   1513           <x sl:with-pa ram name=" ParamProje ct" select ="$GlobalP roject" /> CR LF
1503           <x sl:with-pa ram name=" ParamGroup ID" select ="$VarReso lvedLinkIn fo/@groupI D" /> CR LF   1514           <x sl:with-pa ram name=" ParamGroup ID" select ="$VarReso lvedLinkIn fo/@groupI D" /> CR LF
1504          </x sl:call-te mplate> CR LF   1515          </x sl:call-te mplate> CR LF
1505          <xs l:text>',  '</xsl:tex t> CR LF   1516          <xs l:text>',  '</xsl:tex t> CR LF
1506   CR LF   1517   CR LF
1507          <!- - Link --> CR LF   1518          <!- - Link --> CR LF
1508          <!- -      --> CR LF   1519          <!- -      --> CR LF
1509          <xs l:if test= "(string-l ength($Var ResolvedLi nkInfo/@po pup-only)  = 0) or ($ VarResolve dLinkInfo/ @popup-onl y != 'true ')"> CR LF   1520          <xs l:if test= "(string-l ength($Var ResolvedLi nkInfo/@po pup-only)  = 0) or ($ VarResolve dLinkInfo/ @popup-onl y != 'true ')"> CR LF
1510           <x sl:value-o f select=" wwstring:J avaScriptE ncoding($V arLinkPath )" /> CR LF   1521           <x sl:value-o f select=" wwstring:J avaScriptE ncoding($V arLinkPath )" /> CR LF
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)" > CR LF   1522           <x sl:if test ="(string- length($Pa ramDocumen tLink/@anc hor) &gt;  0) and (st ring-lengt h($VarReso lvedLinkIn fo/@linkid ) &gt; 0)" > CR LF
1512            < xsl:text># </xsl:text > CR LF   1523            < xsl:text># </xsl:text > CR LF
1513            < xsl:value- of select= "wwstring: JavaScript Encoding($ VarResolve dLinkInfo/ @linkid)"  /> CR LF   1524            < xsl:value- of select= "wwstring: JavaScript Encoding($ VarResolve dLinkInfo/ @linkid)"  /> CR LF
1514           </ xsl:if> CR LF   1525           </ xsl:if> CR LF
1515          </x sl:if> CR LF   1526          </x sl:if> CR LF
1516          <xs l:text>',  '</xsl:tex t> CR LF   1527          <xs l:text>',  '</xsl:tex t> CR LF
1517   CR LF   1528   CR LF
1518          <!- - Popup Li nk --> CR LF   1529          <!- - Popup Li nk --> CR LF
1519          <!- -             --> CR LF   1530          <!- -             --> CR LF
1520          <xs l:value-of  select="w wstring:Ja vaScriptEn coding($Va rPopupPath )" /> CR LF   1531          <xs l:value-of  select="w wstring:Ja vaScriptEn coding($Va rPopupPath )" /> CR LF
1521          <xs l:text>'); </xsl:text > CR LF   1532          <xs l:text>'); </xsl:text > CR LF
1522         </xs l:attribut e> CR LF   1533         </xs l:attribut e> CR LF
1523   CR LF   1534   CR LF
1524         <!--  Popup --> CR LF   1535         <!--  Popup --> CR LF
1525         <!--        --> CR LF   1536         <!--        --> CR LF
1526         <xsl :if test=" $VarResolv edLinkInfo /@popup =  'true'"> CR LF   1537         <xsl :if test=" $VarResolv edLinkInfo /@popup =  'true'"> CR LF
1527          <xs l:attribut e name="on MouseOver" > CR LF   1538          <xs l:attribut e name="on MouseOver" > CR LF
1528           <! -- JavaScr ipt Link - -> CR LF   1539           <! -- JavaScr ipt Link - -> CR LF
1529           <! --                  - -> CR LF   1540           <! --                  - -> CR LF
1530           <x sl:text>ja vascript:W WHShowPopu p('</xsl:t ext> CR LF   1541           <x sl:text>ja vascript:W WHShowPopu p('</xsl:t ext> CR LF
1531   CR LF   1542   CR LF
1532           <! -- Context  --> CR LF   1543           <! -- Context  --> CR LF
1533           <! --          --> CR LF   1544           <! --          --> CR LF
1534           <x sl:call-te mplate nam e="WWHelpC ontext"> CR LF   1545           <x sl:call-te mplate nam e="WWHelpC ontext"> CR LF
1535            < xsl:with-p aram name= "ParamProj ect" selec t="$Global Project" / > CR LF   1546            < xsl:with-p aram name= "ParamProj ect" selec t="$Global Project" / > CR LF
1536            < xsl:with-p aram name= "ParamGrou pID" selec t="$VarRes olvedLinkI nfo/@group ID" /> CR LF   1547            < xsl:with-p aram name= "ParamGrou pID" selec t="$VarRes olvedLinkI nfo/@group ID" /> CR LF
1537           </ xsl:call-t emplate> CR LF   1548           </ xsl:call-t emplate> CR LF
1538           <x sl:text>',  '</xsl:te xt> CR LF   1549           <x sl:text>',  '</xsl:te xt> CR LF
1539   CR LF   1550   CR LF
1540           <! -- Popup L ink --> CR LF   1551           <! -- Popup L ink --> CR LF
1541           <! --             --> CR LF   1552           <! --             --> CR LF
1542           <x sl:value-o f select=" wwstring:J avaScriptE ncoding($V arPopupPat h)" /> CR LF   1553           <x sl:value-o f select=" wwstring:J avaScriptE ncoding($V arPopupPat h)" /> CR LF
1543           <x sl:text>',  (document .all||docu ment.getEl ementById| |document. layers)?ev ent:null); </xsl:text > CR LF   1554           <x sl:text>',  (document .all||docu ment.getEl ementById| |document. layers)?ev ent:null); </xsl:text > CR LF
1544          </x sl:attribu te> CR LF   1555          </x sl:attribu te> CR LF
1545   CR LF   1556   CR LF
1546          <xs l:attribut e name="on MouseOut"> CR LF   1557          <xs l:attribut e name="on MouseOut"> CR LF
1547           <x sl:text>WW HHidePopup ();</xsl:t ext> CR LF   1558           <x sl:text>WW HHidePopup ();</xsl:t ext> CR LF
1548          </x sl:attribu te> CR LF   1559          </x sl:attribu te> CR LF
1549         </xs l:if> CR LF   1560         </xs l:if> CR LF
1550        </xsl :when> CR LF   1561        </xsl :when> CR LF
1551   CR LF   1562   CR LF
1552        <!--  URL --> CR LF   1563        <!--  URL --> CR LF
1553        <!--      --> CR LF   1564        <!--      --> CR LF
1554        <xsl: when test= "$VarResol vedLinkInf o/@type =  'url'"> CR LF   1565        <xsl: when test= "$VarResol vedLinkInf o/@type =  'url'"> CR LF
1555         <xsl :attribute  name="hre f"> CR LF   1566         <xsl :attribute  name="hre f"> CR LF
1556          <xs l:value-of  select="$ VarResolve dLinkInfo/ @url" /> CR LF   1567          <xs l:value-of  select="$ VarResolve dLinkInfo/ @url" /> CR LF
1557         </xs l:attribut e> CR LF   1568         </xs l:attribut e> CR LF
1558   CR LF   1569   CR LF
1559         <!--  External  URL Target  --> CR LF   1570         <!--  External  URL Target  --> CR LF
1560         <!--                        --> CR LF   1571         <!--                        --> CR LF
1561         <xsl :if test=" not(wwuri: IsFile($Va rResolvedL inkInfo/@u rl))"> CR LF   1572         <xsl :if test=" not(wwuri: IsFile($Va rResolvedL inkInfo/@u rl))"> CR LF
1562          <xs l:variable  name="Var Target" se lect="wwpr ojext:GetF ormatSetti ng('extern al-url-tar get', 'ext ernal_wind ow')" /> CR LF   1573          <xs l:variable  name="Var Target" se lect="wwpr ojext:GetF ormatSetti ng('extern al-url-tar get', 'ext ernal_wind ow')" /> CR LF
1563   CR LF   1574   CR LF
1564          <xs l:if test= "(string-l ength($Var Target) &g t; 0) and  ($VarTarge t != 'none ')"> CR LF   1575          <xs l:if test= "(string-l ength($Var Target) &g t; 0) and  ($VarTarge t != 'none ')"> CR LF
1565           <x sl:attribu te name="t arget"> CR LF   1576           <x sl:attribu te name="t arget"> CR LF
1566            < xsl:value- of select= "$VarTarge t" /> CR LF   1577            < xsl:value- of select= "$VarTarge t" /> CR LF
1567           </ xsl:attrib ute> CR LF   1578           </ xsl:attrib ute> CR LF
1568          </x sl:if> CR LF   1579          </x sl:if> CR LF
1569         </xs l:if> CR LF   1580         </xs l:if> CR LF
1570        </xsl :when> CR LF   1581        </xsl :when> CR LF
1571       </xsl: choose> CR LF   1582       </xsl: choose> CR LF
1572      </xsl:i f> CR LF   1583      </xsl:i f> CR LF
1573     </xsl:el ement> CR LF   1584     </xsl:el ement> CR LF
1574    </xsl:tem plate> CR LF   1585    </xsl:tem plate> CR LF
1575   CR LF   1586   CR LF
1576   CR LF   1587   CR LF
1577    <xsl:temp late name= "TextRun"> CR LF   1588    <xsl:temp late name= "TextRun"> CR LF
1578     <xsl:par am name="P aramSplits " /> CR LF   1589     <xsl:par am name="P aramSplits " /> CR LF
1579     <xsl:par am name="P aramCargo"  /> CR LF   1590     <xsl:par am name="P aramCargo"  /> CR LF
1580     <xsl:par am name="P aramLinks"  /> CR LF   1591     <xsl:par am name="P aramLinks"  /> CR LF
1581     <xsl:par am name="P aramSplit"  /> CR LF   1592     <xsl:par am name="P aramSplit"  /> CR LF
1582     <xsl:par am name="P aramParagr aphID" /> CR LF   1593     <xsl:par am name="P aramParagr aphID" /> CR LF
1583     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1594     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1584     <xsl:par am name="P aramTextRu n" /> CR LF   1595     <xsl:par am name="P aramTextRu n" /> CR LF
1585     <xsl:par am name="P aramPositi on" /> CR LF   1596     <xsl:par am name="P aramPositi on" /> CR LF
1586   CR LF   1597   CR LF
1587     <!-- Get  rule --> CR LF   1598     <!-- Get  rule --> CR LF
1588     <!--           --> CR LF   1599     <!--           --> CR LF
1589     <xsl:var iable name ="VarRule"  select="w wprojext:G etRule('Ch aracter',  $ParamText Run/@style name)" /> CR LF   1600     <xsl:var iable name ="VarRule"  select="w wprojext:G etRule('Ch aracter',  $ParamText Run/@style name)" /> CR LF
1590   CR LF   1601   CR LF
1591     <!-- Gen erate outp ut? --> CR LF   1602     <!-- Gen erate outp ut? --> CR LF
1592     <!---                   --> CR LF   1603     <!---                   --> CR LF
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" /> CR LF   1604     <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" /> CR LF
1594     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF   1605     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF
1595     <xsl:if  test="$Var GenerateOu tput"> CR LF   1606     <xsl:if  test="$Var GenerateOu tput"> CR LF
1596      <!-- Pa ss-through ? --> CR LF   1607      <!-- Pa ss-through ? --> CR LF
1597      <!--                 --> CR LF   1608      <!--                 --> CR LF
1598      <xsl:va riable nam e="VarPass Through"> CR LF   1609      <xsl:va riable nam e="VarPass Through"> CR LF
    1610       <xsl:v ariable na me="VarPas sThroughOp tion" sele ct="$VarRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pas s-through' ]/@Value"  /> CR LF
    1611   CR LF
    1612       <xsl:c hoose> CR LF
    1613        <xsl: when test= "$VarPassT hroughOpti on = 'true '"> CR LF
    1614         <xsl :value-of  select="tr ue()" /> CR LF
    1615        </xsl :when> CR LF
    1616   CR LF
    1617        <xsl: otherwise> CR LF
1599       <xsl:c all-templa te name="C onditions- PassThroug h"> CR LF   1618         <xsl :call-temp late name= "Condition s-PassThro ugh"> CR LF
1600        <xsl: with-param  name="Par amConditio ns" select ="$ParamTe xtRun/wwdo c:Conditio ns" /> CR LF   1619          <xs l:with-par am name="P aramCondit ions" sele ct="$Param TextRun/ww doc:Condit ions" /> CR LF
1601       </xsl: call-templ ate> CR LF   1620         </xs l:call-tem plate> CR LF
    1621        </xsl :otherwise > CR LF
    1622       </xsl: choose> CR LF
1602      </xsl:v ariable> CR LF   1623      </xsl:v ariable> CR LF
1603   CR LF   1624   CR LF
1604      <xsl:ch oose> CR LF   1625      <xsl:ch oose> CR LF
1605       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF   1626       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF
1606        <xsl: call-templ ate name=" TextRun-Pa ssThrough" > CR LF   1627        <xsl: call-templ ate name=" TextRun-Pa ssThrough" > CR LF
1607         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF   1628         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF
1608        </xsl :call-temp late> CR LF   1629        </xsl :call-temp late> CR LF
1609       </xsl: when> CR LF   1630       </xsl: when> CR LF
1610   CR LF   1631   CR LF
1611       <xsl:o therwise> CR LF   1632       <xsl:o therwise> CR LF
1612        <!--  A-Link? -- > CR LF   1633        <!--  A-Link? -- > CR LF
1613        <!--          -- > CR LF   1634        <!--          -- > CR LF
1614        <xsl: variable n ame="VarAL inkOption"  select="$ VarRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'alink']/ @Value" /> CR LF   1635        <xsl: variable n ame="VarAL inkOption"  select="$ VarRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'alink']/ @Value" /> CR LF
1615        <xsl: variable n ame="VarAL ink" selec t="$VarALi nkOption =  'true'" / > CR LF   1636        <xsl: variable n ame="VarAL ink" selec t="$VarALi nkOption =  'true'" / > CR LF
1616   CR LF   1637   CR LF
1617        <xsl: choose> CR LF   1638        <xsl: choose> CR LF
1618         <!--  Handle A- Links --> CR LF   1639         <!--  Handle A- Links --> CR LF
1619         <!--                  --> CR LF   1640         <!--                  --> CR LF
1620         <xsl :when test ="(count($ ParamCargo /wwalinks: ALink[1])  = 0) and ( $VarALink) "> CR LF   1641         <xsl :when test ="(count($ ParamCargo /wwalinks: ALink[1])  = 0) and ( $VarALink) "> CR LF
1621          <!- - Update c argo --> CR LF   1642          <!- - Update c argo --> CR LF
1622          <!- -               --> CR LF   1643          <!- -               --> CR LF
1623          <xs l:variable  name="Var CargoALink AsXML"> CR LF   1644          <xs l:variable  name="Var CargoALink AsXML"> CR LF
1624           <x sl:variabl e name="Va rALinkEntr ies"> CR LF   1645           <x sl:variabl e name="Va rALinkEntr ies"> CR LF
1625            < xsl:call-t emplate na me="ALinkE ntries"> CR LF   1646            < xsl:call-t emplate na me="ALinkE ntries"> CR LF
1626              <xsl:with- param name ="ParamMar kers" sele ct="$Param TextRun/ww doc:Marker " /> CR LF   1647              <xsl:with- param name ="ParamMar kers" sele ct="$Param TextRun/ww doc:Marker " /> CR LF
1627            < /xsl:call- template> CR LF   1648            < /xsl:call- template> CR LF
1628           </ xsl:variab le> CR LF   1649           </ xsl:variab le> CR LF
1629   CR LF   1650   CR LF
1630           <w walinks:AL ink> CR LF   1651           <w walinks:AL ink> CR LF
1631            < xsl:attrib ute name=" href"> CR LF   1652            < xsl:attrib ute name=" href"> CR LF
1632              <xsl:value -of select ="'javascr ipt:WWHDoN othingHREF ();'" /> CR LF   1653              <xsl:value -of select ="'javascr ipt:WWHDoN othingHREF ();'" /> CR LF
1633            < /xsl:attri bute> CR LF   1654            < /xsl:attri bute> CR LF
1634            < xsl:attrib ute name=" onClick"> CR LF   1655            < xsl:attrib ute name=" onClick"> CR LF
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);')" /> CR LF   1656              <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);')" /> CR LF
1636            < /xsl:attri bute> CR LF   1657            < /xsl:attri bute> CR LF
1637           </ wwalinks:A Link> CR LF   1658           </ wwalinks:A Link> CR LF
1638          </x sl:variabl e> CR LF   1659          </x sl:variabl e> CR LF
1639          <xs l:variable  name="Var CargoALink " select=" msxsl:node -set($VarC argoALinkA sXML)" /> CR LF   1660          <xs l:variable  name="Var CargoALink " select=" msxsl:node -set($VarC argoALinkA sXML)" /> CR LF
1640          <xs l:variable  name="Var Cargo" sel ect="$Para mCargo/*/. . | $VarCa rgoALink"  /> CR LF   1661          <xs l:variable  name="Var Cargo" sel ect="$Para mCargo/*/. . | $VarCa rgoALink"  /> CR LF
1641   CR LF   1662   CR LF
1642          <xs l:call-tem plate name ="TextRun- Normal"> CR LF   1663          <xs l:call-tem plate name ="TextRun- Normal"> CR LF
1643           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   1664           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
1644           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  /> CR LF   1665           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  /> CR LF
1645           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   1666           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
1646           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   1667           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
1647           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> CR LF   1668           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> CR LF
1648           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$ParamU seCharacte rStyles" / > CR LF   1669           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$ParamU seCharacte rStyles" / > CR LF
1649           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> CR LF   1670           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> CR LF
1650           <x sl:with-pa ram name=" ParamRule"  select="$ VarRule" / > CR LF   1671           <x sl:with-pa ram name=" ParamRule"  select="$ VarRule" / > CR LF
1651           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > CR LF   1672           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > CR LF
1652          </x sl:call-te mplate> CR LF   1673          </x sl:call-te mplate> CR LF
1653         </xs l:when> CR LF   1674         </xs l:when> CR LF
1654   CR LF   1675   CR LF
1655         <xsl :otherwise > CR LF   1676         <xsl :otherwise > CR LF
1656          <xs l:call-tem plate name ="TextRun- Normal"> CR LF   1677          <xs l:call-tem plate name ="TextRun- Normal"> CR LF
1657           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   1678           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
1658           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF   1679           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF
1659           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   1680           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
1660           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   1681           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
1661           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> CR LF   1682           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> CR LF
1662           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$ParamU seCharacte rStyles" / > CR LF   1683           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$ParamU seCharacte rStyles" / > CR LF
1663           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> CR LF   1684           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> CR LF
1664           <x sl:with-pa ram name=" ParamRule"  select="$ VarRule" / > CR LF   1685           <x sl:with-pa ram name=" ParamRule"  select="$ VarRule" / > CR LF
1665           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > CR LF   1686           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > CR LF
1666          </x sl:call-te mplate> CR LF   1687          </x sl:call-te mplate> CR LF
1667         </xs l:otherwis e> CR LF   1688         </xs l:otherwis e> CR LF
1668        </xsl :choose> CR LF   1689        </xsl :choose> CR LF
1669       </xsl: otherwise> CR LF   1690       </xsl: otherwise> CR LF
1670      </xsl:c hoose> CR LF   1691      </xsl:c hoose> CR LF
1671     </xsl:if > CR LF   1692     </xsl:if > CR LF
1672    </xsl:tem plate> CR LF   1693    </xsl:tem plate> CR LF
1673   CR LF   1694   CR LF
1674   CR LF   1695   CR LF
1675    <xsl:temp late name= "TextRun-P assThrough "> CR LF   1696    <xsl:temp late name= "TextRun-P assThrough "> CR LF
1676     <xsl:par am name="P aramTextRu n" /> CR LF   1697     <xsl:par am name="P aramTextRu n" /> CR LF
1677   CR LF   1698   CR LF
1678     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF   1699     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF
1679      <xsl:fo r-each sel ect="$Para mTextRun/w wdoc:Text" > CR LF   1700      <xsl:fo r-each sel ect="$Para mTextRun/w wdoc:Text" > CR LF
1680       <xsl:v ariable na me="VarTex t" select= "." /> CR LF   1701       <xsl:v ariable na me="VarTex t" select= "." /> CR LF
1681   CR LF   1702   CR LF
1682       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF   1703       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF
1683      </xsl:f or-each> CR LF   1704      </xsl:f or-each> CR LF
1684     </wwexsl doc:Text> CR LF   1705     </wwexsl doc:Text> CR LF
1685    </xsl:tem plate> CR LF   1706    </xsl:tem plate> CR LF
1686   CR LF   1707   CR LF
1687   CR LF   1708   CR LF
1688    <xsl:temp late name= "TextRun-N ormal"> CR LF   1709    <xsl:temp late name= "TextRun-N ormal"> CR LF
1689     <xsl:par am name="P aramSplits " /> CR LF   1710     <xsl:par am name="P aramSplits " /> CR LF
1690     <xsl:par am name="P aramCargo"  /> CR LF   1711     <xsl:par am name="P aramCargo"  /> CR LF
1691     <xsl:par am name="P aramLinks"  /> CR LF   1712     <xsl:par am name="P aramLinks"  /> CR LF
1692     <xsl:par am name="P aramSplit"  /> CR LF   1713     <xsl:par am name="P aramSplit"  /> CR LF
1693     <xsl:par am name="P aramParagr aphID" /> CR LF   1714     <xsl:par am name="P aramParagr aphID" /> CR LF
1694     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1715     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1695     <xsl:par am name="P aramTextRu n" /> CR LF   1716     <xsl:par am name="P aramTextRu n" /> CR LF
1696     <xsl:par am name="P aramRule"  /> CR LF   1717     <xsl:par am name="P aramRule"  /> CR LF
1697     <xsl:par am name="P aramPositi on" /> CR LF   1718     <xsl:par am name="P aramPositi on" /> CR LF
1698   CR LF   1719   CR LF
1699     <xsl:cho ose> CR LF   1720     <xsl:cho ose> CR LF
1700      <xsl:wh en test="( $ParamUseC haracterSt yles) and  ((string-l ength($Par amTextRun/ @stylename ) &gt; 0)  or (count( $ParamText Run/wwdoc: Style) = 1 ))"> CR LF   1721      <xsl:wh en test="( $ParamUseC haracterSt yles) and  ((string-l ength($Par amTextRun/ @stylename ) &gt; 0)  or (count( $ParamText Run/wwdoc: Style) = 1 ))"> CR LF
1701       <!-- G et overrid e rule --> CR LF   1722       <!-- G et overrid e rule --> CR LF
1702       <!--                     --> CR LF   1723       <!--                     --> CR LF
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)" / > CR LF   1724       <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)" / > CR LF
1704   CR LF   1725   CR LF
1705       <!-- R esolve pro ject prope rties --> CR LF   1726       <!-- R esolve pro ject prope rties --> CR LF
1706       <!--                               --> CR LF   1727       <!--                               --> CR LF
1707       <xsl:v ariable na me="VarRes olvedPrope rtiesAsXML "> CR LF   1728       <xsl:v ariable na me="VarRes olvedPrope rtiesAsXML "> CR LF
1708        <xsl: call-templ ate name=" Properties -ResolveOv errideRule "> CR LF   1729        <xsl: call-templ ate name=" Properties -ResolveOv errideRule "> CR LF
1709         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF   1730         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF
1710         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mTextRun/w wdoc:Style " /> CR LF   1731         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mTextRun/w wdoc:Style " /> CR LF
1711        </xsl :call-temp late> CR LF   1732        </xsl :call-temp late> CR LF
1712       </xsl: variable> CR LF   1733       </xsl: variable> CR LF
1713       <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / > CR LF   1734       <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / > CR LF
1714   CR LF   1735   CR LF
1715       <!-- C SS propert ies --> CR LF   1736       <!-- C SS propert ies --> CR LF
1716       <!--                  --> CR LF   1737       <!--                  --> CR LF
1717       <xsl:v ariable na me="VarCSS Properties AsXML"> CR LF   1738       <xsl:v ariable na me="VarCSS Properties AsXML"> CR LF
1718        <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> CR LF   1739        <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> CR LF
1719         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties" /> CR LF   1740         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties" /> CR LF
1720         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" /> CR LF   1741         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" /> CR LF
1721         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1742         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1722        </xsl :call-temp late> CR LF   1743        </xsl :call-temp late> CR LF
1723       </xsl: variable> CR LF   1744       </xsl: variable> CR LF
1724       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > CR LF   1745       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > CR LF
1725   CR LF   1746   CR LF
1726       <!-- A bbreviatio n --> CR LF   1747       <!-- A bbreviatio n --> CR LF
1727       <!--                --> CR LF   1748       <!--                --> CR LF
1728       <xsl:v ariable na me="VarAbb reviationT itle"> CR LF   1749       <xsl:v ariable na me="VarAbb reviationT itle"> CR LF
1729        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker "> CR LF   1750        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker "> CR LF
1730         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" /> CR LF   1751         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" /> CR LF
1731         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1752         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1732         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF   1753         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF
1733         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > CR LF   1754         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > CR LF
1734         <xsl :with-para m name="Pa ramOption"  select="' abbreviati on'" /> CR LF   1755         <xsl :with-para m name="Pa ramOption"  select="' abbreviati on'" /> CR LF
1735        </xsl :call-temp late> CR LF   1756        </xsl :call-temp late> CR LF
1736       </xsl: variable> CR LF   1757       </xsl: variable> CR LF
1737   CR LF   1758   CR LF
1738       <!-- A cronym --> CR LF   1759       <!-- A cronym --> CR LF
1739       <!--          --> CR LF   1760       <!--          --> CR LF
1740       <xsl:v ariable na me="VarAcr onymTitle" > CR LF   1761       <xsl:v ariable na me="VarAcr onymTitle" > CR LF
1741        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker "> CR LF   1762        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker "> CR LF
1742         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" /> CR LF   1763         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" /> CR LF
1743         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1764         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1744         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF   1765         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF
1745         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > CR LF   1766         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > CR LF
1746         <xsl :with-para m name="Pa ramOption"  select="' acronym'"  /> CR LF   1767         <xsl :with-para m name="Pa ramOption"  select="' acronym'"  /> CR LF
1747        </xsl :call-temp late> CR LF   1768        </xsl :call-temp late> CR LF
1748       </xsl: variable> CR LF   1769       </xsl: variable> CR LF
1749   CR LF   1770   CR LF
1750       <!-- C itation -- > CR LF   1771       <!-- C itation -- > CR LF
1751       <!--           -- > CR LF   1772       <!--           -- > CR LF
1752       <xsl:v ariable na me="VarCit ation"> CR LF   1773       <xsl:v ariable na me="VarCit ation"> CR LF
1753        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker "> CR LF   1774        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker "> CR LF
1754         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" /> CR LF   1775         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" /> CR LF
1755         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1776         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1756         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF   1777         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF
1757         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > CR LF   1778         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > CR LF
1758         <xsl :with-para m name="Pa ramOption"  select="' citation'"  /> CR LF   1779         <xsl :with-para m name="Pa ramOption"  select="' citation'"  /> CR LF
1759        </xsl :call-temp late> CR LF   1780        </xsl :call-temp late> CR LF
1760       </xsl: variable> CR LF   1781       </xsl: variable> CR LF
1761   CR LF   1782   CR LF
1762       <!-- T ag --> CR LF   1783       <!-- T ag --> CR LF
1763       <!--      --> CR LF   1784       <!--      --> CR LF
1764       <xsl:v ariable na me="VarTag Property"  select="$P aramRule/w wproject:P roperties/ wwproject: Property[@ Name = 'ta g']/@Value " /> CR LF   1785       <xsl:v ariable na me="VarTag Property"  select="$P aramRule/w wproject:P roperties/ wwproject: Property[@ Name = 'ta g']/@Value " /> CR LF
1765       <xsl:v ariable na me="VarTag "> CR LF   1786       <xsl:v ariable na me="VarTag "> CR LF
1766        <xsl: choose> CR LF   1787        <xsl: choose> CR LF
1767         <xsl :when test ="string-l ength($Var Abbreviati onTitle) & gt; 0"> CR LF   1788         <xsl :when test ="string-l ength($Var Abbreviati onTitle) & gt; 0"> CR LF
1768          <xs l:value-of  select="' abbr'" /> CR LF   1789          <xs l:value-of  select="' abbr'" /> CR LF
1769         </xs l:when> CR LF   1790         </xs l:when> CR LF
1770         <xsl :when test ="string-l ength($Var AcronymTit le) &gt; 0 "> CR LF   1791         <xsl :when test ="string-l ength($Var AcronymTit le) &gt; 0 "> CR LF
1771          <xs l:value-of  select="' acronym'"  /> CR LF   1792          <xs l:value-of  select="' acronym'"  /> CR LF
1772         </xs l:when> CR LF   1793         </xs l:when> CR LF
1773         <xsl :when test ="string-l ength($Var Citation)  &gt; 0"> CR LF   1794         <xsl :when test ="string-l ength($Var Citation)  &gt; 0"> CR LF
1774          <xs l:value-of  select="' q'" /> CR LF   1795          <xs l:value-of  select="' q'" /> CR LF
1775         </xs l:when> CR LF   1796         </xs l:when> CR LF
1776         <xsl :otherwise > CR LF   1797         <xsl :otherwise > CR LF
1777          <xs l:choose> CR LF   1798          <xs l:choose> CR LF
1778           <x sl:when te st="string -length($V arTagPrope rty) &gt;  0"> CR LF   1799           <x sl:when te st="string -length($V arTagPrope rty) &gt;  0"> CR LF
1779            < xsl:value- of select= "$VarTagPr operty" /> CR LF   1800            < xsl:value- of select= "$VarTagPr operty" /> CR LF
1780           </ xsl:when> CR LF   1801           </ xsl:when> CR LF
1781   CR LF   1802   CR LF
1782           <x sl:otherwi se> CR LF   1803           <x sl:otherwi se> CR LF
1783            < xsl:value- of select= "'span'" / > CR LF   1804            < xsl:value- of select= "'span'" / > CR LF
1784           </ xsl:otherw ise> CR LF   1805           </ xsl:otherw ise> CR LF
1785          </x sl:choose> CR LF   1806          </x sl:choose> CR LF
1786         </xs l:otherwis e> CR LF   1807         </xs l:otherwis e> CR LF
1787        </xsl :choose> CR LF   1808        </xsl :choose> CR LF
1788       </xsl: variable> CR LF   1809       </xsl: variable> CR LF
1789   CR LF   1810   CR LF
1790       <!-- C lass attri bute --> CR LF   1811       <!-- C lass attri bute --> CR LF
1791       <!--                   --> CR LF   1812       <!--                   --> CR LF
1792       <xsl:v ariable na me="VarCla ssAttribut e"> CR LF   1813       <xsl:v ariable na me="VarCla ssAttribut e"> CR LF
1793        <xsl: choose> CR LF   1814        <xsl: choose> CR LF
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"> CR LF   1815         <xsl :when test ="string-l ength($Par amCargo/ww project:Bu lletProper ties/wwpro ject:Prope rty[@Name  = 'bullet- style']/@V alue) &gt;  0"> CR LF
1795          <xs l:value-of  select="w wstring:CS SClassName ($ParamCar go/wwproje ct:BulletP roperties/ wwproject: Property[@ Name = 'bu llet-style ']/@Value) " /> CR LF   1816          <xs l:value-of  select="w wstring:CS SClassName ($ParamCar go/wwproje ct:BulletP roperties/ wwproject: Property[@ Name = 'bu llet-style ']/@Value) " /> CR LF
1796         </xs l:when> CR LF   1817         </xs l:when> CR LF
1797   CR LF   1818   CR LF
1798         <xsl :otherwise > CR LF   1819         <xsl :otherwise > CR LF
1799          <xs l:value-of  select="w wstring:CS SClassName ($ParamTex tRun/@styl ename)" /> CR LF   1820          <xs l:value-of  select="w wstring:CS SClassName ($ParamTex tRun/@styl ename)" /> CR LF
1800         </xs l:otherwis e> CR LF   1821         </xs l:otherwis e> CR LF
1801        </xsl :choose> CR LF   1822        </xsl :choose> CR LF
1802   CR LF   1823   CR LF
1803        <!--  Additional  CSS class es --> CR LF   1824        <!--  Additional  CSS class es --> CR LF
1804        <!--                           --> CR LF   1825        <!--                           --> CR LF
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)" /> CR LF   1826        <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)" /> CR LF
1806        <xsl: if test="s tring-leng th($VarAdd itionalCSS ClassesOpt ion) &gt;  0"> CR LF   1827        <xsl: if test="s tring-leng th($VarAdd itionalCSS ClassesOpt ion) &gt;  0"> CR LF
1807         <xsl :text> </x sl:text> CR LF   1828         <xsl :text> </x sl:text> CR LF
1808         <xsl :value-of  select="$V arAddition alCSSClass esOption"  /> CR LF   1829         <xsl :value-of  select="$V arAddition alCSSClass esOption"  /> CR LF
1809        </xsl :if> CR LF   1830        </xsl :if> CR LF
1810       </xsl: variable> CR LF   1831       </xsl: variable> CR LF
1811   CR LF   1832   CR LF
1812       <!-- S tyle attri bute --> CR LF   1833       <!-- S tyle attri bute --> CR LF
1813       <!--                   --> CR LF   1834       <!--                   --> CR LF
1814       <xsl:v ariable na me="VarSty leAttribut e"> CR LF   1835       <xsl:v ariable na me="VarSty leAttribut e"> CR LF
1815        <xsl: call-templ ate name=" CSS-Inline Properties "> CR LF   1836        <xsl: call-templ ate name=" CSS-Inline Properties "> CR LF
1816         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> CR LF   1837         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> CR LF
1817        </xsl :call-temp late> CR LF   1838        </xsl :call-temp late> CR LF
1818       </xsl: variable> CR LF   1839       </xsl: variable> CR LF
1819   CR LF   1840   CR LF
1820       <xsl:c hoose> CR LF   1841       <xsl:c hoose> CR LF
1821        <xsl: when test= "(string-l ength($Var ClassAttri bute) &gt;  0) or (st ring-lengt h($VarStyl eAttribute ) &gt; 0)" > CR LF   1842        <xsl: when test= "(string-l ength($Var ClassAttri bute) &gt;  0) or (st ring-lengt h($VarStyl eAttribute ) &gt; 0)" > CR LF
1822         <!--  Character  Style --> CR LF   1843         <!--  Character  Style --> CR LF
1823         <!--                   --> CR LF   1844         <!--                   --> CR LF
1824         <xsl :element n ame="{$Var Tag}" name space="{$G lobalDefau ltNamespac e}"> CR LF   1845         <xsl :element n ame="{$Var Tag}" name space="{$G lobalDefau ltNamespac e}"> CR LF
1825          <xs l:if test= "string-le ngth($VarC lassAttrib ute) &gt;  0"> CR LF   1846          <xs l:if test= "string-le ngth($VarC lassAttrib ute) &gt;  0"> CR LF
1826           <x sl:attribu te name="c lass"> CR LF   1847           <x sl:attribu te name="c lass"> CR LF
1827            < xsl:value- of select= "$VarClass Attribute"  /> CR LF   1848            < xsl:value- of select= "$VarClass Attribute"  /> CR LF
1828           </ xsl:attrib ute> CR LF   1849           </ xsl:attrib ute> CR LF
1829          </x sl:if> CR LF   1850          </x sl:if> CR LF
1830          <xs l:if test= "string-le ngth($VarS tyleAttrib ute) &gt;  0"> CR LF   1851          <xs l:if test= "string-le ngth($VarS tyleAttrib ute) &gt;  0"> CR LF
1831           <x sl:attribu te name="s tyle"> CR LF   1852           <x sl:attribu te name="s tyle"> CR LF
1832            < xsl:value- of select= "$VarStyle Attribute"  /> CR LF   1853            < xsl:value- of select= "$VarStyle Attribute"  /> CR LF
1833           </ xsl:attrib ute> CR LF   1854           </ xsl:attrib ute> CR LF
1834          </x sl:if> CR LF   1855          </x sl:if> CR LF
1835   CR LF   1856   CR LF
1836          <!- - Abbrevia tion title  --> CR LF   1857          <!- - Abbrevia tion title  --> CR LF
1837          <!- -                      --> CR LF   1858          <!- -                      --> CR LF
1838          <xs l:if test= "string-le ngth($VarA bbreviatio nTitle) &g t; 0"> CR LF   1859          <xs l:if test= "string-le ngth($VarA bbreviatio nTitle) &g t; 0"> CR LF
1839           <x sl:attribu te name="t itle"> CR LF   1860           <x sl:attribu te name="t itle"> CR LF
1840            < xsl:value- of select= "$VarAbbre viationTit le" /> CR LF   1861            < xsl:value- of select= "$VarAbbre viationTit le" /> CR LF
1841           </ xsl:attrib ute> CR LF   1862           </ xsl:attrib ute> CR LF
1842          </x sl:if> CR LF   1863          </x sl:if> CR LF
1843   CR LF   1864   CR LF
1844          <!- - Acronym  title --> CR LF   1865          <!- - Acronym  title --> CR LF
1845          <!- -                      --> CR LF   1866          <!- -                      --> CR LF
1846          <xs l:if test= "string-le ngth($VarA cronymTitl e) &gt; 0" > CR LF   1867          <xs l:if test= "string-le ngth($VarA cronymTitl e) &gt; 0" > CR LF
1847           <x sl:attribu te name="t itle"> CR LF   1868           <x sl:attribu te name="t itle"> CR LF
1848            < xsl:value- of select= "$VarAcron ymTitle" / > CR LF   1869            < xsl:value- of select= "$VarAcron ymTitle" / > CR LF
1849           </ xsl:attrib ute> CR LF   1870           </ xsl:attrib ute> CR LF
1850          </x sl:if> CR LF   1871          </x sl:if> CR LF
1851   CR LF   1872   CR LF
1852          <!- - Cite att ribute --> CR LF   1873          <!- - Cite att ribute --> CR LF
1853          <!- -                 --> CR LF   1874          <!- -                 --> CR LF
1854          <xs l:if test= "string-le ngth($VarC itation) & gt; 0"> CR LF   1875          <xs l:if test= "string-le ngth($VarC itation) & gt; 0"> CR LF
1855           <x sl:attribu te name="c ite"> CR LF   1876           <x sl:attribu te name="c ite"> CR LF
1856            < xsl:value- of select= "$VarCitat ion" /> CR LF   1877            < xsl:value- of select= "$VarCitat ion" /> CR LF
1857           </ xsl:attrib ute> CR LF   1878           </ xsl:attrib ute> CR LF
1858          </x sl:if> CR LF   1879          </x sl:if> CR LF
1859   CR LF   1880   CR LF
1860          <xs l:call-tem plate name ="TextRunC hildren"> CR LF   1881          <xs l:call-tem plate name ="TextRunC hildren"> CR LF
1861           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   1882           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
1862           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF   1883           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF
1863           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   1884           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
1864           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   1885           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
1865           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> CR LF   1886           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> CR LF
1866           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> CR LF   1887           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> CR LF
1867           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > CR LF   1888           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > CR LF
1868          </x sl:call-te mplate> CR LF   1889          </x sl:call-te mplate> CR LF
1869         </xs l:element> CR LF   1890         </xs l:element> CR LF
1870        </xsl :when> CR LF   1891        </xsl :when> CR LF
1871   CR LF   1892   CR LF
1872        <xsl: otherwise> CR LF   1893        <xsl: otherwise> CR LF
1873         <!--  No style  --> CR LF   1894         <!--  No style  --> CR LF
1874         <!--            --> CR LF   1895         <!--            --> CR LF
1875         <xsl :call-temp late name= "TextRunCh ildren"> CR LF   1896         <xsl :call-temp late name= "TextRunCh ildren"> CR LF
1876          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   1897          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
1877          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF   1898          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF
1878          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF   1899          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF
1879          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   1900          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
1880          <xs l:with-par am name="P aramParagr aphID" sel ect="$Para mParagraph ID" /> CR LF   1901          <xs l:with-par am name="P aramParagr aphID" sel ect="$Para mParagraph ID" /> CR LF
1881          <xs l:with-par am name="P aramTextRu n" select= "$ParamTex tRun" /> CR LF   1902          <xs l:with-par am name="P aramTextRu n" select= "$ParamTex tRun" /> CR LF
1882          <xs l:with-par am name="P aramPositi on" select ="$ParamPo sition" /> CR LF   1903          <xs l:with-par am name="P aramPositi on" select ="$ParamPo sition" /> CR LF
1883         </xs l:call-tem plate> CR LF   1904         </xs l:call-tem plate> CR LF
1884        </xsl :otherwise > CR LF   1905        </xsl :otherwise > CR LF
1885       </xsl: choose> CR LF   1906       </xsl: choose> CR LF
1886      </xsl:w hen> CR LF   1907      </xsl:w hen> CR LF
1887   CR LF   1908   CR LF
1888      <xsl:ot herwise> CR LF   1909      <xsl:ot herwise> CR LF
1889       <!-- N o style -- > CR LF   1910       <!-- N o style -- > CR LF
1890       <!--           -- > CR LF   1911       <!--           -- > CR LF
1891       <xsl:c all-templa te name="T extRunChil dren"> CR LF   1912       <xsl:c all-templa te name="T extRunChil dren"> CR LF
1892        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1913        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1893        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF   1914        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF
1894        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   1915        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
1895        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1916        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1896        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraphID " /> CR LF   1917        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraphID " /> CR LF
1897        <xsl: with-param  name="Par amTextRun"  select="$ ParamTextR un" /> CR LF   1918        <xsl: with-param  name="Par amTextRun"  select="$ ParamTextR un" /> CR LF
1898        <xsl: with-param  name="Par amPosition " select=" $ParamPosi tion" /> CR LF   1919        <xsl: with-param  name="Par amPosition " select=" $ParamPosi tion" /> CR LF
1899       </xsl: call-templ ate> CR LF   1920       </xsl: call-templ ate> CR LF
1900      </xsl:o therwise> CR LF   1921      </xsl:o therwise> CR LF
1901     </xsl:ch oose> CR LF   1922     </xsl:ch oose> CR LF
1902    </xsl:tem plate> CR LF   1923    </xsl:tem plate> CR LF
1903   CR LF   1924   CR LF
1904   CR LF   1925   CR LF
1905    <xsl:temp late name= "TextRunCh ildren"> CR LF   1926    <xsl:temp late name= "TextRunCh ildren"> CR LF
1906     <xsl:par am name="P aramSplits " /> CR LF   1927     <xsl:par am name="P aramSplits " /> CR LF
1907     <xsl:par am name="P aramCargo"  /> CR LF   1928     <xsl:par am name="P aramCargo"  /> CR LF
1908     <xsl:par am name="P aramLinks"  /> CR LF   1929     <xsl:par am name="P aramLinks"  /> CR LF
1909     <xsl:par am name="P aramSplit"  /> CR LF   1930     <xsl:par am name="P aramSplit"  /> CR LF
1910     <xsl:par am name="P aramParagr aphID" /> CR LF   1931     <xsl:par am name="P aramParagr aphID" /> CR LF
1911     <xsl:par am name="P aramTextRu n" /> CR LF   1932     <xsl:par am name="P aramTextRu n" /> CR LF
1912     <xsl:par am name="P aramPositi on" /> CR LF   1933     <xsl:par am name="P aramPositi on" /> CR LF
1913   CR LF   1934   CR LF
1914     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF   1935     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF
1915     <!--                                                   --> CR LF   1936     <!--                                                   --> CR LF
1916     <wwexsld oc:NoBreak  /> CR LF   1937     <wwexsld oc:NoBreak  /> CR LF
1917   CR LF   1938   CR LF
1918     <!-- Lin k? --> CR LF   1939     <!-- Lin k? --> CR LF
1919     <!--        --> CR LF   1940     <!--        --> CR LF
1920     <xsl:var iable name ="VarLinkI nfoAsXML"> CR LF   1941     <xsl:var iable name ="VarLinkI nfoAsXML"> CR LF
1921      <xsl:ca ll-templat e name="Li nkInfo"> CR LF   1942      <xsl:ca ll-templat e name="Li nkInfo"> CR LF
1922       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   1943       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
1923       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   1944       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
1924       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   1945       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
1925       <xsl:w ith-param  name="Para mDocumentL ink" selec t="$ParamT extRun/wwd oc:Link" / > CR LF   1946       <xsl:w ith-param  name="Para mDocumentL ink" selec t="$ParamT extRun/wwd oc:Link" / > CR LF
1926      </xsl:c all-templa te> CR LF   1947      </xsl:c all-templa te> CR LF
1927     </xsl:va riable> CR LF   1948     </xsl:va riable> CR LF
1928     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> CR LF   1949     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> CR LF
1929   CR LF   1950   CR LF
1930     <!-- Han dle links  and first  textrun an chor --> CR LF   1951     <!-- Han dle links  and first  textrun an chor --> CR LF
1931     <!--                                           --> CR LF   1952     <!--                                           --> CR LF
1932     <xsl:cho ose> CR LF   1953     <xsl:cho ose> CR LF
1933      <xsl:wh en test="s tring-leng th($ParamC argo/wwali nks:ALink[ 1]/@href)  &gt; 0"> CR LF   1954      <xsl:wh en test="s tring-leng th($ParamC argo/wwali nks:ALink[ 1]/@href)  &gt; 0"> CR LF
1934       <html: a href="{$ ParamCargo /wwalinks: ALink[1]/@ href}" onc lick="{$Pa ramCargo/w walinks:AL ink[1]/@on Click}"> CR LF   1955       <html: a href="{$ ParamCargo /wwalinks: ALink[1]/@ href}" onc lick="{$Pa ramCargo/w walinks:AL ink[1]/@on Click}"> CR LF
1935        <xsl: if test="s tring-leng th($VarLin kInfo/@tit le) &gt; 0 "> CR LF   1956        <xsl: if test="s tring-leng th($VarLin kInfo/@tit le) &gt; 0 "> CR LF
1936         <xsl :attribute  name="tit le"> CR LF   1957         <xsl :attribute  name="tit le"> CR LF
1937          <xs l:value-of  select="$ VarLinkInf o/@title"  /> CR LF   1958          <xs l:value-of  select="$ VarLinkInf o/@title"  /> CR LF
1938         </xs l:attribut e> CR LF   1959         </xs l:attribut e> CR LF
1939        </xsl :if> CR LF   1960        </xsl :if> CR LF
1940        <xsl: if test="$ ParamPosit ion = 1"> CR LF   1961        <xsl: if test="$ ParamPosit ion = 1"> CR LF
1941         <xsl :attribute  name="nam e"> CR LF   1962         <xsl :attribute  name="nam e"> CR LF
1942          <xs l:value-of  select="$ ParamParag raphID" /> CR LF   1963          <xs l:value-of  select="$ ParamParag raphID" /> CR LF
1943         </xs l:attribut e> CR LF   1964         </xs l:attribut e> CR LF
1944        </xsl :if> CR LF   1965        </xsl :if> CR LF
1945   CR LF   1966   CR LF
1946        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n"> CR LF   1967        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n"> CR LF
1947         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1968         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1948         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1969         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1949         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1970         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1950         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1971         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1951        </xsl :apply-tem plates> CR LF   1972        </xsl :apply-tem plates> CR LF
1952       </html :a> CR LF   1973       </html :a> CR LF
1953      </xsl:w hen> CR LF   1974      </xsl:w hen> CR LF
1954   CR LF   1975   CR LF
1955      <xsl:wh en test="( string-len gth($VarLi nkInfo/@hr ef) &gt; 0 ) or (stri ng-length( $VarLinkIn fo/@onMous eOver) &gt ; 0)"> CR LF   1976      <xsl:wh en test="( string-len gth($VarLi nkInfo/@hr ef) &gt; 0 ) or (stri ng-length( $VarLinkIn fo/@onMous eOver) &gt ; 0)"> CR LF
1956       <html: a> CR LF   1977       <html: a> CR LF
1957        <xsl: if test="s tring-leng th($VarLin kInfo/@hre f) &gt; 0" > CR LF   1978        <xsl: if test="s tring-leng th($VarLin kInfo/@hre f) &gt; 0" > CR LF
1958         <xsl :attribute  name="hre f"> CR LF   1979         <xsl :attribute  name="hre f"> CR LF
1959          <xs l:value-of  select="$ VarLinkInf o/@href" / > CR LF   1980          <xs l:value-of  select="$ VarLinkInf o/@href" / > CR LF
1960         </xs l:attribut e> CR LF   1981         </xs l:attribut e> CR LF
1961        </xsl :if> CR LF   1982        </xsl :if> CR LF
1962        <xsl: if test="s tring-leng th($VarLin kInfo/@tit le) &gt; 0 "> CR LF   1983        <xsl: if test="s tring-leng th($VarLin kInfo/@tit le) &gt; 0 "> CR LF
1963         <xsl :attribute  name="tit le"> CR LF   1984         <xsl :attribute  name="tit le"> CR LF
1964          <xs l:value-of  select="$ VarLinkInf o/@title"  /> CR LF   1985          <xs l:value-of  select="$ VarLinkInf o/@title"  /> CR LF
1965         </xs l:attribut e> CR LF   1986         </xs l:attribut e> CR LF
1966        </xsl :if> CR LF   1987        </xsl :if> CR LF
1967        <xsl: if test="s tring-leng th($VarLin kInfo/@tar get) &gt;  0"> CR LF   1988        <xsl: if test="s tring-leng th($VarLin kInfo/@tar get) &gt;  0"> CR LF
1968         <xsl :attribute  name="tar get"> CR LF   1989         <xsl :attribute  name="tar get"> CR LF
1969          <xs l:value-of  select="$ VarLinkInf o/@target"  /> CR LF   1990          <xs l:value-of  select="$ VarLinkInf o/@target"  /> CR LF
1970         </xs l:attribut e> CR LF   1991         </xs l:attribut e> CR LF
1971        </xsl :if> CR LF   1992        </xsl :if> CR LF
1972        <xsl: if test="s tring-leng th($VarLin kInfo/@onM ouseOver)  &gt; 0"> CR LF   1993        <xsl: if test="s tring-leng th($VarLin kInfo/@onM ouseOver)  &gt; 0"> CR LF
1973         <xsl :attribute  name="onM ouseOver"> CR LF   1994         <xsl :attribute  name="onM ouseOver"> CR LF
1974          <xs l:value-of  select="$ VarLinkInf o/@onMouse Over" /> CR LF   1995          <xs l:value-of  select="$ VarLinkInf o/@onMouse Over" /> CR LF
1975         </xs l:attribut e> CR LF   1996         </xs l:attribut e> CR LF
1976        </xsl :if> CR LF   1997        </xsl :if> CR LF
1977        <xsl: if test="s tring-leng th($VarLin kInfo/@onM ouseOut) & gt; 0"> CR LF   1998        <xsl: if test="s tring-leng th($VarLin kInfo/@onM ouseOut) & gt; 0"> CR LF
1978         <xsl :attribute  name="onM ouseOut"> CR LF   1999         <xsl :attribute  name="onM ouseOut"> CR LF
1979          <xs l:value-of  select="$ VarLinkInf o/@onMouse Out" /> CR LF   2000          <xs l:value-of  select="$ VarLinkInf o/@onMouse Out" /> CR LF
1980         </xs l:attribut e> CR LF   2001         </xs l:attribut e> CR LF
1981        </xsl :if> CR LF   2002        </xsl :if> CR LF
1982        <xsl: if test="$ ParamPosit ion = 1"> CR LF   2003        <xsl: if test="$ ParamPosit ion = 1"> CR LF
1983         <xsl :attribute  name="nam e"> CR LF   2004         <xsl :attribute  name="nam e"> CR LF
1984          <xs l:value-of  select="$ ParamParag raphID" /> CR LF   2005          <xs l:value-of  select="$ ParamParag raphID" /> CR LF
1985         </xs l:attribut e> CR LF   2006         </xs l:attribut e> CR LF
1986        </xsl :if> CR LF   2007        </xsl :if> CR LF
1987   CR LF   2008   CR LF
1988        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n"> CR LF   2009        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n"> CR LF
1989         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   2010         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1990         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   2011         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1991         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   2012         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1992         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   2013         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1993        </xsl :apply-tem plates> CR LF   2014        </xsl :apply-tem plates> CR LF
1994       </html :a> CR LF   2015       </html :a> CR LF
1995      </xsl:w hen> CR LF   2016      </xsl:w hen> CR LF
1996   CR LF   2017   CR LF
1997      <xsl:wh en test="$ ParamPosit ion = 1"> CR LF   2018      <xsl:wh en test="$ ParamPosit ion = 1"> CR LF
1998       <html: a name="{$ ParamParag raphID}"> CR LF   2019       <html: a name="{$ ParamParag raphID}"> CR LF
1999        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n"> CR LF   2020        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n"> CR LF
2000         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   2021         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
2001         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   2022         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
2002         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   2023         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
2003         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   2024         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
2004        </xsl :apply-tem plates> CR LF   2025        </xsl :apply-tem plates> CR LF
2005       </html :a> CR LF   2026       </html :a> CR LF
2006      </xsl:w hen> CR LF   2027      </xsl:w hen> CR LF
2007   CR LF   2028   CR LF
2008      <xsl:ot herwise> CR LF   2029      <xsl:ot herwise> CR LF
2009       <xsl:a pply-templ ates selec t="$ParamT extRun/*"  mode="wwmo de:textrun "> CR LF   2030       <xsl:a pply-templ ates selec t="$ParamT extRun/*"  mode="wwmo de:textrun "> CR LF
2010        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   2031        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
2011        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF   2032        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF
2012        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   2033        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
2013        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   2034        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
2014       </xsl: apply-temp lates> CR LF   2035       </xsl: apply-temp lates> CR LF
2015      </xsl:o therwise> CR LF   2036      </xsl:o therwise> CR LF
2016     </xsl:ch oose> CR LF   2037     </xsl:ch oose> CR LF
2017   CR LF   2038   CR LF
2018     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF   2039     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF
2019     <!--                                                   --> CR LF   2040     <!--                                                   --> CR LF
2020     <wwexsld oc:NoBreak  /> CR LF   2041     <wwexsld oc:NoBreak  /> CR LF
2021    </xsl:tem plate> CR LF   2042    </xsl:tem plate> CR LF
2022   CR LF   2043   CR LF
2023   CR LF   2044   CR LF
2024    <xsl:temp late match ="wwdoc:No te" mode=" wwmode:tex trun"> CR LF   2045    <xsl:temp late match ="wwdoc:No te" mode=" wwmode:tex trun"> CR LF
2025     <xsl:par am name="P aramSplits " /> CR LF   2046     <xsl:par am name="P aramSplits " /> CR LF
2026     <xsl:par am name="P aramCargo"  /> CR LF   2047     <xsl:par am name="P aramCargo"  /> CR LF
2027     <xsl:par am name="P aramLinks"  /> CR LF   2048     <xsl:par am name="P aramLinks"  /> CR LF
2028     <xsl:par am name="P aramSplit"  /> CR LF   2049     <xsl:par am name="P aramSplit"  /> CR LF
2029   CR LF   2050   CR LF
2030     <xsl:var iable name ="VarConte xt" select ="." /> CR LF   2051     <xsl:var iable name ="VarConte xt" select ="." /> CR LF
2031   CR LF   2052   CR LF
2032     <!-- Imp lement not es --> CR LF   2053     <!-- Imp lement not es --> CR LF
2033     <!--                   --> CR LF   2054     <!--                   --> CR LF
2034     <xsl:for -each sele ct="$Param Cargo/wwno tes:NoteNu mbering[1] "> CR LF   2055     <xsl:for -each sele ct="$Param Cargo/wwno tes:NoteNu mbering[1] "> CR LF
2035      <xsl:va riable nam e="VarNote Number" se lect="key( 'wwnotes-n otes-by-id ', $VarCon text/@id)/ @number" / > CR LF   2056      <xsl:va riable nam e="VarNote Number" se lect="key( 'wwnotes-n otes-by-id ', $VarCon text/@id)/ @number" / > CR LF
2036   CR LF   2057   CR LF
2037      <!-- Fo rce sup on  same line  as contai ning span  --> CR LF   2058      <!-- Fo rce sup on  same line  as contai ning span  --> CR LF
2038      <!--                                                --> CR LF   2059      <!--                                                --> CR LF
2039      <wwexsl doc:NoBrea k /> CR LF   2060      <wwexsl doc:NoBrea k /> CR LF
2040   CR LF   2061   CR LF
2041      <html:s up> CR LF   2062      <html:s up> CR LF
2042       <!-- F orce ancho r on same  line as co ntaining s up --> CR LF   2063       <!-- F orce ancho r on same  line as co ntaining s up --> CR LF
2043       <!--                                                  --> CR LF   2064       <!--                                                  --> CR LF
2044       <wwexs ldoc:NoBre ak /> CR LF   2065       <wwexs ldoc:NoBre ak /> CR LF
2045   CR LF   2066   CR LF
2046       <html: a> CR LF   2067       <html: a> CR LF
2047        <xsl: attribute  name="name "> CR LF   2068        <xsl: attribute  name="name "> CR LF
2048         <xsl :text>wwfo otnote_inl ine_</xsl: text> CR LF   2069         <xsl :text>wwfo otnote_inl ine_</xsl: text> CR LF
2049         <xsl :value-of  select="$V arContext/ @id" /> CR LF   2070         <xsl :value-of  select="$V arContext/ @id" /> CR LF
2050        </xsl :attribute > CR LF   2071        </xsl :attribute > CR LF
2051        <xsl: attribute  name="href "> CR LF   2072        <xsl: attribute  name="href "> CR LF
2052         <xsl :text>#</x sl:text> CR LF   2073         <xsl :text>#</x sl:text> CR LF
2053         <xsl :value-of  select="$V arContext/ @id" /> CR LF   2074         <xsl :value-of  select="$V arContext/ @id" /> CR LF
2054        </xsl :attribute > CR LF   2075        </xsl :attribute > CR LF
2055   CR LF   2076   CR LF
2056        <xsl: value-of s elect="$Va rNoteNumbe r" /> CR LF   2077        <xsl: value-of s elect="$Va rNoteNumbe r" /> CR LF
2057       </html :a> CR LF   2078       </html :a> CR LF
2058      </html: sup> CR LF   2079      </html: sup> CR LF
2059     </xsl:fo r-each> CR LF   2080     </xsl:fo r-each> CR LF
2060    </xsl:tem plate> CR LF   2081    </xsl:tem plate> CR LF
2061   CR LF   2082   CR LF
2062   CR LF   2083   CR LF
2063    <xsl:temp late match ="wwdoc:Li neBreak" m ode="wwmod e:textrun" > CR LF   2084    <xsl:temp late match ="wwdoc:Li neBreak" m ode="wwmod e:textrun" > CR LF
2064     <xsl:par am name="P aramSplits " /> CR LF   2085     <xsl:par am name="P aramSplits " /> CR LF
2065     <xsl:par am name="P aramCargo"  /> CR LF   2086     <xsl:par am name="P aramCargo"  /> CR LF
2066     <xsl:par am name="P aramLinks"  /> CR LF   2087     <xsl:par am name="P aramLinks"  /> CR LF
2067     <xsl:par am name="P aramSplit"  /> CR LF   2088     <xsl:par am name="P aramSplit"  /> CR LF
2068   CR LF   2089   CR LF
2069     <html:br  /> CR LF   2090     <html:br  /> CR LF
2070    </xsl:tem plate> CR LF   2091    </xsl:tem plate> CR LF
2071   CR LF   2092   CR LF
2072   CR LF   2093   CR LF
2073    <xsl:temp late match ="wwdoc:In dexMarker"  mode="wwm ode:textru n"> CR LF   2094    <xsl:temp late match ="wwdoc:In dexMarker"  mode="wwm ode:textru n"> CR LF
2074     <xsl:par am name="P aramSplits " /> CR LF   2095     <xsl:par am name="P aramSplits " /> CR LF
2075     <xsl:par am name="P aramCargo"  /> CR LF   2096     <xsl:par am name="P aramCargo"  /> CR LF
2076     <xsl:par am name="P aramLinks"  /> CR LF   2097     <xsl:par am name="P aramLinks"  /> CR LF
2077     <xsl:par am name="P aramSplit"  /> CR LF   2098     <xsl:par am name="P aramSplit"  /> CR LF
2078   CR LF   2099   CR LF
2079     <!-- Ign ore index  markers -- > CR LF   2100     <!-- Ign ore index  markers -- > CR LF
2080     <!--                        -- > CR LF   2101     <!--                        -- > CR LF
2081    </xsl:tem plate> CR LF   2102    </xsl:tem plate> CR LF
2082   CR LF   2103   CR LF
2083   CR LF   2104   CR LF
2084    <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:t extrun"> CR LF   2105    <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:t extrun"> CR LF
2085     <xsl:par am name="P aramSplits " /> CR LF   2106     <xsl:par am name="P aramSplits " /> CR LF
2086     <xsl:par am name="P aramCargo"  /> CR LF   2107     <xsl:par am name="P aramCargo"  /> CR LF
2087     <xsl:par am name="P aramLinks"  /> CR LF   2108     <xsl:par am name="P aramLinks"  /> CR LF
2088     <xsl:par am name="P aramSplit"  /> CR LF   2109     <xsl:par am name="P aramSplit"  /> CR LF
2089   CR LF   2110   CR LF
2090      <!--  Igno r e  marker s  --> CR LF   2111     <xsl:var iable name ="VarMarke r" select= "." /> CR LF
2091      <!--                 
--> CR LF
  2112   CR LF
    2113      <!--  Pass-th r ough  marker ?  --> CR LF
    2114      <!--                         --> CR LF
    2115     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF
    2116      <xsl:va riable nam e="VarMark erBehavior " select=" key('wwbeh aviors-mar kers-by-id ', $VarMar ker/@id)[1 ]" /> CR LF
    2117   CR LF
    2118      <xsl:if  test="$Va rMarkerBeh avior/@beh avior = 'p ass-throug h'"> CR LF
    2119       <!-- P ass-throug h --> CR LF
    2120       <!--                --> CR LF
    2121       <xsl:f or-each se lect="$Var Marker/wwd oc:TextRun "> CR LF
    2122        <xsl: variable n ame="VarTe xtRun" sel ect="." /> CR LF
    2123   CR LF
    2124        <xsl: call-templ ate name=" TextRun-Pa ssThrough" > CR LF
    2125         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> CR LF
    2126        </xsl :call-temp late> CR LF
    2127       </xsl: for-each> CR LF
    2128      </xsl:i f> CR LF
    2129     </xsl:fo r-each> CR LF
2092    </xsl:tem plate> CR LF   2130    </xsl:tem plate> CR LF
2093   CR LF   2131   CR LF
2094   CR LF   2132   CR LF
2095    <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex trun"> CR LF   2133    <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex trun"> CR LF
2096     <xsl:par am name="P aramSplits " /> CR LF   2134     <xsl:par am name="P aramSplits " /> CR LF
2097     <xsl:par am name="P aramCargo"  /> CR LF   2135     <xsl:par am name="P aramCargo"  /> CR LF
2098     <xsl:par am name="P aramLinks"  /> CR LF   2136     <xsl:par am name="P aramLinks"  /> CR LF
2099     <xsl:par am name="P aramSplit"  /> CR LF   2137     <xsl:par am name="P aramSplit"  /> CR LF
2100   CR LF   2138   CR LF
2101     <xsl:val ue-of sele ct="@value " /> CR LF   2139     <xsl:val ue-of sele ct="@value " /> CR LF
2102    </xsl:tem plate> CR LF   2140    </xsl:tem plate> CR LF
2103   CR LF   2141   CR LF
2104   CR LF   2142   CR LF
2105    <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:co ntent"> CR LF   2143    <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:co ntent"> CR LF
2106     <xsl:par am name="P aramSplits " /> CR LF   2144     <xsl:par am name="P aramSplits " /> CR LF
2107     <xsl:par am name="P aramCargo"  /> CR LF   2145     <xsl:par am name="P aramCargo"  /> CR LF
2108     <xsl:par am name="P aramLinks"  /> CR LF   2146     <xsl:par am name="P aramLinks"  /> CR LF
2109     <xsl:par am name="P aramTOCDat a" /> CR LF   2147     <xsl:par am name="P aramTOCDat a" /> CR LF
2110     <xsl:par am name="P aramSplit"  /> CR LF   2148     <xsl:par am name="P aramSplit"  /> CR LF
2111   CR LF   2149   CR LF
2112     <xsl:var iable name ="VarTable " select=" ." /> CR LF   2150     <xsl:var iable name ="VarTable " select=" ." /> CR LF
2113   CR LF   2151   CR LF
2114     <!-- Abo rted? --> CR LF   2152     <!-- Abo rted? --> CR LF
2115     <!--           --> CR LF   2153     <!--           --> CR LF
2116     <xsl:if  test="not( wwprogress :Abort())" > CR LF   2154     <xsl:if  test="not( wwprogress :Abort())" > CR LF
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)" /> CR LF   2155      <xsl:va riable nam e="VarOver rideRule"  select="ww projext:Ge tOverrideR ule('Table ', $VarTab le/@stylen ame, $Para mSplit/@do cumentID,  $VarTable/ @id)" /> CR LF
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" /> CR LF   2156      <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" /> CR LF
2119      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF   2157      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF
2120      <xsl:if  test="$Va rGenerateO utput"> CR LF   2158      <xsl:if  test="$Va rGenerateO utput"> CR LF
2121   CR LF   2159   CR LF
2122       <!-- G et behavio r --> CR LF   2160       <!-- G et behavio r --> CR LF
2123       <!--                --> CR LF   2161       <!--                --> CR LF
2124       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF   2162       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF
2125        <xsl: variable n ame="VarTa bleBehavio r" select= "key('wwbe haviors-ta bles-by-id ', $VarTab le/@id)[1] " /> CR LF   2163        <xsl: variable n ame="VarTa bleBehavio r" select= "key('wwbe haviors-ta bles-by-id ', $VarTab le/@id)[1] " /> CR LF
2126   CR LF   2164   CR LF
2127        <!--  Table --> CR LF   2165        <!--  Table --> CR LF
2128        <!--        --> CR LF   2166        <!--        --> CR LF
2129        <xsl: call-templ ate name=" Table"> CR LF   2167        <xsl: call-templ ate name=" Table"> CR LF
2130         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   2168         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
2131         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   2169         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
2132         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   2170         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
2133         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF   2171         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF
2134         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   2172         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
2135         <xsl :with-para m name="Pa ramTable"  select="$V arTable" / > CR LF   2173         <xsl :with-para m name="Pa ramTable"  select="$V arTable" / > CR LF
2136         <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" /> CR LF   2174         <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" /> CR LF
2137         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$VarO verrideRul e" /> CR LF   2175         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$VarO verrideRul e" /> CR LF
2138         <xsl :with-para m name="Pa ramTableBe havior" se lect="$Var TableBehav ior" /> CR LF   2176         <xsl :with-para m name="Pa ramTableBe havior" se lect="$Var TableBehav ior" /> CR LF
2139        </xsl :call-temp late> CR LF   2177        </xsl :call-temp late> CR LF
2140       </xsl: for-each> CR LF   2178       </xsl: for-each> CR LF
2141      </xsl:i f> CR LF   2179      </xsl:i f> CR LF
2142     </xsl:if > CR LF   2180     </xsl:if > CR LF
2143    </xsl:tem plate> CR LF   2181    </xsl:tem plate> CR LF
2144   CR LF   2182   CR LF
2145   CR LF   2183   CR LF
2146    <xsl:temp late name= "Table-Att ribute-In- Pixels"> CR LF   2184    <xsl:temp late name= "Table-Att ribute-In- Pixels"> CR LF
2147     <xsl:par am name="P aramValue"  /> CR LF   2185     <xsl:par am name="P aramValue"  /> CR LF
2148   CR LF   2186   CR LF
2149     <xsl:cho ose> CR LF   2187     <xsl:cho ose> CR LF
2150      <xsl:wh en test="s tring-leng th($ParamV alue) &gt;  0"> CR LF   2188      <xsl:wh en test="s tring-leng th($ParamV alue) &gt;  0"> CR LF
2151       <!-- N ormalize v alue for H TML attrib ute--> CR LF   2189       <!-- N ormalize v alue for H TML attrib ute--> CR LF
2152       <!--                                       --> CR LF   2190       <!--                                       --> CR LF
2153       <xsl:v ariable na me="VarVal ueToEmit"> CR LF   2191       <xsl:v ariable na me="VarVal ueToEmit"> CR LF
2154        <xsl: variable n ame="VarUn itsSuffix"  select="w wunits:Uni tsSuffix($ ParamValue )" /> CR LF   2192        <xsl: variable n ame="VarUn itsSuffix"  select="w wunits:Uni tsSuffix($ ParamValue )" /> CR LF
2155   CR LF   2193   CR LF
2156        <xsl: choose> CR LF   2194        <xsl: choose> CR LF
2157         <xsl :when test ="string-l ength($Var UnitsSuffi x) &gt; 0" > CR LF   2195         <xsl :when test ="string-l ength($Var UnitsSuffi x) &gt; 0" > CR LF
2158          <xs l:variable  name="Var NumPrefix"  select="w wunits:Num ericPrefix ($ParamVal ue)" /> CR LF   2196          <xs l:variable  name="Var NumPrefix"  select="w wunits:Num ericPrefix ($ParamVal ue)" /> CR LF
2159   CR LF   2197   CR LF
2160          <xs l:value-of  select="w wunits:Con vert($VarN umPrefix,  $VarUnitsS uffix, 'px ')" /> CR LF   2198          <xs l:value-of  select="w wunits:Con vert($VarN umPrefix,  $VarUnitsS uffix, 'px ')" /> CR LF
2161         </xs l:when> CR LF   2199         </xs l:when> CR LF
2162   CR LF   2200   CR LF
2163         <xsl :otherwise > CR LF   2201         <xsl :otherwise > CR LF
2164          <xs l:value-of  select="$ ParamValue " /> CR LF   2202          <xs l:value-of  select="$ ParamValue " /> CR LF
2165         </xs l:otherwis e> CR LF   2203         </xs l:otherwis e> CR LF
2166        </xsl :choose> CR LF   2204        </xsl :choose> CR LF
2167       </xsl: variable> CR LF   2205       </xsl: variable> CR LF
2168   CR LF   2206   CR LF
2169       <xsl:v alue-of se lect="$Var ValueToEmi t" /> CR LF   2207       <xsl:v alue-of se lect="$Var ValueToEmi t" /> CR LF
2170      </xsl:w hen> CR LF   2208      </xsl:w hen> CR LF
2171   CR LF   2209   CR LF
2172      <xsl:ot herwise> CR LF   2210      <xsl:ot herwise> CR LF
2173       <xsl:v alue-of se lect="''"  /> CR LF   2211       <xsl:v alue-of se lect="''"  /> CR LF
2174      </xsl:o therwise> CR LF   2212      </xsl:o therwise> CR LF
2175     </xsl:ch oose> CR LF   2213     </xsl:ch oose> CR LF
2176    </xsl:tem plate> CR LF   2214    </xsl:tem plate> CR LF
2177   CR LF   2215   CR LF
2178   CR LF   2216   CR LF
2179    <xsl:temp late name= "Table"> CR LF   2217    <xsl:temp late name= "Table"> CR LF
2180     <xsl:par am name="P aramSplits " /> CR LF   2218     <xsl:par am name="P aramSplits " /> CR LF
2181     <xsl:par am name="P aramCargo"  /> CR LF   2219     <xsl:par am name="P aramCargo"  /> CR LF
2182     <xsl:par am name="P aramLinks"  /> CR LF   2220     <xsl:par am name="P aramLinks"  /> CR LF
2183     <xsl:par am name="P aramTOCDat a" /> CR LF   2221     <xsl:par am name="P aramTOCDat a" /> CR LF
2184     <xsl:par am name="P aramSplit"  /> CR LF   2222     <xsl:par am name="P aramSplit"  /> CR LF
2185     <xsl:par am name="P aramTable"  /> CR LF   2223     <xsl:par am name="P aramTable"  /> CR LF
2186     <xsl:par am name="P aramStyleN ame" /> CR LF   2224     <xsl:par am name="P aramStyleN ame" /> CR LF
2187     <xsl:par am name="P aramOverri deRule" /> CR LF   2225     <xsl:par am name="P aramOverri deRule" /> CR LF
2188     <xsl:par am name="P aramTableB ehavior" / > CR LF   2226     <xsl:par am name="P aramTableB ehavior" / > CR LF
2189   CR LF   2227   CR LF
2190     <!-- Not es --> CR LF   2228     <!-- Not es --> CR LF
2191     <!--        --> CR LF   2229     <!--        --> CR LF
2192     <xsl:var iable name ="VarNotes " select=" $ParamTabl e//wwdoc:N ote[not(an cestor::ww doc:Frame) ]" /> CR LF   2230     <xsl:var iable name ="VarNotes " select=" $ParamTabl e//wwdoc:N ote[not(an cestor::ww doc:Frame) ]" /> CR LF
2193   CR LF   2231   CR LF
2194     <!-- Not e numberin g --> CR LF   2232     <!-- Not e numberin g --> CR LF
2195     <!--                  --> CR LF   2233     <!--                  --> CR LF
2196     <xsl:var iable name ="VarNoteN umberingAs XML"> CR LF   2234     <xsl:var iable name ="VarNoteN umberingAs XML"> CR LF
2197      <xsl:ca ll-templat e name="No tes-Number "> CR LF   2235      <xsl:ca ll-templat e name="No tes-Number "> CR LF
2198       <xsl:w ith-param  name="Para mNotes" se lect="$Var Notes" /> CR LF   2236       <xsl:w ith-param  name="Para mNotes" se lect="$Var Notes" /> CR LF
2199      </xsl:c all-templa te> CR LF   2237      </xsl:c all-templa te> CR LF
2200     </xsl:va riable> CR LF   2238     </xsl:va riable> CR LF
2201     <xsl:var iable name ="VarNoteN umbering"  select="ms xsl:node-s et($VarNot eNumbering AsXML)" /> CR LF   2239     <xsl:var iable name ="VarNoteN umbering"  select="ms xsl:node-s et($VarNot eNumbering AsXML)" /> CR LF
2202   CR LF   2240   CR LF
2203     <!-- Car go for rec ursion --> CR LF   2241     <!-- Car go for rec ursion --> CR LF
2204     <!--                       --> CR LF   2242     <!--                       --> CR LF
2205     <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() !=  'NoteNumbe ring']/..  | $VarNote Numbering"  /> CR LF   2243     <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() !=  'NoteNumbe ring']/..  | $VarNote Numbering"  /> CR LF
2206   CR LF   2244   CR LF
2207     <!-- Res olve proje ct propert ies --> CR LF   2245     <!-- Res olve proje ct propert ies --> CR LF
2208     <!--                               --> CR LF   2246     <!--                               --> CR LF
2209     <xsl:var iable name ="VarResol vedPropert iesAsXML"> CR LF   2247     <xsl:var iable name ="VarResol vedPropert iesAsXML"> CR LF
2210      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> CR LF   2248      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> CR LF
2211       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF   2249       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF
2212       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> CR LF   2250       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> CR LF
2213      </xsl:c all-templa te> CR LF   2251      </xsl:c all-templa te> CR LF
2214     </xsl:va riable> CR LF   2252     </xsl:va riable> CR LF
2215     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> CR LF   2253     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> CR LF
2216   CR LF   2254   CR LF
2217     <!-- CSS  propertie s --> CR LF   2255     <!-- CSS  propertie s --> CR LF
2218     <!--                  --> CR LF   2256     <!--                  --> CR LF
2219     <xsl:var iable name ="VarCSSPr opertiesAs XML"> CR LF   2257     <xsl:var iable name ="VarCSSPr opertiesAs XML"> CR LF
2220      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF   2258      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF
2221       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" /> CR LF   2259       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" /> CR LF
2222       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF   2260       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF
2223       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   2261       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
2224      </xsl:c all-templa te> CR LF   2262      </xsl:c all-templa te> CR LF
2225     </xsl:va riable> CR LF   2263     </xsl:va riable> CR LF
2226     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> CR LF   2264     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> CR LF
2227   CR LF   2265   CR LF
2228     <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Table',  $ParamTabl e/@stylena me, $Param Split/@doc umentID, $ ParamTable /@id)" /> CR LF   2266     <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Table',  $ParamTabl e/@stylena me, $Param Split/@doc umentID, $ ParamTable /@id)" /> CR LF
2229   CR LF   2267   CR LF
2230     <!-- Res olve proje ct propert ies --> CR LF   2268     <!-- Res olve proje ct propert ies --> CR LF
2231     <!--                               --> CR LF   2269     <!--                               --> CR LF
2232     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF   2270     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF
2233      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF   2271      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF
2234       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amTable" / > CR LF   2272       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amTable" / > CR LF
2235       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF   2273       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF
2236       <xsl:w ith-param  name="Para mStyleName " select=" $ParamTabl e/@stylena me" /> CR LF   2274       <xsl:w ith-param  name="Para mStyleName " select=" $ParamTabl e/@stylena me" /> CR LF
2237       <xsl:w ith-param  name="Para mStyleType " select=" 'Table'" / > CR LF   2275       <xsl:w ith-param  name="Para mStyleType " select=" 'Table'" / > CR LF
2238       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> CR LF   2276       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> CR LF
2239      </xsl:c all-templa te> CR LF   2277      </xsl:c all-templa te> CR LF
2240     </xsl:va riable> CR LF   2278     </xsl:va riable> CR LF
2241     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF   2279     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF
2242   CR LF   2280   CR LF
2243     <!-- Tab le class - -> CR LF   2281     <!-- Tab le class - -> CR LF
2244     <!--              - -> CR LF   2282     <!--              - -> CR LF
2245     <xsl:var iable name ="VarClass Attribute" > CR LF   2283     <xsl:var iable name ="VarClass Attribute" > CR LF
2246      <xsl:va lue-of sel ect="wwstr ing:CSSCla ssName($Pa ramStyleNa me)" /> CR LF   2284      <xsl:va lue-of sel ect="wwstr ing:CSSCla ssName($Pa ramStyleNa me)" /> CR LF
2247   CR LF   2285   CR LF
2248      <!-- Ad ditional C SS classes  --> CR LF   2286      <!-- Ad ditional C SS classes  --> CR LF
2249      <!--                           --> CR LF   2287      <!--                           --> CR LF
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) " /> CR LF   2288      <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) " /> CR LF
2251      <xsl:if  test="str ing-length ($VarAddit ionalCSSCl assesOptio n) &gt; 0" > CR LF   2289      <xsl:if  test="str ing-length ($VarAddit ionalCSSCl assesOptio n) &gt; 0" > CR LF
2252       <xsl:t ext> </xsl :text> CR LF   2290       <xsl:t ext> </xsl :text> CR LF
2253       <xsl:v alue-of se lect="$Var Additional CSSClasses Option" /> CR LF   2291       <xsl:v alue-of se lect="$Var Additional CSSClasses Option" /> CR LF
2254      </xsl:i f> CR LF   2292      </xsl:i f> CR LF
2255     </xsl:va riable> CR LF   2293     </xsl:va riable> CR LF
2256   CR LF   2294   CR LF
2257     <!-- Sty le attribu te --> CR LF   2295     <!-- Sty le attribu te --> CR LF
2258     <!--                   --> CR LF   2296     <!--                   --> CR LF
2259     <xsl:var iable name ="VarStyle Attribute" > CR LF   2297     <xsl:var iable name ="VarStyle Attribute" > CR LF
2260      <xsl:ca ll-templat e name="CS S-InlinePr operties"> CR LF   2298      <xsl:ca ll-templat e name="CS S-InlinePr operties"> CR LF
2261       <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties[( @Name != ' vertical-a lign')]" / > CR LF   2299       <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties[( @Name != ' vertical-a lign')]" / > CR LF
2262      </xsl:c all-templa te> CR LF   2300      </xsl:c all-templa te> CR LF
2263     </xsl:va riable> CR LF   2301     </xsl:va riable> CR LF
2264   CR LF   2302   CR LF
2265     <!-- Bor der --> CR LF   2303     <!-- Bor der --> CR LF
2266     <!--         --> CR LF   2304     <!--         --> CR LF
2267     <xsl:var iable name ="VarTable Border"> CR LF   2305     <xsl:var iable name ="VarTable Border"> CR LF
2268      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF   2306      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF
2269       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'borde r']/@Value " /> CR LF   2307       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'borde r']/@Value " /> CR LF
2270      </xsl:c all-templa te> CR LF   2308      </xsl:c all-templa te> CR LF
2271     </xsl:va riable> CR LF   2309     </xsl:va riable> CR LF
2272   CR LF   2310   CR LF
2273     <!-- Cel l padding  --> CR LF   2311     <!-- Cel l padding  --> CR LF
2274     <!--                --> CR LF   2312     <!--                --> CR LF
2275     <xsl:var iable name ="VarTable CellPaddin g"> CR LF   2313     <xsl:var iable name ="VarTable CellPaddin g"> CR LF
2276      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF   2314      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF
2277       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- padding']/ @Value" /> CR LF   2315       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- padding']/ @Value" /> CR LF
2278      </xsl:c all-templa te> CR LF   2316      </xsl:c all-templa te> CR LF
2279     </xsl:va riable> CR LF   2317     </xsl:va riable> CR LF
2280   CR LF   2318   CR LF
2281     <!-- Cel l spacing  --> CR LF   2319     <!-- Cel l spacing  --> CR LF
2282     <!--                --> CR LF   2320     <!--                --> CR LF
2283     <xsl:var iable name ="VarTable CellSpacin g"> CR LF   2321     <xsl:var iable name ="VarTable CellSpacin g"> CR LF
2284      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF   2322      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF
2285       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- spacing']/ @Value" /> CR LF   2323       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- spacing']/ @Value" /> CR LF
2286      </xsl:c all-templa te> CR LF   2324      </xsl:c all-templa te> CR LF
2287     </xsl:va riable> CR LF   2325     </xsl:va riable> CR LF
2288   CR LF   2326   CR LF
2289     <!-- Tab le vertica l alignmen t --> CR LF   2327     <!-- Tab le vertica l alignmen t --> CR LF
2290     <!--                             --> CR LF   2328     <!--                             --> CR LF
2291     <xsl:var iable name ="VarTable VerticalAl ignment"> CR LF   2329     <xsl:var iable name ="VarTable VerticalAl ignment"> CR LF
2292      <xsl:va riable nam e="VarTabl eVerticalA lignmentHi nt" select ="$VarReso lvedContex tPropertie s[@Name =  'vertical- align']/@V alue" /> CR LF   2330      <xsl:va riable nam e="VarTabl eVerticalA lignmentHi nt" select ="$VarReso lvedContex tPropertie s[@Name =  'vertical- align']/@V alue" /> CR LF
2293      <xsl:ch oose> CR LF   2331      <xsl:ch oose> CR LF
2294       <xsl:w hen test=" string-len gth($VarTa bleVertica lAlignment Hint) &gt;  0"> CR LF   2332       <xsl:w hen test=" string-len gth($VarTa bleVertica lAlignment Hint) &gt;  0"> CR LF
2295        <xsl: value-of s elect="$Va rTableVert icalAlignm entHint" / > CR LF   2333        <xsl: value-of s elect="$Va rTableVert icalAlignm entHint" / > CR LF
2296       </xsl: when> CR LF   2334       </xsl: when> CR LF
2297       <xsl:o therwise> CR LF   2335       <xsl:o therwise> CR LF
2298        <xsl: value-of s elect="''"  /> CR LF   2336        <xsl: value-of s elect="''"  /> CR LF
2299       </xsl: otherwise> CR LF   2337       </xsl: otherwise> CR LF
2300      </xsl:c hoose> CR LF   2338      </xsl:c hoose> CR LF
2301     </xsl:va riable> CR LF   2339     </xsl:va riable> CR LF
2302   CR LF   2340   CR LF
2303     <!-- Tab le summary  --> CR LF   2341     <!-- Tab le summary  --> CR LF
2304     <!--                 --> CR LF   2342     <!--                 --> CR LF
2305     <xsl:var iable name ="VarTable Summary"> CR LF   2343     <xsl:var iable name ="VarTable Summary"> CR LF
2306      <xsl:ca ll-templat e name="Ta bles-Summa ry"> CR LF   2344      <xsl:ca ll-templat e name="Ta bles-Summa ry"> CR LF
2307       <xsl:w ith-param  name="Para mTableBeha vior" sele ct="$Param TableBehav ior" /> CR LF   2345       <xsl:w ith-param  name="Para mTableBeha vior" sele ct="$Param TableBehav ior" /> CR LF
2308      </xsl:c all-templa te> CR LF   2346      </xsl:c all-templa te> CR LF
2309     </xsl:va riable> CR LF   2347     </xsl:va riable> CR LF
2310   CR LF   2348   CR LF
2311     <!-- Cap tion Side  --> CR LF   2349     <!-- Cap tion Side  --> CR LF
2312     <!--                --> CR LF   2350     <!--                --> CR LF
2313     <xsl:var iable name ="VarCapti onSide"> CR LF   2351     <xsl:var iable name ="VarCapti onSide"> CR LF
2314      <xsl:va lue-of sel ect="$VarR esolvedCon textProper ties[@Name  = 'captio n-side']/@ Value" /> CR LF   2352      <xsl:va lue-of sel ect="$VarR esolvedCon textProper ties[@Name  = 'captio n-side']/@ Value" /> CR LF
2315     </xsl:va riable> CR LF   2353     </xsl:va riable> CR LF
2316   CR LF   2354   CR LF
2317     <!-- Det ermine tab le cell wi dths --> CR LF   2355     <!-- Det ermine tab le cell wi dths --> CR LF
2318     <!--                                --> CR LF   2356     <!--                                --> CR LF
2319     <xsl:var iable name ="VarTable CellWidths AsXML"> CR LF   2357     <xsl:var iable name ="VarTable CellWidths AsXML"> CR LF
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" /> CR LF   2358      <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" /> CR LF
2321      <xsl:va riable nam e="VarEmit TableWidth s" select= "$VarEmitT ableWidths Option = ' true'" /> CR LF   2359      <xsl:va riable nam e="VarEmit TableWidth s" select= "$VarEmitT ableWidths Option = ' true'" /> CR LF
2322   CR LF   2360   CR LF
2323      <xsl:if  test="$Va rEmitTable Widths"> CR LF   2361      <xsl:if  test="$Va rEmitTable Widths"> CR LF
2324       <xsl:c all-templa te name="T able-CellW idths"> CR LF   2362       <xsl:c all-templa te name="T able-CellW idths"> CR LF
2325        <xsl: with-param  name="Par amTable" s elect="$Pa ramTable"  /> CR LF   2363        <xsl: with-param  name="Par amTable" s elect="$Pa ramTable"  /> CR LF
2326       </xsl: call-templ ate> CR LF   2364       </xsl: call-templ ate> CR LF
2327      </xsl:i f> CR LF   2365      </xsl:i f> CR LF
2328     </xsl:va riable> CR LF   2366     </xsl:va riable> CR LF
2329     <xsl:var iable name ="VarTable CellWidths " select=" msxsl:node -set($VarT ableCellWi dthsAsXML) /*" /> CR LF   2367     <xsl:var iable name ="VarTable CellWidths " select=" msxsl:node -set($VarT ableCellWi dthsAsXML) /*" /> CR LF
2330   CR LF   2368   CR LF
2331     <!-- Emi t <table>  element wi th class,  style, and  summary a ttrs. --> CR LF   2369     <!-- Emi t <table>  element wi th class,  style, and  summary a ttrs. --> CR LF
2332     <!--                                                                       --> CR LF   2370     <!--                                                                       --> CR LF
2333     <html:ta ble class= "{$VarClas sAttribute }"> CR LF   2371     <html:ta ble class= "{$VarClas sAttribute }"> CR LF
2334   CR LF   2372   CR LF
2335      <!-- st yle attrib ute --> CR LF   2373      <!-- st yle attrib ute --> CR LF
2336      <!--                   --> CR LF   2374      <!--                   --> CR LF
2337      <xsl:if  test="str ing-length ($VarStyle Attribute)  &gt; 0"> CR LF   2375      <xsl:if  test="str ing-length ($VarStyle Attribute)  &gt; 0"> CR LF
2338       <xsl:a ttribute n ame="style "> CR LF   2376       <xsl:a ttribute n ame="style "> CR LF
2339        <xsl: value-of s elect="$Va rStyleAttr ibute" /> CR LF   2377        <xsl: value-of s elect="$Va rStyleAttr ibute" /> CR LF
2340       </xsl: attribute> CR LF   2378       </xsl: attribute> CR LF
2341      </xsl:i f> CR LF   2379      </xsl:i f> CR LF
2342   CR LF   2380   CR LF
2343      <!-- bo rder attri bute --> CR LF   2381      <!-- bo rder attri bute --> CR LF
2344      <!--                    --> CR LF   2382      <!--                    --> CR LF
2345      <xsl:if  test="str ing-length ($VarTable Border) &g t; 0"> CR LF   2383      <xsl:if  test="str ing-length ($VarTable Border) &g t; 0"> CR LF
2346       <xsl:a ttribute n ame="borde r"> CR LF   2384       <xsl:a ttribute n ame="borde r"> CR LF
2347        <xsl: value-of s elect="$Va rTableBord er" /> CR LF   2385        <xsl: value-of s elect="$Va rTableBord er" /> CR LF
2348       </xsl: attribute> CR LF   2386       </xsl: attribute> CR LF
2349      </xsl:i f> CR LF   2387      </xsl:i f> CR LF
2350   CR LF   2388   CR LF
2351      <!-- ce llpadding  attribute  --> CR LF   2389      <!-- ce llpadding  attribute  --> CR LF
2352      <!--                          --> CR LF   2390      <!--                          --> CR LF
2353      <xsl:if  test="str ing-length ($VarTable CellPaddin g) &gt; 0" > CR LF   2391      <xsl:if  test="str ing-length ($VarTable CellPaddin g) &gt; 0" > CR LF
2354       <xsl:a ttribute n ame="cellp adding"> CR LF   2392       <xsl:a ttribute n ame="cellp adding"> CR LF
2355        <xsl: value-of s elect="$Va rTableCell Padding" / > CR LF   2393        <xsl: value-of s elect="$Va rTableCell Padding" / > CR LF
2356       </xsl: attribute> CR LF   2394       </xsl: attribute> CR LF
2357      </xsl:i f> CR LF   2395      </xsl:i f> CR LF
2358   CR LF   2396   CR LF
2359      <!-- ce llspacing  attribute  --> CR LF   2397      <!-- ce llspacing  attribute  --> CR LF
2360      <!--                          --> CR LF   2398      <!--                          --> CR LF
2361      <xsl:if  test="str ing-length ($VarTable CellSpacin g) &gt; 0" > CR LF   2399      <xsl:if  test="str ing-length ($VarTable CellSpacin g) &gt; 0" > CR LF
2362       <xsl:a ttribute n ame="cells pacing"> CR LF   2400       <xsl:a ttribute n ame="cells pacing"> CR LF
2363        <xsl: value-of s elect="$Va rTableCell Spacing" / > CR LF   2401        <xsl: value-of s elect="$Va rTableCell Spacing" / > CR LF
2364       </xsl: attribute> CR LF   2402       </xsl: attribute> CR LF
2365      </xsl:i f> CR LF   2403      </xsl:i f> CR LF
2366   CR LF   2404   CR LF
2367      <!-- su mmary attr ibute --> CR LF   2405      <!-- su mmary attr ibute --> CR LF
2368      <!--                     --> CR LF   2406      <!--                     --> CR LF
2369      <xsl:at tribute na me="summar y"> CR LF   2407      <xsl:at tribute na me="summar y"> CR LF
2370       <xsl:v alue-of se lect="$Var TableSumma ry" /> CR LF   2408       <xsl:v alue-of se lect="$Var TableSumma ry" /> CR LF
2371      </xsl:a ttribute> CR LF   2409      </xsl:a ttribute> CR LF
2372   CR LF   2410   CR LF
2373      <!-- Ap ply captio n template s --> CR LF   2411      <!-- Ap ply captio n template s --> CR LF
2374      <!--                            --> CR LF   2412      <!--                            --> CR LF
2375      <xsl:fo r-each sel ect="$Para mTable/wwd oc:Caption [1]"> CR LF   2413      <xsl:fo r-each sel ect="$Para mTable/wwd oc:Caption [1]"> CR LF
2376       <html: caption> CR LF   2414       <html: caption> CR LF
2377   CR LF   2415   CR LF
2378        <xsl: if test="s tring-leng th($VarCap tionSide)  &gt; 0"> CR LF   2416        <xsl: if test="s tring-leng th($VarCap tionSide)  &gt; 0"> CR LF
2379         <xsl :attribute  name="sty le"> CR LF   2417         <xsl :attribute  name="sty le"> CR LF
2380          <xs l:value-of  select="c oncat('cap tion-side:  ', $VarCa ptionSide) " /> CR LF   2418          <xs l:value-of  select="c oncat('cap tion-side:  ', $VarCa ptionSide) " /> CR LF
2381         </xs l:attribut e> CR LF   2419         </xs l:attribut e> CR LF
2382        </xsl :if> CR LF   2420        </xsl :if> CR LF
2383   CR LF   2421   CR LF
2384        <xsl: apply-temp lates sele ct="./*" m ode="wwmod e:content" > CR LF   2422        <xsl: apply-temp lates sele ct="./*" m ode="wwmod e:content" > CR LF
2385         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   2423         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
2386         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   2424         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
2387         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   2425         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
2388         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF   2426         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF
2389         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   2427         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
2390        </xsl :apply-tem plates> CR LF   2428        </xsl :apply-tem plates> CR LF
2391   CR LF   2429   CR LF
2392       </html :caption> CR LF   2430       </html :caption> CR LF
2393      </xsl:f or-each> CR LF   2431      </xsl:f or-each> CR LF
2394   CR LF   2432   CR LF
2395      <xsl:fo r-each sel ect="$Para mTable/wwd oc:TableHe ad|$ParamT able/wwdoc :TableBody |$ParamTab le/wwdoc:T ableFoot"> CR LF   2433      <xsl:fo r-each sel ect="$Para mTable/wwd oc:TableHe ad|$ParamT able/wwdoc :TableBody |$ParamTab le/wwdoc:T ableFoot"> CR LF
2396       <xsl:v ariable na me="VarSec tion" sele ct="." /> CR LF   2434       <xsl:v ariable na me="VarSec tion" sele ct="." /> CR LF
2397   CR LF   2435   CR LF
2398       <!-- R esolve sec tion prope rties --> CR LF   2436       <!-- R esolve sec tion prope rties --> CR LF
2399       <!--                               --> CR LF   2437       <!--                               --> CR LF
2400       <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML"> CR LF   2438       <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML"> CR LF
2401        <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule"> CR LF   2439        <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule"> CR LF
2402         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property"  /> CR LF   2440         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property"  /> CR LF
2403         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramTable"  /> CR LF   2441         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramTable"  /> CR LF
2404         <xsl :with-para m name="Pa ramTable"  select="$P aramTable"  /> CR LF   2442         <xsl :with-para m name="Pa ramTable"  select="$P aramTable"  /> CR LF
2405         <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" /> CR LF   2443         <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" /> CR LF
2406        </xsl :call-temp late> CR LF   2444        </xsl :call-temp late> CR LF
2407       </xsl: variable> CR LF   2445       </xsl: variable> CR LF
2408       <xsl:v ariable na me="VarRes olvedSecti onProperti es" select ="msxsl:no de-set($Va rResolvedS ectionProp ertiesAsXM L)/wwproje ct:Propert y" /> CR LF   2446       <xsl:v ariable na me="VarRes olvedSecti onProperti es" select ="msxsl:no de-set($Va rResolvedS ectionProp ertiesAsXM L)/wwproje ct:Propert y" /> CR LF
2409   CR LF   2447   CR LF
2410       <!-- P rocess sec tion rows  --> CR LF   2448       <!-- P rocess sec tion rows  --> CR LF
2411       <!--                         --> CR LF   2449       <!--                         --> CR LF
2412       <xsl:f or-each se lect="$Var Section/ww doc:TableR ow"> CR LF   2450       <xsl:f or-each se lect="$Var Section/ww doc:TableR ow"> CR LF
2413        <xsl: variable n ame="VarTa bleRow" se lect="." / > CR LF   2451        <xsl: variable n ame="VarTa bleRow" se lect="." / > CR LF
2414        <xsl: variable n ame="VarRo wPosition"  select="p osition()"  /> CR LF   2452        <xsl: variable n ame="VarRo wPosition"  select="p osition()"  /> CR LF
2415   CR LF   2453   CR LF
2416        <html :tr> CR LF   2454        <html :tr> CR LF
2417   CR LF   2455   CR LF
2418         <!--  Handle ta ble level  vertical a lign at ro w level -- > CR LF   2456         <!--  Handle ta ble level  vertical a lign at ro w level -- > CR LF
2419         <!--                                                     -- > CR LF   2457         <!--                                                     -- > CR LF
2420         <xsl :if test=" string-len gth($VarTa bleVertica lAlignment ) &gt; 0"> CR LF   2458         <xsl :if test=" string-len gth($VarTa bleVertica lAlignment ) &gt; 0"> CR LF
2421          <xs l:attribut e name="st yle"> CR LF   2459          <xs l:attribut e name="st yle"> CR LF
2422           <x sl:value-o f select=" concat('ve rtical-ali gn: ', $Va rTableVert icalAlignm ent, ';')"  /> CR LF   2460           <x sl:value-o f select=" concat('ve rtical-ali gn: ', $Va rTableVert icalAlignm ent, ';')"  /> CR LF
2423          </x sl:attribu te> CR LF   2461          </x sl:attribu te> CR LF
2424         </xs l:if> CR LF   2462         </xs l:if> CR LF
2425   CR LF   2463   CR LF
2426         <xsl :for-each  select="$V arTableRow /wwdoc:Tab leCell"> CR LF   2464         <xsl :for-each  select="$V arTableRow /wwdoc:Tab leCell"> CR LF
2427          <xs l:variable  name="Var TableCell"  select=". " /> CR LF   2465          <xs l:variable  name="Var TableCell"  select=". " /> CR LF
2428          <xs l:variable  name="Var CellPositi on" select ="position ()" /> CR LF   2466          <xs l:variable  name="Var CellPositi on" select ="position ()" /> CR LF
2429   CR LF   2467   CR LF
2430          <!- - Resolve  cell prope rties --> CR LF   2468          <!- - Resolve  cell prope rties --> CR LF
2431          <!- -                           --> CR LF   2469          <!- -                           --> CR LF
2432          <xs l:variable  name="Var ResolvedCe llProperti esAsXML"> CR LF   2470          <xs l:variable  name="Var ResolvedCe llProperti esAsXML"> CR LF
2433           <x sl:call-te mplate nam e="Propert ies-Table- Cell-Resol veProperti es"> CR LF   2471           <x sl:call-te mplate nam e="Propert ies-Table- Cell-Resol veProperti es"> CR LF
2434            < xsl:with-p aram name= "ParamSect ionPropert ies" selec t="$VarRes olvedSecti onProperti es" /> CR LF   2472            < xsl:with-p aram name= "ParamSect ionPropert ies" selec t="$VarRes olvedSecti onProperti es" /> CR LF
2435            < xsl:with-p aram name= "ParamCell Style" sel ect="$VarT ableCell/w wdoc:Style " /> CR LF   2473            < xsl:with-p aram name= "ParamCell Style" sel ect="$VarT ableCell/w wdoc:Style " /> CR LF
2436            < xsl:with-p aram name= "ParamRowI ndex" sele ct="$VarRo wPosition"  /> CR LF   2474            < xsl:with-p aram name= "ParamRowI ndex" sele ct="$VarRo wPosition"  /> CR LF
2437            < xsl:with-p aram name= "ParamColu mnIndex" s elect="$Va rCellPosit ion" /> CR LF   2475            < xsl:with-p aram name= "ParamColu mnIndex" s elect="$Va rCellPosit ion" /> CR LF
2438           </ xsl:call-t emplate> CR LF   2476           </ xsl:call-t emplate> CR LF
2439   CR LF   2477   CR LF
2440           <! -- Width a ttribute - -> CR LF   2478           <! -- Width a ttribute - -> CR LF
2441           <! --                  - -> CR LF   2479           <! --                  - -> CR LF
2442           <x sl:for-eac h select=" $VarTableC ellWidths[ @id = $Var TableCell/ @id][1]"> CR LF   2480           <x sl:for-eac h select=" $VarTableC ellWidths[ @id = $Var TableCell/ @id][1]"> CR LF
2443            < xsl:variab le name="V arTableCel lWidth" se lect="." / > CR LF   2481            < xsl:variab le name="V arTableCel lWidth" se lect="." / > CR LF
2444   CR LF   2482   CR LF
2445            < wwproject: Property N ame="width " Value="{ $VarTableC ellWidth/@ width}" /> CR LF   2483            < wwproject: Property N ame="width " Value="{ $VarTableC ellWidth/@ width}" /> CR LF
2446           </ xsl:for-ea ch> CR LF   2484           </ xsl:for-ea ch> CR LF
2447          </x sl:variabl e> CR LF   2485          </x sl:variabl e> CR LF
2448          <xs l:variable  name="Var ResolvedCe llProperti es" select ="msxsl:no de-set($Va rResolvedC ellPropert iesAsXML)/ wwproject: Property"  /> CR LF   2486          <xs l:variable  name="Var ResolvedCe llProperti es" select ="msxsl:no de-set($Va rResolvedC ellPropert iesAsXML)/ wwproject: Property"  /> CR LF
2449   CR LF   2487   CR LF
2450          <!- - Valid CS S properti es --> CR LF   2488          <!- - Valid CS S properti es --> CR LF
2451          <!- -                        --> CR LF   2489          <!- -                        --> CR LF
2452          <xs l:variable  name="Var TableCellC SSProperti esAsXML"> CR LF   2490          <xs l:variable  name="Var TableCellC SSProperti esAsXML"> CR LF
2453           <x sl:call-te mplate nam e="CSS-Tra nslateProj ectPropert ies"> CR LF   2491           <x sl:call-te mplate nam e="CSS-Tra nslateProj ectPropert ies"> CR LF
2454            < xsl:with-p aram name= "ParamProp erties" se lect="$Var ResolvedCe llProperti es" /> CR LF   2492            < xsl:with-p aram name= "ParamProp erties" se lect="$Var ResolvedCe llProperti es" /> CR LF
2455            < xsl:with-p aram name= "ParamFrom AbsoluteUR I" select= "$ParamSpl it/@path"  /> CR LF   2493            < xsl:with-p aram name= "ParamFrom AbsoluteUR I" select= "$ParamSpl it/@path"  /> CR LF
2456            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF   2494            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF
2457           </ xsl:call-t emplate> CR LF   2495           </ xsl:call-t emplate> CR LF
2458          </x sl:variabl e> CR LF   2496          </x sl:variabl e> CR LF
2459          <xs l:variable  name="Var TableCellC SSProperti es" select ="msxsl:no de-set($Va rTableCell CSSPropert iesAsXML)/ wwproject: Property"  /> CR LF   2497          <xs l:variable  name="Var TableCellC SSProperti es" select ="msxsl:no de-set($Va rTableCell CSSPropert iesAsXML)/ wwproject: Property"  /> CR LF
2460   CR LF   2498   CR LF
2461          <!- - Inline C SS propert ies --> CR LF   2499          <!- - Inline C SS propert ies --> CR LF
2462          <!- -                         --> CR LF   2500          <!- -                         --> CR LF
2463          <xs l:variable  name="Var InlineCSSP roperties" > CR LF   2501          <xs l:variable  name="Var InlineCSSP roperties" > CR LF
2464           <x sl:call-te mplate nam e="CSS-Inl inePropert ies"> CR LF   2502           <x sl:call-te mplate nam e="CSS-Inl inePropert ies"> CR LF
2465            < xsl:with-p aram name= "ParamProp erties" se lect="$Var TableCellC SSProperti es" /> CR LF   2503            < xsl:with-p aram name= "ParamProp erties" se lect="$Var TableCellC SSProperti es" /> CR LF
2466           </ xsl:call-t emplate> CR LF   2504           </ xsl:call-t emplate> CR LF
2467          </x sl:variabl e> CR LF   2505          </x sl:variabl e> CR LF
2468   CR LF   2506   CR LF
2469          <!- - Calculat e row span  --> CR LF   2507          <!- - Calculat e row span  --> CR LF
2470          <!- -                      --> CR LF   2508          <!- -                      --> CR LF
2471          <xs l:variable  name="Var RowSpan"> CR LF   2509          <xs l:variable  name="Var RowSpan"> CR LF
2472           <x sl:variabl e name="Va rRowSpanHi nt" select ="$VarTabl eCell/wwdo c:Style/ww doc:Attrib ute[@name  = 'row-spa n']/@value " /> CR LF   2510           <x sl:variabl e name="Va rRowSpanHi nt" select ="$VarTabl eCell/wwdo c:Style/ww doc:Attrib ute[@name  = 'row-spa n']/@value " /> CR LF
2473           <x sl:choose> CR LF   2511           <x sl:choose> CR LF
2474            < xsl:when t est="strin g-length($ VarRowSpan Hint) &gt;  0"> CR LF   2512            < xsl:when t est="strin g-length($ VarRowSpan Hint) &gt;  0"> CR LF
2475              <xsl:value -of select ="$VarRowS panHint" / > CR LF   2513              <xsl:value -of select ="$VarRowS panHint" / > CR LF
2476            < /xsl:when> CR LF   2514            < /xsl:when> CR LF
2477            < xsl:otherw ise> CR LF   2515            < xsl:otherw ise> CR LF
2478              <xsl:value -of select ="'0'" /> CR LF   2516              <xsl:value -of select ="'0'" /> CR LF
2479            < /xsl:other wise> CR LF   2517            < /xsl:other wise> CR LF
2480           </ xsl:choose > CR LF   2518           </ xsl:choose > CR LF
2481          </x sl:variabl e> CR LF   2519          </x sl:variabl e> CR LF
2482   CR LF   2520   CR LF
2483          <!- - Calculat e column s pan --> CR LF   2521          <!- - Calculat e column s pan --> CR LF
2484          <!- -                         --> CR LF   2522          <!- -                         --> CR LF
2485          <xs l:variable  name="Var ColumnSpan "> CR LF   2523          <xs l:variable  name="Var ColumnSpan "> CR LF
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" /> CR LF   2524           <x sl:variabl e name="Va rColumnSpa nHint" sel ect="$VarT ableCell/w wdoc:Style /wwdoc:Att ribute[@na me = 'colu mn-span']/ @value" /> CR LF
2487           <x sl:choose> CR LF   2525           <x sl:choose> CR LF
2488            < xsl:when t est="strin g-length($ VarColumnS panHint) & gt; 0"> CR LF   2526            < xsl:when t est="strin g-length($ VarColumnS panHint) & gt; 0"> CR LF
2489              <xsl:value -of select ="$VarColu mnSpanHint " /> CR LF   2527              <xsl:value -of select ="$VarColu mnSpanHint " /> CR LF
2490            < /xsl:when> CR LF   2528            < /xsl:when> CR LF
2491            < xsl:otherw ise> CR LF   2529            < xsl:otherw ise> CR LF
2492              <xsl:value -of select ="'0'" /> CR LF   2530              <xsl:value -of select ="'0'" /> CR LF
2493            < /xsl:other wise> CR LF   2531            < /xsl:other wise> CR LF
2494           </ xsl:choose > CR LF   2532           </ xsl:choose > CR LF
2495          </x sl:variabl e> CR LF   2533          </x sl:variabl e> CR LF
2496   CR LF   2534   CR LF
2497          <!- - Emit cel l --> CR LF   2535          <!- - Emit cel l --> CR LF
2498          <!- -            --> CR LF   2536          <!- -            --> CR LF
2499          <ht ml:td> CR LF   2537          <ht ml:td> CR LF
2500           <! -- Style a ttribute - -> CR LF   2538           <! -- Style a ttribute - -> CR LF
2501           <! --                  - -> CR LF   2539           <! --                  - -> CR LF
2502           <x sl:if test ="string-l ength($Var InlineCSSP roperties)  &gt; 0"> CR LF   2540           <x sl:if test ="string-l ength($Var InlineCSSP roperties)  &gt; 0"> CR LF
2503            < xsl:attrib ute name=" style"> CR LF   2541            < xsl:attrib ute name=" style"> CR LF
2504              <xsl:value -of select ="$VarInli neCSSPrope rties" /> CR LF   2542              <xsl:value -of select ="$VarInli neCSSPrope rties" /> CR LF
2505            < /xsl:attri bute> CR LF   2543            < /xsl:attri bute> CR LF
2506           </ xsl:if> CR LF   2544           </ xsl:if> CR LF
2507   CR LF   2545   CR LF
2508           <! -- Row spa n attribut e --> CR LF   2546           <! -- Row spa n attribut e --> CR LF
2509           <! --                      --> CR LF   2547           <! --                      --> CR LF
2510           <x sl:if test ="number($ VarRowSpan ) &gt; 0"> CR LF   2548           <x sl:if test ="number($ VarRowSpan ) &gt; 0"> CR LF
2511            < xsl:attrib ute name=" rowspan"> CR LF   2549            < xsl:attrib ute name=" rowspan"> CR LF
2512              <xsl:value -of select ="$VarRowS pan" /> CR LF   2550              <xsl:value -of select ="$VarRowS pan" /> CR LF
2513            < /xsl:attri bute> CR LF   2551            < /xsl:attri bute> CR LF
2514           </ xsl:if> CR LF   2552           </ xsl:if> CR LF
2515   CR LF   2553   CR LF
2516           <! -- Column  span attri bute --> CR LF   2554           <! -- Column  span attri bute --> CR LF
2517           <! --                         --> CR LF   2555           <! --                         --> CR LF
2518           <x sl:if test ="number($ VarColumnS pan) &gt;  0"> CR LF   2556           <x sl:if test ="number($ VarColumnS pan) &gt;  0"> CR LF
2519            < xsl:attrib ute name=" colspan"> CR LF   2557            < xsl:attrib ute name=" colspan"> CR LF
2520              <xsl:value -of select ="$VarColu mnSpan" /> CR LF   2558              <xsl:value -of select ="$VarColu mnSpan" /> CR LF
2521            < /xsl:attri bute> CR LF   2559            < /xsl:attri bute> CR LF
2522           </ xsl:if> CR LF   2560           </ xsl:if> CR LF
2523   CR LF   2561   CR LF
2524           <! -- Recurse  --> CR LF   2562           <! -- Recurse  --> CR LF
2525           <! --          --> CR LF   2563           <! --          --> CR LF
2526           <x sl:apply-t emplates s elect="./* " mode="ww mode:conte nt"> CR LF   2564           <x sl:apply-t emplates s elect="./* " mode="ww mode:conte nt"> CR LF
2527            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF   2565            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF
2528            < xsl:with-p aram name= "ParamCarg o" select= "$VarCargo " /> CR LF   2566            < xsl:with-p aram name= "ParamCarg o" select= "$VarCargo " /> CR LF
2529            < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" /> CR LF   2567            < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" /> CR LF
2530            < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" /> CR LF   2568            < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" /> CR LF
2531            < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" /> CR LF   2569            < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" /> CR LF
2532           </ xsl:apply- templates> CR LF   2570           </ xsl:apply- templates> CR LF
2533          </h tml:td> CR LF   2571          </h tml:td> CR LF
2534         </xs l:for-each > CR LF   2572         </xs l:for-each > CR LF
2535   CR LF   2573   CR LF
2536        </htm l:tr> CR LF   2574        </htm l:tr> CR LF
2537       </xsl: for-each> CR LF   2575       </xsl: for-each> CR LF
2538      </xsl:f or-each> CR LF   2576      </xsl:f or-each> CR LF
2539   CR LF   2577   CR LF
2540     </html:t able> CR LF   2578     </html:t able> CR LF
2541   CR LF   2579   CR LF
2542     <!-- Tab le Footnot es --> CR LF   2580     <!-- Tab le Footnot es --> CR LF
2543     <!--                   --> CR LF   2581     <!--                   --> CR LF
2544     <xsl:cal l-template  name="Con tent-Notes "> CR LF   2582     <xsl:cal l-template  name="Con tent-Notes "> CR LF
2545      <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" /> CR LF   2583      <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" /> CR LF
2546      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   2584      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
2547      <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" /> CR LF   2585      <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" /> CR LF
2548      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   2586      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
2549      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> CR LF   2587      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> CR LF
2550      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   2588      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
2551     </xsl:ca ll-templat e> CR LF   2589     </xsl:ca ll-templat e> CR LF
2552   CR LF   2590   CR LF
2553     <!-- Dro pdown End  --> CR LF   2591     <!-- Dro pdown End  --> CR LF
2554     <!--                --> CR LF   2592     <!--                --> CR LF
2555     <xsl:if  test="$Par amTableBeh avior/@dro pdown = 'e nd'"> CR LF   2593     <xsl:if  test="$Par amTableBeh avior/@dro pdown = 'e nd'"> CR LF
2556      <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ks_WriteDI VClose();< /html:scri pt> CR LF   2594      <html:s cript type ="text/jav ascript" l anguage="J avaScript1 .2">WebWor ks_WriteDI VClose();< /html:scri pt> CR LF
2557     </xsl:if > CR LF   2595     </xsl:if > CR LF
2558    </xsl:tem plate> CR LF   2596    </xsl:tem plate> CR LF
2559   CR LF   2597   CR LF
2560   CR LF   2598   CR LF
2561    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:co ntent"> CR LF   2599    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:co ntent"> CR LF
2562     <xsl:par am name="P aramSplits " /> CR LF   2600     <xsl:par am name="P aramSplits " /> CR LF
2563     <xsl:par am name="P aramCargo"  /> CR LF   2601     <xsl:par am name="P aramCargo"  /> CR LF
2564     <xsl:par am name="P aramLinks"  /> CR LF   2602     <xsl:par am name="P aramLinks"  /> CR LF
2565     <xsl:par am name="P aramTOCDat a" /> CR LF   2603     <xsl:par am name="P aramTOCDat a" /> CR LF
2566     <xsl:par am name="P aramSplit"  /> CR LF   2604     <xsl:par am name="P aramSplit"  /> CR LF
2567   CR LF   2605   CR LF
2568     <!-- Abo rted? --> CR LF   2606     <!-- Abo rted? --> CR LF
2569     <!--           --> CR LF   2607     <!--           --> CR LF
2570     <xsl:if  test="not( wwprogress :Abort())" > CR LF   2608     <xsl:if  test="not( wwprogress :Abort())" > CR LF
2571      <xsl:ca ll-templat e name="Fr ame"> CR LF   2609      <xsl:ca ll-templat e name="Fr ame"> CR LF
2572       <xsl:w ith-param  name="Para mFrame" se lect="." / > CR LF   2610       <xsl:w ith-param  name="Para mFrame" se lect="." / > CR LF
2573       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   2611       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
2574       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   2612       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
2575       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   2613       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
2576       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   2614       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
2577      </xsl:c all-templa te> CR LF   2615      </xsl:c all-templa te> CR LF
2578     </xsl:if > CR LF   2616     </xsl:if > CR LF
2579    </xsl:tem plate> CR LF   2617    </xsl:tem plate> CR LF
2580   CR LF   2618   CR LF
2581   CR LF   2619   CR LF
2582    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:te xtrun"> CR LF   2620    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:te xtrun"> CR LF
2583     <xsl:par am name="P aramSplits " /> CR LF   2621     <xsl:par am name="P aramSplits " /> CR LF
2584     <xsl:par am name="P aramCargo"  /> CR LF   2622     <xsl:par am name="P aramCargo"  /> CR LF
2585     <xsl:par am name="P aramLinks"  /> CR LF   2623     <xsl:par am name="P aramLinks"  /> CR LF
2586     <xsl:par am name="P aramSplit"  /> CR LF   2624     <xsl:par am name="P aramSplit"  /> CR LF
2587   CR LF   2625   CR LF
2588     <xsl:cal l-template  name="Fra me"> CR LF   2626     <xsl:cal l-template  name="Fra me"> CR LF
2589      <xsl:wi th-param n ame="Param Frame" sel ect="." /> CR LF   2627      <xsl:wi th-param n ame="Param Frame" sel ect="." /> CR LF
2590      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   2628      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
2591      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF   2629      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF
2592      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   2630      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
2593      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   2631      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
2594     </xsl:ca ll-templat e> CR LF   2632     </xsl:ca ll-templat e> CR LF
2595    </xsl:tem plate> CR LF   2633    </xsl:tem plate> CR LF
2596   CR LF   2634   CR LF
2597   CR LF   2635   CR LF
2598    <xsl:temp late name= "Frame"> CR LF   2636    <xsl:temp late name= "Frame"> CR LF
2599     <xsl:par am name="P aramFrame"  /> CR LF   2637     <xsl:par am name="P aramFrame"  /> CR LF
2600     <xsl:par am name="P aramSplits " /> CR LF   2638     <xsl:par am name="P aramSplits " /> CR LF
2601     <xsl:par am name="P aramCargo"  /> CR LF   2639     <xsl:par am name="P aramCargo"  /> CR LF
2602     <xsl:par am name="P aramLinks"  /> CR LF   2640     <xsl:par am name="P aramLinks"  /> CR LF
2603     <xsl:par am name="P aramSplit"  /> CR LF   2641     <xsl:par am name="P aramSplit"  /> CR LF
2604   CR LF   2642   CR LF
2605     <!-- Get  splits fr ame --> CR LF   2643     <!-- Get  splits fr ame --> CR LF
2606     <!--                    --> CR LF   2644     <!--                    --> CR LF
2607     <xsl:for -each sele ct="$Param Splits[1]" > CR LF   2645     <xsl:for -each sele ct="$Param Splits[1]" > CR LF
2608      <xsl:va riable nam e="VarSpli tsFrame" s elect="key ('wwsplits -frames-by -id', $Par amFrame/@i d)[@docume ntID = $Pa ramSplit/@ documentID ]" /> CR LF   2646      <xsl:va riable nam e="VarSpli tsFrame" s elect="key ('wwsplits -frames-by -id', $Par amFrame/@i d)[@docume ntID = $Pa ramSplit/@ documentID ]" /> CR LF
2609   CR LF   2647   CR LF
2610      <!-- Fr ame known?  --> CR LF   2648      <!-- Fr ame known?  --> CR LF
2611      <!--                --> CR LF   2649      <!--                --> CR LF
2612      <xsl:if  test="cou nt($VarSpl itsFrame)  = 1"> CR LF   2650      <xsl:if  test="cou nt($VarSpl itsFrame)  = 1"> CR LF
2613       <!-- T humbnail?  --> CR LF   2651       <!-- T humbnail?  --> CR LF
2614       <!--              --> CR LF   2652       <!--              --> CR LF
2615       <xsl:f or-each se lect="$Glo balFiles[1 ]"> CR LF   2653       <xsl:f or-each se lect="$Glo balFiles[1 ]"> CR LF
2616        <xsl: variable n ame="VarSp litsThumbn ail" selec t="$VarSpl itsFrame/w wsplits:Th umbnail" / > CR LF   2654        <xsl: variable n ame="VarSp litsThumbn ail" selec t="$VarSpl itsFrame/w wsplits:Th umbnail" / > CR LF
2617        <xsl: variable n ame="VarTh umbnailDef ined" sele ct="count( key('wwfil es-files-b y-path', $ VarSplitsT humbnail/@ path)[1])  &gt; 0" /> CR LF   2655        <xsl: variable n ame="VarTh umbnailDef ined" sele ct="count( key('wwfil es-files-b y-path', $ VarSplitsT humbnail/@ path)[1])  &gt; 0" /> CR LF
2618   CR LF   2656   CR LF
2619        <!--  Emit image  --> CR LF   2657        <!--  Emit image  --> CR LF
2620        <!--              --> CR LF   2658        <!--              --> CR LF
2621        <xsl: choose> CR LF   2659        <xsl: choose> CR LF
2622         <!--  Thumbnail  --> CR LF   2660         <!--  Thumbnail  --> CR LF
2623         <!--             --> CR LF   2661         <!--             --> CR LF
2624         <xsl :when test ="$VarThum bnailDefin ed"> CR LF   2662         <xsl :when test ="$VarThum bnailDefin ed"> CR LF
2625          <!- - Emit mar kup --> CR LF   2663          <!- - Emit mar kup --> CR LF
2626          <!- -              --> CR LF   2664          <!- -              --> CR LF
2627          <xs l:call-tem plate name ="Frame-Ma rkup"> CR LF   2665          <xs l:call-tem plate name ="Frame-Ma rkup"> CR LF
2628           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF   2666           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF
2629           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   2667           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
2630           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF   2668           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF
2631           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   2669           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
2632           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   2670           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
2633           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> CR LF   2671           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> CR LF
2634           <x sl:with-pa ram name=" ParamThumb nail" sele ct="true() " /> CR LF   2672           <x sl:with-pa ram name=" ParamThumb nail" sele ct="true() " /> CR LF
2635          </x sl:call-te mplate> CR LF   2673          </x sl:call-te mplate> CR LF
2636         </xs l:when> CR LF   2674         </xs l:when> CR LF
2637   CR LF   2675   CR LF
2638         <!--  Fullsize  --> CR LF   2676         <!--  Fullsize  --> CR LF
2639         <!--            --> CR LF   2677         <!--            --> CR LF
2640         <xsl :otherwise > CR LF   2678         <xsl :otherwise > CR LF
2641          <!- - Note num bering --> CR LF   2679          <!- - Note num bering --> CR LF
2642          <!- -                 --> CR LF   2680          <!- -                 --> CR LF
2643          <xs l:variable  name="Var Notes" sel ect="$Para mFrame//ww doc:Note"  /> CR LF   2681          <xs l:variable  name="Var Notes" sel ect="$Para mFrame//ww doc:Note"  /> CR LF
2644          <xs l:variable  name="Var NoteNumber ingAsXML"> CR LF   2682          <xs l:variable  name="Var NoteNumber ingAsXML"> CR LF
2645           <x sl:call-te mplate nam e="Notes-N umber"> CR LF   2683           <x sl:call-te mplate nam e="Notes-N umber"> CR LF
2646            < xsl:with-p aram name= "ParamNote s" select= "$VarNotes " /> CR LF   2684            < xsl:with-p aram name= "ParamNote s" select= "$VarNotes " /> CR LF
2647           </ xsl:call-t emplate> CR LF   2685           </ xsl:call-t emplate> CR LF
2648          </x sl:variabl e> CR LF   2686          </x sl:variabl e> CR LF
2649          <xs l:variable  name="Var NoteNumber ing" selec t="msxsl:n ode-set($V arNoteNumb eringAsXML )" /> CR LF   2687          <xs l:variable  name="Var NoteNumber ing" selec t="msxsl:n ode-set($V arNoteNumb eringAsXML )" /> CR LF
2650   CR LF   2688   CR LF
2651          <!- - Frame ca rgo --> CR LF   2689          <!- - Frame ca rgo --> CR LF
2652          <!- -              --> CR LF   2690          <!- -              --> CR LF
2653          <xs l:variable  name="Var Cargo" sel ect="$Para mCargo/*[l ocal-name( ) != 'Note Numbering' ]/.. | $Va rNoteNumbe ring" /> CR LF   2691          <xs l:variable  name="Var Cargo" sel ect="$Para mCargo/*[l ocal-name( ) != 'Note Numbering' ]/.. | $Va rNoteNumbe ring" /> CR LF
2654   CR LF   2692   CR LF
2655          <!- - Emit mar kup --> CR LF   2693          <!- - Emit mar kup --> CR LF
2656          <!- -              --> CR LF   2694          <!- -              --> CR LF
2657          <xs l:call-tem plate name ="Frame-Ma rkup"> CR LF   2695          <xs l:call-tem plate name ="Frame-Ma rkup"> CR LF
2658           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF   2696           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF
2659           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   2697           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
2660           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  /> CR LF   2698           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  /> CR LF
2661           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   2699           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
2662           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   2700           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
2663           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> CR LF   2701           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> CR LF
2664           <x sl:with-pa ram name=" ParamThumb nail" sele ct="false( )" /> CR LF   2702           <x sl:with-pa ram name=" ParamThumb nail" sele ct="false( )" /> CR LF
2665          </x sl:call-te mplate> CR LF   2703          </x sl:call-te mplate> CR LF
2666         </xs l:otherwis e> CR LF   2704         </xs l:otherwis e> CR LF
2667        </xsl :choose> CR LF   2705        </xsl :choose> CR LF
2668       </xsl: for-each> CR LF   2706       </xsl: for-each> CR LF
2669      </xsl:i f> CR LF   2707      </xsl:i f> CR LF
2670     </xsl:fo r-each> CR LF   2708     </xsl:fo r-each> CR LF
2671    </xsl:tem plate> CR LF   2709    </xsl:tem plate> CR LF
2672   CR LF   2710   CR LF
2673   CR LF   2711   CR LF
2674    <xsl:temp late name= "Frame-Mar kup"> CR LF   2712    <xsl:temp late name= "Frame-Mar kup"> CR LF
2675     <xsl:par am name="P aramFrame"  /> CR LF   2713     <xsl:par am name="P aramFrame"  /> CR LF
2676     <xsl:par am name="P aramSplits " /> CR LF   2714     <xsl:par am name="P aramSplits " /> CR LF
2677     <xsl:par am name="P aramCargo"  /> CR LF   2715     <xsl:par am name="P aramCargo"  /> CR LF
2678     <xsl:par am name="P aramLinks"  /> CR LF   2716     <xsl:par am name="P aramLinks"  /> CR LF
2679     <xsl:par am name="P aramSplit"  /> CR LF   2717     <xsl:par am name="P aramSplit"  /> CR LF
2680     <xsl:par am name="P aramSplits Frame" /> CR LF   2718     <xsl:par am name="P aramSplits Frame" /> CR LF
2681     <xsl:par am name="P aramThumbn ail" /> CR LF   2719     <xsl:par am name="P aramThumbn ail" /> CR LF
2682   CR LF   2720   CR LF
2683     <!-- Con text Rule  --> CR LF   2721     <!-- Con text Rule  --> CR LF
2684     <!--                --> CR LF   2722     <!--                --> CR LF
2685     <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Graphic' , $ParamSp litsFrame/ @stylename , $ParamSp litsFrame/ @documentI D, $ParamS plitsFrame /@id)" /> CR LF   2723     <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Graphic' , $ParamSp litsFrame/ @stylename , $ParamSp litsFrame/ @documentI D, $ParamS plitsFrame /@id)" /> CR LF
2686   CR LF   2724   CR LF
2687     <!-- Gen erate? --> CR LF   2725     <!-- Gen erate? --> CR LF
2688     <!--            --> CR LF   2726     <!--            --> CR LF
2689     <xsl:var iable name ="VarGener ateOutputO ption" sel ect="$VarC ontextRule /wwproject :Options/w wproject:O ption[@Nam e = 'gener ate-output ']/@Value"  /> CR LF   2727     <xsl:var iable name ="VarGener ateOutputO ption" sel ect="$VarC ontextRule /wwproject :Options/w wproject:O ption[@Nam e = 'gener ate-output ']/@Value"  /> CR LF
2690     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF   2728     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF
2691     <xsl:if  test="$Var GenerateOu tput"> CR LF   2729     <xsl:if  test="$Var GenerateOu tput"> CR LF
2692      <!-- De termine im age path - -> CR LF   2730      <!-- De termine im age path - -> CR LF
2693      <!--                        - -> CR LF   2731      <!--                        - -> CR LF
2694      <xsl:va riable nam e="VarImag ePath"> CR LF   2732      <xsl:va riable nam e="VarImag ePath"> CR LF
2695       <xsl:c hoose> CR LF   2733       <xsl:c hoose> CR LF
2696        <xsl: when test= "$ParamThu mbnail"> CR LF   2734        <xsl: when test= "$ParamThu mbnail"> CR LF
2697         <xsl :value-of  select="$P aramSplits Frame/wwsp lits:Thumb nail/@path " /> CR LF   2735         <xsl :value-of  select="$P aramSplits Frame/wwsp lits:Thumb nail/@path " /> CR LF
2698        </xsl :when> CR LF   2736        </xsl :when> CR LF
2699   CR LF   2737   CR LF
2700        <xsl: otherwise> CR LF   2738        <xsl: otherwise> CR LF
2701         <xsl :value-of  select="$P aramSplits Frame/@pat h" /> CR LF   2739         <xsl :value-of  select="$P aramSplits Frame/@pat h" /> CR LF
2702        </xsl :otherwise > CR LF   2740        </xsl :otherwise > CR LF
2703       </xsl: choose> CR LF   2741       </xsl: choose> CR LF
2704      </xsl:v ariable> CR LF   2742      </xsl:v ariable> CR LF
2705   CR LF   2743   CR LF
2706      <!-- Ac cess image  info --> CR LF   2744      <!-- Ac cess image  info --> CR LF
2707      <!--                     --> CR LF   2745      <!--                     --> CR LF
2708      <xsl:va riable nam e="VarImag eInfo" sel ect="wwima ging:GetIn fo($VarIma gePath)" / > CR LF   2746      <xsl:va riable nam e="VarImag eInfo" sel ect="wwima ging:GetIn fo($VarIma gePath)" / > CR LF
2709   CR LF   2747   CR LF
2710      <!-- De termine ty pe --> CR LF   2748      <!-- De termine ty pe --> CR LF
2711      <!--                  --> CR LF   2749      <!--                  --> CR LF
2712      <xsl:va riable nam e="VarVect orImageAsT ext"> CR LF   2750      <xsl:va riable nam e="VarVect orImageAsT ext"> CR LF
2713       <xsl:c all-templa te name="I mages-Vect orImageFor mat"> CR LF   2751       <xsl:c all-templa te name="I mages-Vect orImageFor mat"> CR LF
2714        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" /> CR LF   2752        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" /> CR LF
2715       </xsl: call-templ ate> CR LF   2753       </xsl: call-templ ate> CR LF
2716      </xsl:v ariable> CR LF   2754      </xsl:v ariable> CR LF
2717      <xsl:va riable nam e="VarVect orImage" s elect="$Va rVectorIma geAsText =  string(tr ue())" /> CR LF   2755      <xsl:va riable nam e="VarVect orImage" s elect="$Va rVectorIma geAsText =  string(tr ue())" /> CR LF
2718      <xsl:va riable nam e="VarRast erImageAsT ext"> CR LF   2756      <xsl:va riable nam e="VarRast erImageAsT ext"> CR LF
2719       <xsl:c all-templa te name="I mages-Rast erImageFor mat"> CR LF   2757       <xsl:c all-templa te name="I mages-Rast erImageFor mat"> CR LF
2720        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" /> CR LF   2758        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" /> CR LF
2721       </xsl: call-templ ate> CR LF   2759       </xsl: call-templ ate> CR LF
2722      </xsl:v ariable> CR LF   2760      </xsl:v ariable> CR LF
2723      <xsl:va riable nam e="VarRast erImage" s elect="$Va rRasterIma geAsText =  string(tr ue())" /> CR LF   2761      <xsl:va riable nam e="VarRast erImage" s elect="$Va rRasterIma geAsText =  string(tr ue())" /> CR LF
2724   CR LF   2762   CR LF
2725      <!-- Em it image - -> CR LF   2763      <!-- Em it image - -> CR LF
2726      <!--             - -> CR LF   2764      <!--             - -> CR LF
2727      <xsl:ch oose> CR LF   2765      <xsl:ch oose> CR LF
2728       <!-- V ector Imag e --> CR LF   2766       <!-- V ector Imag e --> CR LF
2729       <!--                --> CR LF   2767       <!--                --> CR LF
2730       <xsl:w hen test=" $VarVector Image"> CR LF   2768       <xsl:w hen test=" $VarVector Image"> CR LF
2731        <xsl: call-templ ate name=" Frame-Mark up-Vector" > CR LF   2769        <xsl: call-templ ate name=" Frame-Mark up-Vector" > CR LF
2732         <xsl :with-para m name="Pa ramFrame"  select="$P aramFrame"  /> CR LF   2770         <xsl :with-para m name="Pa ramFrame"  select="$P aramFrame"  /> CR LF
2733         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   2771         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
2734         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   2772         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
2735         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   2773         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
2736         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   2774         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
2737         <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" /> CR LF   2775         <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" /> CR LF
2738         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule"  /> CR LF   2776         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule"  /> CR LF
2739         <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" /> CR LF   2777         <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" /> CR LF
2740         <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / > CR LF   2778         <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / > CR LF
2741        </xsl :call-temp late> CR LF   2779        </xsl :call-temp late> CR LF
2742       </xsl: when> CR LF   2780       </xsl: when> CR LF
2743   CR LF   2781   CR LF
2744       <!-- R aster Imag e --> CR LF   2782       <!-- R aster Imag e --> CR LF
2745       <!--                --> CR LF   2783       <!--                --> CR LF
2746       <xsl:w hen test=" $VarRaster Image"> CR LF   2784       <xsl:w hen test=" $VarRaster Image"> CR LF
2747        <xsl: call-templ ate name=" Frame-Mark up-Raster" > CR LF   2785        <xsl: call-templ ate name=" Frame-Mark up-Raster" > CR LF
2748         <xsl :with-para m name="Pa ramFrame"  select="$P aramFrame"  /> CR LF   2786         <xsl :with-para m name="Pa ramFrame"  select="$P aramFrame"  /> CR LF
2749         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   2787         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
2750         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   2788         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
2751         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   2789         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
2752         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   2790         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
2753         <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" /> CR LF   2791         <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" /> CR LF
2754         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule"  /> CR LF   2792         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule"  /> CR LF
2755         <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" /> CR LF   2793         <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" /> CR LF
2756         <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / > CR LF   2794         <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / > CR LF
2757        </xsl :call-temp late> CR LF   2795        </xsl :call-temp late> CR LF
2758       </xsl: when> CR LF   2796       </xsl: when> CR LF
2759      </xsl:c hoose> CR LF   2797      </xsl:c hoose> CR LF
2760     </xsl:if > CR LF   2798     </xsl:if > CR LF
2761    </xsl:tem plate> CR LF   2799    </xsl:tem plate> CR LF
2762   CR LF   2800   CR LF
2763   CR LF   2801   CR LF
2764    <xsl:temp late name= "Frame-Mar kup-Vector "> CR LF   2802    <xsl:temp late name= "Frame-Mar kup-Vector "> CR LF
2765     <xsl:par am name="P aramFrame"  /> CR LF   2803     <xsl:par am name="P aramFrame"  /> CR LF
2766     <xsl:par am name="P aramSplits " /> CR LF   2804     <xsl:par am name="P aramSplits " /> CR LF
2767     <xsl:par am name="P aramCargo"  /> CR LF   2805     <xsl:par am name="P aramCargo"  /> CR LF
2768     <xsl:par am name="P aramLinks"  /> CR LF   2806     <xsl:par am name="P aramLinks"  /> CR LF
2769     <xsl:par am name="P aramSplit"  /> CR LF   2807     <xsl:par am name="P aramSplit"  /> CR LF
2770     <xsl:par am name="P aramSplits Frame" /> CR LF   2808     <xsl:par am name="P aramSplits Frame" /> CR LF
2771     <xsl:par am name="P aramContex tRule" /> CR LF   2809     <xsl:par am name="P aramContex tRule" /> CR LF
2772     <xsl:par am name="P aramImageI nfo" /> CR LF   2810     <xsl:par am name="P aramImageI nfo" /> CR LF
2773     <xsl:par am name="P aramThumbn ail" /> CR LF   2811     <xsl:par am name="P aramThumbn ail" /> CR LF
2774   CR LF   2812   CR LF
2775     <xsl:cho ose> CR LF   2813     <xsl:cho ose> CR LF
2776      <!-- SV G --> CR LF   2814      <!-- SV G --> CR LF
2777      <!--      --> CR LF   2815      <!--      --> CR LF
2778      <xsl:wh en test="$ ParamImage Info/@form at = 'svg' "> CR LF   2816      <xsl:wh en test="$ ParamImage Info/@form at = 'svg' "> CR LF
2779       <xsl:c all-templa te name="F rame-Marku p-Vector-S VG"> CR LF   2817       <xsl:c all-templa te name="F rame-Marku p-Vector-S VG"> CR LF
2780        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF   2818        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF
2781        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   2819        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
2782        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF   2820        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF
2783        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   2821        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
2784        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   2822        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
2785        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> CR LF   2823        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> CR LF
2786        <xsl: with-param  name="Par amContextR ule" selec t="$ParamC ontextRule " /> CR LF   2824        <xsl: with-param  name="Par amContextR ule" selec t="$ParamC ontextRule " /> CR LF
2787        <xsl: with-param  name="Par amImageInf o" select= "$ParamIma geInfo" /> CR LF   2825        <xsl: with-param  name="Par amImageInf o" select= "$ParamIma geInfo" /> CR LF
2788        <xsl: with-param  name="Par amThumbnai l" select= "$ParamThu mbnail" /> CR LF   2826        <xsl: with-param  name="Par amThumbnai l" select= "$ParamThu mbnail" /> CR LF
2789       </xsl: call-templ ate> CR LF   2827       </xsl: call-templ ate> CR LF
2790      </xsl:w hen> CR LF   2828      </xsl:w hen> CR LF
2791     </xsl:ch oose> CR LF   2829     </xsl:ch oose> CR LF
2792    </xsl:tem plate> CR LF   2830    </xsl:tem plate> CR LF
2793   CR LF   2831   CR LF
2794   CR LF   2832   CR LF
2795    <xsl:temp late name= "Frame-Mar kup-Vector -SVG"> CR LF   2833    <xsl:temp late name= "Frame-Mar kup-Vector -SVG"> CR LF
2796     <xsl:par am name="P aramFrame"  /> CR LF   2834     <xsl:par am name="P aramFrame"  /> CR LF
2797     <xsl:par am name="P aramSplits " /> CR LF   2835     <xsl:par am name="P aramSplits " /> CR LF
2798     <xsl:par am name="P aramCargo"  /> CR LF   2836     <xsl:par am name="P aramCargo"  /> CR LF
2799     <xsl:par am name="P aramLinks"  /> CR LF   2837     <xsl:par am name="P aramLinks"  /> CR LF
2800     <xsl:par am name="P aramSplit"  /> CR LF   2838     <xsl:par am name="P aramSplit"  /> CR LF
2801     <xsl:par am name="P aramSplits Frame" /> CR LF   2839     <xsl:par am name="P aramSplits Frame" /> CR LF
2802     <xsl:par am name="P aramContex tRule" /> CR LF   2840     <xsl:par am name="P aramContex tRule" /> CR LF
2803     <xsl:par am name="P aramImageI nfo" /> CR LF   2841     <xsl:par am name="P aramImageI nfo" /> CR LF
2804     <xsl:par am name="P aramThumbn ail" /> CR LF   2842     <xsl:par am name="P aramThumbn ail" /> CR LF
2805   CR LF   2843   CR LF
2806     <!-- Acc ess frame  behavior - -> CR LF   2844     <!-- Acc ess frame  behavior - -> CR LF
2807     <!--                         - -> CR LF   2845     <!--                         - -> CR LF
2808     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF   2846     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF
2809      <xsl:va riable nam e="VarBeha viorFrame"  select="k ey('wwbeha viors-fram es-by-id',  $ParamFra me/@id)[1] " /> CR LF   2847      <xsl:va riable nam e="VarBeha viorFrame"  select="k ey('wwbeha viors-fram es-by-id',  $ParamFra me/@id)[1] " /> CR LF
2810   CR LF   2848   CR LF
2811      <!-- Re solve proj ect proper ties --> CR LF   2849      <!-- Re solve proj ect proper ties --> CR LF
2812      <!--                               --> CR LF   2850      <!--                               --> CR LF
2813      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" > CR LF   2851      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" > CR LF
2814       <xsl:c all-templa te name="P roperties- ResolveCon textRule"> CR LF   2852       <xsl:c all-templa te name="P roperties- ResolveCon textRule"> CR LF
2815        <xsl: with-param  name="Par amDocument Context" s elect="$Pa ramFrame"  /> CR LF   2853        <xsl: with-param  name="Par amDocument Context" s elect="$Pa ramFrame"  /> CR LF
2816        <xsl: with-param  name="Par amProperti es" select ="$ParamCo ntextRule/ wwproject: Properties /wwproject :Property"  /> CR LF   2854        <xsl: with-param  name="Par amProperti es" select ="$ParamCo ntextRule/ wwproject: Properties /wwproject :Property"  /> CR LF
2817        <xsl: with-param  name="Par amStyleNam e" select= "$ParamFra me/@stylen ame" /> CR LF   2855        <xsl: with-param  name="Par amStyleNam e" select= "$ParamFra me/@stylen ame" /> CR LF
2818        <xsl: with-param  name="Par amStyleTyp e" select= "'Graphic' " /> CR LF   2856        <xsl: with-param  name="Par amStyleTyp e" select= "'Graphic' " /> CR LF
2819        <xsl: with-param  name="Par amContextS tyle" sele ct="$Param Frame" /> CR LF   2857        <xsl: with-param  name="Par amContextS tyle" sele ct="$Param Frame" /> CR LF
2820       </xsl: call-templ ate> CR LF   2858       </xsl: call-templ ate> CR LF
2821      </xsl:v ariable> CR LF   2859      </xsl:v ariable> CR LF
2822      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" /> CR LF   2860      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" /> CR LF
2823   CR LF   2861   CR LF
2824      <!-- CS S properti es --> CR LF   2862      <!-- CS S properti es --> CR LF
2825      <!--                  --> CR LF   2863      <!--                  --> CR LF
2826      <xsl:va riable nam e="VarCSSP ropertiesA sXML"> CR LF   2864      <xsl:va riable nam e="VarCSSP ropertiesA sXML"> CR LF
2827       <xsl:c all-templa te name="C SS-Transla teProjectP roperties" > CR LF   2865       <xsl:c all-templa te name="C SS-Transla teProjectP roperties" > CR LF
2828        <xsl: with-param  name="Par amProperti es" select ="$VarReso lvedProper ties[(@Nam e != 'widt h') and (@ Name != 'h eight')]"  /> CR LF   2866        <xsl: with-param  name="Par amProperti es" select ="$VarReso lvedProper ties[(@Nam e != 'widt h') and (@ Name != 'h eight')]"  /> CR LF
2829        <xsl: with-param  name="Par amFromAbso luteURI" s elect="$Pa ramSplit/@ path" /> CR LF   2867        <xsl: with-param  name="Par amFromAbso luteURI" s elect="$Pa ramSplit/@ path" /> CR LF
2830        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   2868        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
2831       </xsl: call-templ ate> CR LF   2869       </xsl: call-templ ate> CR LF
2832      </xsl:v ariable> CR LF   2870      </xsl:v ariable> CR LF
2833      <xsl:va riable nam e="VarCSSP roperties"  select="m sxsl:node- set($VarCS SPropertie sAsXML)/ww project:Pr operty" /> CR LF   2871      <xsl:va riable nam e="VarCSSP roperties"  select="m sxsl:node- set($VarCS SPropertie sAsXML)/ww project:Pr operty" /> CR LF
2834      <xsl:va riable nam e="VarInli neCSSPrope rties"> CR LF   2872      <xsl:va riable nam e="VarInli neCSSPrope rties"> CR LF
2835       <xsl:c all-templa te name="C SS-InlineP roperties" > CR LF   2873       <xsl:c all-templa te name="C SS-InlineP roperties" > CR LF
2836        <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties[ string-len gth(@Value ) &gt; 0]"  /> CR LF   2874        <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties[ string-len gth(@Value ) &gt; 0]"  /> CR LF
2837       </xsl: call-templ ate> CR LF   2875       </xsl: call-templ ate> CR LF
2838      </xsl:v ariable> CR LF   2876      </xsl:v ariable> CR LF
2839   CR LF   2877   CR LF
2840      <!-- Wi dth/Height  --> CR LF   2878      <!-- Wi dth/Height  --> CR LF
2841      <!--                --> CR LF   2879      <!--                --> CR LF
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"  /> CR LF   2880      <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"  /> CR LF
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 ')" /> CR LF   2881      <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 ')" /> CR LF
2844      <xsl:va riable nam e="VarWidt h"> CR LF   2882      <xsl:va riable nam e="VarWidt h"> CR LF
2845       <xsl:c hoose> CR LF   2883       <xsl:c hoose> CR LF
2846        <xsl: when test= "$ParamThu mbnail"> CR LF   2884        <xsl: when test= "$ParamThu mbnail"> CR LF
2847         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF   2885         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF
2848        </xsl :when> CR LF   2886        </xsl :when> CR LF
2849   CR LF   2887   CR LF
2850        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF   2888        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF
2851         <xsl :choose> CR LF   2889         <xsl :choose> CR LF
2852          <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions)  or (number ($ParamIma geInfo/@wi dth) = 0)" > CR LF   2890          <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions)  or (number ($ParamIma geInfo/@wi dth) = 0)" > CR LF
2853           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF   2891           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF
2854   CR LF   2892   CR LF
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'))"  /> CR LF   2893           <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'))"  /> CR LF
2856          </x sl:when> CR LF   2894          </x sl:when> CR LF
2857   CR LF   2895   CR LF
2858          <xs l:otherwis e> CR LF   2896          <xs l:otherwis e> CR LF
2859           <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " /> CR LF   2897           <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " /> CR LF
2860          </x sl:otherwi se> CR LF   2898          </x sl:otherwi se> CR LF
2861         </xs l:choose> CR LF   2899         </xs l:choose> CR LF
2862        </xsl :when> CR LF   2900        </xsl :when> CR LF
2863   CR LF   2901   CR LF
2864        <xsl: otherwise> CR LF   2902        <xsl: otherwise> CR LF
2865         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF   2903         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF
2866        </xsl :otherwise > CR LF   2904        </xsl :otherwise > CR LF
2867       </xsl: choose> CR LF   2905       </xsl: choose> CR LF
2868      </xsl:v ariable> CR LF   2906      </xsl:v ariable> CR LF
2869      <xsl:va riable nam e="VarHeig ht"> CR LF   2907      <xsl:va riable nam e="VarHeig ht"> CR LF
2870       <xsl:c hoose> CR LF   2908       <xsl:c hoose> CR LF
2871        <xsl: when test= "$ParamThu mbnail"> CR LF   2909        <xsl: when test= "$ParamThu mbnail"> CR LF
2872         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF   2910         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF
2873        </xsl :when> CR LF   2911        </xsl :when> CR LF
2874   CR LF   2912   CR LF
2875        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF   2913        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF
2876         <xsl :choose> CR LF   2914         <xsl :choose> CR LF
2877          <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions)  or (number ($ParamIma geInfo/@he ight) = 0) "> CR LF   2915          <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions)  or (number ($ParamIma geInfo/@he ight) = 0) "> CR LF
2878           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF   2916           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF
2879   CR LF   2917   CR LF
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')) " /> CR LF   2918           <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')) " /> CR LF
2881          </x sl:when> CR LF   2919          </x sl:when> CR LF
2882   CR LF   2920   CR LF
2883          <xs l:otherwis e> CR LF   2921          <xs l:otherwis e> CR LF
2884           <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" /> CR LF   2922           <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" /> CR LF
2885          </x sl:otherwi se> CR LF   2923          </x sl:otherwi se> CR LF
2886         </xs l:choose> CR LF   2924         </xs l:choose> CR LF
2887        </xsl :when> CR LF   2925        </xsl :when> CR LF
2888   CR LF   2926   CR LF
2889        <xsl: otherwise> CR LF   2927        <xsl: otherwise> CR LF
2890         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF   2928         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF
2891        </xsl :otherwise > CR LF   2929        </xsl :otherwise > CR LF
2892       </xsl: choose> CR LF   2930       </xsl: choose> CR LF
2893      </xsl:v ariable> CR LF   2931      </xsl:v ariable> CR LF
2894   CR LF   2932   CR LF
2895      <!-- Sr c --> CR LF   2933      <!-- Sr c --> CR LF
2896      <!--      --> CR LF   2934      <!--      --> CR LF
2897      <xsl:va riable nam e="VarSrc"  select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " /> CR LF   2935      <xsl:va riable nam e="VarSrc"  select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " /> CR LF
2898   CR LF   2936   CR LF
2899      <!-- Al t Text --> CR LF   2937      <!-- Al t Text --> CR LF
2900      <!--           --> CR LF   2938      <!--           --> CR LF
2901      <xsl:va riable nam e="VarAltT ext"> CR LF   2939      <xsl:va riable nam e="VarAltT ext"> CR LF
2902       <xsl:c all-templa te name="I mages-AltT ext"> CR LF   2940       <xsl:c all-templa te name="I mages-AltT ext"> CR LF
2903        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF   2941        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF
2904        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF   2942        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF
2905       </xsl: call-templ ate> CR LF   2943       </xsl: call-templ ate> CR LF
2906      </xsl:v ariable> CR LF   2944      </xsl:v ariable> CR LF
2907   CR LF   2945   CR LF
2908      <!-- Lo ng Descrip tion --> CR LF   2946      <!-- Lo ng Descrip tion --> CR LF
2909      <!--                    --> CR LF   2947      <!--                    --> CR LF
2910      <xsl:va riable nam e="VarLong Descriptio n"> CR LF   2948      <xsl:va riable nam e="VarLong Descriptio n"> CR LF
2911       <xsl:c all-templa te name="I mages-Long Descriptio n"> CR LF   2949       <xsl:c all-templa te name="I mages-Long Descriptio n"> CR LF
2912        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> CR LF   2950        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> CR LF
2913        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF   2951        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF
2914       </xsl: call-templ ate> CR LF   2952       </xsl: call-templ ate> CR LF
2915      </xsl:v ariable> CR LF   2953      </xsl:v ariable> CR LF
2916   CR LF   2954   CR LF
2917      <!-- SV G object t ag info:                                               --> CR LF   2955      <!-- SV G object t ag info:                                               --> CR LF
2918      <!--    http://jol iclic.free .fr/html/o bject-tag/ en/object- svg.html   --> CR LF   2956      <!--    http://jol iclic.free .fr/html/o bject-tag/ en/object- svg.html   --> CR LF
2919      <!--    http://vol ity.org/wi ki/index.c gi?SVG_Sca ling                  --> CR LF   2957      <!--    http://vol ity.org/wi ki/index.c gi?SVG_Sca ling                  --> CR LF
2920      <!--                                                                      --> CR LF   2958      <!--                                                                      --> CR LF
2921   CR LF   2959   CR LF
2922      <!-- Gr aphic elem ent --> CR LF   2960      <!-- Gr aphic elem ent --> CR LF
2923      <!--                   --> CR LF   2961      <!--                   --> CR LF
2924      <html:o bject> CR LF   2962      <html:o bject> CR LF
2925       <!-- T ype attrib ute --> CR LF   2963       <!-- T ype attrib ute --> CR LF
2926       <!--                  --> CR LF   2964       <!--                  --> CR LF
2927       <xsl:a ttribute n ame="type" > CR LF   2965       <xsl:a ttribute n ame="type" > CR LF
2928        <xsl: text>image /svg+xml</ xsl:text> CR LF   2966        <xsl: text>image /svg+xml</ xsl:text> CR LF
2929       </xsl: attribute> CR LF   2967       </xsl: attribute> CR LF
2930   CR LF   2968   CR LF
2931       <!-- D ata attrib ute --> CR LF   2969       <!-- D ata attrib ute --> CR LF
2932       <!--                  --> CR LF   2970       <!--                  --> CR LF
2933       <xsl:a ttribute n ame="data" > CR LF   2971       <xsl:a ttribute n ame="data" > CR LF
2934        <xsl: value-of s elect="$Va rSrc" /> CR LF   2972        <xsl: value-of s elect="$Va rSrc" /> CR LF
2935       </xsl: attribute> CR LF   2973       </xsl: attribute> CR LF
2936   CR LF   2974   CR LF
2937       <!-- W idth attri bute --> CR LF   2975       <!-- W idth attri bute --> CR LF
2938       <!--                   --> CR LF   2976       <!--                   --> CR LF
2939       <xsl:i f test="$V arWidth &g t; 0"> CR LF   2977       <xsl:i f test="$V arWidth &g t; 0"> CR LF
2940        <xsl: attribute  name="widt h"> CR LF   2978        <xsl: attribute  name="widt h"> CR LF
2941         <xsl :value-of  select="$V arWidth"/> CR LF   2979         <xsl :value-of  select="$V arWidth"/> CR LF
2942        </xsl :attribute > CR LF   2980        </xsl :attribute > CR LF
2943       </xsl: if> CR LF   2981       </xsl: if> CR LF
2944   CR LF   2982   CR LF
2945       <!-- H eight attr ibute --> CR LF   2983       <!-- H eight attr ibute --> CR LF
2946       <!--                    --> CR LF   2984       <!--                    --> CR LF
2947       <xsl:i f test="$V arHeight & gt; 0"> CR LF   2985       <xsl:i f test="$V arHeight & gt; 0"> CR LF
2948        <xsl: attribute  name="heig ht"> CR LF   2986        <xsl: attribute  name="heig ht"> CR LF
2949         <xsl :value-of  select="$V arHeight"/ > CR LF   2987         <xsl :value-of  select="$V arHeight"/ > CR LF
2950        </xsl :attribute > CR LF   2988        </xsl :attribute > CR LF
2951       </xsl: if> CR LF   2989       </xsl: if> CR LF
2952   CR LF   2990   CR LF
2953       <!-- S tyle attri bute --> CR LF   2991       <!-- S tyle attri bute --> CR LF
2954       <!--                   --> CR LF   2992       <!--                   --> CR LF
2955       <xsl:i f test="st ring-lengt h($VarInli neCSSPrope rties) &gt ; 0"> CR LF   2993       <xsl:i f test="st ring-lengt h($VarInli neCSSPrope rties) &gt ; 0"> CR LF
2956        <xsl: attribute  name="styl e"> CR LF   2994        <xsl: attribute  name="styl e"> CR LF
2957         <xsl :value-of  select="$V arInlineCS SPropertie s" /> CR LF   2995         <xsl :value-of  select="$V arInlineCS SPropertie s" /> CR LF
2958        </xsl :attribute > CR LF   2996        </xsl :attribute > CR LF
2959       </xsl: if> CR LF   2997       </xsl: if> CR LF
2960   CR LF   2998   CR LF
2961       <!-- T itle attri bute --> CR LF   2999       <!-- T itle attri bute --> CR LF
2962       <!--                   --> CR LF   3000       <!--                   --> CR LF
2963       <xsl:c hoose> CR LF   3001       <xsl:c hoose> CR LF
2964        <xsl: when test= "string-le ngth($VarA ltText) &g t; 0"> CR LF   3002        <xsl: when test= "string-le ngth($VarA ltText) &g t; 0"> CR LF
2965         <xsl :attribute  name="tit le"> CR LF   3003         <xsl :attribute  name="tit le"> CR LF
2966          <xs l:value-of  select="$ VarAltText " /> CR LF   3004          <xs l:value-of  select="$ VarAltText " /> CR LF
2967         </xs l:attribut e> CR LF   3005         </xs l:attribut e> CR LF
2968        </xsl :when> CR LF   3006        </xsl :when> CR LF
2969   CR LF   3007   CR LF
2970        <xsl: when test= "string-le ngth($Para mSplitsFra me/@title)  &gt; 0"> CR LF   3008        <xsl: when test= "string-le ngth($Para mSplitsFra me/@title)  &gt; 0"> CR LF
2971         <xsl :attribute  name="tit le"> CR LF   3009         <xsl :attribute  name="tit le"> CR LF
2972          <xs l:value-of  select="$ ParamSplit sFrame/@ti tle" /> CR LF   3010          <xs l:value-of  select="$ ParamSplit sFrame/@ti tle" /> CR LF
2973         </xs l:attribut e> CR LF   3011         </xs l:attribut e> CR LF
2974        </xsl :when> CR LF   3012        </xsl :when> CR LF
2975       </xsl: choose> CR LF   3013       </xsl: choose> CR LF
2976   CR LF   3014   CR LF
2977       <!-- S rc paramet er --> CR LF   3015       <!-- S rc paramet er --> CR LF
2978       <!--                 --> CR LF   3016       <!--                 --> CR LF
2979       <html: param name ="src" val ue="{$VarS rc}" value type="data " /> CR LF   3017       <html: param name ="src" val ue="{$VarS rc}" value type="data " /> CR LF
2980      </html: object> CR LF   3018      </html: object> CR LF
2981   CR LF   3019   CR LF
2982      <!-- Ge nerate D L inks --> CR LF   3020      <!-- Ge nerate D L inks --> CR LF
2983      <!--                    --> CR LF   3021      <!--                    --> CR LF
2984      <xsl:va riable nam e="VarGene rateDLinks " select=" wwprojext: GetFormatS etting('ac cessibilit y-image-d- links', 'f alse')" /> CR LF   3022      <xsl:va riable nam e="VarGene rateDLinks " select=" wwprojext: GetFormatS etting('ac cessibilit y-image-d- links', 'f alse')" /> CR LF
2985      <xsl:if  test="$Va rGenerateD Links = 't rue'"> CR LF   3023      <xsl:if  test="$Va rGenerateD Links = 't rue'"> CR LF
2986       <xsl:i f test="st ring-lengt h($VarLong Descriptio n) &gt; 0" > CR LF   3024       <xsl:i f test="st ring-lengt h($VarLong Descriptio n) &gt; 0" > CR LF
2987        <xsl: text> </xs l:text> CR LF   3025        <xsl: text> </xs l:text> CR LF
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 /> CR LF   3026        <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 /> CR LF
2989       </xsl: if> CR LF   3027       </xsl: if> CR LF
2990      </xsl:i f> CR LF   3028      </xsl:i f> CR LF
2991   CR LF   3029   CR LF
2992      <!-- No tes --> CR LF   3030      <!-- No tes --> CR LF
2993      <!--        --> CR LF   3031      <!--        --> CR LF
2994      <xsl:ch oose> CR LF   3032      <xsl:ch oose> CR LF
2995       <!-- T humbnail - -> CR LF   3033       <!-- T humbnail - -> CR LF
2996       <!--            - -> CR LF   3034       <!--            - -> CR LF
2997       <xsl:w hen test=" $ParamThum bnail"> CR LF   3035       <xsl:w hen test=" $ParamThum bnail"> CR LF
2998        <!--  Nothing to  do --> CR LF   3036        <!--  Nothing to  do --> CR LF
2999        <!--                 --> CR LF   3037        <!--                 --> CR LF
3000       </xsl: when> CR LF   3038       </xsl: when> CR LF
3001   CR LF   3039   CR LF
3002       <!-- F ullsize -- > CR LF   3040       <!-- F ullsize -- > CR LF
3003       <!--           -- > CR LF   3041       <!--           -- > CR LF
3004       <xsl:o therwise> CR LF   3042       <xsl:o therwise> CR LF
3005        <!--  Frame Foot notes --> CR LF   3043        <!--  Frame Foot notes --> CR LF
3006        <!--                   --> CR LF   3044        <!--                   --> CR LF
3007        <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" /> CR LF   3045        <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" /> CR LF
3008        <xsl: call-templ ate name=" Content-No tes"> CR LF   3046        <xsl: call-templ ate name=" Content-No tes"> CR LF
3009         <xsl :with-para m name="Pa ramNotes"  select="$V arNotes" / > CR LF   3047         <xsl :with-para m name="Pa ramNotes"  select="$V arNotes" / > CR LF
3010         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   3048         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
3011         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   3049         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
3012         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   3050         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
3013         <xsl :with-para m name="Pa ramTOCData " select=" ''" /> CR LF   3051         <xsl :with-para m name="Pa ramTOCData " select=" ''" /> CR LF
3014         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   3052         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
3015        </xsl :call-temp late> CR LF   3053        </xsl :call-temp late> CR LF
3016       </xsl: otherwise> CR LF   3054       </xsl: otherwise> CR LF
3017      </xsl:c hoose> CR LF   3055      </xsl:c hoose> CR LF
3018     </xsl:fo r-each> CR LF   3056     </xsl:fo r-each> CR LF
3019    </xsl:tem plate> CR LF   3057    </xsl:tem plate> CR LF
3020   CR LF   3058   CR LF
3021   CR LF   3059   CR LF
3022    <xsl:temp late name= "Frame-Mar kup-Raster "> CR LF   3060    <xsl:temp late name= "Frame-Mar kup-Raster "> CR LF
3023     <xsl:par am name="P aramFrame"  /> CR LF   3061     <xsl:par am name="P aramFrame"  /> CR LF
3024     <xsl:par am name="P aramSplits " /> CR LF   3062     <xsl:par am name="P aramSplits " /> CR LF
3025     <xsl:par am name="P aramCargo"  /> CR LF   3063     <xsl:par am name="P aramCargo"  /> CR LF
3026     <xsl:par am name="P aramLinks"  /> CR LF   3064     <xsl:par am name="P aramLinks"  /> CR LF
3027     <xsl:par am name="P aramSplit"  /> CR LF   3065     <xsl:par am name="P aramSplit"  /> CR LF
3028     <xsl:par am name="P aramSplits Frame" /> CR LF   3066     <xsl:par am name="P aramSplits Frame" /> CR LF
3029     <xsl:par am name="P aramContex tRule" /> CR LF   3067     <xsl:par am name="P aramContex tRule" /> CR LF
3030     <xsl:par am name="P aramImageI nfo" /> CR LF   3068     <xsl:par am name="P aramImageI nfo" /> CR LF
3031     <xsl:par am name="P aramThumbn ail" /> CR LF   3069     <xsl:par am name="P aramThumbn ail" /> CR LF
3032   CR LF   3070   CR LF
3033     <!-- Acc ess frame  behavior - -> CR LF   3071     <!-- Acc ess frame  behavior - -> CR LF
3034     <!--                         - -> CR LF   3072     <!--                         - -> CR LF
3035     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF   3073     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF
3036      <xsl:va riable nam e="VarBeha viorFrame"  select="k ey('wwbeha viors-fram es-by-id',  $ParamFra me/@id)[1] " /> CR LF   3074      <xsl:va riable nam e="VarBeha viorFrame"  select="k ey('wwbeha viors-fram es-by-id',  $ParamFra me/@id)[1] " /> CR LF
3037   CR LF   3075   CR LF
3038      <!-- Ov erride Rul e --> CR LF   3076      <!-- Ov erride Rul e --> CR LF
3039      <!--                 --> CR LF   3077      <!--                 --> CR LF
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)"  /> CR LF   3078      <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)"  /> CR LF
3041   CR LF   3079   CR LF
3042      <!-- Re solve proj ect proper ties --> CR LF   3080      <!-- Re solve proj ect proper ties --> CR LF
3043      <!--                               --> CR LF   3081      <!--                               --> CR LF
3044      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" > CR LF   3082      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" > CR LF
3045       <xsl:c all-templa te name="P roperties- ResolveOve rrideRule" > CR LF   3083       <xsl:c all-templa te name="P roperties- ResolveOve rrideRule" > CR LF
3046        <xsl: with-param  name="Par amProperti es" select ="$VarOver rideRule/w wproject:P roperties/ wwproject: Property"  /> CR LF   3084        <xsl: with-param  name="Par amProperti es" select ="$VarOver rideRule/w wproject:P roperties/ wwproject: Property"  /> CR LF
3047        <xsl: with-param  name="Par amContextS tyle" sele ct="$Param Frame" /> CR LF   3085        <xsl: with-param  name="Par amContextS tyle" sele ct="$Param Frame" /> CR LF
    3086        <xsl: with-param  name="Par amStyleTyp e" select= "'Graphic' " /> CR LF
3048       </xsl: call-templ ate> CR LF   3087       </xsl: call-templ ate> CR LF
3049      </xsl:v ariable> CR LF   3088      </xsl:v ariable> CR LF
3050      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" /> CR LF   3089      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" /> CR LF
3051   CR LF   3090   CR LF
3052      <!-- CS S properti es --> CR LF   3091      <!-- CS S properti es --> CR LF
3053      <!--                  --> CR LF   3092      <!--                  --> CR LF
3054      <xsl:va riable nam e="VarCSSP ropertiesA sXML"> CR LF   3093      <xsl:va riable nam e="VarCSSP ropertiesA sXML"> CR LF
3055       <xsl:c all-templa te name="C SS-Transla teProjectP roperties" > CR LF   3094       <xsl:c all-templa te name="C SS-Transla teProjectP roperties" > CR LF
3056        <xsl: with-param  name="Par amProperti es" select ="$VarReso lvedProper ties[(@Nam e != 'widt h') and (@ Name != 'h eight')]"  /> CR LF   3095        <xsl: with-param  name="Par amProperti es" select ="$VarReso lvedProper ties[(@Nam e != 'widt h') and (@ Name != 'h eight')]"  /> CR LF
3057        <xsl: with-param  name="Par amFromAbso luteURI" s elect="$Pa ramSplit/@ path" /> CR LF   3096        <xsl: with-param  name="Par amFromAbso luteURI" s elect="$Pa ramSplit/@ path" /> CR LF
3058        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   3097        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
3059       </xsl: call-templ ate> CR LF   3098       </xsl: call-templ ate> CR LF
3060      </xsl:v ariable> CR LF   3099      </xsl:v ariable> CR LF
3061      <xsl:va riable nam e="VarCSSP roperties"  select="m sxsl:node- set($VarCS SPropertie sAsXML)/ww project:Pr operty" /> CR LF   3100      <xsl:va riable nam e="VarCSSP roperties"  select="m sxsl:node- set($VarCS SPropertie sAsXML)/ww project:Pr operty" /> CR LF
3062      <xsl:va riable nam e="VarInli neCSSPrope rties"> CR LF   3101      <xsl:va riable nam e="VarInli neCSSPrope rties"> CR LF
3063       <xsl:c all-templa te name="C SS-InlineP roperties" > CR LF   3102       <xsl:c all-templa te name="C SS-InlineP roperties" > CR LF
3064        <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties[ string-len gth(@Value ) &gt; 0]"  /> CR LF   3103        <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties[ string-len gth(@Value ) &gt; 0]"  /> CR LF
3065       </xsl: call-templ ate> CR LF   3104       </xsl: call-templ ate> CR LF
3066      </xsl:v ariable> CR LF   3105      </xsl:v ariable> CR LF
3067   CR LF   3106   CR LF
3068      <!-- Wi dth/Height  --> CR LF   3107      <!-- Wi dth/Height  --> CR LF
3069      <!--                --> CR LF   3108      <!--                --> CR LF
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"  /> CR LF   3109      <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"  /> CR LF
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 ')" /> CR LF   3110      <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 ')" /> CR LF
3072      <xsl:va riable nam e="VarWidt h"> CR LF   3111      <xsl:va riable nam e="VarWidt h"> CR LF
3073       <xsl:c hoose> CR LF   3112       <xsl:c hoose> CR LF
3074        <xsl: when test= "$ParamThu mbnail"> CR LF   3113        <xsl: when test= "$ParamThu mbnail"> CR LF
3075         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF   3114         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF
3076        </xsl :when> CR LF   3115        </xsl :when> CR LF
3077   CR LF   3116   CR LF
3078        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF   3117        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF
3079         <xsl :choose> CR LF   3118         <xsl :choose> CR LF
3080          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> CR LF   3119          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> CR LF
3081           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF   3120           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF
3082   CR LF   3121   CR LF
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'))"  /> CR LF   3122           <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'))"  /> CR LF
3084          </x sl:when> CR LF   3123          </x sl:when> CR LF
3085   CR LF   3124   CR LF
3086          <xs l:otherwis e> CR LF   3125          <xs l:otherwis e> CR LF
3087           <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " /> CR LF   3126           <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " /> CR LF
3088          </x sl:otherwi se> CR LF   3127          </x sl:otherwi se> CR LF
3089         </xs l:choose> CR LF   3128         </xs l:choose> CR LF
3090        </xsl :when> CR LF   3129        </xsl :when> CR LF
3091   CR LF   3130   CR LF
3092        <xsl: otherwise> CR LF   3131        <xsl: otherwise> CR LF
3093         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF   3132         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF
3094        </xsl :otherwise > CR LF   3133        </xsl :otherwise > CR LF
3095       </xsl: choose> CR LF   3134       </xsl: choose> CR LF
3096      </xsl:v ariable> CR LF   3135      </xsl:v ariable> CR LF
3097      <xsl:va riable nam e="VarHeig ht"> CR LF   3136      <xsl:va riable nam e="VarHeig ht"> CR LF
3098       <xsl:c hoose> CR LF   3137       <xsl:c hoose> CR LF
3099        <xsl: when test= "$ParamThu mbnail"> CR LF   3138        <xsl: when test= "$ParamThu mbnail"> CR LF
3100         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF   3139         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF
3101        </xsl :when> CR LF   3140        </xsl :when> CR LF
3102   CR LF   3141   CR LF
3103        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF   3142        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF
3104         <xsl :choose> CR LF   3143         <xsl :choose> CR LF
3105          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> CR LF   3144          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> CR LF
3106           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF   3145           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF
3107   CR LF   3146   CR LF
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')) " /> CR LF   3147           <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')) " /> CR LF
3109          </x sl:when> CR LF   3148          </x sl:when> CR LF
3110   CR LF   3149   CR LF
3111          <xs l:otherwis e> CR LF   3150          <xs l:otherwis e> CR LF
3112           <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" /> CR LF   3151           <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" /> CR LF
3113          </x sl:otherwi se> CR LF   3152          </x sl:otherwi se> CR LF
3114         </xs l:choose> CR LF   3153         </xs l:choose> CR LF
3115        </xsl :when> CR LF   3154        </xsl :when> CR LF
3116   CR LF   3155   CR LF
3117        <xsl: otherwise> CR LF   3156        <xsl: otherwise> CR LF
3118         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF   3157         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF
3119        </xsl :otherwise > CR LF   3158        </xsl :otherwise > CR LF
3120       </xsl: choose> CR LF   3159       </xsl: choose> CR LF
3121      </xsl:v ariable> CR LF   3160      </xsl:v ariable> CR LF
3122   CR LF   3161   CR LF
3123      <!-- Sr c --> CR LF   3162      <!-- Sr c --> CR LF
3124      <!--      --> CR LF   3163      <!--      --> CR LF
3125      <xsl:va riable nam e="VarSrc"  select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " /> CR LF   3164      <xsl:va riable nam e="VarSrc"  select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " /> CR LF
3126   CR LF   3165   CR LF
3127      <!-- De fine Use M ap --> CR LF   3166      <!-- De fine Use M ap --> CR LF
3128      <!--                  --> CR LF   3167      <!--                  --> CR LF
3129      <xsl:va riable nam e="VarUseM ap"> CR LF   3168      <xsl:va riable nam e="VarUseM ap"> CR LF
3130       <xsl:c hoose> CR LF   3169       <xsl:c hoose> CR LF
3131        <xsl: when test= "($ParamTh umbnail) o r (count($ ParamFrame //wwdoc:Li nk) &gt; 0 )"> CR LF   3170        <xsl: when test= "($ParamTh umbnail) o r (count($ ParamFrame //wwdoc:Li nk) &gt; 0 )"> CR LF
3132         <xsl :text>#</x sl:text> CR LF   3171         <xsl :text>#</x sl:text> CR LF
3133         <xsl :value-of  select="$P aramSplits Frame/@doc umentID" / > CR LF   3172         <xsl :value-of  select="$P aramSplits Frame/@doc umentID" / > CR LF
3134         <xsl :text>_</x sl:text> CR LF   3173         <xsl :text>_</x sl:text> CR LF
3135         <xsl :value-of  select="$P aramSplits Frame/@id"  /> CR LF   3174         <xsl :value-of  select="$P aramSplits Frame/@id"  /> CR LF
3136        </xsl :when> CR LF   3175        </xsl :when> CR LF
3137   CR LF   3176   CR LF
3138        <xsl: otherwise> CR LF   3177        <xsl: otherwise> CR LF
3139         <xsl :value-of  select="'' " /> CR LF   3178         <xsl :value-of  select="'' " /> CR LF
3140        </xsl :otherwise > CR LF   3179        </xsl :otherwise > CR LF
3141       </xsl: choose> CR LF   3180       </xsl: choose> CR LF
3142      </xsl:v ariable> CR LF   3181      </xsl:v ariable> CR LF
3143   CR LF   3182   CR LF
3144      <!-- Al t Text --> CR LF   3183      <!-- Al t Text --> CR LF
3145      <!--           --> CR LF   3184      <!--           --> CR LF
3146      <xsl:va riable nam e="VarAltT ext"> CR LF   3185      <xsl:va riable nam e="VarAltT ext"> CR LF
3147       <xsl:c all-templa te name="I mages-AltT ext"> CR LF   3186       <xsl:c all-templa te name="I mages-AltT ext"> CR LF
3148        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF   3187        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF
3149        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF   3188        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF
3150       </xsl: call-templ ate> CR LF   3189       </xsl: call-templ ate> CR LF
3151      </xsl:v ariable> CR LF   3190      </xsl:v ariable> CR LF
3152   CR LF   3191   CR LF
3153      <!-- Lo ng Descrip tion --> CR LF   3192      <!-- Lo ng Descrip tion --> CR LF
3154      <!--                    --> CR LF   3193      <!--                    --> CR LF
3155      <xsl:va riable nam e="VarLong Descriptio n"> CR LF   3194      <xsl:va riable nam e="VarLong Descriptio n"> CR LF
3156       <xsl:c all-templa te name="I mages-Long Descriptio n"> CR LF   3195       <xsl:c all-templa te name="I mages-Long Descriptio n"> CR LF
3157        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> CR LF   3196        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> CR LF
3158        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF   3197        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF
3159       </xsl: call-templ ate> CR LF   3198       </xsl: call-templ ate> CR LF
3160      </xsl:v ariable> CR LF   3199      </xsl:v ariable> CR LF
3161   CR LF   3200   CR LF
3162      <!-- Ta g --> CR LF   3201      <!-- Ta g --> CR LF
3163      <!--      --> CR LF   3202      <!--      --> CR LF
3164      <xsl:va riable nam e="VarTagP roperty" s elect="$Pa ramContext Rule/wwpro ject:Prope rties/wwpr oject:Prop erty[@Name  = 'tag']/ @Value" /> CR LF   3203      <xsl:va riable nam e="VarTagP roperty" s elect="$Pa ramContext Rule/wwpro ject:Prope rties/wwpr oject:Prop erty[@Name  = 'tag']/ @Value" /> CR LF
3165      <xsl:va riable nam e="VarTag" > CR LF   3204      <xsl:va riable nam e="VarTag" > CR LF
3166       <xsl:c hoose> CR LF   3205       <xsl:c hoose> CR LF
3167        <xsl: when test= "string-le ngth($VarT agProperty ) &gt; 0"> CR LF   3206        <xsl: when test= "string-le ngth($VarT agProperty ) &gt; 0"> CR LF
3168         <xsl :value-of  select="$V arTagPrope rty" /> CR LF   3207         <xsl :value-of  select="$V arTagPrope rty" /> CR LF
3169        </xsl :when> CR LF   3208        </xsl :when> CR LF
3170   CR LF   3209   CR LF
3171        <xsl: otherwise> CR LF   3210        <xsl: otherwise> CR LF
3172         <xsl :value-of  select="'i mg'" /> CR LF   3211         <xsl :value-of  select="'i mg'" /> CR LF
3173        </xsl :otherwise > CR LF   3212        </xsl :otherwise > CR LF
3174       </xsl: choose> CR LF   3213       </xsl: choose> CR LF
3175      </xsl:v ariable> CR LF   3214      </xsl:v ariable> CR LF
3176   CR LF   3215   CR LF
3177      <!-- Gr aphic elem ent --> CR LF   3216      <!-- Gr aphic elem ent --> CR LF
3178      <!--                   --> CR LF   3217      <!--                   --> CR LF
3179      <xsl:el ement name ="{$VarTag }" namespa ce="{$Glob alDefaultN amespace}" > CR LF   3218      <xsl:el ement name ="{$VarTag }" namespa ce="{$Glob alDefaultN amespace}" > CR LF
3180       <!-- C lass attri bute --> CR LF   3219       <!-- C lass attri bute --> CR LF
3181       <!--                   --> CR LF   3220       <!--                   --> CR LF
3182       <xsl:a ttribute n ame="class "> CR LF   3221       <xsl:a ttribute n ame="class "> CR LF
3183        <xsl: value-of s elect="wws tring:CSSC lassName($ ParamFrame /@stylenam e)" /> CR LF   3222        <xsl: value-of s elect="wws tring:CSSC lassName($ ParamFrame /@stylenam e)" /> CR LF
3184   CR LF   3223   CR LF
3185        <!--  Additional  CSS class es --> CR LF   3224        <!--  Additional  CSS class es --> CR LF
3186        <!--                           --> CR LF   3225        <!--                           --> CR LF
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)" /> CR LF   3226        <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)" /> CR LF
3188        <xsl: if test="s tring-leng th($VarAdd itionalCSS ClassesOpt ion) &gt;  0"> CR LF   3227        <xsl: if test="s tring-leng th($VarAdd itionalCSS ClassesOpt ion) &gt;  0"> CR LF
3189         <xsl :text> </x sl:text> CR LF   3228         <xsl :text> </x sl:text> CR LF
3190         <xsl :value-of  select="$V arAddition alCSSClass esOption"  /> CR LF   3229         <xsl :value-of  select="$V arAddition alCSSClass esOption"  /> CR LF
3191        </xsl :if> CR LF   3230        </xsl :if> CR LF
3192       </xsl: attribute> CR LF   3231       </xsl: attribute> CR LF
3193   CR LF   3232   CR LF
3194       <!-- S rc attribu te --> CR LF   3233       <!-- S rc attribu te --> CR LF
3195       <!--                 --> CR LF   3234       <!--                 --> CR LF
3196       <xsl:a ttribute n ame="src"> CR LF   3235       <xsl:a ttribute n ame="src"> CR LF
3197        <xsl: value-of s elect="$Va rSrc" /> CR LF   3236        <xsl: value-of s elect="$Va rSrc" /> CR LF
3198       </xsl: attribute> CR LF   3237       </xsl: attribute> CR LF
3199   CR LF   3238   CR LF
3200       <!-- W idth attri bute --> CR LF   3239       <!-- W idth attri bute --> CR LF
3201       <!--                   --> CR LF   3240       <!--                   --> CR LF
3202       <xsl:i f test="$V arWidth &g t; 0"> CR LF   3241       <xsl:i f test="$V arWidth &g t; 0"> CR LF
3203        <xsl: attribute  name="widt h"> CR LF   3242        <xsl: attribute  name="widt h"> CR LF
3204         <xsl :value-of  select="$V arWidth"/> CR LF   3243         <xsl :value-of  select="$V arWidth"/> CR LF
3205        </xsl :attribute > CR LF   3244        </xsl :attribute > CR LF
3206       </xsl: if> CR LF   3245       </xsl: if> CR LF
3207   CR LF   3246   CR LF
3208       <!-- H eight attr ibute --> CR LF   3247       <!-- H eight attr ibute --> CR LF
3209       <!--                    --> CR LF   3248       <!--                    --> CR LF
3210       <xsl:i f test="$V arHeight & gt; 0"> CR LF   3249       <xsl:i f test="$V arHeight & gt; 0"> CR LF
3211        <xsl: attribute  name="heig ht"> CR LF   3250        <xsl: attribute  name="heig ht"> CR LF
3212         <xsl :value-of  select="$V arHeight"/ > CR LF   3251         <xsl :value-of  select="$V arHeight"/ > CR LF
3213        </xsl :attribute > CR LF   3252        </xsl :attribute > CR LF
3214       </xsl: if> CR LF   3253       </xsl: if> CR LF
3215   CR LF   3254   CR LF
3216       <!-- S tyle attri bute --> CR LF   3255       <!-- S tyle attri bute --> CR LF
3217       <!--                   --> CR LF   3256       <!--                   --> CR LF
3218       <xsl:i f test="st ring-lengt h($VarInli neCSSPrope rties) &gt ; 0"> CR LF   3257       <xsl:i f test="st ring-lengt h($VarInli neCSSPrope rties) &gt ; 0"> CR LF
3219        <xsl: attribute  name="styl e"> CR LF   3258        <xsl: attribute  name="styl e"> CR LF
3220         <xsl :value-of  select="$V arInlineCS SPropertie s" /> CR LF   3259         <xsl :value-of  select="$V arInlineCS SPropertie s" /> CR LF
3221        </xsl :attribute > CR LF   3260        </xsl :attribute > CR LF
3222       </xsl: if> CR LF   3261       </xsl: if> CR LF
3223   CR LF   3262   CR LF
3224       <!-- A lt attribu te --> CR LF   3263       <!-- A lt attribu te --> CR LF
3225       <!--                 --> CR LF   3264       <!--                 --> CR LF
3226       <xsl:a ttribute n ame="alt"> CR LF   3265       <xsl:a ttribute n ame="alt"> CR LF
3227        <xsl: value-of s elect="$Va rAltText"  /> CR LF   3266        <xsl: value-of s elect="$Va rAltText"  /> CR LF
3228       </xsl: attribute> CR LF   3267       </xsl: attribute> CR LF
3229   CR LF   3268   CR LF
3230       <!-- L ongdesc at tribute -- > CR LF   3269       <!-- L ongdesc at tribute -- > CR LF
3231       <!--                      -- > CR LF   3270       <!--                      -- > CR LF
3232       <xsl:i f test="st ring-lengt h($VarLong Descriptio n) &gt; 0" > CR LF   3271       <xsl:i f test="st ring-lengt h($VarLong Descriptio n) &gt; 0" > CR LF
3233        <xsl: attribute  name="long desc"> CR LF   3272        <xsl: attribute  name="long desc"> CR LF
3234         <xsl :value-of  select="$V arLongDesc ription" / > CR LF   3273         <xsl :value-of  select="$V arLongDesc ription" / > CR LF
3235        </xsl :attribute > CR LF   3274        </xsl :attribute > CR LF
3236       </xsl: if> CR LF   3275       </xsl: if> CR LF
3237   CR LF   3276   CR LF
3238       <!-- U semap attr ibute --> CR LF   3277       <!-- U semap attr ibute --> CR LF
3239       <!--                    --> CR LF   3278       <!--                    --> CR LF
3240       <xsl:i f test="st ring-lengt h($VarUseM ap) &gt; 0 "> CR LF   3279       <xsl:i f test="st ring-lengt h($VarUseM ap) &gt; 0 "> CR LF
3241        <xsl: attribute  name="usem ap"> CR LF   3280        <xsl: attribute  name="usem ap"> CR LF
3242         <xsl :value-of  select="$V arUseMap"  /> CR LF   3281         <xsl :value-of  select="$V arUseMap"  /> CR LF
3243        </xsl :attribute > CR LF   3282        </xsl :attribute > CR LF
3244        <xsl: attribute  name="bord er"> CR LF   3283        <xsl: attribute  name="bord er"> CR LF
3245         <xsl :value-of  select="'0 '" /> CR LF   3284         <xsl :value-of  select="'0 '" /> CR LF
3246        </xsl :attribute > CR LF   3285        </xsl :attribute > CR LF
3247       </xsl: if> CR LF   3286       </xsl: if> CR LF
3248      </xsl:e lement> CR LF   3287      </xsl:e lement> CR LF
3249   CR LF   3288   CR LF
3250      <!-- Ge nerate D L inks --> CR LF   3289      <!-- Ge nerate D L inks --> CR LF
3251      <!--                    --> CR LF   3290      <!--                    --> CR LF
3252      <xsl:va riable nam e="VarGene rateDLinks " select=" wwprojext: GetFormatS etting('ac cessibilit y-image-d- links', 'f alse')" /> CR LF   3291      <xsl:va riable nam e="VarGene rateDLinks " select=" wwprojext: GetFormatS etting('ac cessibilit y-image-d- links', 'f alse')" /> CR LF
3253      <xsl:if  test="$Va rGenerateD Links = 't rue'"> CR LF   3292      <xsl:if  test="$Va rGenerateD Links = 't rue'"> CR LF
3254       <xsl:i f test="st ring-lengt h($VarLong Descriptio n) &gt; 0" > CR LF   3293       <xsl:i f test="st ring-lengt h($VarLong Descriptio n) &gt; 0" > CR LF
3255        <xsl: text> </xs l:text> CR LF   3294        <xsl: text> </xs l:text> CR LF
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 /> CR LF   3295        <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 /> CR LF
3257       </xsl: if> CR LF   3296       </xsl: if> CR LF
3258      </xsl:i f> CR LF   3297      </xsl:i f> CR LF
3259   CR LF   3298   CR LF
3260      <!-- Im age map -- > CR LF   3299      <!-- Im age map -- > CR LF
3261      <!--            -- > CR LF   3300      <!--            -- > CR LF
3262      <xsl:if  test="str ing-length ($VarUseMa p) &gt; 0" > CR LF   3301      <xsl:if  test="str ing-length ($VarUseMa p) &gt; 0" > CR LF
3263       <html: map name=" {concat($P aramSplits Frame/@doc umentID, ' _', $Param SplitsFram e/@id)}"> CR LF   3302       <html: map name=" {concat($P aramSplits Frame/@doc umentID, ' _', $Param SplitsFram e/@id)}"> CR LF
3264        <xsl: choose> CR LF   3303        <xsl: choose> CR LF
3265         <!--  Thumbnail  --> CR LF   3304         <!--  Thumbnail  --> CR LF
3266         <!--             --> CR LF   3305         <!--             --> CR LF
3267         <xsl :when test ="$ParamTh umbnail"> CR LF   3306         <xsl :when test ="$ParamTh umbnail"> CR LF
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)}"> CR LF   3307          <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)}"> CR LF
3269           <x sl:attribu te name="a lt"> CR LF   3308           <x sl:attribu te name="a lt"> CR LF
3270            < xsl:value- of select= "$VarAltTe xt" /> CR LF   3309            < xsl:value- of select= "$VarAltTe xt" /> CR LF
3271           </ xsl:attrib ute> CR LF   3310           </ xsl:attrib ute> CR LF
3272          </h tml:area> CR LF   3311          </h tml:area> CR LF
3273         </xs l:when> CR LF   3312         </xs l:when> CR LF
3274   CR LF   3313   CR LF
3275         <!--  Fullsize  --> CR LF   3314         <!--  Fullsize  --> CR LF
3276         <!--            --> CR LF   3315         <!--            --> CR LF
3277         <xsl :otherwise > CR LF   3316         <xsl :otherwise > CR LF
3278          <xs l:variable  name="Var Horizontal ScalingAsT ext"> CR LF   3317          <xs l:variable  name="Var Horizontal ScalingAsT ext"> CR LF
3279           <x sl:choose> CR LF   3318           <x sl:choose> CR LF
3280            < xsl:when t est="$VarW idth &gt;  0"> CR LF   3319            < xsl:when t est="$VarW idth &gt;  0"> CR LF
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 ')))" /> CR LF   3320              <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 ')))" /> CR LF
3282              <xsl:value -of select ="number($ VarWidth)  div number ($VarWidth AsPixels)"  /> CR LF   3321              <xsl:value -of select ="number($ VarWidth)  div number ($VarWidth AsPixels)"  /> CR LF
3283            < /xsl:when> CR LF   3322            < /xsl:when> CR LF
3284   CR LF   3323   CR LF
3285            < xsl:otherw ise> CR LF   3324            < xsl:otherw ise> CR LF
3286              <xsl:value -of select ="1" /> CR LF   3325              <xsl:value -of select ="1" /> CR LF
3287            < /xsl:other wise> CR LF   3326            < /xsl:other wise> CR LF
3288           </ xsl:choose > CR LF   3327           </ xsl:choose > CR LF
3289          </x sl:variabl e> CR LF   3328          </x sl:variabl e> CR LF
3290   CR LF   3329   CR LF
3291          <xs l:variable  name="Var VerticalSc alingAsTex t"> CR LF   3330          <xs l:variable  name="Var VerticalSc alingAsTex t"> CR LF
3292           <x sl:choose> CR LF   3331           <x sl:choose> CR LF
3293            < xsl:when t est="$VarH eight &gt;  0"> CR LF   3332            < xsl:when t est="$VarH eight &gt;  0"> CR LF
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')))" /> CR LF   3333              <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')))" /> CR LF
3295              <xsl:value -of select ="number($ VarHeight)  div numbe r($VarHeig htAsPixels )" /> CR LF   3334              <xsl:value -of select ="number($ VarHeight)  div numbe r($VarHeig htAsPixels )" /> CR LF
3296            < /xsl:when> CR LF   3335            < /xsl:when> CR LF
3297   CR LF   3336   CR LF
3298            < xsl:otherw ise> CR LF   3337            < xsl:otherw ise> CR LF
3299              <xsl:value -of select ="1" /> CR LF   3338              <xsl:value -of select ="1" /> CR LF
3300            < /xsl:other wise> CR LF   3339            < /xsl:other wise> CR LF
3301           </ xsl:choose > CR LF   3340           </ xsl:choose > CR LF
3302          </x sl:variabl e> CR LF   3341          </x sl:variabl e> CR LF
3303   CR LF   3342   CR LF
3304          <xs l:call-tem plate name ="ImageMap "> CR LF   3343          <xs l:call-tem plate name ="ImageMap "> CR LF
3305           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF   3344           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF
3306           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   3345           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
3307           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF   3346           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF
3308           <x sl:with-pa ram name=" ParamParen tBehavior"  select="$ VarBehavio rFrame" /> CR LF   3347           <x sl:with-pa ram name=" ParamParen tBehavior"  select="$ VarBehavio rFrame" /> CR LF
3309           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   3348           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
3310           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   3349           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
3311           <x sl:with-pa ram name=" ParamHoriz ontalScali ng" select ="number($ VarHorizon talScaling AsText)" / > CR LF   3350           <x sl:with-pa ram name=" ParamHoriz ontalScali ng" select ="number($ VarHorizon talScaling AsText)" / > CR LF
3312           <x sl:with-pa ram name=" ParamVerti calScaling " select=" number($Va rVerticalS calingAsTe xt)" /> CR LF   3351           <x sl:with-pa ram name=" ParamVerti calScaling " select=" number($Va rVerticalS calingAsTe xt)" /> CR LF
3313          </x sl:call-te mplate> CR LF   3352          </x sl:call-te mplate> CR LF
3314         </xs l:otherwis e> CR LF   3353         </xs l:otherwis e> CR LF
3315        </xsl :choose> CR LF   3354        </xsl :choose> CR LF
3316       </html :map> CR LF   3355       </html :map> CR LF
3317      </xsl:i f> CR LF   3356      </xsl:i f> CR LF
3318   CR LF   3357   CR LF
3319      <!-- No tes --> CR LF   3358      <!-- No tes --> CR LF
3320      <!--        --> CR LF   3359      <!--        --> CR LF
3321      <xsl:ch oose> CR LF   3360      <xsl:ch oose> CR LF
3322       <!-- T humbnail - -> CR LF   3361       <!-- T humbnail - -> CR LF
3323       <!--            - -> CR LF   3362       <!--            - -> CR LF
3324       <xsl:w hen test=" $ParamThum bnail"> CR LF   3363       <xsl:w hen test=" $ParamThum bnail"> CR LF
3325        <!--  Nothing to  do --> CR LF   3364        <!--  Nothing to  do --> CR LF
3326        <!--                 --> CR LF   3365        <!--                 --> CR LF
3327       </xsl: when> CR LF   3366       </xsl: when> CR LF
3328   CR LF   3367   CR LF
3329       <!-- F ullsize -- > CR LF   3368       <!-- F ullsize -- > CR LF
3330       <!--           -- > CR LF   3369       <!--           -- > CR LF
3331       <xsl:o therwise> CR LF   3370       <xsl:o therwise> CR LF
3332        <!--  Frame Foot notes --> CR LF   3371        <!--  Frame Foot notes --> CR LF
3333        <!--                   --> CR LF   3372        <!--                   --> CR LF
3334        <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" /> CR LF   3373        <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" /> CR LF
3335        <xsl: call-templ ate name=" Content-No tes"> CR LF   3374        <xsl: call-templ ate name=" Content-No tes"> CR LF
3336         <xsl :with-para m name="Pa ramNotes"  select="$V arNotes" / > CR LF   3375         <xsl :with-para m name="Pa ramNotes"  select="$V arNotes" / > CR LF
3337         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   3376         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
3338         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   3377         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
3339         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   3378         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
3340         <xsl :with-para m name="Pa ramTOCData " select=" ''" /> CR LF   3379         <xsl :with-para m name="Pa ramTOCData " select=" ''" /> CR LF
3341         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   3380         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
3342        </xsl :call-temp late> CR LF   3381        </xsl :call-temp late> CR LF
3343       </xsl: otherwise> CR LF   3382       </xsl: otherwise> CR LF
3344      </xsl:c hoose> CR LF   3383      </xsl:c hoose> CR LF
3345     </xsl:fo r-each> CR LF   3384     </xsl:fo r-each> CR LF
3346    </xsl:tem plate> CR LF   3385    </xsl:tem plate> CR LF
3347   CR LF   3386   CR LF
3348   CR LF   3387   CR LF
3349    <xsl:temp late name= "ImageMap" > CR LF   3388    <xsl:temp late name= "ImageMap" > CR LF
3350     <xsl:par am name="P aramFrame"  /> CR LF   3389     <xsl:par am name="P aramFrame"  /> CR LF
3351     <xsl:par am name="P aramSplits " /> CR LF   3390     <xsl:par am name="P aramSplits " /> CR LF
3352     <xsl:par am name="P aramCargo"  /> CR LF   3391     <xsl:par am name="P aramCargo"  /> CR LF
3353     <xsl:par am name="P aramParent Behavior"  /> CR LF   3392     <xsl:par am name="P aramParent Behavior"  /> CR LF
3354     <xsl:par am name="P aramLinks"  /> CR LF   3393     <xsl:par am name="P aramLinks"  /> CR LF
3355     <xsl:par am name="P aramSplit"  /> CR LF   3394     <xsl:par am name="P aramSplit"  /> CR LF
3356     <xsl:par am name="P aramHorizo ntalScalin g" /> CR LF   3395     <xsl:par am name="P aramHorizo ntalScalin g" /> CR LF
3357     <xsl:par am name="P aramVertic alScaling"  /> CR LF   3396     <xsl:par am name="P aramVertic alScaling"  /> CR LF
3358   CR LF   3397   CR LF
3359     <!-- Pro cess child  frames fi rst --> CR LF   3398     <!-- Pro cess child  frames fi rst --> CR LF
3360     <!--                               --> CR LF   3399     <!--                               --> CR LF
3361     <xsl:for -each sele ct="$Param Frame/wwdo c:Content/ /wwdoc:Fra me[count($ ParamFrame  | ancesto r::wwdoc:F rame[1]) =  1]"> CR LF   3400     <xsl:for -each sele ct="$Param Frame/wwdo c:Content/ /wwdoc:Fra me[count($ ParamFrame  | ancesto r::wwdoc:F rame[1]) =  1]"> CR LF
3362      <xsl:ca ll-templat e name="Im ageMap"> CR LF   3401      <xsl:ca ll-templat e name="Im ageMap"> CR LF
3363       <xsl:w ith-param  name="Para mFrame" se lect="." / > CR LF   3402       <xsl:w ith-param  name="Para mFrame" se lect="." / > CR LF
3364       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   3403       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
3365       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   3404       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
3366       <xsl:w ith-param  name="Para mParentBeh avior" sel ect="$Para mParentBeh avior" /> CR LF   3405       <xsl:w ith-param  name="Para mParentBeh avior" sel ect="$Para mParentBeh avior" /> CR LF
3367       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   3406       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
3368       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   3407       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
3369       <xsl:w ith-param  name="Para mHorizonta lScaling"  select="$P aramHorizo ntalScalin g" /> CR LF   3408       <xsl:w ith-param  name="Para mHorizonta lScaling"  select="$P aramHorizo ntalScalin g" /> CR LF
3370       <xsl:w ith-param  name="Para mVerticalS caling" se lect="$Par amVertical Scaling" / > CR LF   3409       <xsl:w ith-param  name="Para mVerticalS caling" se lect="$Par amVertical Scaling" / > CR LF
3371      </xsl:c all-templa te> CR LF   3410      </xsl:c all-templa te> CR LF
3372     </xsl:fo r-each> CR LF   3411     </xsl:fo r-each> CR LF
3373   CR LF   3412   CR LF
3374     <!-- Get  link --> CR LF   3413     <!-- Get  link --> CR LF
3375     <!--           --> CR LF   3414     <!--           --> CR LF
3376     <xsl:var iable name ="VarLinkI nfoAsXML"> CR LF   3415     <xsl:var iable name ="VarLinkI nfoAsXML"> CR LF
3377      <xsl:ch oose> CR LF   3416      <xsl:ch oose> CR LF
3378       <xsl:w hen test=" count($Par amFrame/ww doc:Link[1 ]) = 1"> CR LF   3417       <xsl:w hen test=" count($Par amFrame/ww doc:Link[1 ]) = 1"> CR LF
3379        <xsl: call-templ ate name=" LinkInfo"> CR LF   3418        <xsl: call-templ ate name=" LinkInfo"> CR LF
3380         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   3419         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
3381         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   3420         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
3382         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   3421         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
3383         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mFrame/wwd oc:Link" / > CR LF   3422         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mFrame/wwd oc:Link" / > CR LF
3384        </xsl :call-temp late> CR LF   3423        </xsl :call-temp late> CR LF
3385       </xsl: when> CR LF   3424       </xsl: when> CR LF
3386   CR LF   3425   CR LF
3387       <xsl:o therwise> CR LF   3426       <xsl:o therwise> CR LF
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]" /> CR LF   3427        <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]" /> CR LF
3389        <xsl: variable n ame="VarCh ildLinksCo unt" selec t="count($ VarChildLi nks)" /> CR LF   3428        <xsl: variable n ame="VarCh ildLinksCo unt" selec t="count($ VarChildLi nks)" /> CR LF
3390        <xsl: if test="$ VarChildLi nksCount & gt; 0"> CR LF   3429        <xsl: if test="$ VarChildLi nksCount & gt; 0"> CR LF
3391         <xsl :call-temp late name= "LinkInfo" > CR LF   3430         <xsl :call-temp late name= "LinkInfo" > CR LF
3392          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   3431          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
3393          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF   3432          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF
3394          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   3433          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
3395          <xs l:with-par am name="P aramDocume ntLink" se lect="$Var ChildLinks [$VarChild LinksCount ]" /> CR LF   3434          <xs l:with-par am name="P aramDocume ntLink" se lect="$Var ChildLinks [$VarChild LinksCount ]" /> CR LF
3396         </xs l:call-tem plate> CR LF   3435         </xs l:call-tem plate> CR LF
3397        </xsl :if> CR LF   3436        </xsl :if> CR LF
3398       </xsl: otherwise> CR LF   3437       </xsl: otherwise> CR LF
3399      </xsl:c hoose> CR LF   3438      </xsl:c hoose> CR LF
3400     </xsl:va riable> CR LF   3439     </xsl:va riable> CR LF
3401     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> CR LF   3440     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> CR LF
3402   CR LF   3441   CR LF
3403     <xsl:if  test="(str ing-length ($VarLinkI nfo/@href)  &gt; 0) o r (string- length($Va rLinkInfo/ @onMouseOv er) &gt; 0 )"> CR LF   3442     <xsl:if  test="(str ing-length ($VarLinkI nfo/@href)  &gt; 0) o r (string- length($Va rLinkInfo/ @onMouseOv er) &gt; 0 )"> CR LF
3404      <!-- Ge t coords a ttribute - -> CR LF   3443      <!-- Ge t coords a ttribute - -> CR LF
3405      <!--                        - -> CR LF   3444      <!--                        - -> CR LF
3406      <xsl:va riable nam e="VarLeft AsPixels"> CR LF   3445      <xsl:va riable nam e="VarLeft AsPixels"> CR LF
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'))) " /> CR LF   3446       <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'))) " /> CR LF
3408       <xsl:c hoose> CR LF   3447       <xsl:c hoose> CR LF
3409        <xsl: when test= "$ParamHor izontalSca ling != 1" > CR LF   3448        <xsl: when test= "$ParamHor izontalSca ling != 1" > CR LF
3410         <xsl :value-of  select="nu mber($VarO rigLeftAsP ixels) * n umber($Par amHorizont alScaling) " /> CR LF   3449         <xsl :value-of  select="nu mber($VarO rigLeftAsP ixels) * n umber($Par amHorizont alScaling) " /> CR LF
3411        </xsl :when> CR LF   3450        </xsl :when> CR LF
3412        <xsl: otherwise> CR LF   3451        <xsl: otherwise> CR LF
3413         <xsl :value-of  select="$V arOrigLeft AsPixels"  /> CR LF   3452         <xsl :value-of  select="$V arOrigLeft AsPixels"  /> CR LF
3414        </xsl :otherwise > CR LF   3453        </xsl :otherwise > CR LF
3415       </xsl: choose> CR LF   3454       </xsl: choose> CR LF
3416      </xsl:v ariable> CR LF   3455      </xsl:v ariable> CR LF
3417   CR LF   3456   CR LF
3418      <xsl:va riable nam e="VarTopA sPixels"> CR LF   3457      <xsl:va riable nam e="VarTopA sPixels"> CR LF
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')))"  /> CR LF   3458       <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')))"  /> CR LF
3420       <xsl:c hoose> CR LF   3459       <xsl:c hoose> CR LF
3421        <xsl: when test= "$ParamVer ticalScali ng != 1"> CR LF   3460        <xsl: when test= "$ParamVer ticalScali ng != 1"> CR LF
3422         <xsl :value-of  select="nu mber($VarO rigTopAsPi xels) * nu mber($Para mVerticalS caling)" / > CR LF   3461         <xsl :value-of  select="nu mber($VarO rigTopAsPi xels) * nu mber($Para mVerticalS caling)" / > CR LF
3423        </xsl :when> CR LF   3462        </xsl :when> CR LF
3424        <xsl: otherwise> CR LF   3463        <xsl: otherwise> CR LF
3425         <xsl :value-of  select="$V arOrigTopA sPixels" / > CR LF   3464         <xsl :value-of  select="$V arOrigTopA sPixels" / > CR LF
3426        </xsl :otherwise > CR LF   3465        </xsl :otherwise > CR LF
3427       </xsl: choose> CR LF   3466       </xsl: choose> CR LF
3428      </xsl:v ariable> CR LF   3467      </xsl:v ariable> CR LF
3429   CR LF   3468   CR LF
3430      <xsl:va riable nam e="VarWidt hAsPixels" > CR LF   3469      <xsl:va riable nam e="VarWidt hAsPixels" > CR LF
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') ))" /> CR LF   3470       <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') ))" /> CR LF
3432       <xsl:c hoose> CR LF   3471       <xsl:c hoose> CR LF
3433        <xsl: when test= "$ParamHor izontalSca ling != 1" > CR LF   3472        <xsl: when test= "$ParamHor izontalSca ling != 1" > CR LF
3434         <xsl :value-of  select="nu mber($VarO rigWidthAs Pixels) *  number($Pa ramHorizon talScaling )" /> CR LF   3473         <xsl :value-of  select="nu mber($VarO rigWidthAs Pixels) *  number($Pa ramHorizon talScaling )" /> CR LF
3435        </xsl :when> CR LF   3474        </xsl :when> CR LF
3436        <xsl: otherwise> CR LF   3475        <xsl: otherwise> CR LF
3437         <xsl :value-of  select="$V arOrigWidt hAsPixels"  /> CR LF   3476         <xsl :value-of  select="$V arOrigWidt hAsPixels"  /> CR LF
3438        </xsl :otherwise > CR LF   3477        </xsl :otherwise > CR LF
3439       </xsl: choose> CR LF   3478       </xsl: choose> CR LF
3440      </xsl:v ariable> CR LF   3479      </xsl:v ariable> CR LF
3441   CR LF   3480   CR LF
3442      <xsl:va riable nam e="VarHeig htAsPixels "> CR LF   3481      <xsl:va riable nam e="VarHeig htAsPixels "> CR LF
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 ')))" /> CR LF   3482       <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 ')))" /> CR LF
3444       <xsl:c hoose> CR LF   3483       <xsl:c hoose> CR LF
3445        <xsl: when test= "$ParamVer ticalScali ng != 1"> CR LF   3484        <xsl: when test= "$ParamVer ticalScali ng != 1"> CR LF
3446         <xsl :value-of  select="nu mber($VarO rigHeightA sPixels) *  number($P aramVertic alScaling) " /> CR LF   3485         <xsl :value-of  select="nu mber($VarO rigHeightA sPixels) *  number($P aramVertic alScaling) " /> CR LF
3447        </xsl :when> CR LF   3486        </xsl :when> CR LF
3448        <xsl: otherwise> CR LF   3487        <xsl: otherwise> CR LF
3449         <xsl :value-of  select="$V arOrigHeig htAsPixels " /> CR LF   3488         <xsl :value-of  select="$V arOrigHeig htAsPixels " /> CR LF
3450        </xsl :otherwise > CR LF   3489        </xsl :otherwise > CR LF
3451       </xsl: choose> CR LF   3490       </xsl: choose> CR LF
3452      </xsl:v ariable> CR LF   3491      </xsl:v ariable> CR LF
3453   CR LF   3492   CR LF
3454      <!-- co ords --> CR LF   3493      <!-- co ords --> CR LF
3455      <!--         --> CR LF   3494      <!--         --> CR LF
3456      <xsl:va riable nam e="VarCoor dsString"> CR LF   3495      <xsl:va riable nam e="VarCoor dsString"> CR LF
3457       <xsl:c hoose> CR LF   3496       <xsl:c hoose> CR LF
3458        <xsl: when test= "string-le ngth($VarL eftAsPixel s) &gt; 0" > CR LF   3497        <xsl: when test= "string-le ngth($VarL eftAsPixel s) &gt; 0" > CR LF
3459         <xsl :value-of  select="$V arLeftAsPi xels" /> CR LF   3498         <xsl :value-of  select="$V arLeftAsPi xels" /> CR LF
3460        </xsl :when> CR LF   3499        </xsl :when> CR LF
3461        <xsl: otherwise> CR LF   3500        <xsl: otherwise> CR LF
3462         <xsl :value-of  select="'0 '" /> CR LF   3501         <xsl :value-of  select="'0 '" /> CR LF
3463        </xsl :otherwise > CR LF   3502        </xsl :otherwise > CR LF
3464       </xsl: choose> CR LF   3503       </xsl: choose> CR LF
3465   CR LF   3504   CR LF
3466       <xsl:v alue-of se lect="','" /> CR LF   3505       <xsl:v alue-of se lect="','" /> CR LF
3467   CR LF   3506   CR LF
3468       <xsl:c hoose> CR LF   3507       <xsl:c hoose> CR LF
3469        <xsl: when test= "string-le ngth($VarT opAsPixels ) &gt; 0"> CR LF   3508        <xsl: when test= "string-le ngth($VarT opAsPixels ) &gt; 0"> CR LF
3470         <xsl :value-of  select="$V arTopAsPix els" /> CR LF   3509         <xsl :value-of  select="$V arTopAsPix els" /> CR LF
3471        </xsl :when> CR LF   3510        </xsl :when> CR LF
3472        <xsl: otherwise> CR LF   3511        <xsl: otherwise> CR LF
3473         <xsl :value-of  select="'0 '" /> CR LF   3512         <xsl :value-of  select="'0 '" /> CR LF
3474        </xsl :otherwise > CR LF   3513        </xsl :otherwise > CR LF
3475       </xsl: choose> CR LF   3514       </xsl: choose> CR LF
3476   CR LF   3515   CR LF
3477       <xsl:v alue-of se lect="','" /> CR LF   3516       <xsl:v alue-of se lect="','" /> CR LF
3478   CR LF   3517   CR LF
3479       <xsl:c hoose> CR LF   3518       <xsl:c hoose> CR LF
3480        <xsl: when test= "string-le ngth($VarW idthAsPixe ls) &gt; 0 "> CR LF   3519        <xsl: when test= "string-le ngth($VarW idthAsPixe ls) &gt; 0 "> CR LF
3481         <xsl :value-of  select="st ring(numbe r($VarWidt hAsPixels)  + number( $VarLeftAs Pixels))"  /> CR LF   3520         <xsl :value-of  select="st ring(numbe r($VarWidt hAsPixels)  + number( $VarLeftAs Pixels))"  /> CR LF
3482        </xsl :when> CR LF   3521        </xsl :when> CR LF
3483        <xsl: otherwise> CR LF   3522        <xsl: otherwise> CR LF
3484         <xsl :value-of  select="'0 '" /> CR LF   3523         <xsl :value-of  select="'0 '" /> CR LF
3485        </xsl :otherwise > CR LF   3524        </xsl :otherwise > CR LF
3486       </xsl: choose> CR LF   3525       </xsl: choose> CR LF
3487   CR LF   3526   CR LF
3488       <xsl:v alue-of se lect="','" /> CR LF   3527       <xsl:v alue-of se lect="','" /> CR LF
3489   CR LF   3528   CR LF
3490       <xsl:c hoose> CR LF   3529       <xsl:c hoose> CR LF
3491        <xsl: when test= "string-le ngth($VarH eightAsPix els) &gt;  0"> CR LF   3530        <xsl: when test= "string-le ngth($VarH eightAsPix els) &gt;  0"> CR LF
3492         <xsl :value-of  select="st ring(numbe r($VarHeig htAsPixels ) + number ($VarTopAs Pixels))"  /> CR LF   3531         <xsl :value-of  select="st ring(numbe r($VarHeig htAsPixels ) + number ($VarTopAs Pixels))"  /> CR LF
3493        </xsl :when> CR LF   3532        </xsl :when> CR LF
3494        <xsl: otherwise> CR LF   3533        <xsl: otherwise> CR LF
3495         <xsl :value-of  select="'0 '" /> CR LF   3534         <xsl :value-of  select="'0 '" /> CR LF
3496        </xsl :otherwise > CR LF   3535        </xsl :otherwise > CR LF
3497       </xsl: choose> CR LF   3536       </xsl: choose> CR LF
3498      </xsl:v ariable> CR LF   3537      </xsl:v ariable> CR LF
3499   CR LF   3538   CR LF
3500      <!-- al t --> CR LF   3539      <!-- al t --> CR LF
3501      <!--      --> CR LF   3540      <!--      --> CR LF
3502      <xsl:va riable nam e="VarAltT ext"> CR LF   3541      <xsl:va riable nam e="VarAltT ext"> CR LF
3503       <xsl:c all-templa te name="I mages-Imag eAreaAltTe xt"> CR LF   3542       <xsl:c all-templa te name="I mages-Imag eAreaAltTe xt"> CR LF
3504        <xsl: with-param  name="Par amParentBe havior" se lect="$Par amParentBe havior" /> CR LF   3543        <xsl: with-param  name="Par amParentBe havior" se lect="$Par amParentBe havior" /> CR LF
3505        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF   3544        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF
3506       </xsl: call-templ ate> CR LF   3545       </xsl: call-templ ate> CR LF
3507      </xsl:v ariable> CR LF   3546      </xsl:v ariable> CR LF
3508   CR LF   3547   CR LF
3509      <!-- ar ea --> CR LF   3548      <!-- ar ea --> CR LF
3510      <!--       --> CR LF   3549      <!--       --> CR LF
3511      <html:a rea href=" {$VarLinkI nfo/@href} " coords=" {$VarCoord sString}"  shape="rec t"> CR LF   3550      <html:a rea href=" {$VarLinkI nfo/@href} " coords=" {$VarCoord sString}"  shape="rec t"> CR LF
3512       <!-- t arget --> CR LF   3551       <!-- t arget --> CR LF
3513       <!--         --> CR LF   3552       <!--         --> CR LF
3514       <xsl:i f test="st ring-lengt h($VarLink Info/@targ et) &gt; 0 "> CR LF   3553       <xsl:i f test="st ring-lengt h($VarLink Info/@targ et) &gt; 0 "> CR LF
3515        <xsl: attribute  name="targ et"> CR LF   3554        <xsl: attribute  name="targ et"> CR LF
3516         <xsl :value-of  select="$V arLinkInfo /@target"  /> CR LF   3555         <xsl :value-of  select="$V arLinkInfo /@target"  /> CR LF
3517        </xsl :attribute > CR LF   3556        </xsl :attribute > CR LF
3518       </xsl: if> CR LF   3557       </xsl: if> CR LF
3519   CR LF   3558   CR LF
3520       <!-- o nMouseOver  --> CR LF   3559       <!-- o nMouseOver  --> CR LF
3521       <!--               --> CR LF   3560       <!--               --> CR LF
3522       <xsl:i f test="st ring-lengt h($VarLink Info/@onMo useOver) & gt; 0"> CR LF   3561       <xsl:i f test="st ring-lengt h($VarLink Info/@onMo useOver) & gt; 0"> CR LF
3523        <xsl: attribute  name="onMo useOver"> CR LF   3562        <xsl: attribute  name="onMo useOver"> CR LF
3524         <xsl :value-of  select="$V arLinkInfo /@onMouseO ver" /> CR LF   3563         <xsl :value-of  select="$V arLinkInfo /@onMouseO ver" /> CR LF
3525        </xsl :attribute > CR LF   3564        </xsl :attribute > CR LF
3526       </xsl: if> CR LF   3565       </xsl: if> CR LF
3527   CR LF   3566   CR LF
3528       <!-- o nMouseOut  --> CR LF   3567       <!-- o nMouseOut  --> CR LF
3529       <!--              --> CR LF   3568       <!--              --> CR LF
3530       <xsl:i f test="st ring-lengt h($VarLink Info/@onMo useOut) &g t; 0"> CR LF   3569       <xsl:i f test="st ring-lengt h($VarLink Info/@onMo useOut) &g t; 0"> CR LF
3531        <xsl: attribute  name="onMo useOut"> CR LF   3570        <xsl: attribute  name="onMo useOut"> CR LF
3532         <xsl :value-of  select="$V arLinkInfo /@onMouseO ut" /> CR LF   3571         <xsl :value-of  select="$V arLinkInfo /@onMouseO ut" /> CR LF
3533        </xsl :attribute > CR LF   3572        </xsl :attribute > CR LF
3534       </xsl: if> CR LF   3573       </xsl: if> CR LF
3535   CR LF   3574   CR LF
3536       <!-- a lt --> CR LF   3575       <!-- a lt --> CR LF
3537       <!--      --> CR LF   3576       <!--      --> CR LF
3538       <xsl:a ttribute n ame="alt"> CR LF   3577       <xsl:a ttribute n ame="alt"> CR LF
3539        <xsl: value-of s elect="$Va rAltText"  /> CR LF   3578        <xsl: value-of s elect="$Va rAltText"  /> CR LF
3540       </xsl: attribute> CR LF   3579       </xsl: attribute> CR LF
3541      </html: area> CR LF   3580      </html: area> CR LF
3542     </xsl:if > CR LF   3581     </xsl:if > CR LF
3543    </xsl:tem plate> CR LF   3582    </xsl:tem plate> CR LF
3544   </xsl:styl esheet> CR LF   3583   </xsl:styl esheet> CR LF