28. Araxis Merge File Comparison Report

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

28.1 Files compared

# Location File Last Modified
1 Q:\Formats.2008.3.20682\Simple HTML\Transforms content.xsl Mon Oct 13 05:51:52 2008 UTC
2 Q:\Formats.2008.4.20859\Simple HTML\Transforms content.xsl Mon Jan 19 18:02:36 2009 UTC

28.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 52 6138
Changed 20 78
Inserted 12 28
Removed 3 15

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

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

28.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/MarkU p/Wilbur/H TML32.dtd" CR LF   2   <xsl:style sheet vers ion="1.0"  xmlns="htt p://www.w3 .org/MarkU p/Wilbur/H TML32.dtd" CR LF
3                                    xmlns:html ="http://w ww.w3.org/ MarkUp/Wil bur/HTML32 .dtd" CR LF   3                                    xmlns:html ="http://w ww.w3.org/ MarkUp/Wil bur/HTML32 .dtd" 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:wwfi les="urn:W ebWorks-En gine-Files -Schema" CR LF   8                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema" CR LF
9                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a" CR LF   9                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a" CR LF
10                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema" CR LF   10                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema" CR LF
11                                    xmlns:wwto c="urn:Web Works-Engi ne-TOC-Sch ema" CR LF   11                                    xmlns:wwto c="urn:Web Works-Engi ne-TOC-Sch ema" CR LF
12                                    xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema" CR LF   12                                    xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema" CR LF
13                                    xmlns:wwno tes="urn:W ebWorks-Fo otnote-Sch ema" CR LF   13                                    xmlns:wwno tes="urn:W ebWorks-Fo otnote-Sch ema" CR LF
14                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject" CR LF   14                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject" CR LF
15                                    xmlns:wwpa ge="urn:We bWorks-Pag e-Template -Schema" CR LF   15                                    xmlns:wwpa ge="urn:We bWorks-Pag e-Template -Schema" CR LF
16                                    xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma" CR LF   16                                    xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma" CR LF
17                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress" CR LF   17                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress" CR LF
18                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log" CR LF   18                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log" CR LF
19                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem" CR LF   19                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem" CR LF
20                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI" CR LF   20                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI" CR LF
21                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities" CR LF   21                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities" CR LF
22                                    xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units" CR LF   22                                    xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units" CR LF
23                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s" CR LF   23                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s" CR LF
24                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct" CR LF   24                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct" CR LF
25                                    xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng" CR LF   25                                    xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng" CR LF
26                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent" CR LF   26                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent" CR LF
27                                    exclude-re sult-prefi xes="xsl m sxsl wwmod e wwlinks  wwfiles ww doc wwspli ts wwtoc w wbehaviors  wwnotes w wproject w wpage wwlo cale wwpro gress wwlo g wwfilesy stem wwuri  wwstring  wwunits ww filesext w wprojext w wimaging w wexsldoc" CR LF   27                                    exclude-re sult-prefi xes="xsl m sxsl wwmod e wwlinks  wwfiles ww doc wwspli ts wwtoc w wbehaviors  wwnotes w wproject w wpage wwlo cale wwpro gress wwlo g wwfilesy stem wwuri  wwstring  wwunits ww filesext w wprojext w wimaging w wexsldoc" CR LF
28   > CR LF   28   > CR LF
29    <xsl:key  name="wwsp lits-files -by-groupi d-type" ma tch="wwspl its:File"  use="conca t(@groupID , ':', @ty pe)" /> CR LF   29    <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-frame s-by-id" m atch="wwsp lits:Frame " use="@id " /> CR LF   30    <xsl:key  name="wwsp lits-frame s-by-id" m atch="wwsp lits:Frame " use="@id " /> CR LF
31    <xsl:key  name="wwto c-entry-by -id" match ="wwtoc:En try" use=" @id" /> CR LF   31    <xsl:key  name="wwto c-entry-by -id" match ="wwtoc:En try" use=" @id" /> CR LF
32    <xsl:key  name="wwbe haviors-pa ragraphs-b y-id" matc h="wwbehav iors:Parag raph" use= "@id" /> CR LF   32    <xsl:key  name="wwbe haviors-pa ragraphs-b y-id" matc h="wwbehav iors:Parag raph" use= "@id" /> CR LF
33    <xsl:key  name="wwbe haviors-pa ragraphs-b y-relatedt opic" matc h="wwbehav iors:Parag raph" use= "@relatedt opic" /> CR LF   33    <xsl:key  name="wwbe haviors-pa ragraphs-b y-relatedt opic" matc h="wwbehav iors:Parag raph" use= "@relatedt opic" /> CR LF
34    <xsl:key  name="wwbe haviors-fr ames-by-id " match="w wbehaviors :Frame" us e="@id" /> CR LF   34    <xsl:key  name="wwbe haviors-fr ames-by-id " match="w wbehaviors :Frame" us e="@id" /> CR LF
35    <xsl:key  name="wwbe haviors-ta bles-by-id " match="w wbehaviors :Table" us e="@id" /> CR LF   35    <xsl:key  name="wwbe haviors-ta bles-by-id " match="w wbehaviors :Table" us e="@id" /> CR LF
    36    <xsl:key  name="wwbe haviors-ma rkers-by-i d" match=" wwbehavior s:Marker"  use="@id"  /> CR LF
36    <xsl:key  name="wwdo c-paragrap hs-by-id"  match="wwd oc:Paragra ph" use="@ id" /> CR LF   37    <xsl:key  name="wwdo c-paragrap hs-by-id"  match="wwd oc:Paragra ph" use="@ id" /> CR LF
37    <xsl:key  name="wwno tes-notes- by-id" mat ch="wwnote s:Note" us e="@id" /> CR LF   38    <xsl:key  name="wwno tes-notes- by-id" mat ch="wwnote s:Note" us e="@id" /> CR LF
38    <xsl:key  name="wwfi les-files- by-path" m atch="wwfi les:File"  use="@path " /> CR LF   39    <xsl:key  name="wwfi les-files- by-path" m atch="wwfi les:File"  use="@path " /> CR LF
39    <xsl:key  name="wwpr oject-prop erty-by-na me" match= "wwproject :Property"  use="@Nam e"/> CR LF   40    <xsl:key  name="wwpr oject-prop erty-by-na me" match= "wwproject :Property"  use="@Nam e"/> CR LF
40   CR LF   41   CR LF
41   CR LF   42   CR LF
42    <xsl:temp late name= "Breadcrum bs"> CR LF   43    <xsl:temp late name= "Breadcrum bs"> CR LF
43     <xsl:par am name="P aramPageRu le" /> CR LF   44     <xsl:par am name="P aramPageRu le" /> CR LF
44     <xsl:par am name="P aramSplit"  /> CR LF   45     <xsl:par am name="P aramSplit"  /> CR LF
45     <xsl:par am name="P aramBreadc rumbTOCEnt ry" /> CR LF   46     <xsl:par am name="P aramBreadc rumbTOCEnt ry" /> CR LF
46   CR LF   47   CR LF
47     <xsl:for -each sele ct="$Param Breadcrumb TOCEntry/. ./ancestor -or-self:: wwtoc:Entr y"> CR LF   48     <xsl:for -each sele ct="$Param Breadcrumb TOCEntry/. ./ancestor -or-self:: wwtoc:Entr y"> CR LF
48      <xsl:va riable nam e="VarTOCE ntry" sele ct="." /> CR LF   49      <xsl:va riable nam e="VarTOCE ntry" sele ct="." /> CR LF
49   CR LF   50   CR LF
50      <!-- Em it entry - -> CR LF   51      <!-- Em it entry - -> CR LF
51      <!--             - -> CR LF   52      <!--             - -> CR LF
52      <xsl:ch oose> CR LF   53      <xsl:ch oose> CR LF
53       <xsl:w hen test=" string-len gth($VarTO CEntry/@pa th) &gt; 0 "> CR LF   54       <xsl:w hen test=" string-len gth($VarTO CEntry/@pa th) &gt; 0 "> CR LF
54        <!--  Entry with  link --> CR LF   55        <!--  Entry with  link --> CR LF
55        <!--                   --> CR LF   56        <!--                   --> CR LF
56        <xsl: variable n ame="VarRe lativePath " select=" wwuri:GetR elativeTo( $VarTOCEnt ry/@path,  $ParamSpli t/@path)"  /> CR LF   57        <xsl: variable n ame="VarRe lativePath " select=" wwuri:GetR elativeTo( $VarTOCEnt ry/@path,  $ParamSpli t/@path)"  /> CR LF
57   CR LF   58   CR LF
58        <html :a href="{ $VarRelati vePath}#{$ ParamBread crumbTOCEn try/@linki d}"> CR LF   59        <html :a href="{ $VarRelati vePath}#{$ ParamBread crumbTOCEn try/@linki d}"> CR LF
59         <xsl :call-temp late name= "Breadcrum bEntry"> CR LF   60         <xsl :call-temp late name= "Breadcrum bEntry"> CR LF
60          <xs l:with-par am name="P aramTOCEnt ry" select ="$VarTOCE ntry" /> CR LF   61          <xs l:with-par am name="P aramTOCEnt ry" select ="$VarTOCE ntry" /> CR LF
61         </xs l:call-tem plate> CR LF   62         </xs l:call-tem plate> CR LF
62        </htm l:a> CR LF   63        </htm l:a> CR LF
63       </xsl: when> CR LF   64       </xsl: when> CR LF
64   CR LF   65   CR LF
65       <xsl:o therwise> CR LF   66       <xsl:o therwise> CR LF
66        <!--  Entry with out link - -> CR LF   67        <!--  Entry with out link - -> CR LF
67        <!--                      - -> CR LF   68        <!--                      - -> CR LF
68        <xsl: call-templ ate name=" Breadcrumb Entry"> CR LF   69        <xsl: call-templ ate name=" Breadcrumb Entry"> CR LF
69         <xsl :with-para m name="Pa ramTOCEntr y" select= "$VarTOCEn try" /> CR LF   70         <xsl :with-para m name="Pa ramTOCEntr y" select= "$VarTOCEn try" /> CR LF
70        </xsl :call-temp late> CR LF   71        </xsl :call-temp late> CR LF
71       </xsl: otherwise> CR LF   72       </xsl: otherwise> CR LF
72      </xsl:c hoose> CR LF   73      </xsl:c hoose> CR LF
73   CR LF   74   CR LF
74      <!-- Em it separat or --> CR LF   75      <!-- Em it separat or --> CR LF
75      <!--                  --> CR LF   76      <!--                  --> CR LF
76      <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   77      <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
77      <xsl:ch oose> CR LF   78      <xsl:ch oose> CR LF
78       <xsl:w hen test=" string-len gth($VarBr eadcrumbsS eparator)  &gt; 0"> CR LF   79       <xsl:w hen test=" string-len gth($VarBr eadcrumbsS eparator)  &gt; 0"> CR LF
79        <xsl: value-of s elect="$Va rBreadcrum bsSeparato r" /> CR LF   80        <xsl: value-of s elect="$Va rBreadcrum bsSeparato r" /> CR LF
80       </xsl: when> CR LF   81       </xsl: when> CR LF
81   CR LF   82   CR LF
82       <xsl:o therwise> CR LF   83       <xsl:o therwise> CR LF
83        <xsl: text> : </ xsl:text> CR LF   84        <xsl: text> : </ xsl:text> CR LF
84       </xsl: otherwise> CR LF   85       </xsl: otherwise> CR LF
85      </xsl:c hoose> CR LF   86      </xsl:c hoose> CR LF
86     </xsl:fo r-each> CR LF   87     </xsl:fo r-each> CR LF
87   CR LF   88   CR LF
88     <!-- Emi t entry -- > CR LF   89     <!-- Emi t entry -- > CR LF
89     <!--             -- > CR LF   90     <!--             -- > CR LF
90     <xsl:cal l-template  name="Bre adcrumbEnt ry"> CR LF   91     <xsl:cal l-template  name="Bre adcrumbEnt ry"> CR LF
91      <xsl:wi th-param n ame="Param TOCEntry"  select="$P aramBreadc rumbTOCEnt ry" /> CR LF   92      <xsl:wi th-param n ame="Param TOCEntry"  select="$P aramBreadc rumbTOCEnt ry" /> CR LF
92     </xsl:ca ll-templat e> CR LF   93     </xsl:ca ll-templat e> CR LF
93    </xsl:tem plate> CR LF   94    </xsl:tem plate> CR LF
94   CR LF   95   CR LF
95   CR LF   96   CR LF
96    <xsl:temp late name= "Breadcrum bEntry"> CR LF   97    <xsl:temp late name= "Breadcrum bEntry"> CR LF
97     <xsl:par am name="P aramTOCEnt ry" /> CR LF   98     <xsl:par am name="P aramTOCEnt ry" /> CR LF
98   CR LF   99   CR LF
99     <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   100     <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
100      <xsl:va riable nam e="VarText " select=" ." /> CR LF   101      <xsl:va riable nam e="VarText " select=" ." /> CR LF
101   CR LF   102   CR LF
102      <xsl:va lue-of sel ect="$VarT ext/@value " /> CR LF   103      <xsl:va lue-of sel ect="$VarT ext/@value " /> CR LF
103     </xsl:fo r-each> CR LF   104     </xsl:fo r-each> CR LF
104    </xsl:tem plate> CR LF   105    </xsl:tem plate> CR LF
105   CR LF   106   CR LF
106   CR LF   107   CR LF
107    <xsl:temp late name= "Content-C ontent"> CR LF   108    <xsl:temp late name= "Content-C ontent"> CR LF
108     <xsl:par am name="P aramConten t" /> CR LF   109     <xsl:par am name="P aramConten t" /> CR LF
109     <xsl:par am name="P aramSplits " /> CR LF   110     <xsl:par am name="P aramSplits " /> CR LF
110     <xsl:par am name="P aramCargo"  /> CR LF   111     <xsl:par am name="P aramCargo"  /> CR LF
111     <xsl:par am name="P aramLinks"  /> CR LF   112     <xsl:par am name="P aramLinks"  /> CR LF
112     <xsl:par am name="P aramTOCDat a" /> CR LF   113     <xsl:par am name="P aramTOCDat a" /> CR LF
113     <xsl:par am name="P aramSplit"  /> CR LF   114     <xsl:par am name="P aramSplit"  /> CR LF
114   CR LF   115   CR LF
115     <!-- Con tent --> CR LF   116     <!-- Con tent --> CR LF
116     <!--          --> CR LF   117     <!--          --> CR LF
117     <xsl:app ly-templat es select= "$ParamCon tent" mode ="wwmode:c ontent"> CR LF   118     <xsl:app ly-templat es select= "$ParamCon tent" mode ="wwmode:c ontent"> CR LF
118      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   119      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
119      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF   120      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF
120      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   121      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
121      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> CR LF   122      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> CR LF
122      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   123      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
123     </xsl:ap ply-templa tes> CR LF   124     </xsl:ap ply-templa tes> CR LF
124   CR LF   125   CR LF
125     <!-- Rel ated Topic s --> CR LF   126     <!-- Rel ated Topic s --> CR LF
126     <!--                  --> CR LF   127     <!--                  --> CR LF
127     <xsl:cal l-template  name="Rel atedTopics "> CR LF   128     <xsl:cal l-template  name="Rel atedTopics "> CR LF
128      <xsl:wi th-param n ame="Param Content" s elect="$Pa ramContent " /> CR LF   129      <xsl:wi th-param n ame="Param Content" s elect="$Pa ramContent " /> CR LF
129      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   130      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
130      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF   131      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF
131      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   132      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
132      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   133      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
133     </xsl:ca ll-templat e> CR LF   134     </xsl:ca ll-templat e> CR LF
134    </xsl:tem plate> CR LF   135    </xsl:tem plate> CR LF
135   CR LF   136   CR LF
136   CR LF   137   CR LF
137    <xsl:temp late name= "RelatedTo pics"> CR LF   138    <xsl:temp late name= "RelatedTo pics"> CR LF
138     <xsl:par am name="P aramConten t" /> CR LF   139     <xsl:par am name="P aramConten t" /> CR LF
139     <xsl:par am name="P aramSplits " /> CR LF   140     <xsl:par am name="P aramSplits " /> CR LF
140     <xsl:par am name="P aramCargo"  /> CR LF   141     <xsl:par am name="P aramCargo"  /> CR LF
141     <xsl:par am name="P aramLinks"  /> CR LF   142     <xsl:par am name="P aramLinks"  /> CR LF
142     <xsl:par am name="P aramSplit"  /> CR LF   143     <xsl:par am name="P aramSplit"  /> CR LF
143   CR LF   144   CR LF
144     <xsl:var iable name ="VarRelat edTopicPar agraphsAsX ML"> CR LF   145     <xsl:var iable name ="VarRelat edTopicPar agraphsAsX ML"> CR LF
145      <xsl:ca ll-templat e name="Re latedTopic Paragraphs "> CR LF   146      <xsl:ca ll-templat e name="Re latedTopic Paragraphs "> CR LF
146       <xsl:w ith-param  name="Para mContent"  select="$P aramConten t" /> CR LF   147       <xsl:w ith-param  name="Para mContent"  select="$P aramConten t" /> CR LF
147       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   148       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
148       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   149       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
149      </xsl:c all-templa te> CR LF   150      </xsl:c all-templa te> CR LF
150     </xsl:va riable> CR LF   151     </xsl:va riable> CR LF
151     <xsl:var iable name ="VarRelat edTopicPar agraphs" s elect="msx sl:node-se t($VarRela tedTopicPa ragraphsAs XML)/wwdoc :Paragraph " /> CR LF   152     <xsl:var iable name ="VarRelat edTopicPar agraphs" s elect="msx sl:node-se t($VarRela tedTopicPa ragraphsAs XML)/wwdoc :Paragraph " /> CR LF
152   CR LF   153   CR LF
153     <xsl:if  test="coun t($VarRela tedTopicPa ragraphs)  &gt; 0"> CR LF   154     <xsl:if  test="coun t($VarRela tedTopicPa ragraphs)  &gt; 0"> CR LF
154      <html:h r /> CR LF   155      <html:h r /> CR LF
155      <html:d l> CR LF   156      <html:d l> CR LF
156       <html: dt> CR LF   157       <html: dt> CR LF
157        <xsl: value-of s elect="$Gl obalLocale /wwlocale: Locale/wwl ocale:Stri ngs/wwloca le:String[ @name = 'R elatedTopi cs']/@valu e" /> CR LF   158        <xsl: value-of s elect="$Gl obalLocale /wwlocale: Locale/wwl ocale:Stri ngs/wwloca le:String[ @name = 'R elatedTopi cs']/@valu e" /> CR LF
158       </html :dt> CR LF   159       </html :dt> CR LF
159   CR LF   160   CR LF
160       <xsl:f or-each se lect="$Var RelatedTop icParagrap hs"> CR LF   161       <xsl:f or-each se lect="$Var RelatedTop icParagrap hs"> CR LF
161        <xsl: variable n ame="VarRe latedTopic Paragraph"  select=". " /> CR LF   162        <xsl: variable n ame="VarRe latedTopic Paragraph"  select=". " /> CR LF
162   CR LF   163   CR LF
163        <xsl: variable n ame="VarOv errideRule " select=" wwprojext: GetOverrid eRule('Par agraph', $ VarRelated TopicParag raph/@styl ename, $Pa ramSplit/@ documentID , $VarRela tedTopicPa ragraph/@i d)" /> CR LF   164        <xsl: variable n ame="VarOv errideRule " select=" wwprojext: GetOverrid eRule('Par agraph', $ VarRelated TopicParag raph/@styl ename, $Pa ramSplit/@ documentID , $VarRela tedTopicPa ragraph/@i d)" /> CR LF
164        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="$Para mCargo/wwb ehaviors:B ehaviors[1 ]" /> CR LF   165        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="$Para mCargo/wwb ehaviors:B ehaviors[1 ]" /> CR LF
165   CR LF   166   CR LF
166        <html :dd> CR LF   167        <html :dd> CR LF
167         <xsl :call-temp late name= "Paragraph -Normal"> CR LF   168         <xsl :call-temp late name= "Paragraph -Normal"> CR LF
168          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   169          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
169          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF   170          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF
170          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF   171          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF
171          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   172          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
172          <xs l:with-par am name="P aramParagr aph" selec t="$VarRel atedTopicP aragraph"  /> CR LF   173          <xs l:with-par am name="P aramParagr aph" selec t="$VarRel atedTopicP aragraph"  /> CR LF
173          <xs l:with-par am name="P aramStyleN ame" selec t="$VarRel atedTopicP aragraph/@ stylename"  /> CR LF   174          <xs l:with-par am name="P aramStyleN ame" selec t="$VarRel atedTopicP aragraph/@ stylename"  /> CR LF
174          <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> CR LF   175          <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> CR LF
175          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> CR LF   176          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> CR LF
176         </xs l:call-tem plate> CR LF   177         </xs l:call-tem plate> CR LF
177        </htm l:dd> CR LF   178        </htm l:dd> CR LF
178       </xsl: for-each> CR LF   179       </xsl: for-each> CR LF
179      </html: dl> CR LF   180      </html: dl> CR LF
180     </xsl:if > CR LF   181     </xsl:if > CR LF
181    </xsl:tem plate> CR LF   182    </xsl:tem plate> CR LF
182   CR LF   183   CR LF
183   CR LF   184   CR LF
184    <xsl:temp late name= "RelatedTo picParagra phs"> CR LF   185    <xsl:temp late name= "RelatedTo picParagra phs"> CR LF
185     <xsl:par am name="P aramConten t" /> CR LF   186     <xsl:par am name="P aramConten t" /> CR LF
186     <xsl:par am name="P aramCargo"  /> CR LF   187     <xsl:par am name="P aramCargo"  /> CR LF
187     <xsl:par am name="P aramSplit"  /> CR LF   188     <xsl:par am name="P aramSplit"  /> CR LF
188   CR LF   189   CR LF
189     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF   190     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF
190      <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   191      <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
191   CR LF   192   CR LF
192      <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   193      <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
193       <xsl:v ariable na me="VarBeh aviorParag raph" sele ct="." /> CR LF   194       <xsl:v ariable na me="VarBeh aviorParag raph" sele ct="." /> CR LF
194   CR LF   195   CR LF
195       <xsl:f or-each se lect="$Par amContent[ 1]"> CR LF   196       <xsl:f or-each se lect="$Par amContent[ 1]"> CR LF
196        <xsl: for-each s elect="key ('wwdoc-pa ragraphs-b y-id', $Va rBehaviorP aragraph/@ id)[1]"> CR LF   197        <xsl: for-each s elect="key ('wwdoc-pa ragraphs-b y-id', $Va rBehaviorP aragraph/@ id)[1]"> CR LF
197         <xsl :variable  name="VarP aragraph"  select="."  /> CR LF   198         <xsl :variable  name="VarP aragraph"  select="."  /> CR LF
198   CR LF   199   CR LF
199         <!--  Paragraph  has link?  --> CR LF   200         <!--  Paragraph  has link?  --> CR LF
200         <!--                        --> CR LF   201         <!--                        --> CR LF
201         <xsl :variable  name="VarC hildLinks"  select="$ VarParagra ph//wwdoc: Link[count ($VarParag raph | anc estor::wwd oc:Paragra ph[1]) = 1 ]" /> CR LF   202         <xsl :variable  name="VarC hildLinks"  select="$ VarParagra ph//wwdoc: Link[count ($VarParag raph | anc estor::wwd oc:Paragra ph[1]) = 1 ]" /> CR LF
202         <xsl :variable  name="VarC hildLinksC ount" sele ct="count( $VarChildL inks)" /> CR LF   203         <xsl :variable  name="VarC hildLinksC ount" sele ct="count( $VarChildL inks)" /> CR LF
203         <xsl :if test=" $VarChildL inksCount  &gt; 0"> CR LF   204         <xsl :if test=" $VarChildL inksCount  &gt; 0"> CR LF
204          <!- - Emit par agraph --> CR LF   205          <!- - Emit par agraph --> CR LF
205          <!- -                 --> CR LF   206          <!- -                 --> CR LF
206          <ww doc:Paragr aph> CR LF   207          <ww doc:Paragr aph> CR LF
207           <x sl:copy-of  select="$ VarParagra ph/@*" /> CR LF   208           <x sl:copy-of  select="$ VarParagra ph/@*" /> CR LF
208   CR LF   209   CR LF
209           <! -- Insure  link is de fined --> CR LF   210           <! -- Insure  link is de fined --> CR LF
210           <! --                          --> CR LF   211           <! --                          --> CR LF
211           <x sl:if test ="count($V arParagrap h/wwdoc:Li nk) = 0"> CR LF   212           <x sl:if test ="count($V arParagrap h/wwdoc:Li nk) = 0"> CR LF
212            < xsl:copy-o f select=" $VarChildL inks[1]" / > CR LF   213            < xsl:copy-o f select=" $VarChildL inks[1]" / > CR LF
213           </ xsl:if> CR LF   214           </ xsl:if> CR LF
214   CR LF   215   CR LF
215           <x sl:copy-of  select="$ VarParagra ph/*" /> CR LF   216           <x sl:copy-of  select="$ VarParagra ph/*" /> CR LF
216          </w wdoc:Parag raph> CR LF   217          </w wdoc:Parag raph> CR LF
217         </xs l:if> CR LF   218         </xs l:if> CR LF
218        </xsl :for-each> CR LF   219        </xsl :for-each> CR LF
219       </xsl: for-each> CR LF   220       </xsl: for-each> CR LF
220      </xsl:f or-each> CR LF   221      </xsl:f or-each> CR LF
221     </xsl:fo r-each> CR LF   222     </xsl:fo r-each> CR LF
222    </xsl:tem plate> CR LF   223    </xsl:tem plate> CR LF
223   CR LF   224   CR LF
224   CR LF   225   CR LF
225    <xsl:temp late name= "Content-N otes"> CR LF   226    <xsl:temp late name= "Content-N otes"> CR LF
226     <xsl:par am name="P aramNotes"  /> CR LF   227     <xsl:par am name="P aramNotes"  /> CR LF
227     <xsl:par am name="P aramSplits " /> CR LF   228     <xsl:par am name="P aramSplits " /> CR LF
228     <xsl:par am name="P aramCargo"  /> CR LF   229     <xsl:par am name="P aramCargo"  /> CR LF
229     <xsl:par am name="P aramLinks"  /> CR LF   230     <xsl:par am name="P aramLinks"  /> CR LF
230     <xsl:par am name="P aramTOCDat a" /> CR LF   231     <xsl:par am name="P aramTOCDat a" /> CR LF
231     <xsl:par am name="P aramSplit"  /> CR LF   232     <xsl:par am name="P aramSplit"  /> CR LF
232   CR LF   233   CR LF
233     <xsl:if  test="coun t($ParamNo tes[1]) =  1"> CR LF   234     <xsl:if  test="coun t($ParamNo tes[1]) =  1"> CR LF
234      <html:h r /> CR LF   235      <html:h r /> CR LF
235      <xsl:fo r-each sel ect="$Para mNotes"> CR LF   236      <xsl:fo r-each sel ect="$Para mNotes"> CR LF
236       <xsl:v ariable na me="VarNot e" select= "." /> CR LF   237       <xsl:v ariable na me="VarNot e" select= "." /> CR LF
237   CR LF   238   CR LF
238       <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   239       <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
239   CR LF   240   CR LF
240       <xsl:i f test="st ring-lengt h($VarNote Number) &g t; 0"> CR LF   241       <xsl:i f test="st ring-lengt h($VarNote Number) &g t; 0"> CR LF
241        <html :table wid th="100%"  border="0"  cellpaddi ng="0" cel lspacing=" 0" summary =""> CR LF   242        <html :table wid th="100%"  border="0"  cellpaddi ng="0" cel lspacing=" 0" summary =""> CR LF
242         <htm l:tr valig n="baselin e"> CR LF   243         <htm l:tr valig n="baselin e"> CR LF
243          <ht ml:td> CR LF   244          <ht ml:td> CR LF
244           <h tml:p><htm l:font siz e="-1"> CR LF   245           <h tml:p><htm l:font siz e="-1"> CR LF
245            < html:a nam e="{$VarNo te/@id}"> CR LF   246            < html:a nam e="{$VarNo te/@id}"> CR LF
246              <xsl:attri bute name= "href"> CR LF   247              <xsl:attri bute name= "href"> CR LF
247               <xsl:text >#wwfootno te_inline_ </xsl:text > CR LF   248               <xsl:text >#wwfootno te_inline_ </xsl:text > CR LF
248               <xsl:valu e-of selec t="$VarNot e/@id" /> CR LF   249               <xsl:valu e-of selec t="$VarNot e/@id" /> CR LF
249              </xsl:attr ibute> CR LF   250              </xsl:attr ibute> CR LF
250   CR LF   251   CR LF
251              <xsl:value -of select ="$VarNote Number"/> CR LF   252              <xsl:value -of select ="$VarNote Number"/> CR LF
252            < /html:a> CR LF   253            < /html:a> CR LF
253           </ html:font> </html:p> CR LF   254           </ html:font> </html:p> CR LF
254          </h tml:td> CR LF   255          </h tml:td> CR LF
255          <ht ml:td> CR LF   256          <ht ml:td> CR LF
256           <x sl:apply-t emplates s elect="$Va rNote/*" m ode="wwmod e:content" > CR LF   257           <x sl:apply-t emplates s elect="$Va rNote/*" m ode="wwmod e:content" > CR LF
257            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF   258            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF
258            < xsl:with-p aram name= "ParamCarg o" select= "$ParamCar go" /> CR LF   259            < xsl:with-p aram name= "ParamCarg o" select= "$ParamCar go" /> CR LF
259            < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" /> CR LF   260            < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" /> CR LF
260            < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" /> CR LF   261            < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" /> CR LF
261            < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" /> CR LF   262            < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" /> CR LF
262           </ xsl:apply- templates> CR LF   263           </ xsl:apply- templates> CR LF
263          </h tml:td> CR LF   264          </h tml:td> CR LF
264         </ht ml:tr> CR LF   265         </ht ml:tr> CR LF
265        </htm l:table> CR LF   266        </htm l:table> CR LF
266       </xsl: if> CR LF   267       </xsl: if> CR LF
267      </xsl:f or-each> CR LF   268      </xsl:f or-each> CR LF
268     </xsl:if > CR LF   269     </xsl:if > CR LF
269    </xsl:tem plate> CR LF   270    </xsl:tem plate> CR LF
270   CR LF   271   CR LF
271   CR LF   272   CR LF
272    <xsl:temp late name= "Content-B ullet"> CR LF   273    <xsl:temp late name= "Content-B ullet"> CR LF
273     <xsl:par am name="P aramSplits " /> CR LF   274     <xsl:par am name="P aramSplits " /> CR LF
274     <xsl:par am name="P aramCargo"  /> CR LF   275     <xsl:par am name="P aramCargo"  /> CR LF
275     <xsl:par am name="P aramLinks"  /> CR LF   276     <xsl:par am name="P aramLinks"  /> CR LF
276     <xsl:par am name="P aramSplit"  /> CR LF   277     <xsl:par am name="P aramSplit"  /> CR LF
277     <xsl:par am name="P aramParagr aph" /> CR LF   278     <xsl:par am name="P aramParagr aph" /> CR LF
278     <xsl:par am name="P aramCharac ter" /> CR LF   279     <xsl:par am name="P aramCharac ter" /> CR LF
279     <xsl:par am name="P aramImage"  /> CR LF   280     <xsl:par am name="P aramImage"  /> CR LF
280     <xsl:par am name="P aramSepara tor" /> CR LF   281     <xsl:par am name="P aramSepara tor" /> CR LF
281     <xsl:par am name="P aramStyle"  /> CR LF   282     <xsl:par am name="P aramStyle"  /> CR LF
282   CR LF   283   CR LF
283     <xsl:cho ose> CR LF   284     <xsl:cho ose> CR LF
284      <xsl:wh en test="s tring-leng th($ParamS tyle) &gt;  0"> CR LF   285      <xsl:wh en test="s tring-leng th($ParamS tyle) &gt;  0"> CR LF
285   CR LF   286   CR LF
286       <!-- G et rule -- > CR LF   287       <!-- G et rule -- > CR LF
287       <!--           -- > CR LF   288       <!--           -- > CR LF
288       <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Character' , $ParamSt yle)" /> CR LF   289       <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Character' , $ParamSt yle)" /> CR LF
289   CR LF   290   CR LF
290       <!-- R esolve pro ject prope rties --> CR LF   291       <!-- R esolve pro ject prope rties --> CR LF
291       <!--                               --> CR LF   292       <!--                               --> CR LF
292       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> CR LF   293       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> CR LF
293        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > CR LF   294        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > CR LF
294         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramParagr aph" /> CR LF   295         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramParagr aph" /> CR LF
295         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRul e/wwprojec t:Properti es/wwproje ct:Propert y" /> CR LF   296         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRul e/wwprojec t:Properti es/wwproje ct:Propert y" /> CR LF
296         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yle" /> CR LF   297         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yle" /> CR LF
297         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> CR LF   298         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> CR LF
298         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mParagraph /wwdoc:Num ber[1]/wwd oc:Style"  /> CR LF   299         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mParagraph /wwdoc:Num ber[1]/wwd oc:Style"  /> CR LF
299        </xsl :call-temp late> CR LF   300        </xsl :call-temp late> CR LF
300       </xsl: variable> CR LF   301       </xsl: variable> CR LF
301       <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   302       <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
302   CR LF   303   CR LF
303       <!-- H TML proper ties --> CR LF   304       <!-- H TML proper ties --> CR LF
304       <!--                   --> CR LF   305       <!--                   --> CR LF
305       <xsl:v ariable na me="VarHTM LPropertie sAsXML"> CR LF   306       <xsl:v ariable na me="VarHTM LPropertie sAsXML"> CR LF
306        <xsl: call-templ ate name=" HTML-Trans lateProjec tPropertie s"> CR LF   307        <xsl: call-templ ate name=" HTML-Trans lateProjec tPropertie s"> CR LF
307         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> CR LF   308         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> CR LF
308         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" /> CR LF   309         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" /> CR LF
309         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   310         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
310        </xsl :call-temp late> CR LF   311        </xsl :call-temp late> CR LF
311       </xsl: variable> CR LF   312       </xsl: variable> CR LF
312       <xsl:v ariable na me="VarHTM LPropertie s" select= "msxsl:nod e-set($Var HTMLProper tiesAsXML) /wwproject :Property"  /> CR LF   313       <xsl:v ariable na me="VarHTM LPropertie s" select= "msxsl:nod e-set($Var HTMLProper tiesAsXML) /wwproject :Property"  /> CR LF
313   CR LF   314   CR LF
314       <xsl:v ariable na me="VarBul letPropert iesAsXML"> CR LF   315       <xsl:v ariable na me="VarBul letPropert iesAsXML"> CR LF
315        <wwdo c:BulletPr operties> CR LF   316        <wwdo c:BulletPr operties> CR LF
316          <xs l:if test= "string-le ngth($Para mImage) &g t; 0"> CR LF   317          <xs l:if test= "string-le ngth($Para mImage) &g t; 0"> CR LF
317           <x sl:variabl e name="Va rImagePath "> CR LF   318           <x sl:variabl e name="Va rImagePath "> CR LF
318            < xsl:call-t emplate na me="URI-Re solveProje ctFileURI" > CR LF   319            < xsl:call-t emplate na me="URI-Re solveProje ctFileURI" > CR LF
319              <xsl:with- param name ="ParamFro mAbsoluteU RI" select ="$ParamSp lit/@path"  /> CR LF   320              <xsl:with- param name ="ParamFro mAbsoluteU RI" select ="$ParamSp lit/@path"  /> CR LF
320              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF   321              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF
321              <xsl:with- param name ="ParamURI " select=" $ParamImag e" /> CR LF   322              <xsl:with- param name ="ParamURI " select=" $ParamImag e" /> CR LF
322            < /xsl:call- template> CR LF   323            < /xsl:call- template> CR LF
323           </ xsl:variab le> CR LF   324           </ xsl:variab le> CR LF
324   CR LF   325   CR LF
325           <! -- Image - -> CR LF   326           <! -- Image - -> CR LF
326           <! --       - -> CR LF   327           <! --       - -> CR LF
327           <w wdoc:Attri bute name= "bullet-im age-path"  value="{$V arImagePat h}" /> CR LF   328           <w wdoc:Attri bute name= "bullet-im age-path"  value="{$V arImagePat h}" /> CR LF
328          </x sl:if> CR LF   329          </x sl:if> CR LF
329   CR LF   330   CR LF
330          <!- - Characte rs --> CR LF   331          <!- - Characte rs --> CR LF
331          <!- -             --> CR LF   332          <!- -             --> CR LF
332          <ww doc:Attrib ute name=" bullet-cha racter" va lue="{$Par amCharacte r}" /> CR LF   333          <ww doc:Attrib ute name=" bullet-cha racter" va lue="{$Par amCharacte r}" /> CR LF
333   CR LF   334   CR LF
334          <!- - Separato r --> CR LF   335          <!- - Separato r --> CR LF
335          <!- -            --> CR LF   336          <!- -            --> CR LF
336          <ww doc:Attrib ute name=" bullet-sep arator" va lue="{$Par amSeparato r}" /> CR LF   337          <ww doc:Attrib ute name=" bullet-sep arator" va lue="{$Par amSeparato r}" /> CR LF
337        </wwd oc:BulletP roperties> CR LF   338        </wwd oc:BulletP roperties> CR LF
338       </xsl: variable> CR LF   339       </xsl: variable> CR LF
339       <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)/wwdoc :BulletPro perties" / > CR LF   340       <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)/wwdoc :BulletPro perties" / > CR LF
340   CR LF   341   CR LF
341        <!--  Format num bering              - -> CR LF   342        <!--  Format num bering              - -> CR LF
342        <!--  Begin form atting cal l chain. - -> CR LF   343        <!--  Begin form atting cal l chain. - -> CR LF
343        <!--                                 - -> CR LF   344        <!--                                 - -> CR LF
344        <xsl: call-templ ate name=" Formatting -FontTagPr operties"> CR LF   345        <xsl: call-templ ate name=" Formatting -FontTagPr operties"> CR LF
345         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarHTM LPropertie s" /> CR LF   346         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarHTM LPropertie s" /> CR LF
346         <xsl :with-para m name="Pa ramContext " select=" $VarBullet Properties " /> CR LF   347         <xsl :with-para m name="Pa ramContext " select=" $VarBullet Properties " /> CR LF
347         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarRu le" /> CR LF   348         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarRu le" /> CR LF
348         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   349         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
349         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   350         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
350         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   351         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
351         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   352         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
    353         <xsl :with-para m name="Pa ramNumberC ontext" se lect="'Par agraph'" / > CR LF
352        </xsl :call-temp late> CR LF   354        </xsl :call-temp late> CR LF
353      </xsl:w hen> CR LF   355      </xsl:w hen> CR LF
354   CR LF   356   CR LF
355      <xsl:ot herwise> CR LF   357      <xsl:ot herwise> CR LF
356       <xsl:i f test="st ring-lengt h($ParamIm age) &gt;  0"> CR LF   358       <xsl:i f test="st ring-lengt h($ParamIm age) &gt;  0"> CR LF
357        <!--  Get absolu te path fo r imaging  info --> CR LF   359        <!--  Get absolu te path fo r imaging  info --> CR LF
358        <!--                                        --> CR LF   360        <!--                                        --> CR LF
359        <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   361        <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
360        <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Get Info($VarI mageFileSy stemPath)"  /> CR LF   362        <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Get Info($VarI mageFileSy stemPath)"  /> CR LF
361   CR LF   363   CR LF
362        <xsl: variable n ame="VarIm agePath"> CR LF   364        <xsl: variable n ame="VarIm agePath"> CR LF
363         <xsl :call-temp late name= "URI-Resol veProjectF ileURI"> CR LF   365         <xsl :call-temp late name= "URI-Resol veProjectF ileURI"> CR LF
364          <xs l:with-par am name="P aramFromAb soluteURI"  select="$ ParamSplit /@path" /> CR LF   366          <xs l:with-par am name="P aramFromAb soluteURI"  select="$ ParamSplit /@path" /> CR LF
365          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   367          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
366          <xs l:with-par am name="P aramURI" s elect="$Pa ramImage"  /> CR LF   368          <xs l:with-par am name="P aramURI" s elect="$Pa ramImage"  /> CR LF
367         </xs l:call-tem plate> CR LF   369         </xs l:call-tem plate> CR LF
368        </xsl :variable> CR LF   370        </xsl :variable> CR LF
369   CR LF   371   CR LF
370        <!--  Image --> CR LF   372        <!--  Image --> CR LF
371        <!--        --> CR LF   373        <!--        --> CR LF
372        <html :img src=" {$VarImage Path}" alt ="*" borde r="0" widt h="{$VarIm ageInfo/@w idth}" hei ght="{$Var ImageInfo/ @height}"  /> CR LF   374        <html :img src=" {$VarImage Path}" alt ="*" borde r="0" widt h="{$VarIm ageInfo/@w idth}" hei ght="{$Var ImageInfo/ @height}"  /> CR LF
373       </xsl: if> CR LF   375       </xsl: if> CR LF
374   CR LF   376   CR LF
375       <!-- C haracters  --> CR LF   377       <!-- C haracters  --> CR LF
376       <!--              --> CR LF   378       <!--              --> CR LF
377       <xsl:v alue-of se lect="$Par amCharacte r" /> CR LF   379       <xsl:v alue-of se lect="$Par amCharacte r" /> CR LF
378   CR LF   380   CR LF
379       <!-- S eparator - -> CR LF   381       <!-- S eparator - -> CR LF
380       <!--            - -> CR LF   382       <!--            - -> CR LF
381       <xsl:v alue-of se lect="$Par amSeparato r" /> CR LF   383       <xsl:v alue-of se lect="$Par amSeparato r" /> CR LF
382      </xsl:o therwise> CR LF   384      </xsl:o therwise> CR LF
383     </xsl:ch oose> CR LF   385     </xsl:ch oose> CR LF
384    </xsl:tem plate> CR LF   386    </xsl:tem plate> CR LF
385   CR LF   387   CR LF
386   CR LF   388   CR LF
387    <xsl:temp late name= "Notes-Num ber"> CR LF   389    <xsl:temp late name= "Notes-Num ber"> CR LF
388     <xsl:par am name="P aramNotes"  /> CR LF   390     <xsl:par am name="P aramNotes"  /> CR LF
389   CR LF   391   CR LF
390     <wwnotes :NoteNumbe ring versi on="1.0"> CR LF   392     <wwnotes :NoteNumbe ring versi on="1.0"> CR LF
391      <xsl:fo r-each sel ect="$Para mNotes"> CR LF   393      <xsl:fo r-each sel ect="$Para mNotes"> CR LF
392       <xsl:v ariable na me="VarNot e" select= "." /> CR LF   394       <xsl:v ariable na me="VarNot e" select= "." /> CR LF
393   CR LF   395   CR LF
394       <wwnot es:Note id ="{$VarNot e/@id}" nu mber="{pos ition()}"  /> CR LF   396       <wwnot es:Note id ="{$VarNot e/@id}" nu mber="{pos ition()}"  /> CR LF
395      </xsl:f or-each> CR LF   397      </xsl:f or-each> CR LF
396     </wwnote s:NoteNumb ering> CR LF   398     </wwnote s:NoteNumb ering> CR LF
397    </xsl:tem plate> CR LF   399    </xsl:tem plate> CR LF
398   CR LF   400   CR LF
399   CR LF   401   CR LF
400    <xsl:temp late name= "Content-B ulletPrope rties"> CR LF   402    <xsl:temp late name= "Content-B ulletPrope rties"> CR LF
401     <xsl:par am name="P aramProper ties" /> CR LF   403     <xsl:par am name="P aramProper ties" /> CR LF
402   CR LF   404   CR LF
403     <xsl:var iable name ="VarBulle tImagePath " select=" $ParamProp erties/wwd oc:Attribu te[@name =  'bullet-i mage-path' ]/@value"  /> CR LF   405     <xsl:var iable name ="VarBulle tImagePath " select=" $ParamProp erties/wwd oc:Attribu te[@name =  'bullet-i mage-path' ]/@value"  /> CR LF
404     <xsl:var iable name ="VarBulle tCharacter " select=" $ParamProp erties/wwd oc:Attribu te[@name =  'bullet-c haracter'] /@value" / > CR LF   406     <xsl:var iable name ="VarBulle tCharacter " select=" $ParamProp erties/wwd oc:Attribu te[@name =  'bullet-c haracter'] /@value" / > CR LF
405     <xsl:var iable name ="VarBulle tSeparator " select=" $ParamProp erties/wwd oc:Attribu te[@name =  'bullet-s eparator'] /@value" / > CR LF   407     <xsl:var iable name ="VarBulle tSeparator " select=" $ParamProp erties/wwd oc:Attribu te[@name =  'bullet-s eparator'] /@value" / > CR LF
406   CR LF   408   CR LF
407     <!-- Bul let image  --> CR LF   409     <!-- Bul let image  --> CR LF
408     <!--                --> CR LF   410     <!--                --> CR LF
409     <xsl:if  test="stri ng-length( $VarBullet ImagePath)  &gt; 0"> CR LF   411     <xsl:if  test="stri ng-length( $VarBullet ImagePath)  &gt; 0"> CR LF
410      <html:i mg src="{$ VarBulletI magePath}"  alt="Para graphBulle t" border= "0" /> CR LF   412      <html:i mg src="{$ VarBulletI magePath}"  alt="Para graphBulle t" border= "0" /> CR LF
411     </xsl:if > CR LF   413     </xsl:if > CR LF
412   CR LF   414   CR LF
413     <!-- Bul let charac ter --> CR LF   415     <!-- Bul let charac ter --> CR LF
414     <!--                    --> CR LF   416     <!--                    --> CR LF
415     <xsl:val ue-of sele ct="$VarBu lletCharac ter"/> CR LF   417     <xsl:val ue-of sele ct="$VarBu lletCharac ter"/> CR LF
416   CR LF   418   CR LF
417     <!-- Bul let separa tor --> CR LF   419     <!-- Bul let separa tor --> CR LF
418     <!--                    --> CR LF   420     <!--                    --> CR LF
419     <xsl:val ue-of sele ct="$VarBu lletSepara tor"/> CR LF   421     <xsl:val ue-of sele ct="$VarBu lletSepara tor"/> CR LF
420    </xsl:tem plate> CR LF   422    </xsl:tem plate> CR LF
421   CR LF   423   CR LF
422   CR LF   424   CR LF
423    <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:content" > CR LF   425    <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:content" > CR LF
424     <xsl:par am name="P aramSplits " /> CR LF   426     <xsl:par am name="P aramSplits " /> CR LF
425     <xsl:par am name="P aramCargo"  /> CR LF   427     <xsl:par am name="P aramCargo"  /> CR LF
426     <xsl:par am name="P aramLinks"  /> CR LF   428     <xsl:par am name="P aramLinks"  /> CR LF
427     <xsl:par am name="P aramTOCDat a" /> CR LF   429     <xsl:par am name="P aramTOCDat a" /> CR LF
428     <xsl:par am name="P aramSplit"  /> CR LF   430     <xsl:par am name="P aramSplit"  /> CR LF
429   CR LF   431   CR LF
430     <xsl:var iable name ="VarParag raph" sele ct="." /> CR LF   432     <xsl:var iable name ="VarParag raph" sele ct="." /> CR LF
431   CR LF   433   CR LF
432     <!-- Abo rted? --> CR LF   434     <!-- Abo rted? --> CR LF
433     <!--           --> CR LF   435     <!--           --> CR LF
434     <xsl:if  test="not( wwprogress :Abort())" > CR LF   436     <xsl:if  test="not( wwprogress :Abort())" > CR LF
435      <xsl:va riable nam e="VarCont extRule" s elect="wwp rojext:Get ContextRul e('Paragra ph', $VarP aragraph/@ stylename,  $ParamSpl it/@docume ntID, $Var Paragraph/ @id)" /> CR LF   437      <xsl:va riable nam e="VarCont extRule" s elect="wwp rojext:Get ContextRul e('Paragra ph', $VarP aragraph/@ stylename,  $ParamSpl it/@docume ntID, $Var Paragraph/ @id)" /> CR LF
436      <xsl:va riable nam e="VarGene rateOutput Option" se lect="$Var ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'gene rate-outpu t']/@Value " /> CR LF   438      <xsl:va riable nam e="VarGene rateOutput Option" se lect="$Var ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'gene rate-outpu t']/@Value " /> CR LF
437      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF   439      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF
438      <xsl:if  test="$Va rGenerateO utput"> CR LF   440      <xsl:if  test="$Va rGenerateO utput"> CR LF
439       <!-- R elated Top ic Only or  Popup Onl y? --> CR LF   441       <!-- R elated Top ic Only or  Popup Onl y? --> CR LF
440       <!--                                       --> CR LF   442       <!--                                       --> CR LF
441       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF   443       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF
442        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="key(' wwbehavior s-paragrap hs-by-id',  $VarParag raph/@id)[ 1]" /> CR LF   444        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="key(' wwbehavior s-paragrap hs-by-id',  $VarParag raph/@id)[ 1]" /> CR LF
443        <xsl: variable n ame="VarIn PopupPage"  select="c ount($Para mCargo/wwb ehaviors:P opupPage)  &gt; 0" /> CR LF   445        <xsl: variable n ame="VarIn PopupPage"  select="c ount($Para mCargo/wwb ehaviors:P opupPage)  &gt; 0" /> CR LF
444        <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   446        <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
445        <xsl: variable n ame="VarRe latedTopic Only" sele ct="$VarPa ragraphBeh avior/@rel atedtopic  = 'define- no-output' " /> CR LF   447        <xsl: variable n ame="VarRe latedTopic Only" sele ct="$VarPa ragraphBeh avior/@rel atedtopic  = 'define- no-output' " /> CR LF
446   CR LF   448   CR LF
447        <xsl: if test="$ VarInPopup Page or (n ot($VarPop upOnly) an d not($Var RelatedTop icOnly))"> CR LF   449        <xsl: if test="$ VarInPopup Page or (n ot($VarPop upOnly) an d not($Var RelatedTop icOnly))"> CR LF
448         <!--  Paragraph  --> CR LF   450         <!--  Paragraph  --> CR LF
449         <!--             --> CR LF   451         <!--             --> CR LF
450         <xsl :call-temp late name= "Paragraph "> CR LF   452         <xsl :call-temp late name= "Paragraph "> CR LF
451          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   453          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
452          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF   454          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF
453          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF   455          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF
454          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   456          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
455          <xs l:with-par am name="P aramParagr aph" selec t="$VarPar agraph" /> CR LF   457          <xs l:with-par am name="P aramParagr aph" selec t="$VarPar agraph" /> CR LF
456          <xs l:with-par am name="P aramStyleN ame" selec t="$VarPar agraph/@st ylename" / > CR LF   458          <xs l:with-par am name="P aramStyleN ame" selec t="$VarPar agraph/@st ylename" / > CR LF
457          <xs l:with-par am name="P aramContex tRule" sel ect="$VarC ontextRule " /> CR LF   459          <xs l:with-par am name="P aramContex tRule" sel ect="$VarC ontextRule " /> CR LF
458          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> CR LF   460          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> CR LF
459         </xs l:call-tem plate> CR LF   461         </xs l:call-tem plate> CR LF
460   CR LF   462   CR LF
461         <!--  MiniTOC - -> CR LF   463         <!--  MiniTOC - -> CR LF
462         <!--          - -> CR LF   464         <!--          - -> CR LF
463         <xsl :if test=" not($VarIn PopupPage) "> CR LF   465         <xsl :if test=" not($VarIn PopupPage) "> CR LF
464          <xs l:variable  name="Var MiniTOCSub Levels" se lect="$Var ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'mini toc-sublev els']/@Val ue" /> CR LF   466          <xs l:variable  name="Var MiniTOCSub Levels" se lect="$Var ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'mini toc-sublev els']/@Val ue" /> CR LF
465          <xs l:variable  name="Var MiniTOCSub LevelsNume ricPrefix"  select="w wunits:Num ericPrefix ($VarMiniT OCSubLevel s)" /> CR LF   467          <xs l:variable  name="Var MiniTOCSub LevelsNume ricPrefix"  select="w wunits:Num ericPrefix ($VarMiniT OCSubLevel s)" /> CR LF
466          <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   468          <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
467          <xs l:if test= "($VarMini TOCSubLeve lsGreaterT hanZero) o r ($VarMin iTOCSubLev els = 'all ')"> CR LF   469          <xs l:if test= "($VarMini TOCSubLeve lsGreaterT hanZero) o r ($VarMin iTOCSubLev els = 'all ')"> CR LF
468           <x sl:for-eac h select=" $ParamTOCD ata[1]"> CR LF   470           <x sl:for-eac h select=" $ParamTOCD ata[1]"> CR LF
469            < xsl:variab le name="V arTOCEntry " select=" key('wwtoc -entry-by- id', $VarP aragraph/@ id)[@docum entID = $P aramSplit/ @documentI D]" /> CR LF   471            < xsl:variab le name="V arTOCEntry " select=" key('wwtoc -entry-by- id', $VarP aragraph/@ id)[@docum entID = $P aramSplit/ @documentI D]" /> CR LF
470            < xsl:for-ea ch select= "$VarTOCEn try[1]"> CR LF   472            < xsl:for-ea ch select= "$VarTOCEn try[1]"> CR LF
471              <xsl:call- template n ame="MiniT OC"> CR LF   473              <xsl:call- template n ame="MiniT OC"> CR LF
472               <xsl:with -param nam e="ParamSp lit" selec t="$ParamS plit" /> CR LF   474               <xsl:with -param nam e="ParamSp lit" selec t="$ParamS plit" /> CR LF
473               <xsl:with -param nam e="ParamTO CEntry" se lect="$Var TOCEntry[1 ]" /> CR LF   475               <xsl:with -param nam e="ParamTO CEntry" se lect="$Var TOCEntry[1 ]" /> CR LF
474               <xsl:with -param nam e="ParamEm itTOCEntry " select=" false()" / > CR LF   476               <xsl:with -param nam e="ParamEm itTOCEntry " select=" false()" / > CR LF
475               <xsl:with -param nam e="ParamMi niTOCSubLe vels" sele ct="$VarMi niTOCSubLe vels" /> CR LF   477               <xsl:with -param nam e="ParamMi niTOCSubLe vels" sele ct="$VarMi niTOCSubLe vels" /> CR LF
476              </xsl:call -template> CR LF   478              </xsl:call -template> CR LF
477            < /xsl:for-e ach> CR LF   479            < /xsl:for-e ach> CR LF
478           </ xsl:for-ea ch> CR LF   480           </ xsl:for-ea ch> CR LF
479          </x sl:if> CR LF   481          </x sl:if> CR LF
480         </xs l:if> CR LF   482         </xs l:if> CR LF
481        </xsl :if> CR LF   483        </xsl :if> CR LF
482       </xsl: for-each> CR LF   484       </xsl: for-each> CR LF
483      </xsl:i f> CR LF   485      </xsl:i f> CR LF
484     </xsl:if > CR LF   486     </xsl:if > CR LF
485    </xsl:tem plate> CR LF   487    </xsl:tem plate> CR LF
486   CR LF   488   CR LF
487   CR LF   489   CR LF
488    <xsl:temp late name= "MiniTOC"> CR LF   490    <xsl:temp late name= "MiniTOC"> CR LF
489     <xsl:par am name="P aramSplit"  /> CR LF   491     <xsl:par am name="P aramSplit"  /> CR LF
490     <xsl:par am name="P aramTOCEnt ry" /> CR LF   492     <xsl:par am name="P aramTOCEnt ry" /> CR LF
491     <xsl:par am name="P aramEmitTO CEntry" /> CR LF   493     <xsl:par am name="P aramEmitTO CEntry" /> CR LF
492     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF   494     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF
493   CR LF   495   CR LF
494     <xsl:if  test="($Pa ramEmitTOC Entry = tr ue()) or ( count($Par amTOCEntry /wwtoc:Ent ry[1]) = 1 )"> CR LF   496     <xsl:if  test="($Pa ramEmitTOC Entry = tr ue()) or ( count($Par amTOCEntry /wwtoc:Ent ry[1]) = 1 )"> CR LF
495      <html:d iv style=" background -color: #D DDDDD; bor der-color:  #000000;  border-wid th: 1px; b order-styl e: solid;  padding: 8 px;"> CR LF   497      <html:d iv style=" background -color: #D DDDDD; bor der-color:  #000000;  border-wid th: 1px; b order-styl e: solid;  padding: 8 px;"> CR LF
496       <!-- E mit top-le vel entry?  --> CR LF   498       <!-- E mit top-le vel entry?  --> CR LF
497       <!--                          --> CR LF   499       <!--                          --> CR LF
498       <xsl:c hoose> CR LF   500       <xsl:c hoose> CR LF
499        <xsl: when test= "$ParamEmi tTOCEntry  = true()"> CR LF   501        <xsl: when test= "$ParamEmi tTOCEntry  = true()"> CR LF
500         <htm l:dl> CR LF   502         <htm l:dl> CR LF
501          <ht ml:dd> CR LF   503          <ht ml:dd> CR LF
502           <! -- Paragra ph --> CR LF   504           <! -- Paragra ph --> CR LF
503           <! --            --> CR LF   505           <! --            --> CR LF
504           <x sl:call-te mplate nam e="MiniTOC Paragraph" > CR LF   506           <x sl:call-te mplate nam e="MiniTOC Paragraph" > CR LF
505            < xsl:with-p aram name= "ParamPara graph" sel ect="$Para mTOCEntry/ wwdoc:Para graph" /> CR LF   507            < xsl:with-p aram name= "ParamPara graph" sel ect="$Para mTOCEntry/ wwdoc:Para graph" /> CR LF
506           </ xsl:call-t emplate> CR LF   508           </ xsl:call-t emplate> CR LF
507          </h tml:dd> CR LF   509          </h tml:dd> CR LF
508   CR LF   510   CR LF
509          <!- - Children  --> CR LF   511          <!- - Children  --> CR LF
510          <!- -           --> CR LF   512          <!- -           --> CR LF
511          <xs l:call-tem plate name ="MiniTOCE ntries"> CR LF   513          <xs l:call-tem plate name ="MiniTOCE ntries"> CR LF
512           <x sl:with-pa ram name=" ParamRefer encePath"  select="$P aramSplit/ @path" /> CR LF   514           <x sl:with-pa ram name=" ParamRefer encePath"  select="$P aramSplit/ @path" /> CR LF
513           <x sl:with-pa ram name=" ParamParen t" select= "$ParamTOC Entry" /> CR LF   515           <x sl:with-pa ram name=" ParamParen t" select= "$ParamTOC Entry" /> CR LF
514           <x sl:with-pa ram name=" ParamMiniT OCSubLevel s" select= "$ParamMin iTOCSubLev els" /> CR LF   516           <x sl:with-pa ram name=" ParamMiniT OCSubLevel s" select= "$ParamMin iTOCSubLev els" /> CR LF
515          </x sl:call-te mplate> CR LF   517          </x sl:call-te mplate> CR LF
516         </ht ml:dl> CR LF   518         </ht ml:dl> CR LF
517        </xsl :when> CR LF   519        </xsl :when> CR LF
518   CR LF   520   CR LF
519        <xsl: otherwise> CR LF   521        <xsl: otherwise> CR LF
520         <!--  Children  --> CR LF   522         <!--  Children  --> CR LF
521         <!--            --> CR LF   523         <!--            --> CR LF
522         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF   524         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF
523          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> CR LF   525          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> CR LF
524          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> CR LF   526          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> CR LF
525          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF   527          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF
526         </xs l:call-tem plate> CR LF   528         </xs l:call-tem plate> CR LF
527        </xsl :otherwise > CR LF   529        </xsl :otherwise > CR LF
528       </xsl: choose> CR LF   530       </xsl: choose> CR LF
529      </html: div> CR LF   531      </html: div> CR LF
530     </xsl:if > CR LF   532     </xsl:if > CR LF
531    </xsl:tem plate> CR LF   533    </xsl:tem plate> CR LF
532   CR LF   534   CR LF
533   CR LF   535   CR LF
534    <xsl:temp late name= "MiniTOCEn tries"> CR LF   536    <xsl:temp late name= "MiniTOCEn tries"> CR LF
535     <xsl:par am name="P aramRefere ncePath" / > CR LF   537     <xsl:par am name="P aramRefere ncePath" / > CR LF
536     <xsl:par am name="P aramParent " /> CR LF   538     <xsl:par am name="P aramParent " /> CR LF
537     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF   539     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF
538   CR LF   540   CR LF
539     <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry"  /> CR LF   541     <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry"  /> CR LF
540   CR LF   542   CR LF
541     <xsl:for -each sele ct="$VarSu bEntries[1 ]"> CR LF   543     <xsl:for -each sele ct="$VarSu bEntries[1 ]"> CR LF
542      <html:d l> CR LF   544      <html:d l> CR LF
543   CR LF   545   CR LF
544      <xsl:fo r-each sel ect="$VarS ubEntries" > CR LF   546      <xsl:fo r-each sel ect="$VarS ubEntries" > CR LF
545       <xsl:v ariable na me="VarEnt ry" select ="." /> CR LF   547       <xsl:v ariable na me="VarEnt ry" select ="." /> CR LF
546   CR LF   548   CR LF
547       <html: dd> CR LF   549       <html: dd> CR LF
548        <xsl: choose> CR LF   550        <xsl: choose> CR LF
549         <xsl :when test ="string-l ength($Var Entry/@pat h) &gt; 0" > CR LF   551         <xsl :when test ="string-l ength($Var Entry/@pat h) &gt; 0" > CR LF
550          <!- - Get link  --> CR LF   552          <!- - Get link  --> CR LF
551          <!- -           --> CR LF   553          <!- -           --> CR LF
552          <xs l:variable  name="Var RelativeLi nkPath" se lect="wwur i:GetRelat iveTo($Var Entry/@pat h, $ParamR eferencePa th)" /> CR LF   554          <xs l:variable  name="Var RelativeLi nkPath" se lect="wwur i:GetRelat iveTo($Var Entry/@pat h, $ParamR eferencePa th)" /> CR LF
553   CR LF   555   CR LF
554          <ht ml:a href= "{$VarRela tiveLinkPa th}#{$VarE ntry/@link id}"> CR LF   556          <ht ml:a href= "{$VarRela tiveLinkPa th}#{$VarE ntry/@link id}"> CR LF
555           <x sl:call-te mplate nam e="MiniTOC Paragraph" > CR LF   557           <x sl:call-te mplate nam e="MiniTOC Paragraph" > CR LF
556            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarE ntry/wwdoc :Paragraph " /> CR LF   558            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarE ntry/wwdoc :Paragraph " /> CR LF
557           </ xsl:call-t emplate> CR LF   559           </ xsl:call-t emplate> CR LF
558          </h tml:a> CR LF   560          </h tml:a> CR LF
559         </xs l:when> CR LF   561         </xs l:when> CR LF
560   CR LF   562   CR LF
561         <xsl :otherwise > CR LF   563         <xsl :otherwise > CR LF
562          <xs l:call-tem plate name ="MiniTOCP aragraph"> CR LF   564          <xs l:call-tem plate name ="MiniTOCP aragraph"> CR LF
563           <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph"  /> CR LF   565           <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph"  /> CR LF
564          </x sl:call-te mplate> CR LF   566          </x sl:call-te mplate> CR LF
565         </xs l:otherwis e> CR LF   567         </xs l:otherwis e> CR LF
566        </xsl :choose> CR LF   568        </xsl :choose> CR LF
567       </html :dd> CR LF   569       </html :dd> CR LF
568   CR LF   570   CR LF
569       <!-- R ecurse --> CR LF   571       <!-- R ecurse --> CR LF
570       <!--          --> CR LF   572       <!--          --> CR LF
571       <xsl:c hoose> CR LF   573       <xsl:c hoose> CR LF
572        <xsl: when test= "$ParamMin iTOCSubLev els = 'all '"> CR LF   574        <xsl: when test= "$ParamMin iTOCSubLev els = 'all '"> CR LF
573         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF   575         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF
574          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF   576          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF
575          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF   577          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF
576          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF   578          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF
577         </xs l:call-tem plate> CR LF   579         </xs l:call-tem plate> CR LF
578        </xsl :when> CR LF   580        </xsl :when> CR LF
579   CR LF   581   CR LF
580        <xsl: when test= "($ParamMi niTOCSubLe vels - 1)  &gt; 0"> CR LF   582        <xsl: when test= "($ParamMi niTOCSubLe vels - 1)  &gt; 0"> CR LF
581         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF   583         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF
582          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF   584          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF
583          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF   585          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF
584          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls - 1" /> CR LF   586          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls - 1" /> CR LF
585         </xs l:call-tem plate> CR LF   587         </xs l:call-tem plate> CR LF
586        </xsl :when> CR LF   588        </xsl :when> CR LF
587       </xsl: choose> CR LF   589       </xsl: choose> CR LF
588      </xsl:f or-each> CR LF   590      </xsl:f or-each> CR LF
589   CR LF   591   CR LF
590      </html: dl> CR LF   592      </html: dl> CR LF
591     </xsl:fo r-each> CR LF   593     </xsl:fo r-each> CR LF
592    </xsl:tem plate> CR LF   594    </xsl:tem plate> CR LF
593   CR LF   595   CR LF
594   CR LF   596   CR LF
595    <xsl:temp late name= "MiniTOCPa ragraph"> CR LF   597    <xsl:temp late name= "MiniTOCPa ragraph"> CR LF
596     <xsl:par am name="P aramParagr aph" /> CR LF   598     <xsl:par am name="P aramParagr aph" /> CR LF
597   CR LF   599   CR LF
598     <xsl:for -each sele ct="$Param Paragraph/ wwdoc:Numb er/wwdoc:T ext | $Par amParagrap h/wwdoc:Te xtRun/wwdo c:Text"> CR LF   600     <xsl:for -each sele ct="$Param Paragraph/ wwdoc:Numb er/wwdoc:T ext | $Par amParagrap h/wwdoc:Te xtRun/wwdo c:Text"> CR LF
599      <xsl:va lue-of sel ect="@valu e" /> CR LF   601      <xsl:va lue-of sel ect="@valu e" /> CR LF
600     </xsl:fo r-each> CR LF   602     </xsl:fo r-each> CR LF
601    </xsl:tem plate> CR LF   603    </xsl:tem plate> CR LF
602   CR LF   604   CR LF
603   CR LF   605   CR LF
604    <xsl:temp late name= "Paragraph "> CR LF   606    <xsl:temp late name= "Paragraph "> CR LF
605     <xsl:par am name="P aramSplits " /> CR LF   607     <xsl:par am name="P aramSplits " /> CR LF
606     <xsl:par am name="P aramCargo"  /> CR LF   608     <xsl:par am name="P aramCargo"  /> CR LF
607     <xsl:par am name="P aramLinks"  /> CR LF   609     <xsl:par am name="P aramLinks"  /> CR LF
608     <xsl:par am name="P aramSplit"  /> CR LF   610     <xsl:par am name="P aramSplit"  /> CR LF
609     <xsl:par am name="P aramParagr aph" /> CR LF   611     <xsl:par am name="P aramParagr aph" /> CR LF
610     <xsl:par am name="P aramStyleN ame" /> CR LF   612     <xsl:par am name="P aramStyleN ame" /> CR LF
611     <xsl:par am name="P aramContex tRule" /> CR LF   613     <xsl:par am name="P aramContex tRule" /> CR LF
612     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF   614     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF
613   CR LF   615   CR LF
614     <!-- Pre serve empt y? --> CR LF   616     <!-- Pre serve empt y? --> CR LF
615     <!--                   --> CR LF   617     <!--                   --> CR LF
616     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'pres erve-empty ']/@Value"  /> CR LF   618     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'pres erve-empty ']/@Value"  /> CR LF
617     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF   619     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF
618   CR LF   620   CR LF
619     <!-- Non -empty tex t runs --> CR LF   621     <!-- Non -empty tex t runs --> CR LF
620     <!--                       --> CR LF   622     <!--                       --> CR LF
621      <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
  623      <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
622   CR LF   624   CR LF
623     <!-- Pro cess this  paragraph  at all? -- > CR LF   625     <!-- Pro cess this  paragraph  at all? -- > CR LF
624     <!--                                   -- > CR LF   626     <!--                                   -- > CR LF
625     <xsl:if  test="($Va rPreserveE mpty) or ( count($Var TextRuns[1 ]) = 1)"> CR LF   627     <xsl:if  test="($Va rPreserveE mpty) or ( count($Var TextRuns[1 ]) = 1)"> CR LF
626      <!-- Pa ss-through ? --> CR LF   628      <!-- Pa ss-through ? --> CR LF
627      <!--                 --> CR LF   629      <!--                 --> CR LF
628      <xsl:va riable nam e="VarPass Through"> CR LF   630      <xsl:va riable nam e="VarPass Through"> CR LF
    631       <xsl:v ariable na me="VarPas sThroughOp tion" sele ct="$Param ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'pass -through'] /@Value" / > CR LF
    632   CR LF
    633       <xsl:c hoose> CR LF
    634        <xsl: when test= "$VarPassT hroughOpti on = 'true '"> CR LF
    635         <xsl :value-of  select="tr ue()" /> CR LF
    636        </xsl :when> CR LF
    637   CR LF
    638        <xsl: otherwise> CR LF
629       <xsl:c all-templa te name="C onditions- PassThroug h"> CR LF   639         <xsl :call-temp late name= "Condition s-PassThro ugh"> CR LF
630        <xsl: with-param  name="Par amConditio ns" select ="$ParamPa ragraph/ww doc:Condit ions" /> CR LF   640          <xs l:with-par am name="P aramCondit ions" sele ct="$Param Paragraph/ wwdoc:Cond itions" /> CR LF
631       </xsl: call-templ ate> CR LF   641         </xs l:call-tem plate> CR LF
    642        </xsl :otherwise > CR LF
    643       </xsl: choose> CR LF
632      </xsl:v ariable> CR LF   644      </xsl:v ariable> CR LF
633   CR LF   645   CR LF
634      <xsl:ch oose> CR LF   646      <xsl:ch oose> CR LF
635       <!-- P ass-throug h --> CR LF   647       <!-- P ass-throug h --> CR LF
636       <!--                --> CR LF   648       <!--                --> CR LF
637       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF   649       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF
638        <xsl: call-templ ate name=" Paragraph- PassThroug h"> CR LF   650        <xsl: call-templ ate name=" Paragraph- PassThroug h"> CR LF
639         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF   651         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF
640        </xsl :call-temp late> CR LF   652        </xsl :call-temp late> CR LF
641       </xsl: when> CR LF   653       </xsl: when> CR LF
642   CR LF   654   CR LF
643       <xsl:o therwise> CR LF   655       <xsl:o therwise> CR LF
644        <xsl: call-templ ate name=" Paragraph- Normal"> CR LF   656        <xsl: call-templ ate name=" Paragraph- Normal"> CR LF
645         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   657         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
646         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   658         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
647         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   659         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
648         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   660         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
649         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF   661         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF
650         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yleName" / > CR LF   662         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yleName" / > CR LF
651         <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" /> CR LF   663         <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" /> CR LF
652        </xsl :call-temp late> CR LF   664        </xsl :call-temp late> CR LF
653       </xsl: otherwise> CR LF   665       </xsl: otherwise> CR LF
654      </xsl:c hoose> CR LF   666      </xsl:c hoose> CR LF
655     </xsl:if > CR LF   667     </xsl:if > CR LF
656    </xsl:tem plate> CR LF   668    </xsl:tem plate> CR LF
657   CR LF   669   CR LF
658   CR LF   670   CR LF
659    <xsl:temp late name= "Paragraph -PassThrou gh"> CR LF   671    <xsl:temp late name= "Paragraph -PassThrou gh"> CR LF
660     <xsl:par am name="P aramParagr aph" /> CR LF   672     <xsl:par am name="P aramParagr aph" /> CR LF
661   CR LF   673   CR LF
662     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF   674     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF
663      <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Tex tRun/wwdoc :Text"> CR LF   675      <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Tex tRun/wwdoc :Text"> CR LF
664       <xsl:v ariable na me="VarTex t" select= "." /> CR LF   676       <xsl:v ariable na me="VarTex t" select= "." /> CR LF
665   CR LF   677   CR LF
666       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF   678       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF
667      </xsl:f or-each> CR LF   679      </xsl:f or-each> CR LF
668     </wwexsl doc:Text> CR LF   680     </wwexsl doc:Text> CR LF
669    </xsl:tem plate> CR LF   681    </xsl:tem plate> CR LF
670   CR LF   682   CR LF
671   CR LF   683   CR LF
672    <xsl:temp late name= "Paragraph -Normal"> CR LF   684    <xsl:temp late name= "Paragraph -Normal"> CR LF
673     <xsl:par am name="P aramSplits " /> CR LF   685     <xsl:par am name="P aramSplits " /> CR LF
674     <xsl:par am name="P aramCargo"  /> CR LF   686     <xsl:par am name="P aramCargo"  /> CR LF
675     <xsl:par am name="P aramLinks"  /> CR LF   687     <xsl:par am name="P aramLinks"  /> CR LF
676     <xsl:par am name="P aramSplit"  /> CR LF   688     <xsl:par am name="P aramSplit"  /> CR LF
677     <xsl:par am name="P aramParagr aph" /> CR LF   689     <xsl:par am name="P aramParagr aph" /> CR LF
678     <xsl:par am name="P aramStyleN ame" /> CR LF   690     <xsl:par am name="P aramStyleN ame" /> CR LF
679     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF   691     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF
680   CR LF   692   CR LF
681     <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   693     <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
682   CR LF   694   CR LF
683     <!-- Res olve proje ct propert ies --> CR LF   695     <!-- Res olve proje ct propert ies --> CR LF
684     <!--                               --> CR LF   696     <!--                               --> CR LF
685     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF   697     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF
686      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF   698      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF
687       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amParagrap h" /> CR LF   699       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amParagrap h" /> CR LF
688       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF   700       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF
689       <xsl:w ith-param  name="Para mStyleName " select=" $ParamPara graph/@sty lename" /> CR LF   701       <xsl:w ith-param  name="Para mStyleName " select=" $ParamPara graph/@sty lename" /> CR LF
690       <xsl:w ith-param  name="Para mStyleType " select=" 'Paragraph '" /> CR LF   702       <xsl:w ith-param  name="Para mStyleType " select=" 'Paragraph '" /> CR LF
691       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> CR LF   703       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> CR LF
692      </xsl:c all-templa te> CR LF   704      </xsl:c all-templa te> CR LF
693     </xsl:va riable> CR LF   705     </xsl:va riable> CR LF
694     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF   706     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF
695   CR LF   707   CR LF
696     <!-- HTM L properti es --> CR LF   708     <!-- HTM L properti es --> CR LF
697     <!--                   --> CR LF   709     <!--                   --> CR LF
698     <xsl:var iable name ="VarHTMLC ontextProp ertiesAsXM L"> CR LF   710     <xsl:var iable name ="VarHTMLC ontextProp ertiesAsXM L"> CR LF
699      <xsl:ca ll-templat e name="HT ML-Transla teProjectP roperties" > CR LF   711      <xsl:ca ll-templat e name="HT ML-Transla teProjectP roperties" > CR LF
700       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedContext Properties " /> CR LF   712       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedContext Properties " /> CR LF
701       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF   713       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF
702       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   714       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
703      </xsl:c all-templa te> CR LF   715      </xsl:c all-templa te> CR LF
704     </xsl:va riable> CR LF   716     </xsl:va riable> CR LF
705     <xsl:var iable name ="VarHTMLC ontextProp erties" se lect="msxs l:node-set ($VarHTMLC ontextProp ertiesAsXM L)/wwproje ct:Propert y" /> CR LF   717     <xsl:var iable name ="VarHTMLC ontextProp erties" se lect="msxs l:node-set ($VarHTMLC ontextProp ertiesAsXM L)/wwproje ct:Propert y" /> CR LF
706   CR LF   718   CR LF
707     <!-- Use  numbering ? --> CR LF   719     <!-- Use  numbering ? --> CR LF
708     <!--                  --> CR LF   720     <!--                  --> CR LF
709     <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   721     <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
710     <xsl:var iable name ="VarUseNu mbering" s elect="(st ring-lengt h($VarUseN umberingOp tion) = 0)  or ($VarU seNumberin gOption =  'true')" / > CR LF   722     <xsl:var iable name ="VarUseNu mbering" s elect="(st ring-lengt h($VarUseN umberingOp tion) = 0)  or ($VarU seNumberin gOption =  'true')" / > CR LF
711   CR LF   723   CR LF
712     <!-- Tex t Indent - -> CR LF   724     <!-- Tex t Indent - -> CR LF
713     <!--              - -> CR LF   725     <!--              - -> CR LF
714     <xsl:var iable name ="VarTextI ndent"> CR LF   726     <xsl:var iable name ="VarTextI ndent"> CR LF
715      <xsl:if  test="$Va rUseNumber ing"> CR LF   727      <xsl:if  test="$Va rUseNumber ing"> CR LF
716       <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarH TMLContext Properties [@Name = ' text-inden t']/@Value " /> CR LF   728       <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarH TMLContext Properties [@Name = ' text-inden t']/@Value " /> CR LF
717       <xsl:c hoose> CR LF   729       <xsl:c hoose> CR LF
718        <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0"> CR LF   730        <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0"> CR LF
719         <xsl :value-of  select="$V arOverride TextIndent " /> CR LF   731         <xsl :value-of  select="$V arOverride TextIndent " /> CR LF
720        </xsl :when> CR LF   732        </xsl :when> CR LF
721   CR LF   733   CR LF
722        <xsl: otherwise> CR LF   734        <xsl: otherwise> CR LF
723         <!--  Text inde nt defined ? --> CR LF   735         <!--  Text inde nt defined ? --> CR LF
724         <!--                         --> CR LF   736         <!--                         --> CR LF
725         <xsl :variable  name="VarC ontextText Indent" se lect="$Var HTMLContex tPropertie s[@Name =  'text-inde nt']/@Valu e" /> CR LF   737         <xsl :variable  name="VarC ontextText Indent" se lect="$Var HTMLContex tPropertie s[@Name =  'text-inde nt']/@Valu e" /> CR LF
726         <xsl :if test=" string-len gth($VarCo ntextTextI ndent) &gt ; 0"> CR LF   738         <xsl :if test=" string-len gth($VarCo ntextTextI ndent) &gt ; 0"> CR LF
727          <xs l:value-of  select="$ VarContext TextIndent " /> CR LF   739          <xs l:value-of  select="$ VarContext TextIndent " /> CR LF
728         </xs l:if> CR LF   740         </xs l:if> CR LF
729        </xsl :otherwise > CR LF   741        </xsl :otherwise > CR LF
730       </xsl: choose> CR LF   742       </xsl: choose> CR LF
731      </xsl:i f> CR LF   743      </xsl:i f> CR LF
732     </xsl:va riable> CR LF   744     </xsl:va riable> CR LF
733   CR LF   745   CR LF
734     <xsl:var iable name ="VarTextI ndentNumer icPrefix"  select="ww units:Nume ricPrefix( $VarTextIn dent)" /> CR LF   746     <xsl:var iable name ="VarTextI ndentNumer icPrefix"  select="ww units:Nume ricPrefix( $VarTextIn dent)" /> CR LF
735     <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   747     <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
736   CR LF   748   CR LF
737     <xsl:var iable name ="VarNumbe redMarginL eft"> CR LF   749     <xsl:var iable name ="VarNumbe redMarginL eft"> CR LF
738      <xsl:ca ll-templat e name="Fo rmatting-M arginLeftT otal"> CR LF   750      <xsl:ca ll-templat e name="Fo rmatting-M arginLeftT otal"> CR LF
739       <xsl:w ith-param  name="Para mPropertie s" select= "$VarHTMLC ontextProp erties" /> CR LF   751       <xsl:w ith-param  name="Para mPropertie s" select= "$VarHTMLC ontextProp erties" /> CR LF
740      </xsl:c all-templa te> CR LF   752      </xsl:c all-templa te> CR LF
741     </xsl:va riable> CR LF   753     </xsl:va riable> CR LF
742   CR LF   754   CR LF
743     <xsl:var iable name ="VarNumbe redMarginL eftAsPixel s" select= "wwunits:C onvert(wwu nits:Numer icPrefix($ VarNumbere dMarginLef t), wwunit s:UnitsSuf fix($VarNu mberedMarg inLeft), ' px')" /> CR LF   755     <xsl:var iable name ="VarNumbe redMarginL eftAsPixel s" select= "wwunits:C onvert(wwu nits:Numer icPrefix($ VarNumbere dMarginLef t), wwunit s:UnitsSuf fix($VarNu mberedMarg inLeft), ' px')" /> CR LF
744   CR LF   756      CR LF
745     <!-- Use  bullet fr om UI? --> CR LF   757     <!-- Use  bullet fr om UI? --> CR LF
746     <!--                       --> CR LF   758     <!--                       --> CR LF
747     <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   759     <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
748     <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   760     <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
749     <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   761     <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
750     <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   762     <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
751     <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    
752   CR LF   763   CR LF
753     <!-- Is  numbered p aragraph - -> CR LF   764     <!-- Is  numbered p aragraph - -> CR LF
754     <!--                         - -> CR LF   765     <!--                         - -> CR LF
755     <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   766     <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
756   CR LF   767   CR LF
757     <!-- Use  character  styles? - -> CR LF    
758     <!--                         - -> CR LF    
759     <xsl:var iable name ="VarUseCh aracterSty lesOption"  select="$ VarContext Rule/wwpro ject:Optio ns/wwproje ct:Option[ @Name = 'u se-charact er-styles' ]/@Value"  /> CR LF    
760     <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    
761   CR LF    
762     <!-- Tag  --> CR LF   768     <!-- Tag  --> CR LF
763     <!--      --> CR LF   769     <!--      --> CR LF
764     <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   770     <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
765     <xsl:var iable name ="VarTag"> CR LF   771     <xsl:var iable name ="VarTag"> CR LF
766      <xsl:ch oose> CR LF   772      <xsl:ch oose> CR LF
767       <xsl:w hen test=" string-len gth($VarTa gProperty)  &gt; 0"> CR LF   773       <xsl:w hen test=" string-len gth($VarTa gProperty)  &gt; 0"> CR LF
768        <xsl: value-of s elect="$Va rTagProper ty" /> CR LF   774        <xsl: value-of s elect="$Va rTagProper ty" /> CR LF
769       </xsl: when> CR LF   775       </xsl: when> CR LF
770   CR LF   776   CR LF
771       <xsl:o therwise> CR LF   777       <xsl:o therwise> CR LF
772        <xsl: value-of s elect="'p' " /> CR LF   778        <xsl: value-of s elect="'p' " /> CR LF
773       </xsl: otherwise> CR LF   779       </xsl: otherwise> CR LF
774      </xsl:c hoose> CR LF   780      </xsl:c hoose> CR LF
775     </xsl:va riable> CR LF   781     </xsl:va riable> CR LF
776   CR LF   782   CR LF
777     <!-- Tag  to use fo r outer wr apper --> CR LF   783     <!-- Tag  to use fo r outer wr apper --> CR LF
778     <!--                                 --> CR LF   784     <!--                                 --> CR LF
779     <xsl:var iable name ="VarOuter Tag"> CR LF   785     <xsl:var iable name ="VarOuter Tag"> CR LF
780      <xsl:ch oose> CR LF   786      <xsl:ch oose> CR LF
781       <xsl:w hen test=" $VarIsNumb eredParagr aph"> CR LF   787       <xsl:w hen test=" $VarIsNumb eredParagr aph"> CR LF
782        <xsl: value-of s elect="'di v'" /> CR LF   788        <xsl: value-of s elect="'di v'" /> CR LF
783       </xsl: when> CR LF   789       </xsl: when> CR LF
784   CR LF   790   CR LF
785       <xsl:o therwise> CR LF   791       <xsl:o therwise> CR LF
786        <xsl: value-of s elect="$Va rTag" /> CR LF   792        <xsl: value-of s elect="$Va rTag" /> CR LF
787       </xsl: otherwise> CR LF   793       </xsl: otherwise> CR LF
788      </xsl:c hoose> CR LF   794      </xsl:c hoose> CR LF
789     </xsl:va riable> CR LF   795     </xsl:va riable> CR LF
790   CR LF   796   CR LF
791     <!-- Beg in paragra ph emit -- > CR LF   797     <!-- Beg in paragra ph emit -- > CR LF
792     <!--                        -- > CR LF   798     <!--                        -- > CR LF
793     <xsl:ele ment name= "{$VarOute rTag}" nam espace="{$ GlobalDefa ultNamespa ce}"> CR LF   799     <xsl:ele ment name= "{$VarOute rTag}" nam espace="{$ GlobalDefa ultNamespa ce}"> CR LF
794      <xsl:if  test="str ing-length ($VarHTMLC ontextProp erties[@Na me = 'text -align']/@ Value) &gt ; 0"> CR LF   800      <xsl:if  test="str ing-length ($VarHTMLC ontextProp erties[@Na me = 'text -align']/@ Value) &gt ; 0"> CR LF
795       <xsl:a ttribute n ame="align "> CR LF   801       <xsl:a ttribute n ame="align "> CR LF
796        <xsl: value-of s elect="$Va rHTMLConte xtProperti es[@Name =  'text-ali gn']/@Valu e" /> CR LF   802        <xsl: value-of s elect="$Va rHTMLConte xtProperti es[@Name =  'text-ali gn']/@Valu e" /> CR LF
797       </xsl: attribute> CR LF   803       </xsl: attribute> CR LF
798      </xsl:i f> CR LF   804      </xsl:i f> CR LF
799   CR LF   805   CR LF
800      <!-- Us e numberin g? --> CR LF   806      <!-- Us e numberin g? --> CR LF
801      <!--                  --> CR LF   807      <!--                  --> CR LF
802      <xsl:ch oose> CR LF   808      <xsl:ch oose> CR LF
803       <!-- U se Number  --> CR LF   809       <!-- U se Number  --> CR LF
804       <!--              --> CR LF   810       <!--              --> CR LF
805       <xsl:w hen test=" $VarUseNum bering"> CR LF   811       <xsl:w hen test=" $VarUseNum bering"> CR LF
806        <xsl: choose> CR LF   812        <xsl: choose> CR LF
807         <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   813         <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
808          <xs l:choose> CR LF   814          <xs l:choose> CR LF
809           <x sl:when te st="$VarTe xtIndentLe ssThanZero "> CR LF   815           <x sl:when te st="$VarTe xtIndentLe ssThanZero "> CR LF
810   CR LF   816   CR LF
811            < html:table  border="0 " cellspac ing="0" ce llpadding= "0" summar y=""> CR LF   817            < html:table  border="0 " cellspac ing="0" ce llpadding= "0" summar y=""> CR LF
812              <html:tr v align="bas eline"> CR LF   818              <html:tr v align="bas eline"> CR LF
813   CR LF   819   CR LF
814               <xsl:if t est="$VarN umberedMar ginLeftAsP ixels &gt;  0"> CR LF   820               <xsl:if t est="$VarN umberedMar ginLeftAsP ixels &gt;  0"> CR LF
815                <html:td  width="{$ VarNumbere dMarginLef tAsPixels} "> CR LF   821                <html:td  width="{$ VarNumbere dMarginLef tAsPixels} "> CR LF
816                 <html:d iv> </html :div> CR LF   822                 <html:d iv> </html :div> CR LF
817                </html:t d> CR LF   823                </html:t d> CR LF
818               </xsl:if> CR LF   824               </xsl:if> CR LF
819   CR LF   825   CR LF
820               <xsl:vari able name= "VarTextIn dentNumber AsPixels"  select="ww units:Conv ert(wwunit s:NumericP refix($Var TextIndent ), wwunits :UnitsSuff ix($VarTex tIndent),  'px')" /> CR LF   826               <xsl:vari able name= "VarTextIn dentNumber AsPixels"  select="ww units:Conv ert(wwunit s:NumericP refix($Var TextIndent ), wwunits :UnitsSuff ix($VarTex tIndent),  'px')" /> CR LF
821   CR LF   827   CR LF
822               <html:td  width="{0  - $VarText IndentNumb erAsPixels }"> CR LF   828               <html:td  width="{0  - $VarText IndentNumb erAsPixels }"> CR LF
823                <html:di v> CR LF   829                <html:di v> CR LF
824                 <html:n obr> CR LF   830                 <html:n obr> CR LF
825                  <!-- F ormat numb ering              -- > CR LF   831                  <!-- F ormat numb ering              -- > CR LF
826                  <!-- B egin forma tting call  chain. -- > CR LF   832                  <!-- B egin forma tting call  chain. -- > CR LF
827                  <!--                                 -- > CR LF   833                  <!--                                 -- > CR LF
828                   <xsl:call- template n ame=" Nu m b er
"> CR LF
  834                   <xsl:call- template n ame=" For m atting-Fon tTagProp er ties "> CR LF
    835                   <xsl: with-param  name="Par amProperti es" select ="$VarHTML ContextPro perties" / > CR LF
    836                   <xsl: with-param  name="Par amContext"  select="$ ParamParag raph/wwdoc :Number[1] " /> CR LF
    837                   <xsl: with-param  name="Par amContextR ule" selec t="$VarCon textRule"  /> CR LF
829                   <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   838                   <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
830                   <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF   839                   <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF
831                   <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   840                   <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
832                   <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   841                   <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
833                    <xsl:with- param name ="Param Parag r aph " select=" $Param Paragraph
" /> CR LF
  842                    <xsl:with- param name ="Param Numbe r Context " select=" ' Paragraph ' " /> CR LF
834                   <xsl: with-param  name="Par amUseChara cterStyles " select=" $VarUseCha racterStyl es" /> CR LF    
835                   <xsl: with-param  name="Par amIgnoreDo cumentNumb er" select ="$VarIgno reDocument Number" /> CR LF    
836                   <xsl: with-param  name="Par amCharacte r" select= "$VarBulle tCharacter " /> CR LF    
837                   <xsl: with-param  name="Par amImage" s elect="$Va rBulletIma ge" /> CR LF    
838                   <xsl: with-param  name="Par amSeparato r" select= "$VarBulle tSeparator " /> CR LF    
839                   <xsl: with-param  name="Par amStyle" s elect="$Va rBulletSty le" /> CR LF    
840                  </xsl: call-templ ate> CR LF   843                  </xsl: call-templ ate> CR LF
841                 </html: nobr> CR LF   844                 </html: nobr> CR LF
842                </html:d iv> CR LF   845                </html:d iv> CR LF
843               </html:td > CR LF   846               </html:td > CR LF
844               <html:td> CR LF   847               <html:td> CR LF
845   CR LF   848   CR LF
846                <!-- For mat Text R uns              --> CR LF   849                <!-- For mat Text R uns              --> CR LF
847                <!-- Beg in formatt ing call c hain. --> CR LF   850                <!-- Beg in formatt ing call c hain. --> CR LF
848                <!--                                 --> CR LF   851                <!--                                 --> CR LF
849                <xsl:cal l-template  name="For matting-Fo ntTagPrope rties"> CR LF   852                <xsl:cal l-template  name="For matting-Fo ntTagPrope rties"> CR LF
850                 <xsl:wi th-param n ame="Param Properties " select=" $VarHTMLCo ntextPrope rties" /> CR LF   853                 <xsl:wi th-param n ame="Param Properties " select=" $VarHTMLCo ntextPrope rties" /> CR LF
851                 <xsl:wi th-param n ame="Param Context" s elect="$Pa ramParagra ph" /> CR LF   854                 <xsl:wi th-param n ame="Param Context" s elect="$Pa ramParagra ph" /> CR LF
852                 <xsl:wi th-param n ame="Param ContextRul e" select= "$VarConte xtRule" /> CR LF   855                 <xsl:wi th-param n ame="Param ContextRul e" select= "$VarConte xtRule" /> CR LF
853                 <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   856                 <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
854                 <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF   857                 <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF
855                 <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   858                 <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
856                 <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   859                 <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
    860                 <xsl:wi th-param n ame="Param NumberCont ext" selec t="'Paragr aph'" /> CR LF
857                </xsl:ca ll-templat e> CR LF   861                </xsl:ca ll-templat e> CR LF
858               </html:td > CR LF   862               </html:td > CR LF
859              </html:tr> CR LF   863              </html:tr> CR LF
860            < /html:tabl e> CR LF   864            < /html:tabl e> CR LF
861           </ xsl:when> CR LF   865           </ xsl:when> CR LF
862   CR LF   866   CR LF
863           <x sl:otherwi se> CR LF   867           <x sl:otherwi se> CR LF
864            < !-- Format  numbering .             --> CR LF   868            < !-- Format  numbering .             --> CR LF
865            < !-- Begin  formatting  call chai n. --> CR LF   869            < !-- Begin  formatting  call chai n. --> CR LF
866            < !--                                 --> CR LF   870            < !--                                 --> CR LF
867             <xsl:call- template n ame=" Nu m b er
"> CR LF
  871             <xsl:call- template n ame=" For m atting-Fon tTagProp er ties "> CR LF
    872              <xsl:with- param name ="ParamPro perties" s elect="$Va rHTMLConte xtProperti es" /> CR LF
    873              <xsl:with- param name ="ParamCon text" sele ct="$Param Paragraph/ wwdoc:Numb er[1]" /> CR LF
    874              <xsl:with- param name ="ParamCon textRule"  select="$V arContextR ule" /> CR LF
868              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF   875              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF
869              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF   876              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF
870              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF   877              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF
871              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF   878              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF
872              <xsl:with- param name ="Param Parag r aph " select=" $Param Paragraph
" /> CR LF
  879              <xsl:with- param name ="Param Numbe r Context " select=" ' Paragraph ' " /> CR LF
873              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > CR LF    
874              <xsl:with- param name ="ParamIgn oreDocumen tNumber" s elect="$Va rIgnoreDoc umentNumbe r" /> CR LF    
875              <xsl:with- param name ="ParamCha racter" se lect="$Var BulletChar acter" /> CR LF    
876              <xsl:with- param name ="ParamIma ge" select ="$VarBull etImage" / > CR LF    
877              <xsl:with- param name ="ParamSep arator" se lect="$Var BulletSepa rator" /> CR LF    
878              <xsl:with- param name ="ParamSty le" select ="$VarBull etStyle" / > CR LF    
879            < /xsl:call- template> CR LF   880            < /xsl:call- template> CR LF
880   CR LF   881   CR LF
881            < !-- Format  Text Runs               --> CR LF   882            < !-- Format  Text Runs               --> CR LF
882            < !-- Begin  formatting  call chai n. --> CR LF   883            < !-- Begin  formatting  call chai n. --> CR LF
883            < !--                                 --> CR LF   884            < !--                                 --> CR LF
884            < xsl:call-t emplate na me="Format ting-FontT agProperti es"> CR LF   885            < xsl:call-t emplate na me="Format ting-FontT agProperti es"> CR LF
885              <xsl:with- param name ="ParamPro perties" s elect="$Va rHTMLConte xtProperti es" /> CR LF   886              <xsl:with- param name ="ParamPro perties" s elect="$Va rHTMLConte xtProperti es" /> CR LF
886              <xsl:with- param name ="ParamCon text" sele ct="$Param Paragraph"  /> CR LF   887              <xsl:with- param name ="ParamCon text" sele ct="$Param Paragraph"  /> CR LF
887              <xsl:with- param name ="ParamCon textRule"  select="$V arContextR ule" /> CR LF   888              <xsl:with- param name ="ParamCon textRule"  select="$V arContextR ule" /> CR LF
888              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF   889              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF
889              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF   890              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF
890              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF   891              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF
891              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF   892              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF
    893              <xsl:with- param name ="ParamNum berContext " select=" 'Paragraph '" /> CR LF
892            < /xsl:call- template> CR LF   894            < /xsl:call- template> CR LF
893           </ xsl:otherw ise> CR LF   895           </ xsl:otherw ise> CR LF
894          </x sl:choose> CR LF   896          </x sl:choose> CR LF
895         </xs l:when> CR LF   897         </xs l:when> CR LF
896   CR LF   898   CR LF
897         <xsl :otherwise > CR LF   899         <xsl :otherwise > CR LF
898          <!- - Text Run s --> CR LF   900          <!- - Text Run s --> CR LF
899          <!- -            --> CR LF   901          <!- -            --> CR LF
900   CR LF   902   CR LF
901          <!- - Begin fo rmatting c all chain.  --> CR LF   903          <!- - Begin fo rmatting c all chain.  --> CR LF
902          <!- -                                 --> CR LF   904          <!- -                                 --> CR LF
903          <xs l:call-tem plate name ="Formatti ng-FontTag Properties "> CR LF   905          <xs l:call-tem plate name ="Formatti ng-FontTag Properties "> CR LF
904           <x sl:with-pa ram name=" ParamPrope rties" sel ect="$VarH TMLContext Properties " /> CR LF   906           <x sl:with-pa ram name=" ParamPrope rties" sel ect="$VarH TMLContext Properties " /> CR LF
905           <x sl:with-pa ram name=" ParamConte xt" select ="$ParamPa ragraph" / > CR LF   907           <x sl:with-pa ram name=" ParamConte xt" select ="$ParamPa ragraph" / > CR LF
906           <x sl:with-pa ram name=" ParamConte xtRule" se lect="$Var ContextRul e" /> CR LF   908           <x sl:with-pa ram name=" ParamConte xtRule" se lect="$Var ContextRul e" /> CR LF
907           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   909           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
908           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF   910           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF
909           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   911           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
910           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   912           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
    913           <x sl:with-pa ram name=" ParamNumbe rContext"  select="'P aragraph'"  /> CR LF
911          </x sl:call-te mplate> CR LF   914          </x sl:call-te mplate> CR LF
912         </xs l:otherwis e> CR LF   915         </xs l:otherwis e> CR LF
913        </xsl :choose> CR LF   916        </xsl :choose> CR LF
914       </xsl: when> CR LF   917       </xsl: when> CR LF
915   CR LF   918   CR LF
916       <!-- S kip Number  --> CR LF   919       <!-- S kip Number  --> CR LF
917       <!--               --> CR LF   920       <!--               --> CR LF
918       <xsl:o therwise> CR LF   921       <xsl:o therwise> CR LF
919        <!--  Text Runs  --> CR LF   922        <!--  Text Runs  --> CR LF
920        <!--             --> CR LF   923        <!--             --> CR LF
921   CR LF   924   CR LF
922        <!--  Begin form atting cal l chain. - -> CR LF   925        <!--  Begin form atting cal l chain. - -> CR LF
923        <!--                                 - -> CR LF   926        <!--                                 - -> CR LF
924        <xsl: call-templ ate name=" Formatting -FontTagPr operties"> CR LF   927        <xsl: call-templ ate name=" Formatting -FontTagPr operties"> CR LF
925         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarHTM LContextPr operties"  /> CR LF   928         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarHTM LContextPr operties"  /> CR LF
926         <xsl :with-para m name="Pa ramContext " select=" $ParamPara graph" /> CR LF   929         <xsl :with-para m name="Pa ramContext " select=" $ParamPara graph" /> CR LF
927         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule"  /> CR LF   930         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule"  /> CR LF
928         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   931         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
929         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   932         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
930         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   933         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
931         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   934         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
    935         <xsl :with-para m name="Pa ramNumberC ontext" se lect="'Par agraph'" / > CR LF
932        </xsl :call-temp late> CR LF   936        </xsl :call-temp late> CR LF
933       </xsl: otherwise> CR LF   937       </xsl: otherwise> CR LF
934      </xsl:c hoose> CR LF   938      </xsl:c hoose> CR LF
935   CR LF   939   CR LF
936     <!-- End  paragraph  emit --> CR LF   940     <!-- End  paragraph  emit --> CR LF
937     <!--                      --> CR LF   941     <!--                      --> CR LF
938     </xsl:el ement> CR LF   942     </xsl:el ement> CR LF
939    </xsl:tem plate> CR LF   943    </xsl:tem plate> CR LF
940   CR LF   944   CR LF
941   CR LF   945   CR LF
942    <xsl:temp late name= "Paragraph Content"> CR LF   946    <xsl:temp late name= "Paragraph Content"> CR LF
943     <xsl:par am name="P aramParagr aph" /> CR LF   947     <xsl:par am name="P aramParagr aph" /> CR LF
944     <xsl:par am name="P aramProper ties" /> CR LF   948     <xsl:par am name="P aramProper ties" /> CR LF
945     <xsl:par am name="P aramContex tRule" /> CR LF   949     <xsl:par am name="P aramContex tRule" /> CR LF
946     <xsl:par am name="P aramSplits " /> CR LF   950     <xsl:par am name="P aramSplits " /> CR LF
947     <xsl:par am name="P aramCargo"  /> CR LF   951     <xsl:par am name="P aramCargo"  /> CR LF
948     <xsl:par am name="P aramLinks"  /> CR LF   952     <xsl:par am name="P aramLinks"  /> CR LF
949     <xsl:par am name="P aramSplit"  /> CR LF   953     <xsl:par am name="P aramSplit"  /> CR LF
950   CR LF   954   CR LF
951     <!-- Use  character  styles? - -> CR LF   955     <!-- Use  character  styles? - -> CR LF
952     <!--                         - -> CR LF   956     <!--                         - -> CR LF
953     <xsl:var iable name ="VarUseCh aracterSty lesOption"  select="$ ParamConte xtRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'use-chara cter-style s']/@Value " /> CR LF   957     <xsl:var iable name ="VarUseCh aracterSty lesOption"  select="$ ParamConte xtRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'use-chara cter-style s']/@Value " /> CR LF
954     <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   958     <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
955   CR LF   959   CR LF
956     <!-- Pre serve empt y? --> CR LF   960     <!-- Pre serve empt y? --> CR LF
957     <!--                   --> CR LF   961     <!--                   --> CR LF
958     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'pres erve-empty ']/@Value"  /> CR LF   962     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'pres erve-empty ']/@Value"  /> CR LF
959     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF   963     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF
960   CR LF   964   CR LF
961     <!-- Tex t Runs --> CR LF   965     <!-- Tex t Runs --> CR LF
962     <!--            --> CR LF   966     <!--            --> CR LF
963     <xsl:cal l-template  name="Par agraphText Runs"> CR LF   967     <xsl:cal l-template  name="Par agraphText Runs"> CR LF
964      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   968      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
965      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF   969      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF
966      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   970      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
967      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   971      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
968      <xsl:wi th-param n ame="Param PreserveEm pty" selec t="$VarPre serveEmpty " /> CR LF   972      <xsl:wi th-param n ame="Param PreserveEm pty" selec t="$VarPre serveEmpty " /> CR LF
969      <xsl:wi th-param n ame="Param UseCharact erStyles"  select="$V arUseChara cterStyles " /> CR LF   973      <xsl:wi th-param n ame="Param UseCharact erStyles"  select="$V arUseChara cterStyles " /> CR LF
970      <xsl:wi th-param n ame="Param Paragraph"  select="$ ParamParag raph" /> CR LF   974      <xsl:wi th-param n ame="Param Paragraph"  select="$ ParamParag raph" /> CR LF
971     </xsl:ca ll-templat e> CR LF   975     </xsl:ca ll-templat e> CR LF
972    </xsl:tem plate> CR LF   976    </xsl:tem plate> CR LF
973   CR LF   977   CR LF
974   CR LF   978   CR LF
975    <xsl:temp late name= "Paragraph NumberCont ent"> CR LF   979    <xsl:temp late name= "Paragraph NumberCont ent"> CR LF
976     <xsl:par am name="P aramContex t" /> CR LF   980     <xsl:par am name="P aramContex t" /> CR LF
    981     <xsl:par am name="P aramContex tRule" /> CR LF
977     <xsl:par am name="P aramSplits " /> CR LF   982     <xsl:par am name="P aramSplits " /> CR LF
978     <xsl:par am name="P aramCargo"  /> CR LF   983     <xsl:par am name="P aramCargo"  /> CR LF
979     <xsl:par am name="P aramLinks"  /> CR LF   984     <xsl:par am name="P aramLinks"  /> CR LF
980     <xsl:par am name="P aramSplit"  /> CR LF   985     <xsl:par am name="P aramSplit"  /> CR LF
981   CR LF   986   CR LF
982      <xsl:
a pp l y -template s   select="$P aramCo n text/*"  m od e=" ww m ode:t e xt r un "> CR LF
  987   CR LF
    988     <!-- Use  character  styles? - -> CR LF
    989     <!--                         - -> CR LF
    990     <xsl:var iable name ="VarUseCh aracterSty lesOption"  select="$ ParamConte xtRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'use-chara cter-style s']/@Value " /> CR LF
    991     <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
    992   CR LF
    993     <!-- Use  bullet fr om UI? --> CR LF
    994     <!--                       --> CR LF
    995     <xsl:var iable name ="VarBulle tCharacter " select=" $ParamCont extRule/ww project:Pr operties/w wproject:P roperty[@N ame = 'bul let-charac ter']/@Val ue" /> CR LF
    996     <xsl:var iable name ="VarBulle tImage" se lect="$Par amContextR ule/wwproj ect:Proper ties/wwpro ject:Prope rty[@Name  = 'bullet- image']/@V alue" /> CR LF
    997     <xsl:var iable name ="VarBulle tSeparator " select=" $ParamCont extRule/ww project:Pr operties/w wproject:P roperty[@N ame = 'bul let-separa tor']/@Val ue" /> CR LF
    998     <xsl:var iable name ="VarBulle tStyle" se lect="$Par amContextR ule/wwproj ect:Proper ties/wwpro ject:Prope rty[@Name  = 'bullet- style']/@V alue" /> CR LF
    999     <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
    1000   CR LF
    1001      <xsl: c a
l l -template
 
n a m
e=" Nu m b e
r
"> CR LF
983      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   1002      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
984      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF   1003      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF
985      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   1004      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
986      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   1005      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
987      </xsl:
a pp l y -template s > CR LF
  1006      <xsl:wi th-param n ame="Param Paragraph"  select="$ ParamConte xt/parent: :wwdoc:Par agraph[1]"  /> CR LF
    1007      <xsl:wi th-param n ame="Param UseCharact erStyles"  select="$V arUseChara cterStyles " /> CR LF
    1008      <xsl:wi th-param n ame="Param IgnoreDocu mentNumber " select=" $VarIgnore DocumentNu mber" /> CR LF
    1009      <xsl:wi th-param n ame="Param Character"  select="$ VarBulletC haracter"  /> CR LF
    1010      <xsl:wi th-param n ame="Param Image" sel ect="$VarB ulletImage " /> CR LF
    1011      <xsl:wi th-param n ame="Param Separator"  select="$ VarBulletS eparator"  /> CR LF
    1012      <xsl:wi th-param n ame="Param Style" sel ect="$VarB ulletStyle " /> CR LF
    1013      </xsl: c a
l l -template
> CR LF
988    </xsl:tem plate> CR LF   1014    </xsl:tem plate> CR LF
989   CR LF   1015   CR LF
990   CR LF   1016   CR LF
991    <xsl:temp late name= "Paragraph TextRuns"> CR LF   1017    <xsl:temp late name= "Paragraph TextRuns"> CR LF
992     <xsl:par am name="P aramSplits " /> CR LF   1018     <xsl:par am name="P aramSplits " /> CR LF
993     <xsl:par am name="P aramCargo"  /> CR LF   1019     <xsl:par am name="P aramCargo"  /> CR LF
994     <xsl:par am name="P aramLinks"  /> CR LF   1020     <xsl:par am name="P aramLinks"  /> CR LF
995     <xsl:par am name="P aramSplit"  /> CR LF   1021     <xsl:par am name="P aramSplit"  /> CR LF
996     <xsl:par am name="P aramPreser veEmpty" / > CR LF   1022     <xsl:par am name="P aramPreser veEmpty" / > CR LF
997     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1023     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
998     <xsl:par am name="P aramParagr aph" /> CR LF   1024     <xsl:par am name="P aramParagr aph" /> CR LF
999   CR LF   1025   CR LF
1000     <!-- Pre vent white space issu es with pr eformatted  text bloc ks --> CR LF   1026     <!-- Pre vent white space issu es with pr eformatted  text bloc ks --> CR LF
1001     <!--                                                               --> CR LF   1027     <!--                                                               --> CR LF
1002     <wwexsld oc:NoBreak  /> CR LF   1028     <wwexsld oc:NoBreak  /> CR LF
1003   CR LF   1029   CR LF
1004     <!-- Non -empty tex t runs --> CR LF   1030     <!-- Non -empty tex t runs --> CR LF
1005     <!--                       --> CR LF   1031     <!--                       --> CR LF
1006      <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
  1032      <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
1007   CR LF   1033   CR LF
1008     <!-- Che ck for emp ty paragra phs --> CR LF   1034     <!-- Che ck for emp ty paragra phs --> CR LF
1009     <!--                               --> CR LF   1035     <!--                               --> CR LF
1010     <xsl:cho ose> CR LF   1036     <xsl:cho ose> CR LF
1011      <xsl:wh en test="c ount($VarT extRuns[1] ) = 1"> CR LF   1037      <xsl:wh en test="c ount($VarT extRuns[1] ) = 1"> CR LF
1012       <!-- P aragraph h as content  --> CR LF   1038       <!-- P aragraph h as content  --> CR LF
1013       <!--                          --> CR LF   1039       <!--                          --> CR LF
1014       <xsl:f or-each se lect="$Var TextRuns"> CR LF   1040       <xsl:f or-each se lect="$Var TextRuns"> CR LF
1015        <xsl: variable n ame="VarTe xtRun" sel ect="." /> CR LF   1041        <xsl: variable n ame="VarTe xtRun" sel ect="." /> CR LF
1016   CR LF   1042   CR LF
1017        <xsl: call-templ ate name=" TextRun"> CR LF   1043        <xsl: call-templ ate name=" TextRun"> CR LF
1018         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1044         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1019         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1045         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1020         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1046         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1021         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1047         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1022         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param Paragraph/ @id" /> CR LF   1048         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param Paragraph/ @id" /> CR LF
1023         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF   1049         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF
1024         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> CR LF   1050         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> CR LF
1025         <xsl :with-para m name="Pa ramPositio n" select= "position( )" /> CR LF   1051         <xsl :with-para m name="Pa ramPositio n" select= "position( )" /> CR LF
1026        </xsl :call-temp late> CR LF   1052        </xsl :call-temp late> CR LF
1027       </xsl: for-each> CR LF   1053       </xsl: for-each> CR LF
1028      </xsl:w hen> CR LF   1054      </xsl:w hen> CR LF
1029   CR LF   1055   CR LF
1030      <xsl:ot herwise> CR LF   1056      <xsl:ot herwise> CR LF
1031       <!-- E mpty parag raph! --> CR LF   1057       <!-- E mpty parag raph! --> CR LF
1032       <!--                    --> CR LF   1058       <!--                    --> CR LF
1033       <xsl:i f test="$P aramPreser veEmpty"> CR LF   1059       <xsl:i f test="$P aramPreser veEmpty"> CR LF
1034        <html :a name="{ $ParamPara graph/@id} ">&#160;</ html:a> CR LF   1060        <html :a name="{ $ParamPara graph/@id} ">&#160;</ html:a> CR LF
1035       </xsl: if> CR LF   1061       </xsl: if> CR LF
1036      </xsl:o therwise> CR LF   1062      </xsl:o therwise> CR LF
1037     </xsl:ch oose> CR LF   1063     </xsl:ch oose> CR LF
1038    </xsl:tem plate> CR LF   1064    </xsl:tem plate> CR LF
1039   CR LF   1065   CR LF
1040   CR LF   1066   CR LF
1041    <xsl:temp late name= "Number"> CR LF   1067    <xsl:temp late name= "Number"> CR LF
1042     <xsl:par am name="P aramSplits " /> CR LF   1068     <xsl:par am name="P aramSplits " /> CR LF
1043     <xsl:par am name="P aramCargo"  /> CR LF   1069     <xsl:par am name="P aramCargo"  /> CR LF
1044     <xsl:par am name="P aramLinks"  /> CR LF   1070     <xsl:par am name="P aramLinks"  /> CR LF
1045     <xsl:par am name="P aramSplit"  /> CR LF   1071     <xsl:par am name="P aramSplit"  /> CR LF
1046     <xsl:par am name="P aramParagr aph" /> CR LF   1072     <xsl:par am name="P aramParagr aph" /> CR LF
1047     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1073     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1048     <xsl:par am name="P aramIgnore DocumentNu mber" /> CR LF   1074     <xsl:par am name="P aramIgnore DocumentNu mber" /> CR LF
1049     <xsl:par am name="P aramCharac ter" /> CR LF   1075     <xsl:par am name="P aramCharac ter" /> CR LF
1050     <xsl:par am name="P aramImage"  /> CR LF   1076     <xsl:par am name="P aramImage"  /> CR LF
1051     <xsl:par am name="P aramSepara tor" /> CR LF   1077     <xsl:par am name="P aramSepara tor" /> CR LF
1052     <xsl:par am name="P aramStyle"  /> CR LF   1078     <xsl:par am name="P aramStyle"  /> CR LF
1053   CR LF   1079   CR LF
1054     <xsl:cho ose> CR LF   1080     <xsl:cho ose> CR LF
1055      <xsl:wh en test="$ ParamIgnor eDocumentN umber"> CR LF   1081      <xsl:wh en test="$ ParamIgnor eDocumentN umber"> CR LF
1056       <xsl:c all-templa te name="C ontent-Bul let"> CR LF   1082       <xsl:c all-templa te name="C ontent-Bul let"> CR LF
1057        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1083        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1058        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF   1084        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF
1059        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   1085        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
1060        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1086        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1061        <xsl: with-param  name="Par amParagrap h" select= "$ParamPar agraph" /> CR LF   1087        <xsl: with-param  name="Par amParagrap h" select= "$ParamPar agraph" /> CR LF
1062        <xsl: with-param  name="Par amCharacte r" select= "$ParamCha racter" /> CR LF   1088        <xsl: with-param  name="Par amCharacte r" select= "$ParamCha racter" /> CR LF
1063        <xsl: with-param  name="Par amImage" s elect="$Pa ramImage"  /> CR LF   1089        <xsl: with-param  name="Par amImage" s elect="$Pa ramImage"  /> CR LF
1064        <xsl: with-param  name="Par amSeparato r" select= "$ParamSep arator" /> CR LF   1090        <xsl: with-param  name="Par amSeparato r" select= "$ParamSep arator" /> CR LF
1065        <xsl: with-param  name="Par amStyle" s elect="$Pa ramStyle"  /> CR LF   1091        <xsl: with-param  name="Par amStyle" s elect="$Pa ramStyle"  /> CR LF
1066       </xsl: call-templ ate> CR LF   1092       </xsl: call-templ ate> CR LF
1067      </xsl:w hen> CR LF   1093      </xsl:w hen> CR LF
1068   CR LF   1094   CR LF
1069      <xsl:ot herwise> CR LF   1095      <xsl:ot herwise> CR LF
1070       <xsl:v ariable na me="VarBul letPropert iesAsXML"> CR LF    
1071        <wwpr oject:Bull etProperti es> CR LF    
1072         <wwp roject:Pro perty Name ="bullet-s tyle" Valu e="{$Param Style}" /> CR LF    
1073        </wwp roject:Bul letPropert ies> CR LF    
1074       </xsl: variable> CR LF    
1075       <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)" /> CR LF    
1076   CR LF    
1077       <xsl:v ariable na me="VarCar go" select ="$ParamCa rgo/*[loca l-name() ! = 'BulletP roperties' ]/.. | $Va rBulletPro perties" / > CR LF    
1078   CR LF    
1079       <xsl:c all-templa te name="T extRun"> CR LF   1096       <xsl:c all-templa te name="T extRun"> CR LF
1080        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1097        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1081         <xsl:with- param name ="ParamCar go" select ="$ V ar
Cargo" /> CR LF
  1098         <xsl:with- param name ="ParamCar go" select ="$ P ar am Cargo" /> CR LF
1082        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   1099        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
1083        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1100        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1084        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraph/@ id" /> CR LF   1101        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraph/@ id" /> CR LF
1085        <xsl: with-param  name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" /> CR LF   1102        <xsl: with-param  name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" /> CR LF
1086        <xsl: with-param  name="Par amTextRun"  select="$ ParamParag raph/wwdoc :Number[1] " /> CR LF   1103        <xsl: with-param  name="Par amTextRun"  select="$ ParamParag raph/wwdoc :Number[1] " /> CR LF
1087        <xsl: with-param  name="Par amPosition " select=" 0" /> CR LF   1104        <xsl: with-param  name="Par amPosition " select=" 0" /> CR LF
1088       </xsl: call-templ ate> CR LF   1105       </xsl: call-templ ate> CR LF
1089      </xsl:o therwise> CR LF   1106      </xsl:o therwise> CR LF
1090     </xsl:ch oose> CR LF   1107     </xsl:ch oose> CR LF
1091    </xsl:tem plate> CR LF   1108    </xsl:tem plate> CR LF
1092   CR LF   1109   CR LF
1093   CR LF   1110   CR LF
1094    <xsl:temp late name= "TextRun"> CR LF   1111    <xsl:temp late name= "TextRun"> CR LF
1095     <xsl:par am name="P aramSplits " /> CR LF   1112     <xsl:par am name="P aramSplits " /> CR LF
1096     <xsl:par am name="P aramCargo"  /> CR LF   1113     <xsl:par am name="P aramCargo"  /> CR LF
1097     <xsl:par am name="P aramLinks"  /> CR LF   1114     <xsl:par am name="P aramLinks"  /> CR LF
1098     <xsl:par am name="P aramSplit"  /> CR LF   1115     <xsl:par am name="P aramSplit"  /> CR LF
1099     <xsl:par am name="P aramParagr aphID" /> CR LF   1116     <xsl:par am name="P aramParagr aphID" /> CR LF
1100     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1117     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1101     <xsl:par am name="P aramTextRu n" /> CR LF   1118     <xsl:par am name="P aramTextRu n" /> CR LF
1102     <xsl:par am name="P aramPositi on" /> CR LF   1119     <xsl:par am name="P aramPositi on" /> CR LF
1103   CR LF   1120   CR LF
1104     <!-- Get  rule --> CR LF   1121     <!-- Get  rule --> CR LF
1105     <!--           --> CR LF   1122     <!--           --> CR LF
1106     <xsl:var iable name ="VarRule"  select="w wprojext:G etRule('Ch aracter',  $ParamText Run/@style name)" /> CR LF   1123     <xsl:var iable name ="VarRule"  select="w wprojext:G etRule('Ch aracter',  $ParamText Run/@style name)" /> CR LF
1107   CR LF   1124   CR LF
1108     <!-- Gen erate outp ut? --> CR LF   1125     <!-- Gen erate outp ut? --> CR LF
1109     <!---                   --> CR LF   1126     <!---                   --> CR LF
1110     <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   1127     <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
1111     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF   1128     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF
1112     <xsl:if  test="$Var GenerateOu tput"> CR LF   1129     <xsl:if  test="$Var GenerateOu tput"> CR LF
1113      <!-- Pa ss-through ? --> CR LF   1130      <!-- Pa ss-through ? --> CR LF
1114      <!--                 --> CR LF   1131      <!--                 --> CR LF
1115      <xsl:va riable nam e="VarPass Through"> CR LF   1132      <xsl:va riable nam e="VarPass Through"> CR LF
    1133       <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
    1134   CR LF
    1135       <xsl:c hoose> CR LF
    1136        <xsl: when test= "$VarPassT hroughOpti on = 'true '"> CR LF
    1137         <xsl :value-of  select="tr ue()" /> CR LF
    1138        </xsl :when> CR LF
    1139   CR LF
    1140        <xsl: otherwise> CR LF
1116       <xsl:c all-templa te name="C onditions- PassThroug h"> CR LF   1141         <xsl :call-temp late name= "Condition s-PassThro ugh"> CR LF
1117        <xsl: with-param  name="Par amConditio ns" select ="$ParamTe xtRun/wwdo c:Conditio ns" /> CR LF   1142          <xs l:with-par am name="P aramCondit ions" sele ct="$Param TextRun/ww doc:Condit ions" /> CR LF
1118       </xsl: call-templ ate> CR LF   1143         </xs l:call-tem plate> CR LF
    1144        </xsl :otherwise > CR LF
    1145       </xsl: choose> CR LF
1119      </xsl:v ariable> CR LF   1146      </xsl:v ariable> CR LF
1120   CR LF   1147   CR LF
1121      <xsl:ch oose> CR LF   1148      <xsl:ch oose> CR LF
1122       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF   1149       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF
1123        <xsl: call-templ ate name=" TextRun-Pa ssThrough" > CR LF   1150        <xsl: call-templ ate name=" TextRun-Pa ssThrough" > CR LF
1124         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF   1151         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF
1125        </xsl :call-temp late> CR LF   1152        </xsl :call-temp late> CR LF
1126       </xsl: when> CR LF   1153       </xsl: when> CR LF
1127   CR LF   1154   CR LF
1128       <xsl:o therwise> CR LF   1155       <xsl:o therwise> CR LF
1129        <xsl: call-templ ate name=" TextRun-No rmal"> CR LF   1156        <xsl: call-templ ate name=" TextRun-No rmal"> CR LF
1130         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1157         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1131         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1158         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1132         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1159         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1133         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1160         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1134         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF   1161         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF
1135         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF   1162         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF
1136         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF   1163         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF
1137         <xsl :with-para m name="Pa ramRule" s elect="$Va rRule" /> CR LF   1164         <xsl :with-para m name="Pa ramRule" s elect="$Va rRule" /> CR LF
1138         <xsl :with-para m name="Pa ramPositio n" select= "$ParamPos ition" /> CR LF   1165         <xsl :with-para m name="Pa ramPositio n" select= "$ParamPos ition" /> CR LF
1139        </xsl :call-temp late> CR LF   1166        </xsl :call-temp late> CR LF
1140       </xsl: otherwise> CR LF   1167       </xsl: otherwise> CR LF
1141      </xsl:c hoose> CR LF   1168      </xsl:c hoose> CR LF
1142     </xsl:if > CR LF   1169     </xsl:if > CR LF
1143    </xsl:tem plate> CR LF   1170    </xsl:tem plate> CR LF
1144   CR LF   1171   CR LF
1145   CR LF   1172   CR LF
1146    <xsl:temp late name= "TextRun-P assThrough "> CR LF   1173    <xsl:temp late name= "TextRun-P assThrough "> CR LF
1147     <xsl:par am name="P aramTextRu n" /> CR LF   1174     <xsl:par am name="P aramTextRu n" /> CR LF
1148   CR LF   1175   CR LF
1149     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF   1176     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF
1150      <xsl:fo r-each sel ect="$Para mTextRun/w wdoc:Text" > CR LF   1177      <xsl:fo r-each sel ect="$Para mTextRun/w wdoc:Text" > CR LF
1151       <xsl:v ariable na me="VarTex t" select= "." /> CR LF   1178       <xsl:v ariable na me="VarTex t" select= "." /> CR LF
1152   CR LF   1179   CR LF
1153       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF   1180       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF
1154      </xsl:f or-each> CR LF   1181      </xsl:f or-each> CR LF
1155     </wwexsl doc:Text> CR LF   1182     </wwexsl doc:Text> CR LF
1156    </xsl:tem plate> CR LF   1183    </xsl:tem plate> CR LF
1157   CR LF   1184   CR LF
1158   CR LF   1185   CR LF
1159    <xsl:temp late name= "TextRun-N ormal"> CR LF   1186    <xsl:temp late name= "TextRun-N ormal"> CR LF
1160     <xsl:par am name="P aramSplits " /> CR LF   1187     <xsl:par am name="P aramSplits " /> CR LF
1161     <xsl:par am name="P aramCargo"  /> CR LF   1188     <xsl:par am name="P aramCargo"  /> CR LF
1162     <xsl:par am name="P aramLinks"  /> CR LF   1189     <xsl:par am name="P aramLinks"  /> CR LF
1163     <xsl:par am name="P aramSplit"  /> CR LF   1190     <xsl:par am name="P aramSplit"  /> CR LF
1164     <xsl:par am name="P aramParagr aphID" /> CR LF   1191     <xsl:par am name="P aramParagr aphID" /> CR LF
1165     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1192     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1166     <xsl:par am name="P aramTextRu n" /> CR LF   1193     <xsl:par am name="P aramTextRu n" /> CR LF
1167     <xsl:par am name="P aramRule"  /> CR LF   1194     <xsl:par am name="P aramRule"  /> CR LF
1168     <xsl:par am name="P aramPositi on" /> CR LF   1195     <xsl:par am name="P aramPositi on" /> CR LF
1169   CR LF   1196   CR LF
1170     <xsl:var iable name ="VarLinkI nfoAsXML"> CR LF   1197     <xsl:var iable name ="VarLinkI nfoAsXML"> CR LF
1171      <xsl:ca ll-templat e name="Li nkInfo"> CR LF   1198      <xsl:ca ll-templat e name="Li nkInfo"> CR LF
1172       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   1199       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
1173       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   1200       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
1174       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   1201       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
1175       <xsl:w ith-param  name="Para mDocumentL ink" selec t="$ParamT extRun/wwd oc:Link" / > CR LF   1202       <xsl:w ith-param  name="Para mDocumentL ink" selec t="$ParamT extRun/wwd oc:Link" / > CR LF
1176      </xsl:c all-templa te> CR LF   1203      </xsl:c all-templa te> CR LF
1177     </xsl:va riable> CR LF   1204     </xsl:va riable> CR LF
1178     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> CR LF   1205     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> CR LF
1179   CR LF   1206   CR LF
1180     <xsl:cho ose> CR LF   1207     <xsl:cho ose> CR LF
1181      <xsl:wh en test="s tring-leng th($VarLin kInfo/@hre f) &gt; 0" > CR LF   1208      <xsl:wh en test="s tring-leng th($VarLin kInfo/@hre f) &gt; 0" > CR LF
1182       <html: a href="{$ VarLinkInf o/@href}"> CR LF   1209       <html: a href="{$ VarLinkInf o/@href}"> CR LF
1183        <xsl: if test="s tring-leng th($VarLin kInfo/@tit le) &gt; 0 "> CR LF   1210        <xsl: if test="s tring-leng th($VarLin kInfo/@tit le) &gt; 0 "> CR LF
1184         <xsl :attribute  name="tit le"> CR LF   1211         <xsl :attribute  name="tit le"> CR LF
1185          <xs l:value-of  select="$ VarLinkInf o/@title"  /> CR LF   1212          <xs l:value-of  select="$ VarLinkInf o/@title"  /> CR LF
1186         </xs l:attribut e> CR LF   1213         </xs l:attribut e> CR LF
1187        </xsl :if> CR LF   1214        </xsl :if> CR LF
1188        <xsl: if test="s tring-leng th($VarLin kInfo/@tar get) &gt;  0"> CR LF   1215        <xsl: if test="s tring-leng th($VarLin kInfo/@tar get) &gt;  0"> CR LF
1189         <xsl :attribute  name="tar get"> CR LF   1216         <xsl :attribute  name="tar get"> CR LF
1190          <xs l:value-of  select="$ VarLinkInf o/@target"  /> CR LF   1217          <xs l:value-of  select="$ VarLinkInf o/@target"  /> CR LF
1191         </xs l:attribut e> CR LF   1218         </xs l:attribut e> CR LF
1192        </xsl :if> CR LF   1219        </xsl :if> CR LF
1193        <xsl: if test="( position()  = 1) and  (local-nam e($ParamTe xtRun) !=  'Number')" > CR LF   1220        <xsl: if test="( position()  = 1) and  (local-nam e($ParamTe xtRun) !=  'Number')" > CR LF
1194         <xsl :attribute  name="nam e"> CR LF   1221         <xsl :attribute  name="nam e"> CR LF
1195          <xs l:value-of  select="$ ParamParag raphID" /> CR LF   1222          <xs l:value-of  select="$ ParamParag raphID" /> CR LF
1196         </xs l:attribut e> CR LF   1223         </xs l:attribut e> CR LF
1197        </xsl :if> CR LF   1224        </xsl :if> CR LF
1198   CR LF   1225   CR LF
1199        <xsl: call-templ ate name=" TextRunChi ldren"> CR LF   1226        <xsl: call-templ ate name=" TextRunChi ldren"> CR LF
1200         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1227         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1201         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1228         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1202         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1229         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1203         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1230         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1204         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF   1231         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF
1205         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF   1232         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF
1206         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > CR LF   1233         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > CR LF
1207         <xsl :with-para m name="Pa ramPositio n" select= "$ParamPos ition" /> CR LF   1234         <xsl :with-para m name="Pa ramPositio n" select= "$ParamPos ition" /> CR LF
1208        </xsl :call-temp late> CR LF   1235        </xsl :call-temp late> CR LF
1209       </html :a> CR LF   1236       </html :a> CR LF
1210      </xsl:w hen> CR LF   1237      </xsl:w hen> CR LF
1211   CR LF   1238   CR LF
1212      <xsl:wh en test="( position()  = 1) and  (local-nam e($ParamTe xtRun) !=  'Number')" > CR LF   1239      <xsl:wh en test="( position()  = 1) and  (local-nam e($ParamTe xtRun) !=  'Number')" > CR LF
1213       <html: a name="{$ ParamParag raphID}"> CR LF   1240       <html: a name="{$ ParamParag raphID}"> CR LF
1214        <xsl: call-templ ate name=" TextRunChi ldren"> CR LF   1241        <xsl: call-templ ate name=" TextRunChi ldren"> CR LF
1215         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1242         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1216         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1243         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1217         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1244         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1218         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1245         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1219         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF   1246         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF
1220         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF   1247         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF
1221         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > CR LF   1248         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > CR LF
1222         <xsl :with-para m name="Pa ramPositio n" select= "$ParamPos ition" /> CR LF   1249         <xsl :with-para m name="Pa ramPositio n" select= "$ParamPos ition" /> CR LF
1223        </xsl :call-temp late> CR LF   1250        </xsl :call-temp late> CR LF
1224       </html :a> CR LF   1251       </html :a> CR LF
1225      </xsl:w hen> CR LF   1252      </xsl:w hen> CR LF
1226   CR LF   1253   CR LF
1227      <xsl:ot herwise> CR LF   1254      <xsl:ot herwise> CR LF
1228       <xsl:c all-templa te name="T extRunChil dren"> CR LF   1255       <xsl:c all-templa te name="T extRunChil dren"> CR LF
1229        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1256        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1230        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF   1257        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF
1231        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   1258        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
1232        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1259        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1233        <xsl: with-param  name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" /> CR LF   1260        <xsl: with-param  name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" /> CR LF
1234        <xsl: with-param  name="Par amTextRun"  select="$ ParamTextR un" /> CR LF   1261        <xsl: with-param  name="Par amTextRun"  select="$ ParamTextR un" /> CR LF
1235        <xsl: with-param  name="Par amRule" se lect="$Par amRule" /> CR LF   1262        <xsl: with-param  name="Par amRule" se lect="$Par amRule" /> CR LF
1236        <xsl: with-param  name="Par amPosition " select=" $ParamPosi tion" /> CR LF   1263        <xsl: with-param  name="Par amPosition " select=" $ParamPosi tion" /> CR LF
1237       </xsl: call-templ ate> CR LF   1264       </xsl: call-templ ate> CR LF
1238      </xsl:o therwise> CR LF   1265      </xsl:o therwise> CR LF
1239     </xsl:ch oose> CR LF   1266     </xsl:ch oose> CR LF
1240    </xsl:tem plate> CR LF   1267    </xsl:tem plate> CR LF
1241   CR LF   1268   CR LF
1242   CR LF   1269   CR LF
1243    <xsl:temp late name= "LinkInfo" > CR LF   1270    <xsl:temp late name= "LinkInfo" > CR LF
1244     <xsl:par am name="P aramSplits " /> CR LF   1271     <xsl:par am name="P aramSplits " /> CR LF
1245     <xsl:par am name="P aramLinks"  /> CR LF   1272     <xsl:par am name="P aramLinks"  /> CR LF
1246     <xsl:par am name="P aramSplit"  /> CR LF   1273     <xsl:par am name="P aramSplit"  /> CR LF
1247     <xsl:par am name="P aramDocume ntLink" /> CR LF   1274     <xsl:par am name="P aramDocume ntLink" /> CR LF
1248   CR LF   1275   CR LF
1249     <xsl:ele ment name= "LinkInfo"  namespace ="urn:WebW orks-Engin e-Links-Sc hema"> CR LF   1276     <xsl:ele ment name= "LinkInfo"  namespace ="urn:WebW orks-Engin e-Links-Sc hema"> CR LF
1250      <xsl:if  test="cou nt($ParamD ocumentLin k) &gt; 0" > CR LF   1277      <xsl:if  test="cou nt($ParamD ocumentLin k) &gt; 0" > CR LF
1251       <!-- R esolve lin k --> CR LF   1278       <!-- R esolve lin k --> CR LF
1252       <!--                --> CR LF   1279       <!--                --> CR LF
1253       <xsl:v ariable na me="VarRes olvedLinkI nfoAsXML"> CR LF   1280       <xsl:v ariable na me="VarRes olvedLinkI nfoAsXML"> CR LF
1254        <xsl: call-templ ate name=" Links-Reso lve"> CR LF   1281        <xsl: call-templ ate name=" Links-Reso lve"> CR LF
1255         <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para meterAllow Baggage" / > CR LF   1282         <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para meterAllow Baggage" / > CR LF
1256         <xsl :with-para m name="Pa ramAllowGr oupToGroup " select=" $Parameter AllowGroup ToGroup" / > CR LF   1283         <xsl :with-para m name="Pa ramAllowGr oupToGroup " select=" $Parameter AllowGroup ToGroup" / > CR LF
1257         <xsl :with-para m name="Pa ramAllowUR L" select= "$Paramete rAllowURL"  /> CR LF   1284         <xsl :with-para m name="Pa ramAllowUR L" select= "$Paramete rAllowURL"  /> CR LF
1258         <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$Parame terBaggage SplitFileT ype" /> CR LF   1285         <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$Parame terBaggage SplitFileT ype" /> CR LF
1259         <xsl :with-para m name="Pa ramProject " select=" $GlobalPro ject" /> CR LF   1286         <xsl :with-para m name="Pa ramProject " select=" $GlobalPro ject" /> CR LF
1260         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1287         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1261         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1288         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1262         <xsl :with-para m name="Pa ramSplitGr oupID" sel ect="$Para mSplit/@gr oupID" /> CR LF   1289         <xsl :with-para m name="Pa ramSplitGr oupID" sel ect="$Para mSplit/@gr oupID" /> CR LF
1263         <xsl :with-para m name="Pa ramSplitDo cumentID"  select="$P aramSplit/ @documentI D" /> CR LF   1290         <xsl :with-para m name="Pa ramSplitDo cumentID"  select="$P aramSplit/ @documentI D" /> CR LF
1264         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" /> CR LF   1291         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" /> CR LF
1265        </xsl :call-temp late> CR LF   1292        </xsl :call-temp late> CR LF
1266       </xsl: variable> CR LF   1293       </xsl: variable> CR LF
1267       <xsl:v ariable na me="VarRes olvedLinkI nfo" selec t="msxsl:n ode-set($V arResolved LinkInfoAs XML)/wwlin ks:Resolve dLink" /> CR LF   1294       <xsl:v ariable na me="VarRes olvedLinkI nfo" selec t="msxsl:n ode-set($V arResolved LinkInfoAs XML)/wwlin ks:Resolve dLink" /> CR LF
1268   CR LF   1295   CR LF
1269       <!-- @ title --> CR LF   1296       <!-- @ title --> CR LF
1270       <!--         --> CR LF   1297       <!--         --> CR LF
1271       <xsl:i f test="st ring-lengt h($VarReso lvedLinkIn fo/@title)  &gt; 0"> CR LF   1298       <xsl:i f test="st ring-lengt h($VarReso lvedLinkIn fo/@title)  &gt; 0"> CR LF
1272        <xsl: attribute  name="titl e"> CR LF   1299        <xsl: attribute  name="titl e"> CR LF
1273         <xsl :value-of  select="$V arResolved LinkInfo/@ title" /> CR LF   1300         <xsl :value-of  select="$V arResolved LinkInfo/@ title" /> CR LF
1274        </xsl :attribute > CR LF   1301        </xsl :attribute > CR LF
1275       </xsl: if> CR LF   1302       </xsl: if> CR LF
1276   CR LF   1303   CR LF
1277       <xsl:c hoose> CR LF   1304       <xsl:c hoose> CR LF
1278        <!--  Baggage -- > CR LF   1305        <!--  Baggage -- > CR LF
1279        <!--          -- > CR LF   1306        <!--          -- > CR LF
1280        <xsl: when test= "$VarResol vedLinkInf o/@type =  'baggage'" > CR LF   1307        <xsl: when test= "$VarResol vedLinkInf o/@type =  'baggage'" > CR LF
1281         <xsl :variable  name="VarR elativePat h" select= "wwuri:Get RelativeTo ($VarResol vedLinkInf o/@path, $ ParamSplit /@path)" / > CR LF   1308         <xsl :variable  name="VarR elativePat h" select= "wwuri:Get RelativeTo ($VarResol vedLinkInf o/@path, $ ParamSplit /@path)" / > CR LF
1282   CR LF   1309   CR LF
1283         <xsl :attribute  name="hre f"> CR LF   1310         <xsl :attribute  name="hre f"> CR LF
1284          <xs l:value-of  select="$ VarRelativ ePath" /> CR LF   1311          <xs l:value-of  select="$ VarRelativ ePath" /> CR LF
1285         </xs l:attribut e> CR LF   1312         </xs l:attribut e> CR LF
1286   CR LF   1313   CR LF
1287         <xsl :variable  name="VarT arget" sel ect="wwpro jext:GetFo rmatSettin g('baggage -file-targ et', 'exte rnal_windo w')" /> CR LF   1314         <xsl :variable  name="VarT arget" sel ect="wwpro jext:GetFo rmatSettin g('baggage -file-targ et', 'exte rnal_windo w')" /> CR LF
1288   CR LF   1315   CR LF
1289         <xsl :if test=" (string-le ngth($VarT arget) &gt ; 0) and ( $VarTarget  != 'none' )"> CR LF   1316         <xsl :if test=" (string-le ngth($VarT arget) &gt ; 0) and ( $VarTarget  != 'none' )"> CR LF
1290          <xs l:attribut e name="ta rget"> CR LF   1317          <xs l:attribut e name="ta rget"> CR LF
1291           <x sl:value-o f select=" $VarTarget " /> CR LF   1318           <x sl:value-o f select=" $VarTarget " /> CR LF
1292          </x sl:attribu te> CR LF   1319          </x sl:attribu te> CR LF
1293         </xs l:if> CR LF   1320         </xs l:if> CR LF
1294        </xsl :when> CR LF   1321        </xsl :when> CR LF
1295   CR LF   1322   CR LF
1296        <!--  Document - -> CR LF   1323        <!--  Document - -> CR LF
1297        <!--           - -> CR LF   1324        <!--           - -> CR LF
1298        <xsl: when test= "($VarReso lvedLinkIn fo/@type =  'document ') or ($Va rResolvedL inkInfo/@t ype = 'gro up') or ($ VarResolve dLinkInfo/ @type = 'p roject')"> CR LF   1325        <xsl: when test= "($VarReso lvedLinkIn fo/@type =  'document ') or ($Va rResolvedL inkInfo/@t ype = 'gro up') or ($ VarResolve dLinkInfo/ @type = 'p roject')"> CR LF
1299         <xsl :attribute  name="hre f"> CR LF   1326         <xsl :attribute  name="hre f"> CR LF
1300          <xs l:variable  name="Var RelativePa th" select ="wwuri:Ge tRelativeT o($VarReso lvedLinkIn fo/@path,  $ParamSpli t/@path)"  /> CR LF   1327          <xs l:variable  name="Var RelativePa th" select ="wwuri:Ge tRelativeT o($VarReso lvedLinkIn fo/@path,  $ParamSpli t/@path)"  /> CR LF
1301   CR LF   1328   CR LF
1302          <xs l:value-of  select="$ VarRelativ ePath" /> CR LF   1329          <xs l:value-of  select="$ VarRelativ ePath" /> CR LF
1303          <xs l:if test= "string-le ngth($Para mDocumentL ink/@ancho r) &gt; 0" > CR LF   1330          <xs l:if test= "string-le ngth($Para mDocumentL ink/@ancho r) &gt; 0" > CR LF
1304           <x sl:text>#< /xsl:text> CR LF   1331           <x sl:text>#< /xsl:text> CR LF
1305           <x sl:value-o f select=" $VarResolv edLinkInfo /@linkid"  /> CR LF   1332           <x sl:value-o f select=" $VarResolv edLinkInfo /@linkid"  /> CR LF
1306          </x sl:if> CR LF   1333          </x sl:if> CR LF
1307         </xs l:attribut e> CR LF   1334         </xs l:attribut e> CR LF
1308        </xsl :when> CR LF   1335        </xsl :when> CR LF
1309   CR LF   1336   CR LF
1310        <!--  URL --> CR LF   1337        <!--  URL --> CR LF
1311        <!--      --> CR LF   1338        <!--      --> CR LF
1312        <xsl: when test= "$VarResol vedLinkInf o/@type =  'url'"> CR LF   1339        <xsl: when test= "$VarResol vedLinkInf o/@type =  'url'"> CR LF
1313         <xsl :attribute  name="hre f"> CR LF   1340         <xsl :attribute  name="hre f"> CR LF
1314          <xs l:value-of  select="$ VarResolve dLinkInfo/ @url" /> CR LF   1341          <xs l:value-of  select="$ VarResolve dLinkInfo/ @url" /> CR LF
1315         </xs l:attribut e> CR LF   1342         </xs l:attribut e> CR LF
1316   CR LF   1343   CR LF
1317         <!--  External  URL Target  --> CR LF   1344         <!--  External  URL Target  --> CR LF
1318         <!--                        --> CR LF   1345         <!--                        --> CR LF
1319         <xsl :if test=" not(wwuri: IsFile($Va rResolvedL inkInfo/@u rl))"> CR LF   1346         <xsl :if test=" not(wwuri: IsFile($Va rResolvedL inkInfo/@u rl))"> CR LF
1320          <xs l:variable  name="Var Target" se lect="wwpr ojext:GetF ormatSetti ng('extern al-url-tar get', 'ext ernal_wind ow')" /> CR LF   1347          <xs l:variable  name="Var Target" se lect="wwpr ojext:GetF ormatSetti ng('extern al-url-tar get', 'ext ernal_wind ow')" /> CR LF
1321   CR LF   1348   CR LF
1322          <xs l:if test= "(string-l ength($Var Target) &g t; 0) and  ($VarTarge t != 'none ')"> CR LF   1349          <xs l:if test= "(string-l ength($Var Target) &g t; 0) and  ($VarTarge t != 'none ')"> CR LF
1323           <x sl:attribu te name="t arget"> CR LF   1350           <x sl:attribu te name="t arget"> CR LF
1324            < xsl:value- of select= "$VarTarge t" /> CR LF   1351            < xsl:value- of select= "$VarTarge t" /> CR LF
1325           </ xsl:attrib ute> CR LF   1352           </ xsl:attrib ute> CR LF
1326          </x sl:if> CR LF   1353          </x sl:if> CR LF
1327         </xs l:if> CR LF   1354         </xs l:if> CR LF
1328        </xsl :when> CR LF   1355        </xsl :when> CR LF
1329       </xsl: choose> CR LF   1356       </xsl: choose> CR LF
1330      </xsl:i f> CR LF   1357      </xsl:i f> CR LF
1331     </xsl:el ement> CR LF   1358     </xsl:el ement> CR LF
1332    </xsl:tem plate> CR LF   1359    </xsl:tem plate> CR LF
1333   CR LF   1360   CR LF
1334   CR LF   1361   CR LF
1335    <xsl:temp late name= "TextRunCh ildren"> CR LF   1362    <xsl:temp late name= "TextRunCh ildren"> CR LF
1336     <xsl:par am name="P aramSplits " /> CR LF   1363     <xsl:par am name="P aramSplits " /> CR LF
1337     <xsl:par am name="P aramCargo"  /> CR LF   1364     <xsl:par am name="P aramCargo"  /> CR LF
1338     <xsl:par am name="P aramLinks"  /> CR LF   1365     <xsl:par am name="P aramLinks"  /> CR LF
1339     <xsl:par am name="P aramSplit"  /> CR LF   1366     <xsl:par am name="P aramSplit"  /> CR LF
1340     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1367     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1341     <xsl:par am name="P aramTextRu n" /> CR LF   1368     <xsl:par am name="P aramTextRu n" /> CR LF
1342     <xsl:par am name="P aramRule"  /> CR LF   1369     <xsl:par am name="P aramRule"  /> CR LF
1343     <xsl:par am name="P aramPositi on" /> CR LF   1370     <xsl:par am name="P aramPositi on" /> CR LF
1344   CR LF   1371   CR LF
1345     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF   1372     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF
1346     <!--                                                   --> CR LF   1373     <!--                                                   --> CR LF
1347     <wwexsld oc:NoBreak  /> CR LF   1374     <wwexsld oc:NoBreak  /> CR LF
1348   CR LF   1375   CR LF
1349     <xsl:cho ose> CR LF   1376     <xsl:cho ose> CR LF
1350      <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   1377      <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
1351       <!-- R esolve pro ject prope rties --> CR LF   1378       <!-- R esolve pro ject prope rties --> CR LF
1352       <!--                               --> CR LF   1379       <!--                               --> CR LF
1353       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> CR LF   1380       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> CR LF
1354        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > CR LF   1381        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > CR LF
1355         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramTextRu n" /> CR LF   1382         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramTextRu n" /> CR LF
1356         <xsl :with-para m name="Pa ramPropert ies" selec t="$ParamR ule/wwproj ect:Proper ties/wwpro ject:Prope rty" /> CR LF   1383         <xsl :with-para m name="Pa ramPropert ies" selec t="$ParamR ule/wwproj ect:Proper ties/wwpro ject:Prope rty" /> CR LF
1357         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamTe xtRun/@sty lename" /> CR LF   1384         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamTe xtRun/@sty lename" /> CR LF
1358         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> CR LF   1385         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> CR LF
1359         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mTextRun/w wdoc:Style " /> CR LF   1386         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mTextRun/w wdoc:Style " /> CR LF
1360        </xsl :call-temp late> CR LF   1387        </xsl :call-temp late> CR LF
1361       </xsl: variable> CR LF   1388       </xsl: variable> CR LF
1362       <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   1389       <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
1363   CR LF   1390   CR LF
1364       <!-- H TML proper ties --> CR LF   1391       <!-- H TML proper ties --> CR LF
1365       <!--                   --> CR LF   1392       <!--                   --> CR LF
1366       <xsl:v ariable na me="VarHTM LContextPr opertiesAs XML"> CR LF   1393       <xsl:v ariable na me="VarHTM LContextPr opertiesAs XML"> CR LF
1367        <xsl: call-templ ate name=" HTML-Trans lateProjec tPropertie s"> CR LF   1394        <xsl: call-templ ate name=" HTML-Trans lateProjec tPropertie s"> CR LF
1368         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> CR LF   1395         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> CR LF
1369        </xsl :call-temp late> CR LF   1396        </xsl :call-temp late> CR LF
1370       </xsl: variable> CR LF   1397       </xsl: variable> CR LF
1371       <xsl:v ariable na me="VarHTM LContextPr operties"  select="ms xsl:node-s et($VarHTM LContextPr opertiesAs XML)/wwpro ject:Prope rty" /> CR LF   1398       <xsl:v ariable na me="VarHTM LContextPr operties"  select="ms xsl:node-s et($VarHTM LContextPr opertiesAs XML)/wwpro ject:Prope rty" /> CR LF
1372   CR LF   1399   CR LF
1373       <xsl:c hoose> CR LF   1400       <xsl:c hoose> CR LF
1374        <xsl: when test= "(string-l ength($Par amTextRun/ @stylename ) &gt; 0)  or (count( $ParamText Run/wwdoc: Style[1])  &gt; 0)"> CR LF   1401        <xsl: when test= "(string-l ength($Par amTextRun/ @stylename ) &gt; 0)  or (count( $ParamText Run/wwdoc: Style[1])  &gt; 0)"> CR LF
1375         <!--  Character  Style --> CR LF   1402         <!--  Character  Style --> CR LF
1376         <!--                   --> CR LF   1403         <!--                   --> CR LF
1377   CR LF   1404   CR LF
1378         <!--  Begin for matting ca ll chain.  --> CR LF   1405         <!--  Begin for matting ca ll chain.  --> CR LF
1379         <!--                                  --> CR LF   1406         <!--                                  --> CR LF
1380         <xsl :call-temp late name= "Formattin g-FontTagP roperties" > CR LF   1407         <xsl :call-temp late name= "Formattin g-FontTagP roperties" > CR LF
1381          <xs l:with-par am name="P aramProper ties" sele ct="$VarHT MLContextP roperties"  /> CR LF   1408          <xs l:with-par am name="P aramProper ties" sele ct="$VarHT MLContextP roperties"  /> CR LF
1382          <xs l:with-par am name="P aramContex t" select= "$ParamTex tRun" /> CR LF   1409          <xs l:with-par am name="P aramContex t" select= "$ParamTex tRun" /> CR LF
1383          <xs l:with-par am name="P aramContex tRule" sel ect="$Para mRule" /> CR LF   1410          <xs l:with-par am name="P aramContex tRule" sel ect="$Para mRule" /> CR LF
1384          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   1411          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
1385          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF   1412          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF
1386          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF   1413          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF
1387          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   1414          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
    1415          <xs l:with-par am name="P aramNumber Context" s elect="'Te xtRun'" /> CR LF
1388         </xs l:call-tem plate> CR LF   1416         </xs l:call-tem plate> CR LF
1389        </xsl :when> CR LF   1417        </xsl :when> CR LF
1390   CR LF   1418   CR LF
1391        <xsl: otherwise> CR LF   1419        <xsl: otherwise> CR LF
1392         <!--  No style  --> CR LF   1420         <!--  No style  --> CR LF
1393         <!--            --> CR LF   1421         <!--            --> CR LF
1394         <xsl :apply-tem plates sel ect="$Para mTextRun/* " mode="ww mode:textr un"> CR LF   1422         <xsl :apply-tem plates sel ect="$Para mTextRun/* " mode="ww mode:textr un"> CR LF
1395          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   1423          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
1396          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF   1424          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF
1397          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF   1425          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF
1398          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   1426          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
1399         </xs l:apply-te mplates> CR LF   1427         </xs l:apply-te mplates> CR LF
1400        </xsl :otherwise > CR LF   1428        </xsl :otherwise > CR LF
1401       </xsl: choose> CR LF   1429       </xsl: choose> CR LF
1402      </xsl:w hen> CR LF   1430      </xsl:w hen> CR LF
1403   CR LF   1431   CR LF
1404      <xsl:ot herwise> CR LF   1432      <xsl:ot herwise> CR LF
1405       <!-- N o style -- > CR LF   1433       <!-- N o style -- > CR LF
1406       <!--           -- > CR LF   1434       <!--           -- > CR LF
1407       <xsl:a pply-templ ates selec t="$ParamT extRun/*"  mode="wwmo de:textrun "> CR LF   1435       <xsl:a pply-templ ates selec t="$ParamT extRun/*"  mode="wwmo de:textrun "> CR LF
1408        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1436        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1409        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF   1437        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF
1410        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   1438        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
1411        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1439        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1412       </xsl: apply-temp lates> CR LF   1440       </xsl: apply-temp lates> CR LF
1413      </xsl:o therwise> CR LF   1441      </xsl:o therwise> CR LF
1414     </xsl:ch oose> CR LF   1442     </xsl:ch oose> CR LF
1415   CR LF   1443   CR LF
1416     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF   1444     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF
1417     <!--                                                   --> CR LF   1445     <!--                                                   --> CR LF
1418     <wwexsld oc:NoBreak  /> CR LF   1446     <wwexsld oc:NoBreak  /> CR LF
1419    </xsl:tem plate> CR LF   1447    </xsl:tem plate> CR LF
1420   CR LF   1448   CR LF
1421    <!-- Retu rn from Fo rmatting c all chain.  --> CR LF   1449    <!-- Retu rn from Fo rmatting c all chain.  --> CR LF
1422    <!--                                        --> CR LF   1450    <!--                                        --> CR LF
1423    <xsl:temp late name= "TextRunCo ntent"> CR LF   1451    <xsl:temp late name= "TextRunCo ntent"> CR LF
1424     <xsl:par am name="P aramTextRu n" /> CR LF   1452     <xsl:par am name="P aramTextRu n" /> CR LF
1425     <xsl:par am name="P aramSplits " /> CR LF   1453     <xsl:par am name="P aramSplits " /> CR LF
1426     <xsl:par am name="P aramCargo"  /> CR LF   1454     <xsl:par am name="P aramCargo"  /> CR LF
1427     <xsl:par am name="P aramLinks"  /> CR LF   1455     <xsl:par am name="P aramLinks"  /> CR LF
1428     <xsl:par am name="P aramSplit"  /> CR LF   1456     <xsl:par am name="P aramSplit"  /> CR LF
1429   CR LF   1457   CR LF
1430     <xsl:app ly-templat es select= "$ParamTex tRun/*" mo de="wwmode :textrun"> CR LF   1458     <xsl:app ly-templat es select= "$ParamTex tRun/*" mo de="wwmode :textrun"> CR LF
1431      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   1459      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
1432      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF   1460      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF
1433      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   1461      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
1434      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   1462      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
1435     </xsl:ap ply-templa tes> CR LF   1463     </xsl:ap ply-templa tes> CR LF
1436    </xsl:tem plate> CR LF   1464    </xsl:tem plate> CR LF
1437   CR LF   1465   CR LF
1438   CR LF   1466   CR LF
1439    <xsl:temp late match ="wwdoc:No te" mode=" wwmode:tex trun"> CR LF   1467    <xsl:temp late match ="wwdoc:No te" mode=" wwmode:tex trun"> CR LF
1440     <xsl:par am name="P aramSplits " /> CR LF   1468     <xsl:par am name="P aramSplits " /> CR LF
1441     <xsl:par am name="P aramCargo"  /> CR LF   1469     <xsl:par am name="P aramCargo"  /> CR LF
1442     <xsl:par am name="P aramLinks"  /> CR LF   1470     <xsl:par am name="P aramLinks"  /> CR LF
1443     <xsl:par am name="P aramSplit"  /> CR LF   1471     <xsl:par am name="P aramSplit"  /> CR LF
1444   CR LF   1472   CR LF
1445     <xsl:var iable name ="VarConte xt" select ="." /> CR LF   1473     <xsl:var iable name ="VarConte xt" select ="." /> CR LF
1446   CR LF   1474   CR LF
1447     <!-- Imp lement not es --> CR LF   1475     <!-- Imp lement not es --> CR LF
1448     <!--                   --> CR LF   1476     <!--                   --> CR LF
1449     <xsl:for -each sele ct="$Param Cargo/wwno tes:NoteNu mbering[1] "> CR LF   1477     <xsl:for -each sele ct="$Param Cargo/wwno tes:NoteNu mbering[1] "> CR LF
1450      <xsl:va riable nam e="VarNote Number" se lect="key( 'wwnotes-n otes-by-id ', $VarCon text/@id)/ @number" / > CR LF   1478      <xsl:va riable nam e="VarNote Number" se lect="key( 'wwnotes-n otes-by-id ', $VarCon text/@id)/ @number" / > CR LF
1451   CR LF   1479   CR LF
1452      <!-- Fo rce sup on  same line  as contai ning span  --> CR LF   1480      <!-- Fo rce sup on  same line  as contai ning span  --> CR LF
1453      <!--                                                --> CR LF   1481      <!--                                                --> CR LF
1454      <wwexsl doc:NoBrea k /> CR LF   1482      <wwexsl doc:NoBrea k /> CR LF
1455   CR LF   1483   CR LF
1456      <html:s up> CR LF   1484      <html:s up> CR LF
1457       <!-- F orce ancho r on same  line as co ntaining s up --> CR LF   1485       <!-- F orce ancho r on same  line as co ntaining s up --> CR LF
1458       <!--                                                  --> CR LF   1486       <!--                                                  --> CR LF
1459       <wwexs ldoc:NoBre ak /> CR LF   1487       <wwexs ldoc:NoBre ak /> CR LF
1460   CR LF   1488   CR LF
1461       <html: a> CR LF   1489       <html: a> CR LF
1462        <xsl: attribute  name="name "> CR LF   1490        <xsl: attribute  name="name "> CR LF
1463         <xsl :text>wwfo otnote_inl ine_</xsl: text> CR LF   1491         <xsl :text>wwfo otnote_inl ine_</xsl: text> CR LF
1464         <xsl :value-of  select="$V arContext/ @id" /> CR LF   1492         <xsl :value-of  select="$V arContext/ @id" /> CR LF
1465        </xsl :attribute > CR LF   1493        </xsl :attribute > CR LF
1466        <xsl: attribute  name="href "> CR LF   1494        <xsl: attribute  name="href "> CR LF
1467         <xsl :text>#</x sl:text> CR LF   1495         <xsl :text>#</x sl:text> CR LF
1468         <xsl :value-of  select="$V arContext/ @id" /> CR LF   1496         <xsl :value-of  select="$V arContext/ @id" /> CR LF
1469        </xsl :attribute > CR LF   1497        </xsl :attribute > CR LF
1470   CR LF   1498   CR LF
1471        <xsl: value-of s elect="$Va rNoteNumbe r" /> CR LF   1499        <xsl: value-of s elect="$Va rNoteNumbe r" /> CR LF
1472       </html :a> CR LF   1500       </html :a> CR LF
1473      </html: sup> CR LF   1501      </html: sup> CR LF
1474     </xsl:fo r-each> CR LF   1502     </xsl:fo r-each> CR LF
1475    </xsl:tem plate> CR LF   1503    </xsl:tem plate> CR LF
1476   CR LF   1504   CR LF
1477   CR LF   1505   CR LF
1478    <xsl:temp late match ="wwdoc:Li neBreak" m ode="wwmod e:textrun" > CR LF   1506    <xsl:temp late match ="wwdoc:Li neBreak" m ode="wwmod e:textrun" > CR LF
1479     <xsl:par am name="P aramSplits " /> CR LF   1507     <xsl:par am name="P aramSplits " /> CR LF
1480     <xsl:par am name="P aramCargo"  /> CR LF   1508     <xsl:par am name="P aramCargo"  /> CR LF
1481     <xsl:par am name="P aramLinks"  /> CR LF   1509     <xsl:par am name="P aramLinks"  /> CR LF
1482     <xsl:par am name="P aramSplit"  /> CR LF   1510     <xsl:par am name="P aramSplit"  /> CR LF
1483   CR LF   1511   CR LF
1484     <html:br  /> CR LF   1512     <html:br  /> CR LF
1485    </xsl:tem plate> CR LF   1513    </xsl:tem plate> CR LF
1486   CR LF   1514   CR LF
1487   CR LF   1515   CR LF
1488    <xsl:temp late match ="wwdoc:In dexMarker"  mode="wwm ode:textru n"> CR LF   1516    <xsl:temp late match ="wwdoc:In dexMarker"  mode="wwm ode:textru n"> CR LF
1489     <xsl:par am name="P aramSplits " /> CR LF   1517     <xsl:par am name="P aramSplits " /> CR LF
1490     <xsl:par am name="P aramCargo"  /> CR LF   1518     <xsl:par am name="P aramCargo"  /> CR LF
1491     <xsl:par am name="P aramLinks"  /> CR LF   1519     <xsl:par am name="P aramLinks"  /> CR LF
1492     <xsl:par am name="P aramSplit"  /> CR LF   1520     <xsl:par am name="P aramSplit"  /> CR LF
1493   CR LF   1521   CR LF
1494     <!-- Ign ore index  markers -- > CR LF   1522     <!-- Ign ore index  markers -- > CR LF
1495     <!--                        -- > CR LF   1523     <!--                        -- > CR LF
1496    </xsl:tem plate> CR LF   1524    </xsl:tem plate> CR LF
1497   CR LF   1525   CR LF
1498   CR LF   1526   CR LF
1499    <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:t extrun"> CR LF   1527    <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:t extrun"> CR LF
1500     <xsl:par am name="P aramSplits " /> CR LF   1528     <xsl:par am name="P aramSplits " /> CR LF
1501     <xsl:par am name="P aramCargo"  /> CR LF   1529     <xsl:par am name="P aramCargo"  /> CR LF
1502     <xsl:par am name="P aramLinks"  /> CR LF   1530     <xsl:par am name="P aramLinks"  /> CR LF
1503     <xsl:par am name="P aramSplit"  /> CR LF   1531     <xsl:par am name="P aramSplit"  /> CR LF
1504   CR LF   1532   CR LF
1505      <!--  Igno r e  marker s  --> CR LF   1533     <xsl:var iable name ="VarMarke r" select= "." /> CR LF
1506      <!--                 
--> CR LF
  1534   CR LF
    1535      <!--  Pass-th r ough  marker ?  --> CR LF
    1536      <!--                         --> CR LF
    1537     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF
    1538      <xsl:va riable nam e="VarMark erBehavior " select=" key('wwbeh aviors-mar kers-by-id ', $VarMar ker/@id)[1 ]" /> CR LF
    1539   CR LF
    1540      <xsl:if  test="$Va rMarkerBeh avior/@beh avior = 'p ass-throug h'"> CR LF
    1541       <!-- P ass-throug h --> CR LF
    1542       <!--                --> CR LF
    1543       <xsl:f or-each se lect="$Var Marker/wwd oc:TextRun "> CR LF
    1544        <xsl: variable n ame="VarTe xtRun" sel ect="." /> CR LF
    1545   CR LF
    1546        <xsl: call-templ ate name=" TextRun-Pa ssThrough" > CR LF
    1547         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> CR LF
    1548        </xsl :call-temp late> CR LF
    1549       </xsl: for-each> CR LF
    1550      </xsl:i f> CR LF
    1551     </xsl:fo r-each> CR LF
1507    </xsl:tem plate> CR LF   1552    </xsl:tem plate> CR LF
1508   CR LF   1553   CR LF
1509   CR LF   1554   CR LF
1510    <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex trun"> CR LF   1555    <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex trun"> CR LF
1511     <xsl:par am name="P aramSplits " /> CR LF   1556     <xsl:par am name="P aramSplits " /> CR LF
1512     <xsl:par am name="P aramCargo"  /> CR LF   1557     <xsl:par am name="P aramCargo"  /> CR LF
1513     <xsl:par am name="P aramLinks"  /> CR LF   1558     <xsl:par am name="P aramLinks"  /> CR LF
1514     <xsl:par am name="P aramSplit"  /> CR LF   1559     <xsl:par am name="P aramSplit"  /> CR LF
1515   CR LF   1560   CR LF
1516     <xsl:val ue-of sele ct="@value " /> CR LF   1561     <xsl:val ue-of sele ct="@value " /> CR LF
1517    </xsl:tem plate> CR LF   1562    </xsl:tem plate> CR LF
1518   CR LF   1563   CR LF
1519   CR LF   1564   CR LF
1520    <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:co ntent"> CR LF   1565    <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:co ntent"> CR LF
1521     <xsl:par am name="P aramSplits " /> CR LF   1566     <xsl:par am name="P aramSplits " /> CR LF
1522     <xsl:par am name="P aramCargo"  /> CR LF   1567     <xsl:par am name="P aramCargo"  /> CR LF
1523     <xsl:par am name="P aramLinks"  /> CR LF   1568     <xsl:par am name="P aramLinks"  /> CR LF
1524     <xsl:par am name="P aramTOCDat a" /> CR LF   1569     <xsl:par am name="P aramTOCDat a" /> CR LF
1525     <xsl:par am name="P aramSplit"  /> CR LF   1570     <xsl:par am name="P aramSplit"  /> CR LF
1526   CR LF   1571   CR LF
1527     <xsl:var iable name ="VarTable " select=" ." /> CR LF   1572     <xsl:var iable name ="VarTable " select=" ." /> CR LF
1528   CR LF   1573   CR LF
1529     <!-- Abo rted? --> CR LF   1574     <!-- Abo rted? --> CR LF
1530     <!--           --> CR LF   1575     <!--           --> CR LF
1531     <xsl:if  test="not( wwprogress :Abort())" > CR LF   1576     <xsl:if  test="not( wwprogress :Abort())" > CR LF
1532      <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   1577      <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
1533      <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   1578      <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
1534      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF   1579      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF
1535      <xsl:if  test="$Va rGenerateO utput"> CR LF   1580      <xsl:if  test="$Va rGenerateO utput"> CR LF
1536   CR LF   1581   CR LF
1537       <!-- G et behavio r --> CR LF   1582       <!-- G et behavio r --> CR LF
1538       <!--                --> CR LF   1583       <!--                --> CR LF
1539       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF   1584       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF
1540        <xsl: variable n ame="VarTa bleBehavio r" select= "key('wwbe haviors-ta bles-by-id ', $VarTab le/@id)[1] " /> CR LF   1585        <xsl: variable n ame="VarTa bleBehavio r" select= "key('wwbe haviors-ta bles-by-id ', $VarTab le/@id)[1] " /> CR LF
1541   CR LF   1586   CR LF
1542        <!--  Table --> CR LF   1587        <!--  Table --> CR LF
1543        <!--        --> CR LF   1588        <!--        --> CR LF
1544        <xsl: call-templ ate name=" Table"> CR LF   1589        <xsl: call-templ ate name=" Table"> CR LF
1545         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1590         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1546         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1591         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1547         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1592         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1548         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF   1593         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF
1549         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1594         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1550         <xsl :with-para m name="Pa ramTable"  select="$V arTable" / > CR LF   1595         <xsl :with-para m name="Pa ramTable"  select="$V arTable" / > CR LF
1551         <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" /> CR LF   1596         <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" /> CR LF
1552         <xsl :with-para m name="Pa ramTableBe havior" se lect="$Var TableBehav ior" /> CR LF   1597         <xsl :with-para m name="Pa ramTableBe havior" se lect="$Var TableBehav ior" /> CR LF
1553        </xsl :call-temp late> CR LF   1598        </xsl :call-temp late> CR LF
1554       </xsl: for-each> CR LF   1599       </xsl: for-each> CR LF
1555      </xsl:i f> CR LF   1600      </xsl:i f> CR LF
1556     </xsl:if > CR LF   1601     </xsl:if > CR LF
1557    </xsl:tem plate> CR LF   1602    </xsl:tem plate> CR LF
1558   CR LF   1603   CR LF
1559   CR LF   1604   CR LF
1560    <xsl:temp late name= "Table-Att ribute-In- Pixels"> CR LF   1605    <xsl:temp late name= "Table-Att ribute-In- Pixels"> CR LF
1561     <xsl:par am name="P aramValue"  /> CR LF   1606     <xsl:par am name="P aramValue"  /> CR LF
1562   CR LF   1607   CR LF
1563     <xsl:cho ose> CR LF   1608     <xsl:cho ose> CR LF
1564      <xsl:wh en test="s tring-leng th($ParamV alue) &gt;  0"> CR LF   1609      <xsl:wh en test="s tring-leng th($ParamV alue) &gt;  0"> CR LF
1565       <!-- N ormalize v alue for H TML attrib ute--> CR LF   1610       <!-- N ormalize v alue for H TML attrib ute--> CR LF
1566       <!--                                       --> CR LF   1611       <!--                                       --> CR LF
1567       <xsl:v ariable na me="VarVal ueToEmit"> CR LF   1612       <xsl:v ariable na me="VarVal ueToEmit"> CR LF
1568        <xsl: variable n ame="VarUn itsSuffix"  select="w wunits:Uni tsSuffix($ ParamValue )" /> CR LF   1613        <xsl: variable n ame="VarUn itsSuffix"  select="w wunits:Uni tsSuffix($ ParamValue )" /> CR LF
1569   CR LF   1614   CR LF
1570        <xsl: choose> CR LF   1615        <xsl: choose> CR LF
1571         <xsl :when test ="string-l ength($Var UnitsSuffi x) &gt; 0" > CR LF   1616         <xsl :when test ="string-l ength($Var UnitsSuffi x) &gt; 0" > CR LF
1572          <xs l:variable  name="Var NumPrefix"  select="w wunits:Num ericPrefix ($ParamVal ue)" /> CR LF   1617          <xs l:variable  name="Var NumPrefix"  select="w wunits:Num ericPrefix ($ParamVal ue)" /> CR LF
1573   CR LF   1618   CR LF
1574          <xs l:value-of  select="w wunits:Con vert($VarN umPrefix,  $VarUnitsS uffix, 'px ')" /> CR LF   1619          <xs l:value-of  select="w wunits:Con vert($VarN umPrefix,  $VarUnitsS uffix, 'px ')" /> CR LF
1575         </xs l:when> CR LF   1620         </xs l:when> CR LF
1576   CR LF   1621   CR LF
1577         <xsl :otherwise > CR LF   1622         <xsl :otherwise > CR LF
1578          <xs l:value-of  select="$ ParamValue " /> CR LF   1623          <xs l:value-of  select="$ ParamValue " /> CR LF
1579         </xs l:otherwis e> CR LF   1624         </xs l:otherwis e> CR LF
1580        </xsl :choose> CR LF   1625        </xsl :choose> CR LF
1581       </xsl: variable> CR LF   1626       </xsl: variable> CR LF
1582   CR LF   1627   CR LF
1583       <xsl:v alue-of se lect="$Var ValueToEmi t" /> CR LF   1628       <xsl:v alue-of se lect="$Var ValueToEmi t" /> CR LF
1584      </xsl:w hen> CR LF   1629      </xsl:w hen> CR LF
1585   CR LF   1630   CR LF
1586      <xsl:ot herwise> CR LF   1631      <xsl:ot herwise> CR LF
1587       <xsl:v alue-of se lect="''"  /> CR LF   1632       <xsl:v alue-of se lect="''"  /> CR LF
1588      </xsl:o therwise> CR LF   1633      </xsl:o therwise> CR LF
1589     </xsl:ch oose> CR LF   1634     </xsl:ch oose> CR LF
1590    </xsl:tem plate> CR LF   1635    </xsl:tem plate> CR LF
1591   CR LF   1636   CR LF
1592   CR LF   1637   CR LF
1593    <xsl:temp late name= "Table"> CR LF   1638    <xsl:temp late name= "Table"> CR LF
1594     <xsl:par am name="P aramSplits " /> CR LF   1639     <xsl:par am name="P aramSplits " /> CR LF
1595     <xsl:par am name="P aramCargo"  /> CR LF   1640     <xsl:par am name="P aramCargo"  /> CR LF
1596     <xsl:par am name="P aramLinks"  /> CR LF   1641     <xsl:par am name="P aramLinks"  /> CR LF
1597     <xsl:par am name="P aramTOCDat a" /> CR LF   1642     <xsl:par am name="P aramTOCDat a" /> CR LF
1598     <xsl:par am name="P aramSplit"  /> CR LF   1643     <xsl:par am name="P aramSplit"  /> CR LF
1599     <xsl:par am name="P aramTable"  /> CR LF   1644     <xsl:par am name="P aramTable"  /> CR LF
1600     <xsl:par am name="P aramStyleN ame" /> CR LF   1645     <xsl:par am name="P aramStyleN ame" /> CR LF
1601     <xsl:par am name="P aramTableB ehavior" / > CR LF   1646     <xsl:par am name="P aramTableB ehavior" / > CR LF
1602   CR LF   1647   CR LF
1603     <!-- Not es --> CR LF   1648     <!-- Not es --> CR LF
1604     <!--        --> CR LF   1649     <!--        --> CR LF
1605     <xsl:var iable name ="VarNotes " select=" $ParamTabl e//wwdoc:N ote[not(an cestor::ww doc:Frame) ]" /> CR LF   1650     <xsl:var iable name ="VarNotes " select=" $ParamTabl e//wwdoc:N ote[not(an cestor::ww doc:Frame) ]" /> CR LF
1606   CR LF   1651   CR LF
1607     <!-- Not e numberin g --> CR LF   1652     <!-- Not e numberin g --> CR LF
1608     <!--                  --> CR LF   1653     <!--                  --> CR LF
1609     <xsl:var iable name ="VarNoteN umberingAs XML"> CR LF   1654     <xsl:var iable name ="VarNoteN umberingAs XML"> CR LF
1610      <xsl:ca ll-templat e name="No tes-Number "> CR LF   1655      <xsl:ca ll-templat e name="No tes-Number "> CR LF
1611       <xsl:w ith-param  name="Para mNotes" se lect="$Var Notes" /> CR LF   1656       <xsl:w ith-param  name="Para mNotes" se lect="$Var Notes" /> CR LF
1612      </xsl:c all-templa te> CR LF   1657      </xsl:c all-templa te> CR LF
1613     </xsl:va riable> CR LF   1658     </xsl:va riable> CR LF
1614     <xsl:var iable name ="VarNoteN umbering"  select="ms xsl:node-s et($VarNot eNumbering AsXML)" /> CR LF   1659     <xsl:var iable name ="VarNoteN umbering"  select="ms xsl:node-s et($VarNot eNumbering AsXML)" /> CR LF
1615   CR LF   1660   CR LF
1616     <!-- Car go for rec ursion --> CR LF   1661     <!-- Car go for rec ursion --> CR LF
1617     <!--                       --> CR LF   1662     <!--                       --> CR LF
1618     <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() !=  'NoteNumbe ring']/..  | $VarNote Numbering"  /> CR LF   1663     <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() !=  'NoteNumbe ring']/..  | $VarNote Numbering"  /> CR LF
1619   CR LF   1664   CR LF
1620     <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   1665     <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
1621   CR LF   1666   CR LF
1622     <!-- Res olve proje ct propert ies --> CR LF   1667     <!-- Res olve proje ct propert ies --> CR LF
1623     <!--                               --> CR LF   1668     <!--                               --> CR LF
1624     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF   1669     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF
1625      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF   1670      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF
1626       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amTable" / > CR LF   1671       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amTable" / > CR LF
1627       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF   1672       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF
1628       <xsl:w ith-param  name="Para mStyleName " select=" $ParamTabl e/@stylena me" /> CR LF   1673       <xsl:w ith-param  name="Para mStyleName " select=" $ParamTabl e/@stylena me" /> CR LF
1629       <xsl:w ith-param  name="Para mStyleType " select=" 'Table'" / > CR LF   1674       <xsl:w ith-param  name="Para mStyleType " select=" 'Table'" / > CR LF
1630       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> CR LF   1675       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> CR LF
1631      </xsl:c all-templa te> CR LF   1676      </xsl:c all-templa te> CR LF
1632     </xsl:va riable> CR LF   1677     </xsl:va riable> CR LF
1633     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF   1678     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF
1634   CR LF   1679   CR LF
1635     <!-- Bor der --> CR LF   1680     <!-- Bor der --> CR LF
1636     <!--         --> CR LF   1681     <!--         --> CR LF
1637     <xsl:var iable name ="VarTable Border"> CR LF   1682     <xsl:var iable name ="VarTable Border"> CR LF
1638      <xsl:va riable nam e="VarBord erAttribut e"> CR LF   1683      <xsl:va riable nam e="VarBord erAttribut e"> CR LF
1639       <xsl:c all-templa te name="T able-Attri bute-In-Pi xels"> CR LF   1684       <xsl:c all-templa te name="T able-Attri bute-In-Pi xels"> CR LF
1640        <xsl: with-param  name="Par amValue" s elect="$Va rResolvedC ontextProp erties[@Na me = 'bord er']/@Valu e" /> CR LF   1685        <xsl: with-param  name="Par amValue" s elect="$Va rResolvedC ontextProp erties[@Na me = 'bord er']/@Valu e" /> CR LF
1641       </xsl: call-templ ate> CR LF   1686       </xsl: call-templ ate> CR LF
1642      </xsl:v ariable> CR LF   1687      </xsl:v ariable> CR LF
1643   CR LF   1688   CR LF
1644      <xsl:ch oose> CR LF   1689      <xsl:ch oose> CR LF
1645       <xsl:w hen test=" string-len gth($VarBo rderAttrib ute) &gt;  0"> CR LF   1690       <xsl:w hen test=" string-len gth($VarBo rderAttrib ute) &gt;  0"> CR LF
1646        <xsl: value-of s elect="$Va rBorderAtt ribute" /> CR LF   1691        <xsl: value-of s elect="$Va rBorderAtt ribute" /> CR LF
1647       </xsl: when> CR LF   1692       </xsl: when> CR LF
1648   CR LF   1693   CR LF
1649       <xsl:o therwise> CR LF   1694       <xsl:o therwise> CR LF
1650        <xsl: call-templ ate name=" Formatting -GetHighes tValueAsPi xels"> CR LF   1695        <xsl: call-templ ate name=" Formatting -GetHighes tValueAsPi xels"> CR LF
1651         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es[(./@Nam e = 'borde r-left-wid th') or (. /@Name = ' border-rig ht-width')  or (./@Na me = 'bord er-top-wid th') or (. /@Name = ' border-bot tom-width' )]" /> CR LF   1696         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es[(./@Nam e = 'borde r-left-wid th') or (. /@Name = ' border-rig ht-width')  or (./@Na me = 'bord er-top-wid th') or (. /@Name = ' border-bot tom-width' )]" /> CR LF
1652         <xsl :with-para m name="Pa ramStart"  select="'1 '" /> CR LF   1697         <xsl :with-para m name="Pa ramStart"  select="'1 '" /> CR LF
1653         <xsl :with-para m name="Pa ramValue"  select="'0 '" /> CR LF   1698         <xsl :with-para m name="Pa ramValue"  select="'0 '" /> CR LF
1654        </xsl :call-temp late> CR LF   1699        </xsl :call-temp late> CR LF
1655       </xsl: otherwise> CR LF   1700       </xsl: otherwise> CR LF
1656      </xsl:c hoose> CR LF   1701      </xsl:c hoose> CR LF
1657     </xsl:va riable> CR LF   1702     </xsl:va riable> CR LF
1658   CR LF   1703   CR LF
1659     <!-- Cel l padding  --> CR LF   1704     <!-- Cel l padding  --> CR LF
1660     <!--                --> CR LF   1705     <!--                --> CR LF
1661     <xsl:var iable name ="VarTable CellPaddin g"> CR LF   1706     <xsl:var iable name ="VarTable CellPaddin g"> CR LF
1662      <xsl:va riable nam e="VarCell PaddingAtt ribute"> CR LF   1707      <xsl:va riable nam e="VarCell PaddingAtt ribute"> CR LF
1663       <xsl:c all-templa te name="T able-Attri bute-In-Pi xels"> CR LF   1708       <xsl:c all-templa te name="T able-Attri bute-In-Pi xels"> CR LF
1664        <xsl: with-param  name="Par amValue" s elect="$Va rResolvedC ontextProp erties[@Na me = 'cell -padding'] /@Value" / > CR LF   1709        <xsl: with-param  name="Par amValue" s elect="$Va rResolvedC ontextProp erties[@Na me = 'cell -padding'] /@Value" / > CR LF
1665       </xsl: call-templ ate> CR LF   1710       </xsl: call-templ ate> CR LF
1666      </xsl:v ariable> CR LF   1711      </xsl:v ariable> CR LF
1667   CR LF   1712   CR LF
1668      <xsl:ch oose> CR LF   1713      <xsl:ch oose> CR LF
1669       <xsl:w hen test=" string-len gth($VarCe llPaddingA ttribute)  &gt; 0"> CR LF   1714       <xsl:w hen test=" string-len gth($VarCe llPaddingA ttribute)  &gt; 0"> CR LF
1670        <xsl: value-of s elect="$Va rCellPaddi ngAttribut e" /> CR LF   1715        <xsl: value-of s elect="$Va rCellPaddi ngAttribut e" /> CR LF
1671       </xsl: when> CR LF   1716       </xsl: when> CR LF
1672   CR LF   1717   CR LF
1673       <xsl:o therwise> CR LF   1718       <xsl:o therwise> CR LF
1674        <xsl: call-templ ate name=" Formatting -GetHighes tValueAsPi xels"> CR LF   1719        <xsl: call-templ ate name=" Formatting -GetHighes tValueAsPi xels"> CR LF
1675         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es[(@Name  = 'padding -left') or  (@Name =  'padding-r ight') or  (@Name = ' padding-to p') or (@N ame = 'pad ding-botto m')]" /> CR LF   1720         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es[(@Name  = 'padding -left') or  (@Name =  'padding-r ight') or  (@Name = ' padding-to p') or (@N ame = 'pad ding-botto m')]" /> CR LF
1676         <xsl :with-para m name="Pa ramStart"  select="'1 '" /> CR LF   1721         <xsl :with-para m name="Pa ramStart"  select="'1 '" /> CR LF
1677         <xsl :with-para m name="Pa ramValue"  select="'0 '" /> CR LF   1722         <xsl :with-para m name="Pa ramValue"  select="'0 '" /> CR LF
1678        </xsl :call-temp late> CR LF   1723        </xsl :call-temp late> CR LF
1679       </xsl: otherwise> CR LF   1724       </xsl: otherwise> CR LF
1680      </xsl:c hoose> CR LF   1725      </xsl:c hoose> CR LF
1681     </xsl:va riable> CR LF   1726     </xsl:va riable> CR LF
1682   CR LF   1727   CR LF
1683     <!-- Cel l spacing  --> CR LF   1728     <!-- Cel l spacing  --> CR LF
1684     <!--                --> CR LF   1729     <!--                --> CR LF
1685     <xsl:var iable name ="VarTable CellSpacin g"> CR LF   1730     <xsl:var iable name ="VarTable CellSpacin g"> CR LF
1686      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF   1731      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF
1687       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- spacing']/ @Value" /> CR LF   1732       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- spacing']/ @Value" /> CR LF
1688      </xsl:c all-templa te> CR LF   1733      </xsl:c all-templa te> CR LF
1689     </xsl:va riable> CR LF   1734     </xsl:va riable> CR LF
1690   CR LF   1735   CR LF
1691     <!-- Tab le summary  --> CR LF   1736     <!-- Tab le summary  --> CR LF
1692     <!--                 --> CR LF   1737     <!--                 --> CR LF
1693     <xsl:var iable name ="VarTable Summary"> CR LF   1738     <xsl:var iable name ="VarTable Summary"> CR LF
1694      <xsl:ca ll-templat e name="Ta bles-Summa ry"> CR LF   1739      <xsl:ca ll-templat e name="Ta bles-Summa ry"> CR LF
1695       <xsl:w ith-param  name="Para mTableBeha vior" sele ct="$Param TableBehav ior" /> CR LF   1740       <xsl:w ith-param  name="Para mTableBeha vior" sele ct="$Param TableBehav ior" /> CR LF
1696      </xsl:c all-templa te> CR LF   1741      </xsl:c all-templa te> CR LF
1697     </xsl:va riable> CR LF   1742     </xsl:va riable> CR LF
1698   CR LF   1743   CR LF
1699     <!-- Tab le border  color --> CR LF   1744     <!-- Tab le border  color --> CR LF
1700     <!--                      --> CR LF   1745     <!--                      --> CR LF
1701     <xsl:var iable name ="VarTable BorderColo r"> CR LF   1746     <xsl:var iable name ="VarTable BorderColo r"> CR LF
1702      <xsl:va riable nam e="VarBord erColorHin t" select= "$VarResol vedContext Properties [((@Name =  'border-l eft-color' ) or (@Nam e = 'borde r-right-co lor') or ( @Name = 'b order-top- color') or  (@Name =  'border-bo ttom-color ')) and (s tring-leng th(@Value)  &gt; 0)][ 1]/@Value"  /> CR LF   1747      <xsl:va riable nam e="VarBord erColorHin t" select= "$VarResol vedContext Properties [((@Name =  'border-l eft-color' ) or (@Nam e = 'borde r-right-co lor') or ( @Name = 'b order-top- color') or  (@Name =  'border-bo ttom-color ')) and (s tring-leng th(@Value)  &gt; 0)][ 1]/@Value"  /> CR LF
1703   CR LF   1748   CR LF
1704      <xsl:ch oose> CR LF   1749      <xsl:ch oose> CR LF
1705       <xsl:w hen test=" (string-le ngth($VarB orderColor Hint) &gt;  0) and ($ VarBorderC olorHint ! = 'none')" > CR LF   1750       <xsl:w hen test=" (string-le ngth($VarB orderColor Hint) &gt;  0) and ($ VarBorderC olorHint ! = 'none')" > CR LF
1706        <xsl: choose> CR LF   1751        <xsl: choose> CR LF
1707         <xsl :when test ="contains ($VarBorde rColorHint , '#')"> CR LF   1752         <xsl :when test ="contains ($VarBorde rColorHint , '#')"> CR LF
1708          <xs l:value-of  select="$ VarBorderC olorHint"  /> CR LF   1753          <xs l:value-of  select="$ VarBorderC olorHint"  /> CR LF
1709         </xs l:when> CR LF   1754         </xs l:when> CR LF
1710   CR LF   1755   CR LF
1711         <xsl :otherwise > CR LF   1756         <xsl :otherwise > CR LF
1712          <xs l:value-of  select="w wunits:CSS RGBColor($ VarBorderC olorHint)"  /> CR LF   1757          <xs l:value-of  select="w wunits:CSS RGBColor($ VarBorderC olorHint)"  /> CR LF
1713         </xs l:otherwis e> CR LF   1758         </xs l:otherwis e> CR LF
1714        </xsl :choose> CR LF   1759        </xsl :choose> CR LF
1715       </xsl: when> CR LF   1760       </xsl: when> CR LF
1716   CR LF   1761   CR LF
1717       <xsl:o therwise> CR LF   1762       <xsl:o therwise> CR LF
1718        <xsl: value-of s elect="''"  /> CR LF   1763        <xsl: value-of s elect="''"  /> CR LF
1719       </xsl: otherwise> CR LF   1764       </xsl: otherwise> CR LF
1720      </xsl:c hoose> CR LF   1765      </xsl:c hoose> CR LF
1721     </xsl:va riable> CR LF   1766     </xsl:va riable> CR LF
1722   CR LF   1767   CR LF
1723     <!-- Tab le backgro und color  --> CR LF   1768     <!-- Tab le backgro und color  --> CR LF
1724     <!--                           --> CR LF   1769     <!--                           --> CR LF
1725     <xsl:var iable name ="VarTable Background Color"> CR LF   1770     <xsl:var iable name ="VarTable Background Color"> CR LF
1726      <xsl:va riable nam e="VarBack groundColo rHint" sel ect="$VarR esolvedCon textProper ties[@Name  = 'backgr ound-color ']/@Value"  /> CR LF   1771      <xsl:va riable nam e="VarBack groundColo rHint" sel ect="$VarR esolvedCon textProper ties[@Name  = 'backgr ound-color ']/@Value"  /> CR LF
1727   CR LF   1772   CR LF
1728      <xsl:ch oose> CR LF   1773      <xsl:ch oose> CR LF
1729       <xsl:w hen test=" (string-le ngth($VarB ackgroundC olorHint)  &gt; 0) an d ($VarBac kgroundCol orHint !=  'none')"> CR LF   1774       <xsl:w hen test=" (string-le ngth($VarB ackgroundC olorHint)  &gt; 0) an d ($VarBac kgroundCol orHint !=  'none')"> CR LF
1730        <xsl: choose> CR LF   1775        <xsl: choose> CR LF
1731         <xsl :when test ="contains ($VarBackg roundColor Hint, '#') "> CR LF   1776         <xsl :when test ="contains ($VarBackg roundColor Hint, '#') "> CR LF
1732          <xs l:value-of  select="$ VarBackgro undColorHi nt" /> CR LF   1777          <xs l:value-of  select="$ VarBackgro undColorHi nt" /> CR LF
1733         </xs l:when> CR LF   1778         </xs l:when> CR LF
1734   CR LF   1779   CR LF
1735         <xsl :otherwise > CR LF   1780         <xsl :otherwise > CR LF
1736          <xs l:value-of  select="w wunits:CSS RGBColor($ VarBackgro undColorHi nt)" /> CR LF   1781          <xs l:value-of  select="w wunits:CSS RGBColor($ VarBackgro undColorHi nt)" /> CR LF
1737         </xs l:otherwis e> CR LF   1782         </xs l:otherwis e> CR LF
1738        </xsl :choose> CR LF   1783        </xsl :choose> CR LF
1739       </xsl: when> CR LF   1784       </xsl: when> CR LF
1740       <xsl:o therwise> CR LF   1785       <xsl:o therwise> CR LF
1741        <xsl: value-of s elect="''"  /> CR LF   1786        <xsl: value-of s elect="''"  /> CR LF
1742       </xsl: otherwise> CR LF   1787       </xsl: otherwise> CR LF
1743      </xsl:c hoose> CR LF   1788      </xsl:c hoose> CR LF
1744     </xsl:va riable> CR LF   1789     </xsl:va riable> CR LF
1745   CR LF   1790   CR LF
1746     <!-- Tab le backgro und image  --> CR LF   1791     <!-- Tab le backgro und image  --> CR LF
1747     <!--                           --> CR LF   1792     <!--                           --> CR LF
1748     <xsl:var iable name ="VarTable Background Image"> CR LF   1793     <xsl:var iable name ="VarTable Background Image"> CR LF
1749      <xsl:va riable nam e="VarBack groundImag eHint" sel ect="$VarR esolvedCon textProper ties[@Name  = 'backgr ound-image ']/@Value"  /> CR LF   1794      <xsl:va riable nam e="VarBack groundImag eHint" sel ect="$VarR esolvedCon textProper ties[@Name  = 'backgr ound-image ']/@Value"  /> CR LF
1750      <xsl:ch oose> CR LF   1795      <xsl:ch oose> CR LF
1751       <xsl:w hen test=" string-len gth($VarBa ckgroundIm ageHint) & gt; 0"> CR LF   1796       <xsl:w hen test=" string-len gth($VarBa ckgroundIm ageHint) & gt; 0"> CR LF
1752        <xsl: value-of s elect="$Va rBackgroun dImageHint " /> CR LF   1797        <xsl: value-of s elect="$Va rBackgroun dImageHint " /> CR LF
1753       </xsl: when> CR LF   1798       </xsl: when> CR LF
1754       <xsl:o therwise> CR LF   1799       <xsl:o therwise> CR LF
1755        <xsl: value-of s elect="''"  /> CR LF   1800        <xsl: value-of s elect="''"  /> CR LF
1756       </xsl: otherwise> CR LF   1801       </xsl: otherwise> CR LF
1757      </xsl:c hoose> CR LF   1802      </xsl:c hoose> CR LF
1758     </xsl:va riable> CR LF   1803     </xsl:va riable> CR LF
1759   CR LF   1804   CR LF
1760     <!-- Tab le width - -> CR LF   1805     <!-- Tab le width - -> CR LF
1761     <!--              - -> CR LF   1806     <!--              - -> CR LF
1762     <xsl:var iable name ="VarTable Width"> CR LF   1807     <xsl:var iable name ="VarTable Width"> CR LF
1763      <xsl:va riable nam e="VarTabl eWidthHint " select=" $VarResolv edContextP roperties[ @Name = 'w idth']/@Va lue" /> CR LF   1808      <xsl:va riable nam e="VarTabl eWidthHint " select=" $VarResolv edContextP roperties[ @Name = 'w idth']/@Va lue" /> CR LF
1764      <xsl:ch oose> CR LF   1809      <xsl:ch oose> CR LF
1765       <xsl:w hen test=" string-len gth($VarTa bleWidthHi nt) &gt; 0 "> CR LF   1810       <xsl:w hen test=" string-len gth($VarTa bleWidthHi nt) &gt; 0 "> CR LF
1766        <xsl: choose> CR LF   1811        <xsl: choose> CR LF
1767         <xsl :when test ="contains ($VarTable WidthHint,  '%')"> CR LF   1812         <xsl :when test ="contains ($VarTable WidthHint,  '%')"> CR LF
1768          <xs l:value-of  select="$ VarTableWi dthHint" / > CR LF   1813          <xs l:value-of  select="$ VarTableWi dthHint" / > CR LF
1769         </xs l:when> CR LF   1814         </xs l:when> CR LF
1770   CR LF   1815   CR LF
1771         <xsl :otherwise > CR LF   1816         <xsl :otherwise > CR LF
1772          <xs l:variable  name="Var NumPrefix"  select="w wunits:Num ericPrefix ($VarTable WidthHint) " /> CR LF   1817          <xs l:variable  name="Var NumPrefix"  select="w wunits:Num ericPrefix ($VarTable WidthHint) " /> CR LF
1773          <xs l:variable  name="Var UnitsSuffi x" select= "wwunits:U nitsSuffix ($VarTable WidthHint) " /> CR LF   1818          <xs l:variable  name="Var UnitsSuffi x" select= "wwunits:U nitsSuffix ($VarTable WidthHint) " /> CR LF
1774          <xs l:value-of  select="c eiling(wwu nits:Conve rt($VarNum Prefix, $V arUnitsSuf fix, 'px') )" /> CR LF   1819          <xs l:value-of  select="c eiling(wwu nits:Conve rt($VarNum Prefix, $V arUnitsSuf fix, 'px') )" /> CR LF
1775         </xs l:otherwis e> CR LF   1820         </xs l:otherwis e> CR LF
1776        </xsl :choose> CR LF   1821        </xsl :choose> CR LF
1777       </xsl: when> CR LF   1822       </xsl: when> CR LF
1778   CR LF   1823   CR LF
1779       <xsl:o therwise> CR LF   1824       <xsl:o therwise> CR LF
1780        <xsl: value-of s elect="''"  /> CR LF   1825        <xsl: value-of s elect="''"  /> CR LF
1781       </xsl: otherwise> CR LF   1826       </xsl: otherwise> CR LF
1782      </xsl:c hoose> CR LF   1827      </xsl:c hoose> CR LF
1783     </xsl:va riable> CR LF   1828     </xsl:va riable> CR LF
1784   CR LF   1829   CR LF
1785     <!-- Tab le height  --> CR LF   1830     <!-- Tab le height  --> CR LF
1786     <!--                --> CR LF   1831     <!--                --> CR LF
1787     <xsl:var iable name ="VarTable Height"> CR LF   1832     <xsl:var iable name ="VarTable Height"> CR LF
1788      <xsl:va riable nam e="VarTabl eHeightHin t" select= "$VarResol vedContext Properties [@Name = ' height']/@ Value" /> CR LF   1833      <xsl:va riable nam e="VarTabl eHeightHin t" select= "$VarResol vedContext Properties [@Name = ' height']/@ Value" /> CR LF
1789      <xsl:ch oose> CR LF   1834      <xsl:ch oose> CR LF
1790       <xsl:w hen test=" string-len gth($VarTa bleHeightH int) &gt;  0"> CR LF   1835       <xsl:w hen test=" string-len gth($VarTa bleHeightH int) &gt;  0"> CR LF
1791        <xsl: choose> CR LF   1836        <xsl: choose> CR LF
1792         <xsl :when test ="contains ($VarTable HeightHint , '%')"> CR LF   1837         <xsl :when test ="contains ($VarTable HeightHint , '%')"> CR LF
1793          <xs l:value-of  select="$ VarTableHe ightHint"  /> CR LF   1838          <xs l:value-of  select="$ VarTableHe ightHint"  /> CR LF
1794         </xs l:when> CR LF   1839         </xs l:when> CR LF
1795   CR LF   1840   CR LF
1796         <xsl :otherwise > CR LF   1841         <xsl :otherwise > CR LF
1797          <xs l:variable  name="Var NumPrefix"  select="w wunits:Num ericPrefix ($VarTable HeightHint )" /> CR LF   1842          <xs l:variable  name="Var NumPrefix"  select="w wunits:Num ericPrefix ($VarTable HeightHint )" /> CR LF
1798          <xs l:variable  name="Var UnitsSuffi x" select= "wwunits:U nitsSuffix ($VarTable HeightHint )" /> CR LF   1843          <xs l:variable  name="Var UnitsSuffi x" select= "wwunits:U nitsSuffix ($VarTable HeightHint )" /> CR LF
1799          <xs l:value-of  select="c eiling(wwu nits:Conve rt($VarNum Prefix, $V arUnitsSuf fix, 'px') )" /> CR LF   1844          <xs l:value-of  select="c eiling(wwu nits:Conve rt($VarNum Prefix, $V arUnitsSuf fix, 'px') )" /> CR LF
1800         </xs l:otherwis e> CR LF   1845         </xs l:otherwis e> CR LF
1801        </xsl :choose> CR LF   1846        </xsl :choose> CR LF
1802       </xsl: when> CR LF   1847       </xsl: when> CR LF
1803   CR LF   1848   CR LF
1804       <xsl:o therwise> CR LF   1849       <xsl:o therwise> CR LF
1805        <xsl: value-of s elect="''"  /> CR LF   1850        <xsl: value-of s elect="''"  /> CR LF
1806       </xsl: otherwise> CR LF   1851       </xsl: otherwise> CR LF
1807      </xsl:c hoose> CR LF   1852      </xsl:c hoose> CR LF
1808     </xsl:va riable> CR LF   1853     </xsl:va riable> CR LF
1809   CR LF   1854   CR LF
1810     <!-- Tab le valign  --> CR LF   1855     <!-- Tab le valign  --> CR LF
1811     <!--                --> CR LF   1856     <!--                --> CR LF
1812     <xsl:var iable name ="VarTable VerticalAl ign"> CR LF   1857     <xsl:var iable name ="VarTable VerticalAl ign"> CR LF
1813      <xsl:va riable nam e="VarTabl eVerticalA lignHint"  select="$V arResolved ContextPro perties[@N ame = 'ver tical-alig n']/@Value " /> CR LF   1858      <xsl:va riable nam e="VarTabl eVerticalA lignHint"  select="$V arResolved ContextPro perties[@N ame = 'ver tical-alig n']/@Value " /> CR LF
1814      <xsl:ch oose> CR LF   1859      <xsl:ch oose> CR LF
1815       <xsl:w hen test=" string-len gth($VarTa bleVertica lAlignHint ) &gt; 0"> CR LF   1860       <xsl:w hen test=" string-len gth($VarTa bleVertica lAlignHint ) &gt; 0"> CR LF
1816        <xsl: value-of s elect="$Va rTableVert icalAlignH int" /> CR LF   1861        <xsl: value-of s elect="$Va rTableVert icalAlignH int" /> CR LF
1817       </xsl: when> CR LF   1862       </xsl: when> CR LF
1818       <xsl:o therwise> CR LF   1863       <xsl:o therwise> CR LF
1819        <xsl: value-of s elect="''"  /> CR LF   1864        <xsl: value-of s elect="''"  /> CR LF
1820       </xsl: otherwise> CR LF   1865       </xsl: otherwise> CR LF
1821      </xsl:c hoose> CR LF   1866      </xsl:c hoose> CR LF
1822     </xsl:va riable> CR LF   1867     </xsl:va riable> CR LF
1823   CR LF   1868   CR LF
1824     <!-- Det ermine tab le cell wi dths --> CR LF   1869     <!-- Det ermine tab le cell wi dths --> CR LF
1825     <!--                                --> CR LF   1870     <!--                                --> CR LF
1826     <xsl:var iable name ="VarTable CellWidths AsXML"> CR LF   1871     <xsl:var iable name ="VarTable CellWidths AsXML"> CR LF
1827      <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   1872      <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
1828      <xsl:va riable nam e="VarEmit TableWidth s" select= "$VarEmitT ableWidths Option = ' true'" /> CR LF   1873      <xsl:va riable nam e="VarEmit TableWidth s" select= "$VarEmitT ableWidths Option = ' true'" /> CR LF
1829   CR LF   1874   CR LF
1830      <xsl:if  test="$Va rEmitTable Widths"> CR LF   1875      <xsl:if  test="$Va rEmitTable Widths"> CR LF
1831       <xsl:c all-templa te name="T able-CellW idths"> CR LF   1876       <xsl:c all-templa te name="T able-CellW idths"> CR LF
1832        <xsl: with-param  name="Par amTable" s elect="$Pa ramTable"  /> CR LF   1877        <xsl: with-param  name="Par amTable" s elect="$Pa ramTable"  /> CR LF
1833       </xsl: call-templ ate> CR LF   1878       </xsl: call-templ ate> CR LF
1834      </xsl:i f> CR LF   1879      </xsl:i f> CR LF
1835     </xsl:va riable> CR LF   1880     </xsl:va riable> CR LF
1836     <xsl:var iable name ="VarTable CellWidths " select=" msxsl:node -set($VarT ableCellWi dthsAsXML) /*" /> CR LF   1881     <xsl:var iable name ="VarTable CellWidths " select=" msxsl:node -set($VarT ableCellWi dthsAsXML) /*" /> CR LF
1837   CR LF   1882   CR LF
1838     <!-- Emi t <table>  element wi th attribu tes. --> CR LF   1883     <!-- Emi t <table>  element wi th attribu tes. --> CR LF
1839     <!--                                           --> CR LF   1884     <!--                                           --> CR LF
1840     <html:ta ble> CR LF   1885     <html:ta ble> CR LF
1841   CR LF   1886   CR LF
1842      <!-- su mmary attr ibute --> CR LF   1887      <!-- su mmary attr ibute --> CR LF
1843      <!--                     --> CR LF   1888      <!--                     --> CR LF
1844      <xsl:at tribute na me="summar y"> CR LF   1889      <xsl:at tribute na me="summar y"> CR LF
1845       <xsl:v alue-of se lect="$Var TableSumma ry" /> CR LF   1890       <xsl:v alue-of se lect="$Var TableSumma ry" /> CR LF
1846      </xsl:a ttribute> CR LF   1891      </xsl:a ttribute> CR LF
1847   CR LF   1892   CR LF
1848      <!-- bo rder attri bute --> CR LF   1893      <!-- bo rder attri bute --> CR LF
1849      <!--                    --> CR LF   1894      <!--                    --> CR LF
1850      <xsl:if  test="str ing-length ($VarTable Border) &g t; 0"> CR LF   1895      <xsl:if  test="str ing-length ($VarTable Border) &g t; 0"> CR LF
1851       <xsl:a ttribute n ame="borde r"> CR LF   1896       <xsl:a ttribute n ame="borde r"> CR LF
1852        <xsl: value-of s elect="$Va rTableBord er" /> CR LF   1897        <xsl: value-of s elect="$Va rTableBord er" /> CR LF
1853       </xsl: attribute> CR LF   1898       </xsl: attribute> CR LF
1854      </xsl:i f> CR LF   1899      </xsl:i f> CR LF
1855   CR LF   1900   CR LF
1856      <!-- ce llpadding  attribute  --> CR LF   1901      <!-- ce llpadding  attribute  --> CR LF
1857      <!--                          --> CR LF   1902      <!--                          --> CR LF
1858      <xsl:if  test="str ing-length ($VarTable CellPaddin g) &gt; 0" > CR LF   1903      <xsl:if  test="str ing-length ($VarTable CellPaddin g) &gt; 0" > CR LF
1859       <xsl:a ttribute n ame="cellp adding"> CR LF   1904       <xsl:a ttribute n ame="cellp adding"> CR LF
1860        <xsl: value-of s elect="$Va rTableCell Padding" / > CR LF   1905        <xsl: value-of s elect="$Va rTableCell Padding" / > CR LF
1861       </xsl: attribute> CR LF   1906       </xsl: attribute> CR LF
1862      </xsl:i f> CR LF   1907      </xsl:i f> CR LF
1863   CR LF   1908   CR LF
1864      <!-- ce llspacing  attribute  --> CR LF   1909      <!-- ce llspacing  attribute  --> CR LF
1865      <!--                          --> CR LF   1910      <!--                          --> CR LF
1866      <xsl:if  test="str ing-length ($VarTable CellSpacin g) &gt; 0" > CR LF   1911      <xsl:if  test="str ing-length ($VarTable CellSpacin g) &gt; 0" > CR LF
1867       <xsl:a ttribute n ame="cells pacing"> CR LF   1912       <xsl:a ttribute n ame="cells pacing"> CR LF
1868        <xsl: value-of s elect="$Va rTableCell Spacing" / > CR LF   1913        <xsl: value-of s elect="$Va rTableCell Spacing" / > CR LF
1869       </xsl: attribute> CR LF   1914       </xsl: attribute> CR LF
1870      </xsl:i f> CR LF   1915      </xsl:i f> CR LF
1871   CR LF   1916   CR LF
1872      <!-- bo rdercolor  attribute  --> CR LF   1917      <!-- bo rdercolor  attribute  --> CR LF
1873      <!--                          --> CR LF   1918      <!--                          --> CR LF
1874      <xsl:if  test="str ing-length ($VarTable BorderColo r) &gt; 0" > CR LF   1919      <xsl:if  test="str ing-length ($VarTable BorderColo r) &gt; 0" > CR LF
1875       <xsl:a ttribute n ame="borde rcolor"> CR LF   1920       <xsl:a ttribute n ame="borde rcolor"> CR LF
1876        <xsl: value-of s elect="$Va rTableBord erColor" / > CR LF   1921        <xsl: value-of s elect="$Va rTableBord erColor" / > CR LF
1877       </xsl: attribute> CR LF   1922       </xsl: attribute> CR LF
1878      </xsl:i f> CR LF   1923      </xsl:i f> CR LF
1879   CR LF   1924   CR LF
1880      <!-- bg color attr ibute --> CR LF   1925      <!-- bg color attr ibute --> CR LF
1881      <!--                     --> CR LF   1926      <!--                     --> CR LF
1882      <xsl:if  test="str ing-length ($VarTable Background Color) &gt ; 0"> CR LF   1927      <xsl:if  test="str ing-length ($VarTable Background Color) &gt ; 0"> CR LF
1883       <xsl:a ttribute n ame="bgcol or"> CR LF   1928       <xsl:a ttribute n ame="bgcol or"> CR LF
1884        <xsl: value-of s elect="$Va rTableBack groundColo r" /> CR LF   1929        <xsl: value-of s elect="$Va rTableBack groundColo r" /> CR LF
1885       </xsl: attribute> CR LF   1930       </xsl: attribute> CR LF
1886      </xsl:i f> CR LF   1931      </xsl:i f> CR LF
1887   CR LF   1932   CR LF
1888      <!-- ba ckground a ttribute - -> CR LF   1933      <!-- ba ckground a ttribute - -> CR LF
1889      <!--                        - -> CR LF   1934      <!--                        - -> CR LF
1890      <xsl:if  test="str ing-length ($VarTable Background Image) &gt ; 0"> CR LF   1935      <xsl:if  test="str ing-length ($VarTable Background Image) &gt ; 0"> CR LF
1891       <xsl:a ttribute n ame="backg round"> CR LF   1936       <xsl:a ttribute n ame="backg round"> CR LF
1892        <xsl: value-of s elect="$Va rTableBack groundImag e" /> CR LF   1937        <xsl: value-of s elect="$Va rTableBack groundImag e" /> CR LF
1893       </xsl: attribute> CR LF   1938       </xsl: attribute> CR LF
1894      </xsl:i f> CR LF   1939      </xsl:i f> CR LF
1895   CR LF   1940   CR LF
1896      <!-- wi dth attrib ute --> CR LF   1941      <!-- wi dth attrib ute --> CR LF
1897      <!--                   --> CR LF   1942      <!--                   --> CR LF
1898      <xsl:if  test="str ing-length ($VarTable Width) &gt ; 0"> CR LF   1943      <xsl:if  test="str ing-length ($VarTable Width) &gt ; 0"> CR LF
1899       <xsl:a ttribute n ame="width "> CR LF   1944       <xsl:a ttribute n ame="width "> CR LF
1900        <xsl: value-of s elect="$Va rTableWidt h" /> CR LF   1945        <xsl: value-of s elect="$Va rTableWidt h" /> CR LF
1901       </xsl: attribute> CR LF   1946       </xsl: attribute> CR LF
1902      </xsl:i f> CR LF   1947      </xsl:i f> CR LF
1903   CR LF   1948   CR LF
1904      <!-- he ight attri bute --> CR LF   1949      <!-- he ight attri bute --> CR LF
1905      <!--                    --> CR LF   1950      <!--                    --> CR LF
1906      <xsl:if  test="str ing-length ($VarTable Height) &g t; 0"> CR LF   1951      <xsl:if  test="str ing-length ($VarTable Height) &g t; 0"> CR LF
1907       <xsl:a ttribute n ame="heigh t"> CR LF   1952       <xsl:a ttribute n ame="heigh t"> CR LF
1908        <xsl: value-of s elect="$Va rTableHeig ht" /> CR LF   1953        <xsl: value-of s elect="$Va rTableHeig ht" /> CR LF
1909       </xsl: attribute> CR LF   1954       </xsl: attribute> CR LF
1910      </xsl:i f> CR LF   1955      </xsl:i f> CR LF
1911   CR LF   1956   CR LF
1912      <!-- Ap ply captio n template s --> CR LF   1957      <!-- Ap ply captio n template s --> CR LF
1913      <!--                            --> CR LF   1958      <!--                            --> CR LF
1914      <xsl:fo r-each sel ect="$Para mTable/wwd oc:Caption [1]"> CR LF   1959      <xsl:fo r-each sel ect="$Para mTable/wwd oc:Caption [1]"> CR LF
1915       <html: caption> CR LF   1960       <html: caption> CR LF
1916   CR LF   1961   CR LF
1917        <xsl: apply-temp lates sele ct="./*" m ode="wwmod e:content" > CR LF   1962        <xsl: apply-temp lates sele ct="./*" m ode="wwmod e:content" > CR LF
1918         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1963         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1919         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1964         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1920         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1965         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1921         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF   1966         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF
1922         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1967         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1923        </xsl :apply-tem plates> CR LF   1968        </xsl :apply-tem plates> CR LF
1924   CR LF   1969   CR LF
1925       </html :caption> CR LF   1970       </html :caption> CR LF
1926      </xsl:f or-each> CR LF   1971      </xsl:f or-each> CR LF
1927   CR LF   1972   CR LF
1928      <xsl:fo r-each sel ect="$Para mTable/wwd oc:TableHe ad|$ParamT able/wwdoc :TableBody |$ParamTab le/wwdoc:T ableFoot"> CR LF   1973      <xsl:fo r-each sel ect="$Para mTable/wwd oc:TableHe ad|$ParamT able/wwdoc :TableBody |$ParamTab le/wwdoc:T ableFoot"> CR LF
1929       <xsl:v ariable na me="VarSec tion" sele ct="." /> CR LF   1974       <xsl:v ariable na me="VarSec tion" sele ct="." /> CR LF
1930   CR LF   1975   CR LF
1931       <!-- R esolve sec tion prope rties --> CR LF   1976       <!-- R esolve sec tion prope rties --> CR LF
1932       <!--                               --> CR LF   1977       <!--                               --> CR LF
1933       <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML"> CR LF   1978       <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML"> CR LF
1934        <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule"> CR LF   1979        <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule"> CR LF
1935         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property"  /> CR LF   1980         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property"  /> CR LF
1936         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramTable"  /> CR LF   1981         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramTable"  /> CR LF
1937         <xsl :with-para m name="Pa ramTable"  select="$P aramTable"  /> CR LF   1982         <xsl :with-para m name="Pa ramTable"  select="$P aramTable"  /> CR LF
1938         <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" /> CR LF   1983         <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" /> CR LF
1939        </xsl :call-temp late> CR LF   1984        </xsl :call-temp late> CR LF
1940       </xsl: variable> CR LF   1985       </xsl: variable> CR LF
1941       <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   1986       <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
1942   CR LF   1987   CR LF
1943       <!-- P rocess sec tion rows  --> CR LF   1988       <!-- P rocess sec tion rows  --> CR LF
1944       <!--                         --> CR LF   1989       <!--                         --> CR LF
1945       <xsl:f or-each se lect="$Var Section/ww doc:TableR ow"> CR LF   1990       <xsl:f or-each se lect="$Var Section/ww doc:TableR ow"> CR LF
1946        <xsl: variable n ame="VarTa bleRow" se lect="." / > CR LF   1991        <xsl: variable n ame="VarTa bleRow" se lect="." / > CR LF
1947        <xsl: variable n ame="VarRo wPosition"  select="p osition()"  /> CR LF   1992        <xsl: variable n ame="VarRo wPosition"  select="p osition()"  /> CR LF
1948   CR LF   1993   CR LF
1949        <html :tr> CR LF   1994        <html :tr> CR LF
1950   CR LF   1995   CR LF
1951         <!--  Handle ta ble level  vertical a lign at ro w level -- > CR LF   1996         <!--  Handle ta ble level  vertical a lign at ro w level -- > CR LF
1952         <!--                                                     -- > CR LF   1997         <!--                                                     -- > CR LF
1953         <xsl :if test=" string-len gth($VarTa bleVertica lAlign) &g t; 0"> CR LF   1998         <xsl :if test=" string-len gth($VarTa bleVertica lAlign) &g t; 0"> CR LF
1954          <xs l:attribut e name="va lign"> CR LF   1999          <xs l:attribut e name="va lign"> CR LF
1955           <x sl:value-o f select=" $VarTableV erticalAli gn" /> CR LF   2000           <x sl:value-o f select=" $VarTableV erticalAli gn" /> CR LF
1956          </x sl:attribu te> CR LF   2001          </x sl:attribu te> CR LF
1957         </xs l:if> CR LF   2002         </xs l:if> CR LF
1958   CR LF   2003   CR LF
1959         <xsl :for-each  select="$V arTableRow /wwdoc:Tab leCell"> CR LF   2004         <xsl :for-each  select="$V arTableRow /wwdoc:Tab leCell"> CR LF
1960          <xs l:variable  name="Var TableCell"  select=". " /> CR LF   2005          <xs l:variable  name="Var TableCell"  select=". " /> CR LF
1961          <xs l:variable  name="Var CellPositi on" select ="position ()" /> CR LF   2006          <xs l:variable  name="Var CellPositi on" select ="position ()" /> CR LF
1962   CR LF   2007   CR LF
1963          <!- - Resolve  cell prope rties --> CR LF   2008          <!- - Resolve  cell prope rties --> CR LF
1964          <!- -                           --> CR LF   2009          <!- -                           --> CR LF
1965          <xs l:variable  name="Var ResolvedCe llProperti esAsXML"> CR LF   2010          <xs l:variable  name="Var ResolvedCe llProperti esAsXML"> CR LF
1966           <x sl:call-te mplate nam e="Propert ies-Table- Cell-Resol veProperti es"> CR LF   2011           <x sl:call-te mplate nam e="Propert ies-Table- Cell-Resol veProperti es"> CR LF
1967            < xsl:with-p aram name= "ParamSect ionPropert ies" selec t="$VarRes olvedSecti onProperti es" /> CR LF   2012            < xsl:with-p aram name= "ParamSect ionPropert ies" selec t="$VarRes olvedSecti onProperti es" /> CR LF
1968            < xsl:with-p aram name= "ParamCell Style" sel ect="$VarT ableCell/w wdoc:Style " /> CR LF   2013            < xsl:with-p aram name= "ParamCell Style" sel ect="$VarT ableCell/w wdoc:Style " /> CR LF
1969            < xsl:with-p aram name= "ParamRowI ndex" sele ct="$VarRo wPosition"  /> CR LF   2014            < xsl:with-p aram name= "ParamRowI ndex" sele ct="$VarRo wPosition"  /> CR LF
1970            < xsl:with-p aram name= "ParamColu mnIndex" s elect="$Va rCellPosit ion" /> CR LF   2015            < xsl:with-p aram name= "ParamColu mnIndex" s elect="$Va rCellPosit ion" /> CR LF
1971           </ xsl:call-t emplate> CR LF   2016           </ xsl:call-t emplate> CR LF
1972   CR LF   2017   CR LF
1973           <! -- Width a ttribute - -> CR LF   2018           <! -- Width a ttribute - -> CR LF
1974           <! --                  - -> CR LF   2019           <! --                  - -> CR LF
1975           <x sl:for-eac h select=" $VarTableC ellWidths[ @id = $Var TableCell/ @id][1]"> CR LF   2020           <x sl:for-eac h select=" $VarTableC ellWidths[ @id = $Var TableCell/ @id][1]"> CR LF
1976            < xsl:variab le name="V arTableCel lWidth" se lect="." / > CR LF   2021            < xsl:variab le name="V arTableCel lWidth" se lect="." / > CR LF
1977   CR LF   2022   CR LF
1978            < wwproject: Property N ame="width " Value="{ $VarTableC ellWidth/@ width}" /> CR LF   2023            < wwproject: Property N ame="width " Value="{ $VarTableC ellWidth/@ width}" /> CR LF
1979           </ xsl:for-ea ch> CR LF   2024           </ xsl:for-ea ch> CR LF
1980          </x sl:variabl e> CR LF   2025          </x sl:variabl e> CR LF
1981          <xs l:variable  name="Var ResolvedCe llProperti es" select ="msxsl:no de-set($Va rResolvedC ellPropert iesAsXML)/ wwproject: Property"  /> CR LF   2026          <xs l:variable  name="Var ResolvedCe llProperti es" select ="msxsl:no de-set($Va rResolvedC ellPropert iesAsXML)/ wwproject: Property"  /> CR LF
1982   CR LF   2027   CR LF
1983          <!- - Calculat e row span  --> CR LF   2028          <!- - Calculat e row span  --> CR LF
1984          <!- -                      --> CR LF   2029          <!- -                      --> CR LF
1985          <xs l:variable  name="Var RowSpan"> CR LF   2030          <xs l:variable  name="Var RowSpan"> CR LF
1986           <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   2031           <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
1987           <x sl:choose> CR LF   2032           <x sl:choose> CR LF
1988            < xsl:when t est="strin g-length($ VarRowSpan Hint) &gt;  0"> CR LF   2033            < xsl:when t est="strin g-length($ VarRowSpan Hint) &gt;  0"> CR LF
1989              <xsl:value -of select ="$VarRowS panHint" / > CR LF   2034              <xsl:value -of select ="$VarRowS panHint" / > CR LF
1990            < /xsl:when> CR LF   2035            < /xsl:when> CR LF
1991            < xsl:otherw ise> CR LF   2036            < xsl:otherw ise> CR LF
1992              <xsl:value -of select ="'0'" /> CR LF   2037              <xsl:value -of select ="'0'" /> CR LF
1993            < /xsl:other wise> CR LF   2038            < /xsl:other wise> CR LF
1994           </ xsl:choose > CR LF   2039           </ xsl:choose > CR LF
1995          </x sl:variabl e> CR LF   2040          </x sl:variabl e> CR LF
1996   CR LF   2041   CR LF
1997          <!- - Calculat e column s pan --> CR LF   2042          <!- - Calculat e column s pan --> CR LF
1998          <!- -                         --> CR LF   2043          <!- -                         --> CR LF
1999          <xs l:variable  name="Var ColumnSpan "> CR LF   2044          <xs l:variable  name="Var ColumnSpan "> CR LF
2000           <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   2045           <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
2001           <x sl:choose> CR LF   2046           <x sl:choose> CR LF
2002            < xsl:when t est="strin g-length($ VarColumnS panHint) & gt; 0"> CR LF   2047            < xsl:when t est="strin g-length($ VarColumnS panHint) & gt; 0"> CR LF
2003              <xsl:value -of select ="$VarColu mnSpanHint " /> CR LF   2048              <xsl:value -of select ="$VarColu mnSpanHint " /> CR LF
2004            < /xsl:when> CR LF   2049            < /xsl:when> CR LF
2005            < xsl:otherw ise> CR LF   2050            < xsl:otherw ise> CR LF
2006              <xsl:value -of select ="'0'" /> CR LF   2051              <xsl:value -of select ="'0'" /> CR LF
2007            < /xsl:other wise> CR LF   2052            < /xsl:other wise> CR LF
2008           </ xsl:choose > CR LF   2053           </ xsl:choose > CR LF
2009          </x sl:variabl e> CR LF   2054          </x sl:variabl e> CR LF
2010   CR LF   2055   CR LF
2011          <!- - bgcolor  --> CR LF   2056          <!- - bgcolor  --> CR LF
2012          <!- -          --> CR LF   2057          <!- -          --> CR LF
2013          <xs l:variable  name="Var Background Color"> CR LF   2058          <xs l:variable  name="Var Background Color"> CR LF
2014           <x sl:variabl e name="Va rBackgroun dColorHint " select=" $VarResolv edCellProp erties[@Na me = 'back ground-col or']/@Valu e" /> CR LF   2059           <x sl:variabl e name="Va rBackgroun dColorHint " select=" $VarResolv edCellProp erties[@Na me = 'back ground-col or']/@Valu e" /> CR LF
2015   CR LF   2060   CR LF
2016           <x sl:choose> CR LF   2061           <x sl:choose> CR LF
2017            < xsl:when t est="(stri ng-length( $VarBackgr oundColorH int) &gt;  0) and ($V arBackgrou ndColorHin t != 'none ')"> CR LF   2062            < xsl:when t est="(stri ng-length( $VarBackgr oundColorH int) &gt;  0) and ($V arBackgrou ndColorHin t != 'none ')"> CR LF
2018              <xsl:choos e> CR LF   2063              <xsl:choos e> CR LF
2019               <xsl:when  test="con tains($Var Background ColorHint,  '#')"> CR LF   2064               <xsl:when  test="con tains($Var Background ColorHint,  '#')"> CR LF
2020                <xsl:val ue-of sele ct="$VarBa ckgroundCo lorHint" / > CR LF   2065                <xsl:val ue-of sele ct="$VarBa ckgroundCo lorHint" / > CR LF
2021               </xsl:whe n> CR LF   2066               </xsl:whe n> CR LF
2022   CR LF   2067   CR LF
2023               <xsl:othe rwise> CR LF   2068               <xsl:othe rwise> CR LF
2024                <xsl:val ue-of sele ct="wwunit s:CSSRGBCo lor($VarBa ckgroundCo lorHint)"/ > CR LF   2069                <xsl:val ue-of sele ct="wwunit s:CSSRGBCo lor($VarBa ckgroundCo lorHint)"/ > CR LF
2025               </xsl:oth erwise> CR LF   2070               </xsl:oth erwise> CR LF
2026              </xsl:choo se> CR LF   2071              </xsl:choo se> CR LF
2027            < /xsl:when> CR LF   2072            < /xsl:when> CR LF
2028            < xsl:otherw ise> CR LF   2073            < xsl:otherw ise> CR LF
2029              <xsl:value -of select ="''"/> CR LF   2074              <xsl:value -of select ="''"/> CR LF
2030            < /xsl:other wise> CR LF   2075            < /xsl:other wise> CR LF
2031           </ xsl:choose > CR LF   2076           </ xsl:choose > CR LF
2032          </x sl:variabl e> CR LF   2077          </x sl:variabl e> CR LF
2033   CR LF   2078   CR LF
2034          <!- - backgrou nd --> CR LF   2079          <!- - backgrou nd --> CR LF
2035          <!- -             --> CR LF   2080          <!- -             --> CR LF
2036          <xs l:variable  name="Var Background Image"> CR LF   2081          <xs l:variable  name="Var Background Image"> CR LF
2037           <x sl:variabl e name="Va rBackgroun dImageHint " select=" $VarResolv edCellProp erties[@Na me = 'back ground-ima ge']/@Valu e" /> CR LF   2082           <x sl:variabl e name="Va rBackgroun dImageHint " select=" $VarResolv edCellProp erties[@Na me = 'back ground-ima ge']/@Valu e" /> CR LF
2038           <x sl:choose> CR LF   2083           <x sl:choose> CR LF
2039            < xsl:when t est="strin g-length($ VarBackgro undImageHi nt) &gt; 0 "> CR LF   2084            < xsl:when t est="strin g-length($ VarBackgro undImageHi nt) &gt; 0 "> CR LF
2040              <xsl:value -of select ="$VarBack groundImag eHint" /> CR LF   2085              <xsl:value -of select ="$VarBack groundImag eHint" /> CR LF
2041            < /xsl:when> CR LF   2086            < /xsl:when> CR LF
2042            < xsl:otherw ise> CR LF   2087            < xsl:otherw ise> CR LF
2043              <xsl:value -of select ="''" /> CR LF   2088              <xsl:value -of select ="''" /> CR LF
2044            < /xsl:other wise> CR LF   2089            < /xsl:other wise> CR LF
2045           </ xsl:choose > CR LF   2090           </ xsl:choose > CR LF
2046          </x sl:variabl e> CR LF   2091          </x sl:variabl e> CR LF
2047   CR LF   2092   CR LF
2048          <!- - cellpadd ing --> CR LF   2093          <!- - cellpadd ing --> CR LF
2049          <!- -              --> CR LF   2094          <!- -              --> CR LF
2050          <xs l:variable  name="Var CellPaddin g"> CR LF   2095          <xs l:variable  name="Var CellPaddin g"> CR LF
2051           <x sl:variabl e name="Va rPropertie s" select= "$VarResol vedCellPro perties[(@ Name = 'pa dding-left ') or (@Na me = 'padd ing-right' ) or (@Nam e = 'paddi ng-top') o r (@Name =  'padding- bottom')]"  /> CR LF   2096           <x sl:variabl e name="Va rPropertie s" select= "$VarResol vedCellPro perties[(@ Name = 'pa dding-left ') or (@Na me = 'padd ing-right' ) or (@Nam e = 'paddi ng-top') o r (@Name =  'padding- bottom')]"  /> CR LF
2052   CR LF   2097   CR LF
2053           <x sl:choose> CR LF   2098           <x sl:choose> CR LF
2054            < xsl:when t est="count ($VarPrope rties) &gt ; 0"> CR LF   2099            < xsl:when t est="count ($VarPrope rties) &gt ; 0"> CR LF
2055              <xsl:call- template n ame="Forma tting-GetH ighestValu eAsPixels" > CR LF   2100              <xsl:call- template n ame="Forma tting-GetH ighestValu eAsPixels" > CR LF
2056               <xsl:with -param nam e="ParamPr operties"  select="$V arProperti es" /> CR LF   2101               <xsl:with -param nam e="ParamPr operties"  select="$V arProperti es" /> CR LF
2057               <xsl:with -param nam e="ParamSt art" selec t="'1'" /> CR LF   2102               <xsl:with -param nam e="ParamSt art" selec t="'1'" /> CR LF
2058               <xsl:with -param nam e="ParamVa lue" selec t="'0'" /> CR LF   2103               <xsl:with -param nam e="ParamVa lue" selec t="'0'" /> CR LF
2059              </xsl:call -template> CR LF   2104              </xsl:call -template> CR LF
2060            < /xsl:when> CR LF   2105            < /xsl:when> CR LF
2061            < xsl:otherw ise> CR LF   2106            < xsl:otherw ise> CR LF
2062              <xsl:value -of select ="''" /> CR LF   2107              <xsl:value -of select ="''" /> CR LF
2063            < /xsl:other wise> CR LF   2108            < /xsl:other wise> CR LF
2064           </ xsl:choose > CR LF   2109           </ xsl:choose > CR LF
2065          </x sl:variabl e> CR LF   2110          </x sl:variabl e> CR LF
2066   CR LF   2111   CR LF
2067          <!- - border - -> CR LF   2112          <!- - border - -> CR LF
2068          <!- -        - -> CR LF   2113          <!- -        - -> CR LF
2069          <xs l:variable  name="Var BorderWidt h"> CR LF   2114          <xs l:variable  name="Var BorderWidt h"> CR LF
2070           <x sl:variabl e name="Va rPropertie s" select= "$VarResol vedCellPro perties[(@ Name = 'bo rder-left- width') or  (@Name =  'border-ri ght-width' ) or (@Nam e = 'borde r-top-widt h') or (@N ame = 'bor der-bottom -width')]"  /> CR LF   2115           <x sl:variabl e name="Va rPropertie s" select= "$VarResol vedCellPro perties[(@ Name = 'bo rder-left- width') or  (@Name =  'border-ri ght-width' ) or (@Nam e = 'borde r-top-widt h') or (@N ame = 'bor der-bottom -width')]"  /> CR LF
2071   CR LF   2116   CR LF
2072           <x sl:choose> CR LF   2117           <x sl:choose> CR LF
2073            < xsl:when t est="count ($VarPrope rties) &gt ; 0"> CR LF   2118            < xsl:when t est="count ($VarPrope rties) &gt ; 0"> CR LF
2074              <xsl:call- template n ame="Forma tting-GetH ighestValu eAsPixels" > CR LF   2119              <xsl:call- template n ame="Forma tting-GetH ighestValu eAsPixels" > CR LF
2075               <xsl:with -param nam e="ParamPr operties"  select="$V arProperti es" /> CR LF   2120               <xsl:with -param nam e="ParamPr operties"  select="$V arProperti es" /> CR LF
2076               <xsl:with -param nam e="ParamSt art" selec t="'1'" /> CR LF   2121               <xsl:with -param nam e="ParamSt art" selec t="'1'" /> CR LF
2077               <xsl:with -param nam e="ParamVa lue" selec t="'0'" /> CR LF   2122               <xsl:with -param nam e="ParamVa lue" selec t="'0'" /> CR LF
2078              </xsl:call -template> CR LF   2123              </xsl:call -template> CR LF
2079            < /xsl:when> CR LF   2124            < /xsl:when> CR LF
2080            < xsl:otherw ise> CR LF   2125            < xsl:otherw ise> CR LF
2081              <xsl:value -of select ="''" /> CR LF   2126              <xsl:value -of select ="''" /> CR LF
2082            < /xsl:other wise> CR LF   2127            < /xsl:other wise> CR LF
2083           </ xsl:choose > CR LF   2128           </ xsl:choose > CR LF
2084          </x sl:variabl e> CR LF   2129          </x sl:variabl e> CR LF
2085   CR LF   2130   CR LF
2086          <!- - borderco lor --> CR LF   2131          <!- - borderco lor --> CR LF
2087          <!- -              --> CR LF   2132          <!- -              --> CR LF
2088          <xs l:variable  name="Var BorderColo r"> CR LF   2133          <xs l:variable  name="Var BorderColo r"> CR LF
2089           <x sl:variabl e name="Va rBorderCol orHint" se lect="$Var ResolvedCe llProperti es[((@Name  = 'border -left-colo r') or (@N ame = 'bor der-right- color') or  (@Name =  'border-to p-color')  or (@Name  = 'border- bottom-col or')) and  (string-le ngth(@Valu e) &gt; 0) ][1]/@Valu e" /> CR LF   2134           <x sl:variabl e name="Va rBorderCol orHint" se lect="$Var ResolvedCe llProperti es[((@Name  = 'border -left-colo r') or (@N ame = 'bor der-right- color') or  (@Name =  'border-to p-color')  or (@Name  = 'border- bottom-col or')) and  (string-le ngth(@Valu e) &gt; 0) ][1]/@Valu e" /> CR LF
2090   CR LF   2135   CR LF
2091           <x sl:choose> CR LF   2136           <x sl:choose> CR LF
2092            < xsl:when t est="(stri ng-length( $VarBorder ColorHint)  &gt; 0) a nd ($VarBo rderColorH int != 'no ne')"> CR LF   2137            < xsl:when t est="(stri ng-length( $VarBorder ColorHint)  &gt; 0) a nd ($VarBo rderColorH int != 'no ne')"> CR LF
2093              <xsl:choos e> CR LF   2138              <xsl:choos e> CR LF
2094               <xsl:when  test="con tains($Var BorderColo rHint, '#' )"> CR LF   2139               <xsl:when  test="con tains($Var BorderColo rHint, '#' )"> CR LF
2095                <xsl:val ue-of sele ct="$VarBo rderColorH int" /> CR LF   2140                <xsl:val ue-of sele ct="$VarBo rderColorH int" /> CR LF
2096               </xsl:whe n> CR LF   2141               </xsl:whe n> CR LF
2097   CR LF   2142   CR LF
2098               <xsl:othe rwise> CR LF   2143               <xsl:othe rwise> CR LF
2099                <xsl:val ue-of sele ct="wwunit s:CSSRGBCo lor($VarBo rderColorH int)" /> CR LF   2144                <xsl:val ue-of sele ct="wwunit s:CSSRGBCo lor($VarBo rderColorH int)" /> CR LF
2100               </xsl:oth erwise> CR LF   2145               </xsl:oth erwise> CR LF
2101              </xsl:choo se> CR LF   2146              </xsl:choo se> CR LF
2102            < /xsl:when> CR LF   2147            < /xsl:when> CR LF
2103            < xsl:otherw ise> CR LF   2148            < xsl:otherw ise> CR LF
2104              <xsl:value -of select ="''" /> CR LF   2149              <xsl:value -of select ="''" /> CR LF
2105            < /xsl:other wise> CR LF   2150            < /xsl:other wise> CR LF
2106           </ xsl:choose > CR LF   2151           </ xsl:choose > CR LF
2107          </x sl:variabl e> CR LF   2152          </x sl:variabl e> CR LF
2108   CR LF   2153   CR LF
2109          <!- - valign - -> CR LF   2154          <!- - valign - -> CR LF
2110          <!- -        - -> CR LF   2155          <!- -        - -> CR LF
2111          <xs l:variable  name="Var VerticalAl ign"> CR LF   2156          <xs l:variable  name="Var VerticalAl ign"> CR LF
2112           <x sl:variabl e name="Va rVerticalA lignHint"  select="$V arResolved CellProper ties[(@Nam e = 'verti cal-align' )]/@Value"  /> CR LF   2157           <x sl:variabl e name="Va rVerticalA lignHint"  select="$V arResolved CellProper ties[(@Nam e = 'verti cal-align' )]/@Value"  /> CR LF
2113           <x sl:choose> CR LF   2158           <x sl:choose> CR LF
2114            < xsl:when t est="strin g-length($ VarVertica lAlignHint ) &gt; 0"> CR LF   2159            < xsl:when t est="strin g-length($ VarVertica lAlignHint ) &gt; 0"> CR LF
2115              <xsl:value -of select ="$VarVert icalAlignH int" /> CR LF   2160              <xsl:value -of select ="$VarVert icalAlignH int" /> CR LF
2116            < /xsl:when> CR LF   2161            < /xsl:when> CR LF
2117            < xsl:otherw ise> CR LF   2162            < xsl:otherw ise> CR LF
2118              <xsl:value -of select ="''" /> CR LF   2163              <xsl:value -of select ="''" /> CR LF
2119            < /xsl:other wise> CR LF   2164            < /xsl:other wise> CR LF
2120           </ xsl:choose > CR LF   2165           </ xsl:choose > CR LF
2121          </x sl:variabl e> CR LF   2166          </x sl:variabl e> CR LF
2122   CR LF   2167   CR LF
2123          <!- - width -- > CR LF   2168          <!- - width -- > CR LF
2124          <!- -       -- > CR LF   2169          <!- -       -- > CR LF
2125          <xs l:variable  name="Var Width"> CR LF   2170          <xs l:variable  name="Var Width"> CR LF
2126           <x sl:variabl e name="Va rWidthHint " select=" $VarResolv edCellProp erties[(@N ame = 'wid th')]/@Val ue" /> CR LF   2171           <x sl:variabl e name="Va rWidthHint " select=" $VarResolv edCellProp erties[(@N ame = 'wid th')]/@Val ue" /> CR LF
2127           <x sl:choose> CR LF   2172           <x sl:choose> CR LF
2128            < xsl:when t est="strin g-length($ VarWidthHi nt) &gt; 0 "> CR LF   2173            < xsl:when t est="strin g-length($ VarWidthHi nt) &gt; 0 "> CR LF
2129              <xsl:value -of select ="$VarWidt hHint" /> CR LF   2174              <xsl:value -of select ="$VarWidt hHint" /> CR LF
2130            < /xsl:when> CR LF   2175            < /xsl:when> CR LF
2131            < xsl:otherw ise> CR LF   2176            < xsl:otherw ise> CR LF
2132              <xsl:value -of select ="''" /> CR LF   2177              <xsl:value -of select ="''" /> CR LF
2133            < /xsl:other wise> CR LF   2178            < /xsl:other wise> CR LF
2134           </ xsl:choose > CR LF   2179           </ xsl:choose > CR LF
2135          </x sl:variabl e> CR LF   2180          </x sl:variabl e> CR LF
2136   CR LF   2181   CR LF
2137          <!- - Emit cel l --> CR LF   2182          <!- - Emit cel l --> CR LF
2138          <!- -            --> CR LF   2183          <!- -            --> CR LF
2139          <ht ml:td> CR LF   2184          <ht ml:td> CR LF
2140           <! -- Row spa n attribut e --> CR LF   2185           <! -- Row spa n attribut e --> CR LF
2141           <! --                      --> CR LF   2186           <! --                      --> CR LF
2142           <x sl:if test ="number($ VarRowSpan ) &gt; 0"> CR LF   2187           <x sl:if test ="number($ VarRowSpan ) &gt; 0"> CR LF
2143            < xsl:attrib ute name=" rowspan"> CR LF   2188            < xsl:attrib ute name=" rowspan"> CR LF
2144              <xsl:value -of select ="$VarRowS pan" /> CR LF   2189              <xsl:value -of select ="$VarRowS pan" /> CR LF
2145            < /xsl:attri bute> CR LF   2190            < /xsl:attri bute> CR LF
2146           </ xsl:if> CR LF   2191           </ xsl:if> CR LF
2147   CR LF   2192   CR LF
2148           <! -- Column  span attri bute --> CR LF   2193           <! -- Column  span attri bute --> CR LF
2149           <! --                         --> CR LF   2194           <! --                         --> CR LF
2150           <x sl:if test ="number($ VarColumnS pan) &gt;  0"> CR LF   2195           <x sl:if test ="number($ VarColumnS pan) &gt;  0"> CR LF
2151            < xsl:attrib ute name=" colspan"> CR LF   2196            < xsl:attrib ute name=" colspan"> CR LF
2152              <xsl:value -of select ="$VarColu mnSpan" /> CR LF   2197              <xsl:value -of select ="$VarColu mnSpan" /> CR LF
2153            < /xsl:attri bute> CR LF   2198            < /xsl:attri bute> CR LF
2154           </ xsl:if> CR LF   2199           </ xsl:if> CR LF
2155   CR LF   2200   CR LF
2156           <! -- bgcolor  attribute  --> CR LF   2201           <! -- bgcolor  attribute  --> CR LF
2157           <! --                     --> CR LF   2202           <! --                     --> CR LF
2158           <x sl:if test ="string-l ength($Var Background Color) &gt ; 0"> CR LF   2203           <x sl:if test ="string-l ength($Var Background Color) &gt ; 0"> CR LF
2159            < xsl:attrib ute name=" bgcolor"> CR LF   2204            < xsl:attrib ute name=" bgcolor"> CR LF
2160              <xsl:value -of select ="$VarBack groundColo r" /> CR LF   2205              <xsl:value -of select ="$VarBack groundColo r" /> CR LF
2161            < /xsl:attri bute> CR LF   2206            < /xsl:attri bute> CR LF
2162           </ xsl:if> CR LF   2207           </ xsl:if> CR LF
2163   CR LF   2208   CR LF
2164           <! -- cellpad ding attri bute --> CR LF   2209           <! -- cellpad ding attri bute --> CR LF
2165           <! --                         --> CR LF   2210           <! --                         --> CR LF
2166           <x sl:if test ="string-l ength($Var CellPaddin g) &gt; 0" > CR LF   2211           <x sl:if test ="string-l ength($Var CellPaddin g) &gt; 0" > CR LF
2167            < xsl:attrib ute name=" cellpaddin g"> CR LF   2212            < xsl:attrib ute name=" cellpaddin g"> CR LF
2168              <xsl:value -of select ="$VarCell Padding" / > CR LF   2213              <xsl:value -of select ="$VarCell Padding" / > CR LF
2169            < /xsl:attri bute> CR LF   2214            < /xsl:attri bute> CR LF
2170           </ xsl:if> CR LF   2215           </ xsl:if> CR LF
2171   CR LF   2216   CR LF
2172           <! -- border  attribute  --> CR LF   2217           <! -- border  attribute  --> CR LF
2173           <! --                    --> CR LF   2218           <! --                    --> CR LF
2174           <x sl:if test ="string-l ength($Var BorderWidt h) &gt; 0" > CR LF   2219           <x sl:if test ="string-l ength($Var BorderWidt h) &gt; 0" > CR LF
2175            < xsl:attrib ute name=" border"> CR LF   2220            < xsl:attrib ute name=" border"> CR LF
2176              <xsl:value -of select ="$VarBord erWidth" / > CR LF   2221              <xsl:value -of select ="$VarBord erWidth" / > CR LF
2177            < /xsl:attri bute> CR LF   2222            < /xsl:attri bute> CR LF
2178           </ xsl:if> CR LF   2223           </ xsl:if> CR LF
2179   CR LF   2224   CR LF
2180           <! -- borderc olor attri bute --> CR LF   2225           <! -- borderc olor attri bute --> CR LF
2181           <! --                         --> CR LF   2226           <! --                         --> CR LF
2182           <x sl:if test ="string-l ength($Var BorderColo r) &gt; 0" > CR LF   2227           <x sl:if test ="string-l ength($Var BorderColo r) &gt; 0" > CR LF
2183            < xsl:attrib ute name=" bordercolo r"> CR LF   2228            < xsl:attrib ute name=" bordercolo r"> CR LF
2184              <xsl:value -of select ="$VarBord erColor" / > CR LF   2229              <xsl:value -of select ="$VarBord erColor" / > CR LF
2185            < /xsl:attri bute> CR LF   2230            < /xsl:attri bute> CR LF
2186           </ xsl:if> CR LF   2231           </ xsl:if> CR LF
2187   CR LF   2232   CR LF
2188           <! -- backgro und attrib ute --> CR LF   2233           <! -- backgro und attrib ute --> CR LF
2189           <! --                        --> CR LF   2234           <! --                        --> CR LF
2190           <x sl:if test ="string-l ength($Var Background Image) &gt ; 0"> CR LF   2235           <x sl:if test ="string-l ength($Var Background Image) &gt ; 0"> CR LF
2191            < xsl:attrib ute name=" background "> CR LF   2236            < xsl:attrib ute name=" background "> CR LF
2192              <xsl:value -of select ="$VarBack groundImag e" /> CR LF   2237              <xsl:value -of select ="$VarBack groundImag e" /> CR LF
2193            < /xsl:attri bute> CR LF   2238            < /xsl:attri bute> CR LF
2194           </ xsl:if> CR LF   2239           </ xsl:if> CR LF
2195   CR LF   2240   CR LF
2196           <! -- valign  attribute  --> CR LF   2241           <! -- valign  attribute  --> CR LF
2197           <! --                    --> CR LF   2242           <! --                    --> CR LF
2198           <x sl:if test ="string-l ength($Var VerticalAl ign) &gt;  0"> CR LF   2243           <x sl:if test ="string-l ength($Var VerticalAl ign) &gt;  0"> CR LF
2199            < xsl:attrib ute name=" valign"> CR LF   2244            < xsl:attrib ute name=" valign"> CR LF
2200              <xsl:value -of select ="$VarVert icalAlign"  /> CR LF   2245              <xsl:value -of select ="$VarVert icalAlign"  /> CR LF
2201            < /xsl:attri bute> CR LF   2246            < /xsl:attri bute> CR LF
2202           </ xsl:if> CR LF   2247           </ xsl:if> CR LF
2203   CR LF   2248   CR LF
2204           <! -- width a ttribute - -> CR LF   2249           <! -- width a ttribute - -> CR LF
2205           <! --                  - -> CR LF   2250           <! --                  - -> CR LF
2206           <x sl:if test ="string-l ength($Var Width) &gt ; 0"> CR LF   2251           <x sl:if test ="string-l ength($Var Width) &gt ; 0"> CR LF
2207            < xsl:attrib ute name=" width"> CR LF   2252            < xsl:attrib ute name=" width"> CR LF
2208              <!-- Conve rt to pixe ls --> CR LF   2253              <!-- Conve rt to pixe ls --> CR LF
2209              <!--                     --> CR LF   2254              <!--                     --> CR LF
2210              <xsl:varia ble name=" VarWidthNu mber" sele ct="wwunit s:NumericP refix($Var Width)" /> CR LF   2255              <xsl:varia ble name=" VarWidthNu mber" sele ct="wwunit s:NumericP refix($Var Width)" /> CR LF
2211              <xsl:varia ble name=" VarWidthUn its" selec t="wwunits :UnitsSuff ix($VarWid th)" /> CR LF   2256              <xsl:varia ble name=" VarWidthUn its" selec t="wwunits :UnitsSuff ix($VarWid th)" /> CR LF
2212   CR LF   2257   CR LF
2213              <xsl:value -of select ="round(ww units:Conv ert($VarWi dthNumber,  $VarWidth Units, 'px '))" /> CR LF   2258              <xsl:value -of select ="round(ww units:Conv ert($VarWi dthNumber,  $VarWidth Units, 'px '))" /> CR LF
2214            < /xsl:attri bute> CR LF   2259            < /xsl:attri bute> CR LF
2215           </ xsl:if> CR LF   2260           </ xsl:if> CR LF
2216   CR LF   2261   CR LF
2217           <! -- Recurse  --> CR LF   2262           <! -- Recurse  --> CR LF
2218           <! --          --> CR LF   2263           <! --          --> CR LF
2219           <x sl:apply-t emplates s elect="./* " mode="ww mode:conte nt"> CR LF   2264           <x sl:apply-t emplates s elect="./* " mode="ww mode:conte nt"> CR LF
2220            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF   2265            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF
2221            < xsl:with-p aram name= "ParamCarg o" select= "$VarCargo " /> CR LF   2266            < xsl:with-p aram name= "ParamCarg o" select= "$VarCargo " /> CR LF
2222            < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" /> CR LF   2267            < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" /> CR LF
2223            < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" /> CR LF   2268            < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" /> CR LF
2224            < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" /> CR LF   2269            < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" /> CR LF
2225           </ xsl:apply- templates> CR LF   2270           </ xsl:apply- templates> CR LF
2226          </h tml:td> CR LF   2271          </h tml:td> CR LF
2227         </xs l:for-each > CR LF   2272         </xs l:for-each > CR LF
2228   CR LF   2273   CR LF
2229        </htm l:tr> CR LF   2274        </htm l:tr> CR LF
2230       </xsl: for-each> CR LF   2275       </xsl: for-each> CR LF
2231      </xsl:f or-each> CR LF   2276      </xsl:f or-each> CR LF
2232   CR LF   2277   CR LF
2233     </html:t able> CR LF   2278     </html:t able> CR LF
2234   CR LF   2279   CR LF
2235     <!-- Tab le Footnot es --> CR LF   2280     <!-- Tab le Footnot es --> CR LF
2236     <!--                   --> CR LF   2281     <!--                   --> CR LF
2237     <xsl:cal l-template  name="Con tent-Notes "> CR LF   2282     <xsl:cal l-template  name="Con tent-Notes "> CR LF
2238      <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" /> CR LF   2283      <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" /> CR LF
2239      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   2284      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
2240      <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" /> CR LF   2285      <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" /> CR LF
2241      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   2286      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
2242      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> CR LF   2287      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> CR LF
2243      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   2288      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
2244     </xsl:ca ll-templat e> CR LF   2289     </xsl:ca ll-templat e> CR LF
2245    </xsl:tem plate> CR LF   2290    </xsl:tem plate> CR LF
2246   CR LF   2291   CR LF
2247   CR LF   2292   CR LF
2248    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:co ntent"> CR LF   2293    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:co ntent"> CR LF
2249     <xsl:par am name="P aramSplits " /> CR LF   2294     <xsl:par am name="P aramSplits " /> CR LF
2250     <xsl:par am name="P aramCargo"  /> CR LF   2295     <xsl:par am name="P aramCargo"  /> CR LF
2251     <xsl:par am name="P aramLinks"  /> CR LF   2296     <xsl:par am name="P aramLinks"  /> CR LF
2252     <xsl:par am name="P aramTOCDat a" /> CR LF   2297     <xsl:par am name="P aramTOCDat a" /> CR LF
2253     <xsl:par am name="P aramSplit"  /> CR LF   2298     <xsl:par am name="P aramSplit"  /> CR LF
2254   CR LF   2299   CR LF
2255     <!-- Abo rted? --> CR LF   2300     <!-- Abo rted? --> CR LF
2256     <!--           --> CR LF   2301     <!--           --> CR LF
2257     <xsl:if  test="not( wwprogress :Abort())" > CR LF   2302     <xsl:if  test="not( wwprogress :Abort())" > CR LF
2258      <xsl:ca ll-templat e name="Fr ame"> CR LF   2303      <xsl:ca ll-templat e name="Fr ame"> CR LF
2259       <xsl:w ith-param  name="Para mFrame" se lect="." / > CR LF   2304       <xsl:w ith-param  name="Para mFrame" se lect="." / > CR LF
2260       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   2305       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
2261       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   2306       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
2262       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   2307       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
2263       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   2308       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
2264      </xsl:c all-templa te> CR LF   2309      </xsl:c all-templa te> CR LF
2265     </xsl:if > CR LF   2310     </xsl:if > CR LF
2266    </xsl:tem plate> CR LF   2311    </xsl:tem plate> CR LF
2267   CR LF   2312   CR LF
2268   CR LF   2313   CR LF
2269    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:te xtrun"> CR LF   2314    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:te xtrun"> CR LF
2270     <xsl:par am name="P aramSplits " /> CR LF   2315     <xsl:par am name="P aramSplits " /> CR LF
2271     <xsl:par am name="P aramCargo"  /> CR LF   2316     <xsl:par am name="P aramCargo"  /> CR LF
2272     <xsl:par am name="P aramLinks"  /> CR LF   2317     <xsl:par am name="P aramLinks"  /> CR LF
2273     <xsl:par am name="P aramSplit"  /> CR LF   2318     <xsl:par am name="P aramSplit"  /> CR LF
2274   CR LF   2319   CR LF
2275     <xsl:cal l-template  name="Fra me"> CR LF   2320     <xsl:cal l-template  name="Fra me"> CR LF
2276      <xsl:wi th-param n ame="Param Frame" sel ect="." /> CR LF   2321      <xsl:wi th-param n ame="Param Frame" sel ect="." /> CR LF
2277      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   2322      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
2278      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF   2323      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF
2279      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   2324      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
2280      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   2325      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
2281     </xsl:ca ll-templat e> CR LF   2326     </xsl:ca ll-templat e> CR LF
2282    </xsl:tem plate> CR LF   2327    </xsl:tem plate> CR LF
2283   CR LF   2328   CR LF
2284   CR LF   2329   CR LF
2285    <xsl:temp late name= "Frame"> CR LF   2330    <xsl:temp late name= "Frame"> CR LF
2286     <xsl:par am name="P aramFrame"  /> CR LF   2331     <xsl:par am name="P aramFrame"  /> CR LF
2287     <xsl:par am name="P aramSplits " /> CR LF   2332     <xsl:par am name="P aramSplits " /> CR LF
2288     <xsl:par am name="P aramCargo"  /> CR LF   2333     <xsl:par am name="P aramCargo"  /> CR LF
2289     <xsl:par am name="P aramLinks"  /> CR LF   2334     <xsl:par am name="P aramLinks"  /> CR LF
2290     <xsl:par am name="P aramSplit"  /> CR LF   2335     <xsl:par am name="P aramSplit"  /> CR LF
2291   CR LF   2336   CR LF
2292     <!-- Get  splits fr ame --> CR LF   2337     <!-- Get  splits fr ame --> CR LF
2293     <!--                    --> CR LF   2338     <!--                    --> CR LF
2294     <xsl:for -each sele ct="$Param Splits[1]" > CR LF   2339     <xsl:for -each sele ct="$Param Splits[1]" > CR LF
2295      <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   2340      <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
2296   CR LF   2341   CR LF
2297      <!-- Fr ame known?  --> CR LF   2342      <!-- Fr ame known?  --> CR LF
2298      <!--                --> CR LF   2343      <!--                --> CR LF
2299      <xsl:if  test="cou nt($VarSpl itsFrame)  = 1"> CR LF   2344      <xsl:if  test="cou nt($VarSpl itsFrame)  = 1"> CR LF
2300       <!-- T humbnail?  --> CR LF   2345       <!-- T humbnail?  --> CR LF
2301       <!--              --> CR LF   2346       <!--              --> CR LF
2302       <xsl:f or-each se lect="$Glo balFiles[1 ]"> CR LF   2347       <xsl:f or-each se lect="$Glo balFiles[1 ]"> CR LF
2303        <xsl: variable n ame="VarSp litsThumbn ail" selec t="$VarSpl itsFrame/w wsplits:Th umbnail" / > CR LF   2348        <xsl: variable n ame="VarSp litsThumbn ail" selec t="$VarSpl itsFrame/w wsplits:Th umbnail" / > CR LF
2304        <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   2349        <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
2305   CR LF   2350   CR LF
2306        <!--  Emit image  --> CR LF   2351        <!--  Emit image  --> CR LF
2307        <!--              --> CR LF   2352        <!--              --> CR LF
2308        <xsl: choose> CR LF   2353        <xsl: choose> CR LF
2309         <!--  Thumbnail  --> CR LF   2354         <!--  Thumbnail  --> CR LF
2310         <!--             --> CR LF   2355         <!--             --> CR LF
2311         <xsl :when test ="$VarThum bnailDefin ed"> CR LF   2356         <xsl :when test ="$VarThum bnailDefin ed"> CR LF
2312          <!- - Emit mar kup --> CR LF   2357          <!- - Emit mar kup --> CR LF
2313          <!- -              --> CR LF   2358          <!- -              --> CR LF
2314          <xs l:call-tem plate name ="Frame-Ma rkup"> CR LF   2359          <xs l:call-tem plate name ="Frame-Ma rkup"> CR LF
2315           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF   2360           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF
2316           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   2361           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
2317           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF   2362           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF
2318           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   2363           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
2319           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   2364           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
2320           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> CR LF   2365           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> CR LF
2321           <x sl:with-pa ram name=" ParamThumb nail" sele ct="true() " /> CR LF   2366           <x sl:with-pa ram name=" ParamThumb nail" sele ct="true() " /> CR LF
2322          </x sl:call-te mplate> CR LF   2367          </x sl:call-te mplate> CR LF
2323         </xs l:when> CR LF   2368         </xs l:when> CR LF
2324   CR LF   2369   CR LF
2325         <!--  Fullsize  --> CR LF   2370         <!--  Fullsize  --> CR LF
2326         <!--            --> CR LF   2371         <!--            --> CR LF
2327         <xsl :otherwise > CR LF   2372         <xsl :otherwise > CR LF
2328          <!- - Note num bering --> CR LF   2373          <!- - Note num bering --> CR LF
2329          <!- -                 --> CR LF   2374          <!- -                 --> CR LF
2330          <xs l:variable  name="Var Notes" sel ect="$Para mFrame//ww doc:Note"  /> CR LF   2375          <xs l:variable  name="Var Notes" sel ect="$Para mFrame//ww doc:Note"  /> CR LF
2331          <xs l:variable  name="Var NoteNumber ingAsXML"> CR LF   2376          <xs l:variable  name="Var NoteNumber ingAsXML"> CR LF
2332           <x sl:call-te mplate nam e="Notes-N umber"> CR LF   2377           <x sl:call-te mplate nam e="Notes-N umber"> CR LF
2333            < xsl:with-p aram name= "ParamNote s" select= "$VarNotes " /> CR LF   2378            < xsl:with-p aram name= "ParamNote s" select= "$VarNotes " /> CR LF
2334           </ xsl:call-t emplate> CR LF   2379           </ xsl:call-t emplate> CR LF
2335          </x sl:variabl e> CR LF   2380          </x sl:variabl e> CR LF
2336          <xs l:variable  name="Var NoteNumber ing" selec t="msxsl:n ode-set($V arNoteNumb eringAsXML )" /> CR LF   2381          <xs l:variable  name="Var NoteNumber ing" selec t="msxsl:n ode-set($V arNoteNumb eringAsXML )" /> CR LF
2337   CR LF   2382   CR LF
2338          <!- - Frame ca rgo --> CR LF   2383          <!- - Frame ca rgo --> CR LF
2339          <!- -              --> CR LF   2384          <!- -              --> CR LF
2340          <xs l:variable  name="Var Cargo" sel ect="$Para mCargo/*[l ocal-name( ) != 'Note Numbering' ]/.. | $Va rNoteNumbe ring" /> CR LF   2385          <xs l:variable  name="Var Cargo" sel ect="$Para mCargo/*[l ocal-name( ) != 'Note Numbering' ]/.. | $Va rNoteNumbe ring" /> CR LF
2341   CR LF   2386   CR LF
2342          <!- - Emit mar kup --> CR LF   2387          <!- - Emit mar kup --> CR LF
2343          <!- -              --> CR LF   2388          <!- -              --> CR LF
2344          <xs l:call-tem plate name ="Frame-Ma rkup"> CR LF   2389          <xs l:call-tem plate name ="Frame-Ma rkup"> CR LF
2345           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF   2390           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF
2346           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   2391           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
2347           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  /> CR LF   2392           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  /> CR LF
2348           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   2393           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
2349           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   2394           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
2350           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> CR LF   2395           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> CR LF
2351           <x sl:with-pa ram name=" ParamThumb nail" sele ct="false( )" /> CR LF   2396           <x sl:with-pa ram name=" ParamThumb nail" sele ct="false( )" /> CR LF
2352          </x sl:call-te mplate> CR LF   2397          </x sl:call-te mplate> CR LF
2353         </xs l:otherwis e> CR LF   2398         </xs l:otherwis e> CR LF
2354        </xsl :choose> CR LF   2399        </xsl :choose> CR LF
2355       </xsl: for-each> CR LF   2400       </xsl: for-each> CR LF
2356      </xsl:i f> CR LF   2401      </xsl:i f> CR LF
2357     </xsl:fo r-each> CR LF   2402     </xsl:fo r-each> CR LF
2358    </xsl:tem plate> CR LF   2403    </xsl:tem plate> CR LF
2359   CR LF   2404   CR LF
2360   CR LF   2405   CR LF
2361    <xsl:temp late name= "Frame-Mar kup"> CR LF   2406    <xsl:temp late name= "Frame-Mar kup"> CR LF
2362     <xsl:par am name="P aramFrame"  /> CR LF   2407     <xsl:par am name="P aramFrame"  /> CR LF
2363     <xsl:par am name="P aramSplits " /> CR LF   2408     <xsl:par am name="P aramSplits " /> CR LF
2364     <xsl:par am name="P aramCargo"  /> CR LF   2409     <xsl:par am name="P aramCargo"  /> CR LF
2365     <xsl:par am name="P aramLinks"  /> CR LF   2410     <xsl:par am name="P aramLinks"  /> CR LF
2366     <xsl:par am name="P aramSplit"  /> CR LF   2411     <xsl:par am name="P aramSplit"  /> CR LF
2367     <xsl:par am name="P aramSplits Frame" /> CR LF   2412     <xsl:par am name="P aramSplits Frame" /> CR LF
2368     <xsl:par am name="P aramThumbn ail" /> CR LF   2413     <xsl:par am name="P aramThumbn ail" /> CR LF
2369   CR LF   2414   CR LF
2370     <!-- Con text Rule  --> CR LF   2415     <!-- Con text Rule  --> CR LF
2371     <!--                --> CR LF   2416     <!--                --> CR LF
2372     <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   2417     <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
2373   CR LF   2418   CR LF
2374     <!-- Gen erate? --> CR LF   2419     <!-- Gen erate? --> CR LF
2375     <!--            --> CR LF   2420     <!--            --> CR LF
2376     <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   2421     <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
2377     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF   2422     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF
2378     <xsl:if  test="$Var GenerateOu tput"> CR LF   2423     <xsl:if  test="$Var GenerateOu tput"> CR LF
2379      <!-- De termine im age path - -> CR LF   2424      <!-- De termine im age path - -> CR LF
2380      <!--                        - -> CR LF   2425      <!--                        - -> CR LF
2381      <xsl:va riable nam e="VarImag ePath"> CR LF   2426      <xsl:va riable nam e="VarImag ePath"> CR LF
2382       <xsl:c hoose> CR LF   2427       <xsl:c hoose> CR LF
2383        <xsl: when test= "$ParamThu mbnail"> CR LF   2428        <xsl: when test= "$ParamThu mbnail"> CR LF
2384         <xsl :value-of  select="$P aramSplits Frame/wwsp lits:Thumb nail/@path " /> CR LF   2429         <xsl :value-of  select="$P aramSplits Frame/wwsp lits:Thumb nail/@path " /> CR LF
2385        </xsl :when> CR LF   2430        </xsl :when> CR LF
2386   CR LF   2431   CR LF
2387        <xsl: otherwise> CR LF   2432        <xsl: otherwise> CR LF
2388         <xsl :value-of  select="$P aramSplits Frame/@pat h" /> CR LF   2433         <xsl :value-of  select="$P aramSplits Frame/@pat h" /> CR LF
2389        </xsl :otherwise > CR LF   2434        </xsl :otherwise > CR LF
2390       </xsl: choose> CR LF   2435       </xsl: choose> CR LF
2391      </xsl:v ariable> CR LF   2436      </xsl:v ariable> CR LF
2392   CR LF   2437   CR LF
2393      <!-- Ac cess image  info --> CR LF   2438      <!-- Ac cess image  info --> CR LF
2394      <!--                     --> CR LF   2439      <!--                     --> CR LF
2395      <xsl:va riable nam e="VarImag eInfo" sel ect="wwima ging:GetIn fo($VarIma gePath)" / > CR LF   2440      <xsl:va riable nam e="VarImag eInfo" sel ect="wwima ging:GetIn fo($VarIma gePath)" / > CR LF
2396   CR LF   2441   CR LF
2397      <!-- De termine ty pe --> CR LF   2442      <!-- De termine ty pe --> CR LF
2398      <!--                  --> CR LF   2443      <!--                  --> CR LF
2399      <xsl:va riable nam e="VarVect orImageAsT ext"> CR LF   2444      <xsl:va riable nam e="VarVect orImageAsT ext"> CR LF
2400       <xsl:c all-templa te name="I mages-Vect orImageFor mat"> CR LF   2445       <xsl:c all-templa te name="I mages-Vect orImageFor mat"> CR LF
2401        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" /> CR LF   2446        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" /> CR LF
2402       </xsl: call-templ ate> CR LF   2447       </xsl: call-templ ate> CR LF
2403      </xsl:v ariable> CR LF   2448      </xsl:v ariable> CR LF
2404      <xsl:va riable nam e="VarVect orImage" s elect="$Va rVectorIma geAsText =  string(tr ue())" /> CR LF   2449      <xsl:va riable nam e="VarVect orImage" s elect="$Va rVectorIma geAsText =  string(tr ue())" /> CR LF
2405      <xsl:va riable nam e="VarRast erImageAsT ext"> CR LF   2450      <xsl:va riable nam e="VarRast erImageAsT ext"> CR LF
2406       <xsl:c all-templa te name="I mages-Rast erImageFor mat"> CR LF   2451       <xsl:c all-templa te name="I mages-Rast erImageFor mat"> CR LF
2407        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" /> CR LF   2452        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" /> CR LF
2408       </xsl: call-templ ate> CR LF   2453       </xsl: call-templ ate> CR LF
2409      </xsl:v ariable> CR LF   2454      </xsl:v ariable> CR LF
2410      <xsl:va riable nam e="VarRast erImage" s elect="$Va rRasterIma geAsText =  string(tr ue())" /> CR LF   2455      <xsl:va riable nam e="VarRast erImage" s elect="$Va rRasterIma geAsText =  string(tr ue())" /> CR LF
2411   CR LF   2456   CR LF
2412      <!-- Em it image - -> CR LF   2457      <!-- Em it image - -> CR LF
2413      <!--             - -> CR LF   2458      <!--             - -> CR LF
2414      <xsl:ch oose> CR LF   2459      <xsl:ch oose> CR LF
2415       <!-- V ector Imag e --> CR LF   2460       <!-- V ector Imag e --> CR LF
2416       <!--                --> CR LF   2461       <!--                --> CR LF
2417       <xsl:w hen test=" $VarVector Image"> CR LF   2462       <xsl:w hen test=" $VarVector Image"> CR LF
2418        <xsl: call-templ ate name=" Frame-Mark up-Vector" > CR LF   2463        <xsl: call-templ ate name=" Frame-Mark up-Vector" > CR LF
2419         <xsl :with-para m name="Pa ramFrame"  select="$P aramFrame"  /> CR LF   2464         <xsl :with-para m name="Pa ramFrame"  select="$P aramFrame"  /> CR LF
2420         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   2465         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
2421         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   2466         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
2422         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   2467         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
2423         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   2468         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
2424         <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" /> CR LF   2469         <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" /> CR LF
2425         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule"  /> CR LF   2470         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule"  /> CR LF
2426         <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" /> CR LF   2471         <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" /> CR LF
2427         <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / > CR LF   2472         <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / > CR LF
2428        </xsl :call-temp late> CR LF   2473        </xsl :call-temp late> CR LF
2429       </xsl: when> CR LF   2474       </xsl: when> CR LF
2430   CR LF   2475   CR LF
2431       <!-- R aster Imag e --> CR LF   2476       <!-- R aster Imag e --> CR LF
2432       <!--                --> CR LF   2477       <!--                --> CR LF
2433       <xsl:w hen test=" $VarRaster Image"> CR LF   2478       <xsl:w hen test=" $VarRaster Image"> CR LF
2434        <xsl: call-templ ate name=" Frame-Mark up-Raster" > CR LF   2479        <xsl: call-templ ate name=" Frame-Mark up-Raster" > CR LF
2435         <xsl :with-para m name="Pa ramFrame"  select="$P aramFrame"  /> CR LF   2480         <xsl :with-para m name="Pa ramFrame"  select="$P aramFrame"  /> CR LF
2436         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   2481         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
2437         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   2482         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
2438         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   2483         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
2439         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   2484         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
2440         <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" /> CR LF   2485         <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" /> CR LF
2441         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule"  /> CR LF   2486         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule"  /> CR LF
2442         <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" /> CR LF   2487         <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" /> CR LF
2443         <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / > CR LF   2488         <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / > CR LF
2444        </xsl :call-temp late> CR LF   2489        </xsl :call-temp late> CR LF
2445       </xsl: when> CR LF   2490       </xsl: when> CR LF
2446      </xsl:c hoose> CR LF   2491      </xsl:c hoose> CR LF
2447     </xsl:if > CR LF   2492     </xsl:if > CR LF
2448    </xsl:tem plate> CR LF   2493    </xsl:tem plate> CR LF
2449   CR LF   2494   CR LF
2450   CR LF   2495   CR LF
2451    <xsl:temp late name= "Frame-Mar kup-Vector "> CR LF   2496    <xsl:temp late name= "Frame-Mar kup-Vector "> CR LF
2452     <xsl:par am name="P aramFrame"  /> CR LF   2497     <xsl:par am name="P aramFrame"  /> CR LF
2453     <xsl:par am name="P aramSplits " /> CR LF   2498     <xsl:par am name="P aramSplits " /> CR LF
2454     <xsl:par am name="P aramCargo"  /> CR LF   2499     <xsl:par am name="P aramCargo"  /> CR LF
2455     <xsl:par am name="P aramLinks"  /> CR LF   2500     <xsl:par am name="P aramLinks"  /> CR LF
2456     <xsl:par am name="P aramSplit"  /> CR LF   2501     <xsl:par am name="P aramSplit"  /> CR LF
2457     <xsl:par am name="P aramSplits Frame" /> CR LF   2502     <xsl:par am name="P aramSplits Frame" /> CR LF
2458     <xsl:par am name="P aramContex tRule" /> CR LF   2503     <xsl:par am name="P aramContex tRule" /> CR LF
2459     <xsl:par am name="P aramImageI nfo" /> CR LF   2504     <xsl:par am name="P aramImageI nfo" /> CR LF
2460     <xsl:par am name="P aramThumbn ail" /> CR LF   2505     <xsl:par am name="P aramThumbn ail" /> CR LF
2461   CR LF   2506   CR LF
2462     <xsl:cho ose> CR LF   2507     <xsl:cho ose> CR LF
2463      <!-- SV G --> CR LF   2508      <!-- SV G --> CR LF
2464      <!--      --> CR LF   2509      <!--      --> CR LF
2465      <xsl:wh en test="$ ParamImage Info/@form at = 'svg' "> CR LF   2510      <xsl:wh en test="$ ParamImage Info/@form at = 'svg' "> CR LF
2466       <xsl:c all-templa te name="F rame-Marku p-Vector-S VG"> CR LF   2511       <xsl:c all-templa te name="F rame-Marku p-Vector-S VG"> CR LF
2467        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF   2512        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF
2468        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   2513        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
2469        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF   2514        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF
2470        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   2515        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
2471        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   2516        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
2472        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> CR LF   2517        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> CR LF
2473        <xsl: with-param  name="Par amContextR ule" selec t="$ParamC ontextRule " /> CR LF   2518        <xsl: with-param  name="Par amContextR ule" selec t="$ParamC ontextRule " /> CR LF
2474        <xsl: with-param  name="Par amImageInf o" select= "$ParamIma geInfo" /> CR LF   2519        <xsl: with-param  name="Par amImageInf o" select= "$ParamIma geInfo" /> CR LF
2475        <xsl: with-param  name="Par amThumbnai l" select= "$ParamThu mbnail" /> CR LF   2520        <xsl: with-param  name="Par amThumbnai l" select= "$ParamThu mbnail" /> CR LF
2476       </xsl: call-templ ate> CR LF   2521       </xsl: call-templ ate> CR LF
2477      </xsl:w hen> CR LF   2522      </xsl:w hen> CR LF
2478     </xsl:ch oose> CR LF   2523     </xsl:ch oose> CR LF
2479    </xsl:tem plate> CR LF   2524    </xsl:tem plate> CR LF
2480   CR LF   2525   CR LF
2481   CR LF   2526   CR LF
2482    <xsl:temp late name= "Frame-Mar kup-Vector -SVG"> CR LF   2527    <xsl:temp late name= "Frame-Mar kup-Vector -SVG"> CR LF
2483     <xsl:par am name="P aramFrame"  /> CR LF   2528     <xsl:par am name="P aramFrame"  /> CR LF
2484     <xsl:par am name="P aramSplits " /> CR LF   2529     <xsl:par am name="P aramSplits " /> CR LF
2485     <xsl:par am name="P aramCargo"  /> CR LF   2530     <xsl:par am name="P aramCargo"  /> CR LF
2486     <xsl:par am name="P aramLinks"  /> CR LF   2531     <xsl:par am name="P aramLinks"  /> CR LF
2487     <xsl:par am name="P aramSplit"  /> CR LF   2532     <xsl:par am name="P aramSplit"  /> CR LF
2488     <xsl:par am name="P aramSplits Frame" /> CR LF   2533     <xsl:par am name="P aramSplits Frame" /> CR LF
2489     <xsl:par am name="P aramContex tRule" /> CR LF   2534     <xsl:par am name="P aramContex tRule" /> CR LF
2490     <xsl:par am name="P aramImageI nfo" /> CR LF   2535     <xsl:par am name="P aramImageI nfo" /> CR LF
2491     <xsl:par am name="P aramThumbn ail" /> CR LF   2536     <xsl:par am name="P aramThumbn ail" /> CR LF
2492   CR LF   2537   CR LF
2493     <!-- Acc ess frame  behavior - -> CR LF   2538     <!-- Acc ess frame  behavior - -> CR LF
2494     <!--                         - -> CR LF   2539     <!--                         - -> CR LF
2495     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF   2540     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF
2496      <xsl:va riable nam e="VarBeha viorFrame"  select="k ey('wwbeha viors-fram es-by-id',  $ParamFra me/@id)[1] " /> CR LF   2541      <xsl:va riable nam e="VarBeha viorFrame"  select="k ey('wwbeha viors-fram es-by-id',  $ParamFra me/@id)[1] " /> CR LF
2497   CR LF   2542   CR LF
2498      <!-- Re solve proj ect proper ties --> CR LF   2543      <!-- Re solve proj ect proper ties --> CR LF
2499      <!--                               --> CR LF   2544      <!--                               --> CR LF
2500      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" > CR LF   2545      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" > CR LF
2501       <xsl:c all-templa te name="P roperties- ResolveCon textRule"> CR LF   2546       <xsl:c all-templa te name="P roperties- ResolveCon textRule"> CR LF
2502        <xsl: with-param  name="Par amDocument Context" s elect="$Pa ramFrame"  /> CR LF   2547        <xsl: with-param  name="Par amDocument Context" s elect="$Pa ramFrame"  /> CR LF
2503        <xsl: with-param  name="Par amProperti es" select ="$ParamCo ntextRule/ wwproject: Properties /wwproject :Property"  /> CR LF   2548        <xsl: with-param  name="Par amProperti es" select ="$ParamCo ntextRule/ wwproject: Properties /wwproject :Property"  /> CR LF
2504        <xsl: with-param  name="Par amStyleNam e" select= "$ParamFra me/@stylen ame" /> CR LF   2549        <xsl: with-param  name="Par amStyleNam e" select= "$ParamFra me/@stylen ame" /> CR LF
2505        <xsl: with-param  name="Par amStyleTyp e" select= "'Graphic' " /> CR LF   2550        <xsl: with-param  name="Par amStyleTyp e" select= "'Graphic' " /> CR LF
2506        <xsl: with-param  name="Par amContextS tyle" sele ct="$Param Frame" /> CR LF   2551        <xsl: with-param  name="Par amContextS tyle" sele ct="$Param Frame" /> CR LF
2507       </xsl: call-templ ate> CR LF   2552       </xsl: call-templ ate> CR LF
2508      </xsl:v ariable> CR LF   2553      </xsl:v ariable> CR LF
2509      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" /> CR LF   2554      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" /> CR LF
2510   CR LF   2555   CR LF
2511      <!-- Wi dth/Height  --> CR LF   2556      <!-- Wi dth/Height  --> CR LF
2512      <!--                --> CR LF   2557      <!--                --> CR LF
2513      <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   2558      <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
2514      <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   2559      <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
2515      <xsl:va riable nam e="VarWidt h"> CR LF   2560      <xsl:va riable nam e="VarWidt h"> CR LF
2516       <xsl:c hoose> CR LF   2561       <xsl:c hoose> CR LF
2517        <xsl: when test= "$ParamThu mbnail"> CR LF   2562        <xsl: when test= "$ParamThu mbnail"> CR LF
2518         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF   2563         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF
2519        </xsl :when> CR LF   2564        </xsl :when> CR LF
2520   CR LF   2565   CR LF
2521        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF   2566        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF
2522         <xsl :choose> CR LF   2567         <xsl :choose> CR LF
2523          <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions)  or (number ($ParamIma geInfo/@wi dth) = 0)" > CR LF   2568          <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions)  or (number ($ParamIma geInfo/@wi dth) = 0)" > CR LF
2524           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF   2569           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF
2525   CR LF   2570   CR LF
2526           <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   2571           <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
2527          </x sl:when> CR LF   2572          </x sl:when> CR LF
2528   CR LF   2573   CR LF
2529          <xs l:otherwis e> CR LF   2574          <xs l:otherwis e> CR LF
2530           <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " /> CR LF   2575           <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " /> CR LF
2531          </x sl:otherwi se> CR LF   2576          </x sl:otherwi se> CR LF
2532         </xs l:choose> CR LF   2577         </xs l:choose> CR LF
2533        </xsl :when> CR LF   2578        </xsl :when> CR LF
2534   CR LF   2579   CR LF
2535        <xsl: otherwise> CR LF   2580        <xsl: otherwise> CR LF
2536         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF   2581         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF
2537        </xsl :otherwise > CR LF   2582        </xsl :otherwise > CR LF
2538       </xsl: choose> CR LF   2583       </xsl: choose> CR LF
2539      </xsl:v ariable> CR LF   2584      </xsl:v ariable> CR LF
2540      <xsl:va riable nam e="VarHeig ht"> CR LF   2585      <xsl:va riable nam e="VarHeig ht"> CR LF
2541       <xsl:c hoose> CR LF   2586       <xsl:c hoose> CR LF
2542        <xsl: when test= "$ParamThu mbnail"> CR LF   2587        <xsl: when test= "$ParamThu mbnail"> CR LF
2543         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF   2588         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF
2544        </xsl :when> CR LF   2589        </xsl :when> CR LF
2545   CR LF   2590   CR LF
2546        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF   2591        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF
2547         <xsl :choose> CR LF   2592         <xsl :choose> CR LF
2548          <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions)  or (number ($ParamIma geInfo/@he ight) = 0) "> CR LF   2593          <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions)  or (number ($ParamIma geInfo/@he ight) = 0) "> CR LF
2549           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF   2594           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF
2550   CR LF   2595   CR LF
2551           <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   2596           <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
2552          </x sl:when> CR LF   2597          </x sl:when> CR LF
2553   CR LF   2598   CR LF
2554          <xs l:otherwis e> CR LF   2599          <xs l:otherwis e> CR LF
2555           <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" /> CR LF   2600           <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" /> CR LF
2556          </x sl:otherwi se> CR LF   2601          </x sl:otherwi se> CR LF
2557         </xs l:choose> CR LF   2602         </xs l:choose> CR LF
2558        </xsl :when> CR LF   2603        </xsl :when> CR LF
2559   CR LF   2604   CR LF
2560        <xsl: otherwise> CR LF   2605        <xsl: otherwise> CR LF
2561         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF   2606         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF
2562        </xsl :otherwise > CR LF   2607        </xsl :otherwise > CR LF
2563       </xsl: choose> CR LF   2608       </xsl: choose> CR LF
2564      </xsl:v ariable> CR LF   2609      </xsl:v ariable> CR LF
2565   CR LF   2610   CR LF
2566      <!-- Sr c --> CR LF   2611      <!-- Sr c --> CR LF
2567      <!--      --> CR LF   2612      <!--      --> CR LF
2568      <xsl:va riable nam e="VarSrc"  select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " /> CR LF   2613      <xsl:va riable nam e="VarSrc"  select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " /> CR LF
2569   CR LF   2614   CR LF
2570      <!-- Al t Text --> CR LF   2615      <!-- Al t Text --> CR LF
2571      <!--           --> CR LF   2616      <!--           --> CR LF
2572      <xsl:va riable nam e="VarAltT ext"> CR LF   2617      <xsl:va riable nam e="VarAltT ext"> CR LF
2573       <xsl:c all-templa te name="I mages-AltT ext"> CR LF   2618       <xsl:c all-templa te name="I mages-AltT ext"> CR LF
2574        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF   2619        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF
2575        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF   2620        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF
2576       </xsl: call-templ ate> CR LF   2621       </xsl: call-templ ate> CR LF
2577      </xsl:v ariable> CR LF   2622      </xsl:v ariable> CR LF
2578   CR LF   2623   CR LF
2579      <!-- SV G object t ag info:                                               --> CR LF   2624      <!-- SV G object t ag info:                                               --> CR LF
2580      <!--    http://jol iclic.free .fr/html/o bject-tag/ en/object- svg.html   --> CR LF   2625      <!--    http://jol iclic.free .fr/html/o bject-tag/ en/object- svg.html   --> CR LF
2581      <!--    http://vol ity.org/wi ki/index.c gi?SVG_Sca ling                  --> CR LF   2626      <!--    http://vol ity.org/wi ki/index.c gi?SVG_Sca ling                  --> CR LF
2582      <!--                                                                      --> CR LF   2627      <!--                                                                      --> CR LF
2583   CR LF   2628   CR LF
2584      <!-- Gr aphic elem ent --> CR LF   2629      <!-- Gr aphic elem ent --> CR LF
2585      <!--                   --> CR LF   2630      <!--                   --> CR LF
2586      <html:o bject> CR LF   2631      <html:o bject> CR LF
2587       <!-- T ype attrib ute --> CR LF   2632       <!-- T ype attrib ute --> CR LF
2588       <!--                  --> CR LF   2633       <!--                  --> CR LF
2589       <xsl:a ttribute n ame="type" > CR LF   2634       <xsl:a ttribute n ame="type" > CR LF
2590        <xsl: text>image /svg+xml</ xsl:text> CR LF   2635        <xsl: text>image /svg+xml</ xsl:text> CR LF
2591       </xsl: attribute> CR LF   2636       </xsl: attribute> CR LF
2592   CR LF   2637   CR LF
2593       <!-- D ata attrib ute --> CR LF   2638       <!-- D ata attrib ute --> CR LF
2594       <!--                  --> CR LF   2639       <!--                  --> CR LF
2595       <xsl:a ttribute n ame="data" > CR LF   2640       <xsl:a ttribute n ame="data" > CR LF
2596        <xsl: value-of s elect="$Va rSrc" /> CR LF   2641        <xsl: value-of s elect="$Va rSrc" /> CR LF
2597       </xsl: attribute> CR LF   2642       </xsl: attribute> CR LF
2598   CR LF   2643   CR LF
2599       <!-- W idth attri bute --> CR LF   2644       <!-- W idth attri bute --> CR LF
2600       <!--                   --> CR LF   2645       <!--                   --> CR LF
2601       <xsl:i f test="$V arWidth &g t; 0"> CR LF   2646       <xsl:i f test="$V arWidth &g t; 0"> CR LF
2602        <xsl: attribute  name="widt h"> CR LF   2647        <xsl: attribute  name="widt h"> CR LF
2603         <xsl :value-of  select="$V arWidth"/> CR LF   2648         <xsl :value-of  select="$V arWidth"/> CR LF
2604        </xsl :attribute > CR LF   2649        </xsl :attribute > CR LF
2605       </xsl: if> CR LF   2650       </xsl: if> CR LF
2606   CR LF   2651   CR LF
2607       <!-- H eight attr ibute --> CR LF   2652       <!-- H eight attr ibute --> CR LF
2608       <!--                    --> CR LF   2653       <!--                    --> CR LF
2609       <xsl:i f test="$V arHeight & gt; 0"> CR LF   2654       <xsl:i f test="$V arHeight & gt; 0"> CR LF
2610        <xsl: attribute  name="heig ht"> CR LF   2655        <xsl: attribute  name="heig ht"> CR LF
2611         <xsl :value-of  select="$V arHeight"/ > CR LF   2656         <xsl :value-of  select="$V arHeight"/ > CR LF
2612        </xsl :attribute > CR LF   2657        </xsl :attribute > CR LF
2613       </xsl: if> CR LF   2658       </xsl: if> CR LF
2614   CR LF   2659   CR LF
2615       <!-- T itle attri bute --> CR LF   2660       <!-- T itle attri bute --> CR LF
2616       <!--                   --> CR LF   2661       <!--                   --> CR LF
2617       <xsl:c hoose> CR LF   2662       <xsl:c hoose> CR LF
2618        <xsl: when test= "string-le ngth($VarA ltText) &g t; 0"> CR LF   2663        <xsl: when test= "string-le ngth($VarA ltText) &g t; 0"> CR LF
2619         <xsl :attribute  name="tit le"> CR LF   2664         <xsl :attribute  name="tit le"> CR LF
2620          <xs l:value-of  select="$ VarAltText " /> CR LF   2665          <xs l:value-of  select="$ VarAltText " /> CR LF
2621         </xs l:attribut e> CR LF   2666         </xs l:attribut e> CR LF
2622        </xsl :when> CR LF   2667        </xsl :when> CR LF
2623   CR LF   2668   CR LF
2624        <xsl: when test= "string-le ngth($Para mSplitsFra me/@title)  &gt; 0"> CR LF   2669        <xsl: when test= "string-le ngth($Para mSplitsFra me/@title)  &gt; 0"> CR LF
2625         <xsl :attribute  name="tit le"> CR LF   2670         <xsl :attribute  name="tit le"> CR LF
2626          <xs l:value-of  select="$ ParamSplit sFrame/@ti tle" /> CR LF   2671          <xs l:value-of  select="$ ParamSplit sFrame/@ti tle" /> CR LF
2627         </xs l:attribut e> CR LF   2672         </xs l:attribut e> CR LF
2628        </xsl :when> CR LF   2673        </xsl :when> CR LF
2629       </xsl: choose> CR LF   2674       </xsl: choose> CR LF
2630   CR LF   2675   CR LF
2631       <!-- S rc paramet er --> CR LF   2676       <!-- S rc paramet er --> CR LF
2632       <!--                 --> CR LF   2677       <!--                 --> CR LF
2633       <html: param name ="src" val ue="{$VarS rc}" value type="data " /> CR LF   2678       <html: param name ="src" val ue="{$VarS rc}" value type="data " /> CR LF
2634      </html: object> CR LF   2679      </html: object> CR LF
2635   CR LF   2680   CR LF
2636      <!-- No tes --> CR LF   2681      <!-- No tes --> CR LF
2637      <!--        --> CR LF   2682      <!--        --> CR LF
2638      <xsl:ch oose> CR LF   2683      <xsl:ch oose> CR LF
2639       <!-- T humbnail - -> CR LF   2684       <!-- T humbnail - -> CR LF
2640       <!--            - -> CR LF   2685       <!--            - -> CR LF
2641       <xsl:w hen test=" $ParamThum bnail"> CR LF   2686       <xsl:w hen test=" $ParamThum bnail"> CR LF
2642        <!--  Nothing to  do --> CR LF   2687        <!--  Nothing to  do --> CR LF
2643        <!--                 --> CR LF   2688        <!--                 --> CR LF
2644       </xsl: when> CR LF   2689       </xsl: when> CR LF
2645   CR LF   2690   CR LF
2646       <!-- F ullsize -- > CR LF   2691       <!-- F ullsize -- > CR LF
2647       <!--           -- > CR LF   2692       <!--           -- > CR LF
2648       <xsl:o therwise> CR LF   2693       <xsl:o therwise> CR LF
2649        <!--  Frame Foot notes --> CR LF   2694        <!--  Frame Foot notes --> CR LF
2650        <!--                   --> CR LF   2695        <!--                   --> CR LF
2651        <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" /> CR LF   2696        <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" /> CR LF
2652        <xsl: call-templ ate name=" Content-No tes"> CR LF   2697        <xsl: call-templ ate name=" Content-No tes"> CR LF
2653         <xsl :with-para m name="Pa ramNotes"  select="$V arNotes" / > CR LF   2698         <xsl :with-para m name="Pa ramNotes"  select="$V arNotes" / > CR LF
2654         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   2699         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
2655         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   2700         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
2656         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   2701         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
2657         <xsl :with-para m name="Pa ramTOCData " select=" ''" /> CR LF   2702         <xsl :with-para m name="Pa ramTOCData " select=" ''" /> CR LF
2658         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   2703         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
2659        </xsl :call-temp late> CR LF   2704        </xsl :call-temp late> CR LF
2660       </xsl: otherwise> CR LF   2705       </xsl: otherwise> CR LF
2661      </xsl:c hoose> CR LF   2706      </xsl:c hoose> CR LF
2662     </xsl:fo r-each> CR LF   2707     </xsl:fo r-each> CR LF
2663    </xsl:tem plate> CR LF   2708    </xsl:tem plate> CR LF
2664   CR LF   2709   CR LF
2665   CR LF   2710   CR LF
2666    <xsl:temp late name= "Frame-Mar kup-Raster "> CR LF   2711    <xsl:temp late name= "Frame-Mar kup-Raster "> CR LF
2667     <xsl:par am name="P aramFrame"  /> CR LF   2712     <xsl:par am name="P aramFrame"  /> CR LF
2668     <xsl:par am name="P aramSplits " /> CR LF   2713     <xsl:par am name="P aramSplits " /> CR LF
2669     <xsl:par am name="P aramCargo"  /> CR LF   2714     <xsl:par am name="P aramCargo"  /> CR LF
2670     <xsl:par am name="P aramLinks"  /> CR LF   2715     <xsl:par am name="P aramLinks"  /> CR LF
2671     <xsl:par am name="P aramSplit"  /> CR LF   2716     <xsl:par am name="P aramSplit"  /> CR LF
2672     <xsl:par am name="P aramSplits Frame" /> CR LF   2717     <xsl:par am name="P aramSplits Frame" /> CR LF
2673     <xsl:par am name="P aramContex tRule" /> CR LF   2718     <xsl:par am name="P aramContex tRule" /> CR LF
2674     <xsl:par am name="P aramImageI nfo" /> CR LF   2719     <xsl:par am name="P aramImageI nfo" /> CR LF
2675     <xsl:par am name="P aramThumbn ail" /> CR LF   2720     <xsl:par am name="P aramThumbn ail" /> CR LF
2676   CR LF   2721   CR LF
2677     <!-- Acc ess frame  behavior - -> CR LF   2722     <!-- Acc ess frame  behavior - -> CR LF
2678     <!--                         - -> CR LF   2723     <!--                         - -> CR LF
2679     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF   2724     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF
2680      <xsl:va riable nam e="VarBeha viorFrame"  select="k ey('wwbeha viors-fram es-by-id',  $ParamFra me/@id)[1] " /> CR LF   2725      <xsl:va riable nam e="VarBeha viorFrame"  select="k ey('wwbeha viors-fram es-by-id',  $ParamFra me/@id)[1] " /> CR LF
2681   CR LF   2726   CR LF
2682      <!-- Ov erride Rul e --> CR LF   2727      <!-- Ov erride Rul e --> CR LF
2683      <!--                 --> CR LF   2728      <!--                 --> CR LF
2684      <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   2729      <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
2685   CR LF   2730   CR LF
2686      <!-- Re solve proj ect proper ties --> CR LF   2731      <!-- Re solve proj ect proper ties --> CR LF
2687      <!--                               --> CR LF   2732      <!--                               --> CR LF
2688      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" > CR LF   2733      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" > CR LF
2689       <xsl:c all-templa te name="P roperties- ResolveOve rrideRule" > CR LF   2734       <xsl:c all-templa te name="P roperties- ResolveOve rrideRule" > CR LF
2690        <xsl: with-param  name="Par amProperti es" select ="$VarOver rideRule/w wproject:P roperties/ wwproject: Property"  /> CR LF   2735        <xsl: with-param  name="Par amProperti es" select ="$VarOver rideRule/w wproject:P roperties/ wwproject: Property"  /> CR LF
2691        <xsl: with-param  name="Par amContextS tyle" sele ct="$Param Frame" /> CR LF   2736        <xsl: with-param  name="Par amContextS tyle" sele ct="$Param Frame" /> CR LF
2692       </xsl: call-templ ate> CR LF   2737       </xsl: call-templ ate> CR LF
2693      </xsl:v ariable> CR LF   2738      </xsl:v ariable> CR LF
2694      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" /> CR LF   2739      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" /> CR LF
2695   CR LF   2740   CR LF
2696      <!-- Wi dth/Height  --> CR LF   2741      <!-- Wi dth/Height  --> CR LF
2697      <!--                --> CR LF   2742      <!--                --> CR LF
2698      <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   2743      <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
2699      <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   2744      <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
2700      <xsl:va riable nam e="VarWidt h"> CR LF   2745      <xsl:va riable nam e="VarWidt h"> CR LF
2701       <xsl:c hoose> CR LF   2746       <xsl:c hoose> CR LF
2702        <xsl: when test= "$ParamThu mbnail"> CR LF   2747        <xsl: when test= "$ParamThu mbnail"> CR LF
2703         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF   2748         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF
2704        </xsl :when> CR LF   2749        </xsl :when> CR LF
2705   CR LF   2750   CR LF
2706        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF   2751        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF
2707         <xsl :choose> CR LF   2752         <xsl :choose> CR LF
2708          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> CR LF   2753          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> CR LF
2709           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF   2754           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF
2710   CR LF   2755   CR LF
2711           <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   2756           <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
2712          </x sl:when> CR LF   2757          </x sl:when> CR LF
2713   CR LF   2758   CR LF
2714          <xs l:otherwis e> CR LF   2759          <xs l:otherwis e> CR LF
2715           <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " /> CR LF   2760           <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " /> CR LF
2716          </x sl:otherwi se> CR LF   2761          </x sl:otherwi se> CR LF
2717         </xs l:choose> CR LF   2762         </xs l:choose> CR LF
2718        </xsl :when> CR LF   2763        </xsl :when> CR LF
2719   CR LF   2764   CR LF
2720        <xsl: otherwise> CR LF   2765        <xsl: otherwise> CR LF
2721         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF   2766         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF
2722        </xsl :otherwise > CR LF   2767        </xsl :otherwise > CR LF
2723       </xsl: choose> CR LF   2768       </xsl: choose> CR LF
2724      </xsl:v ariable> CR LF   2769      </xsl:v ariable> CR LF
2725      <xsl:va riable nam e="VarHeig ht"> CR LF   2770      <xsl:va riable nam e="VarHeig ht"> CR LF
2726       <xsl:c hoose> CR LF   2771       <xsl:c hoose> CR LF
2727        <xsl: when test= "$ParamThu mbnail"> CR LF   2772        <xsl: when test= "$ParamThu mbnail"> CR LF
2728         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF   2773         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF
2729        </xsl :when> CR LF   2774        </xsl :when> CR LF
2730   CR LF   2775   CR LF
2731        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF   2776        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF
2732         <xsl :choose> CR LF   2777         <xsl :choose> CR LF
2733          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> CR LF   2778          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> CR LF
2734           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF   2779           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF
2735   CR LF   2780   CR LF
2736           <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   2781           <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
2737          </x sl:when> CR LF   2782          </x sl:when> CR LF
2738   CR LF   2783   CR LF
2739          <xs l:otherwis e> CR LF   2784          <xs l:otherwis e> CR LF
2740           <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" /> CR LF   2785           <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" /> CR LF
2741          </x sl:otherwi se> CR LF   2786          </x sl:otherwi se> CR LF
2742         </xs l:choose> CR LF   2787         </xs l:choose> CR LF
2743        </xsl :when> CR LF   2788        </xsl :when> CR LF
2744   CR LF   2789   CR LF
2745        <xsl: otherwise> CR LF   2790        <xsl: otherwise> CR LF
2746         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF   2791         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF
2747        </xsl :otherwise > CR LF   2792        </xsl :otherwise > CR LF
2748       </xsl: choose> CR LF   2793       </xsl: choose> CR LF
2749      </xsl:v ariable> CR LF   2794      </xsl:v ariable> CR LF
2750   CR LF   2795   CR LF
2751      <!-- Sr c --> CR LF   2796      <!-- Sr c --> CR LF
2752      <!--      --> CR LF   2797      <!--      --> CR LF
2753      <xsl:va riable nam e="VarSrc"  select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " /> CR LF   2798      <xsl:va riable nam e="VarSrc"  select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " /> CR LF
2754   CR LF   2799   CR LF
2755      <!-- De fine Use M ap --> CR LF   2800      <!-- De fine Use M ap --> CR LF
2756      <!--                  --> CR LF   2801      <!--                  --> CR LF
2757      <xsl:va riable nam e="VarUseM ap"> CR LF   2802      <xsl:va riable nam e="VarUseM ap"> CR LF
2758       <xsl:c hoose> CR LF   2803       <xsl:c hoose> CR LF
2759        <xsl: when test= "($ParamTh umbnail) o r (count($ ParamFrame //wwdoc:Li nk) &gt; 0 )"> CR LF   2804        <xsl: when test= "($ParamTh umbnail) o r (count($ ParamFrame //wwdoc:Li nk) &gt; 0 )"> CR LF
2760         <xsl :text>#</x sl:text> CR LF   2805         <xsl :text>#</x sl:text> CR LF
2761         <xsl :value-of  select="$P aramSplits Frame/@doc umentID" / > CR LF   2806         <xsl :value-of  select="$P aramSplits Frame/@doc umentID" / > CR LF
2762         <xsl :text>_</x sl:text> CR LF   2807         <xsl :text>_</x sl:text> CR LF
2763         <xsl :value-of  select="$P aramSplits Frame/@id"  /> CR LF   2808         <xsl :value-of  select="$P aramSplits Frame/@id"  /> CR LF
2764        </xsl :when> CR LF   2809        </xsl :when> CR LF
2765   CR LF   2810   CR LF
2766        <xsl: otherwise> CR LF   2811        <xsl: otherwise> CR LF
2767         <xsl :value-of  select="'' " /> CR LF   2812         <xsl :value-of  select="'' " /> CR LF
2768        </xsl :otherwise > CR LF   2813        </xsl :otherwise > CR LF
2769       </xsl: choose> CR LF   2814       </xsl: choose> CR LF
2770      </xsl:v ariable> CR LF   2815      </xsl:v ariable> CR LF
2771   CR LF   2816   CR LF
2772      <!-- Al t Text --> CR LF   2817      <!-- Al t Text --> CR LF
2773      <!--           --> CR LF   2818      <!--           --> CR LF
2774      <xsl:va riable nam e="VarAltT ext"> CR LF   2819      <xsl:va riable nam e="VarAltT ext"> CR LF
2775       <xsl:c all-templa te name="I mages-AltT ext"> CR LF   2820       <xsl:c all-templa te name="I mages-AltT ext"> CR LF
2776        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF   2821        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF
2777        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF   2822        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF
2778       </xsl: call-templ ate> CR LF   2823       </xsl: call-templ ate> CR LF
2779      </xsl:v ariable> CR LF   2824      </xsl:v ariable> CR LF
2780   CR LF   2825   CR LF
2781      <!-- Ta g --> CR LF   2826      <!-- Ta g --> CR LF
2782      <!--      --> CR LF   2827      <!--      --> CR LF
2783      <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   2828      <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
2784      <xsl:va riable nam e="VarTag" > CR LF   2829      <xsl:va riable nam e="VarTag" > CR LF
2785       <xsl:c hoose> CR LF   2830       <xsl:c hoose> CR LF
2786        <xsl: when test= "string-le ngth($VarT agProperty ) &gt; 0"> CR LF   2831        <xsl: when test= "string-le ngth($VarT agProperty ) &gt; 0"> CR LF
2787         <xsl :value-of  select="$V arTagPrope rty" /> CR LF   2832         <xsl :value-of  select="$V arTagPrope rty" /> CR LF
2788        </xsl :when> CR LF   2833        </xsl :when> CR LF
2789   CR LF   2834   CR LF
2790        <xsl: otherwise> CR LF   2835        <xsl: otherwise> CR LF
2791         <xsl :value-of  select="'i mg'" /> CR LF   2836         <xsl :value-of  select="'i mg'" /> CR LF
2792        </xsl :otherwise > CR LF   2837        </xsl :otherwise > CR LF
2793       </xsl: choose> CR LF   2838       </xsl: choose> CR LF
2794      </xsl:v ariable> CR LF   2839      </xsl:v ariable> CR LF
2795   CR LF   2840   CR LF
2796      <!-- Gr aphic elem ent --> CR LF   2841      <!-- Gr aphic elem ent --> CR LF
2797      <!--                   --> CR LF   2842      <!--                   --> CR LF
2798      <xsl:el ement name ="{$VarTag }" namespa ce="{$Glob alDefaultN amespace}" > CR LF   2843      <xsl:el ement name ="{$VarTag }" namespa ce="{$Glob alDefaultN amespace}" > CR LF
2799       <!-- S rc attribu te --> CR LF   2844       <!-- S rc attribu te --> CR LF
2800       <!--                 --> CR LF   2845       <!--                 --> CR LF
2801       <xsl:a ttribute n ame="src"> CR LF   2846       <xsl:a ttribute n ame="src"> CR LF
2802        <xsl: value-of s elect="$Va rSrc" /> CR LF   2847        <xsl: value-of s elect="$Va rSrc" /> CR LF
2803       </xsl: attribute> CR LF   2848       </xsl: attribute> CR LF
2804   CR LF   2849   CR LF
2805       <!-- W idth attri bute --> CR LF   2850       <!-- W idth attri bute --> CR LF
2806       <!--                   --> CR LF   2851       <!--                   --> CR LF
2807       <xsl:i f test="$V arWidth &g t; 0"> CR LF   2852       <xsl:i f test="$V arWidth &g t; 0"> CR LF
2808        <xsl: attribute  name="widt h"> CR LF   2853        <xsl: attribute  name="widt h"> CR LF
2809         <xsl :value-of  select="$V arWidth"/> CR LF   2854         <xsl :value-of  select="$V arWidth"/> CR LF
2810        </xsl :attribute > CR LF   2855        </xsl :attribute > CR LF
2811       </xsl: if> CR LF   2856       </xsl: if> CR LF
2812   CR LF   2857   CR LF
2813       <!-- H eight attr ibute --> CR LF   2858       <!-- H eight attr ibute --> CR LF
2814       <!--                    --> CR LF   2859       <!--                    --> CR LF
2815       <xsl:i f test="$V arHeight & gt; 0"> CR LF   2860       <xsl:i f test="$V arHeight & gt; 0"> CR LF
2816        <xsl: attribute  name="heig ht"> CR LF   2861        <xsl: attribute  name="heig ht"> CR LF
2817         <xsl :value-of  select="$V arHeight"/ > CR LF   2862         <xsl :value-of  select="$V arHeight"/ > CR LF
2818        </xsl :attribute > CR LF   2863        </xsl :attribute > CR LF
2819       </xsl: if> CR LF   2864       </xsl: if> CR LF
2820   CR LF   2865   CR LF
2821       <!-- A lt attribu te --> CR LF   2866       <!-- A lt attribu te --> CR LF
2822       <!--                 --> CR LF   2867       <!--                 --> CR LF
2823       <xsl:a ttribute n ame="alt"> CR LF   2868       <xsl:a ttribute n ame="alt"> CR LF
2824        <xsl: value-of s elect="$Va rAltText"  /> CR LF   2869        <xsl: value-of s elect="$Va rAltText"  /> CR LF
2825       </xsl: attribute> CR LF   2870       </xsl: attribute> CR LF
2826   CR LF   2871   CR LF
2827       <!-- U semap attr ibute --> CR LF   2872       <!-- U semap attr ibute --> CR LF
2828       <!--                    --> CR LF   2873       <!--                    --> CR LF
2829       <xsl:i f test="st ring-lengt h($VarUseM ap) &gt; 0 "> CR LF   2874       <xsl:i f test="st ring-lengt h($VarUseM ap) &gt; 0 "> CR LF
2830        <xsl: attribute  name="usem ap"> CR LF   2875        <xsl: attribute  name="usem ap"> CR LF
2831         <xsl :value-of  select="$V arUseMap"  /> CR LF   2876         <xsl :value-of  select="$V arUseMap"  /> CR LF
2832        </xsl :attribute > CR LF   2877        </xsl :attribute > CR LF
2833        <xsl: attribute  name="bord er"> CR LF   2878        <xsl: attribute  name="bord er"> CR LF
2834         <xsl :value-of  select="'0 '" /> CR LF   2879         <xsl :value-of  select="'0 '" /> CR LF
2835        </xsl :attribute > CR LF   2880        </xsl :attribute > CR LF
2836       </xsl: if> CR LF   2881       </xsl: if> CR LF
2837      </xsl:e lement> CR LF   2882      </xsl:e lement> CR LF
2838   CR LF   2883   CR LF
2839      <!-- Im age map -- > CR LF   2884      <!-- Im age map -- > CR LF
2840      <!--            -- > CR LF   2885      <!--            -- > CR LF
2841      <xsl:if  test="str ing-length ($VarUseMa p) &gt; 0" > CR LF   2886      <xsl:if  test="str ing-length ($VarUseMa p) &gt; 0" > CR LF
2842       <html: map name=" {concat($P aramSplits Frame/@doc umentID, ' _', $Param SplitsFram e/@id)}"> CR LF   2887       <html: map name=" {concat($P aramSplits Frame/@doc umentID, ' _', $Param SplitsFram e/@id)}"> CR LF
2843        <xsl: choose> CR LF   2888        <xsl: choose> CR LF
2844         <!--  Thumbnail  --> CR LF   2889         <!--  Thumbnail  --> CR LF
2845         <!--             --> CR LF   2890         <!--             --> CR LF
2846         <xsl :when test ="$ParamTh umbnail"> CR LF   2891         <xsl :when test ="$ParamTh umbnail"> CR LF
2847          <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   2892          <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
2848           <x sl:attribu te name="a lt"> CR LF   2893           <x sl:attribu te name="a lt"> CR LF
2849            < xsl:value- of select= "$VarAltTe xt" /> CR LF   2894            < xsl:value- of select= "$VarAltTe xt" /> CR LF
2850           </ xsl:attrib ute> CR LF   2895           </ xsl:attrib ute> CR LF
2851          </h tml:area> CR LF   2896          </h tml:area> CR LF
2852         </xs l:when> CR LF   2897         </xs l:when> CR LF
2853   CR LF   2898   CR LF
2854         <!--  Fullsize  --> CR LF   2899         <!--  Fullsize  --> CR LF
2855         <!--            --> CR LF   2900         <!--            --> CR LF
2856         <xsl :otherwise > CR LF   2901         <xsl :otherwise > CR LF
2857          <xs l:variable  name="Var Horizontal ScalingAsT ext"> CR LF   2902          <xs l:variable  name="Var Horizontal ScalingAsT ext"> CR LF
2858           <x sl:choose> CR LF   2903           <x sl:choose> CR LF
2859            < xsl:when t est="$VarW idth &gt;  0"> CR LF   2904            < xsl:when t est="$VarW idth &gt;  0"> CR LF
2860              <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   2905              <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
2861              <xsl:value -of select ="number($ VarWidth)  div number ($VarWidth AsPixels)"  /> CR LF   2906              <xsl:value -of select ="number($ VarWidth)  div number ($VarWidth AsPixels)"  /> CR LF
2862            < /xsl:when> CR LF   2907            < /xsl:when> CR LF
2863   CR LF   2908   CR LF
2864            < xsl:otherw ise> CR LF   2909            < xsl:otherw ise> CR LF
2865              <xsl:value -of select ="1" /> CR LF   2910              <xsl:value -of select ="1" /> CR LF
2866            < /xsl:other wise> CR LF   2911            < /xsl:other wise> CR LF
2867           </ xsl:choose > CR LF   2912           </ xsl:choose > CR LF
2868          </x sl:variabl e> CR LF   2913          </x sl:variabl e> CR LF
2869   CR LF   2914   CR LF
2870          <xs l:variable  name="Var VerticalSc alingAsTex t"> CR LF   2915          <xs l:variable  name="Var VerticalSc alingAsTex t"> CR LF
2871           <x sl:choose> CR LF   2916           <x sl:choose> CR LF
2872            < xsl:when t est="$VarH eight &gt;  0"> CR LF   2917            < xsl:when t est="$VarH eight &gt;  0"> CR LF
2873              <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   2918              <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
2874              <xsl:value -of select ="number($ VarHeight)  div numbe r($VarHeig htAsPixels )" /> CR LF   2919              <xsl:value -of select ="number($ VarHeight)  div numbe r($VarHeig htAsPixels )" /> CR LF
2875            < /xsl:when> CR LF   2920            < /xsl:when> CR LF
2876   CR LF   2921   CR LF
2877            < xsl:otherw ise> CR LF   2922            < xsl:otherw ise> CR LF
2878              <xsl:value -of select ="1" /> CR LF   2923              <xsl:value -of select ="1" /> CR LF
2879            < /xsl:other wise> CR LF   2924            < /xsl:other wise> CR LF
2880           </ xsl:choose > CR LF   2925           </ xsl:choose > CR LF
2881          </x sl:variabl e> CR LF   2926          </x sl:variabl e> CR LF
2882   CR LF   2927   CR LF
2883          <xs l:call-tem plate name ="ImageMap "> CR LF   2928          <xs l:call-tem plate name ="ImageMap "> CR LF
2884           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF   2929           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF
2885           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   2930           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
2886           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF   2931           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF
2887           <x sl:with-pa ram name=" ParamParen tBehavior"  select="$ VarBehavio rFrame" /> CR LF   2932           <x sl:with-pa ram name=" ParamParen tBehavior"  select="$ VarBehavio rFrame" /> CR LF
2888           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   2933           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
2889           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   2934           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
2890           <x sl:with-pa ram name=" ParamHoriz ontalScali ng" select ="number($ VarHorizon talScaling AsText)" / > CR LF   2935           <x sl:with-pa ram name=" ParamHoriz ontalScali ng" select ="number($ VarHorizon talScaling AsText)" / > CR LF
2891           <x sl:with-pa ram name=" ParamVerti calScaling " select=" number($Va rVerticalS calingAsTe xt)" /> CR LF   2936           <x sl:with-pa ram name=" ParamVerti calScaling " select=" number($Va rVerticalS calingAsTe xt)" /> CR LF
2892          </x sl:call-te mplate> CR LF   2937          </x sl:call-te mplate> CR LF
2893         </xs l:otherwis e> CR LF   2938         </xs l:otherwis e> CR LF
2894        </xsl :choose> CR LF   2939        </xsl :choose> CR LF
2895       </html :map> CR LF   2940       </html :map> CR LF
2896      </xsl:i f> CR LF   2941      </xsl:i f> CR LF
2897   CR LF   2942   CR LF
2898      <!-- No tes --> CR LF   2943      <!-- No tes --> CR LF
2899      <!--        --> CR LF   2944      <!--        --> CR LF
2900      <xsl:ch oose> CR LF   2945      <xsl:ch oose> CR LF
2901       <!-- T humbnail - -> CR LF   2946       <!-- T humbnail - -> CR LF
2902       <!--            - -> CR LF   2947       <!--            - -> CR LF
2903       <xsl:w hen test=" $ParamThum bnail"> CR LF   2948       <xsl:w hen test=" $ParamThum bnail"> CR LF
2904        <!--  Nothing to  do --> CR LF   2949        <!--  Nothing to  do --> CR LF
2905        <!--                 --> CR LF   2950        <!--                 --> CR LF
2906       </xsl: when> CR LF   2951       </xsl: when> CR LF
2907   CR LF   2952   CR LF
2908       <!-- F ullsize -- > CR LF   2953       <!-- F ullsize -- > CR LF
2909       <!--           -- > CR LF   2954       <!--           -- > CR LF
2910       <xsl:o therwise> CR LF   2955       <xsl:o therwise> CR LF
2911        <!--  Frame Foot notes --> CR LF   2956        <!--  Frame Foot notes --> CR LF
2912        <!--                   --> CR LF   2957        <!--                   --> CR LF
2913        <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" /> CR LF   2958        <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" /> CR LF
2914        <xsl: call-templ ate name=" Content-No tes"> CR LF   2959        <xsl: call-templ ate name=" Content-No tes"> CR LF
2915         <xsl :with-para m name="Pa ramNotes"  select="$V arNotes" / > CR LF   2960         <xsl :with-para m name="Pa ramNotes"  select="$V arNotes" / > CR LF
2916         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   2961         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
2917         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   2962         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
2918         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   2963         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
2919         <xsl :with-para m name="Pa ramTOCData " select=" ''" /> CR LF   2964         <xsl :with-para m name="Pa ramTOCData " select=" ''" /> CR LF
2920         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   2965         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
2921        </xsl :call-temp late> CR LF   2966        </xsl :call-temp late> CR LF
2922       </xsl: otherwise> CR LF   2967       </xsl: otherwise> CR LF
2923      </xsl:c hoose> CR LF   2968      </xsl:c hoose> CR LF
2924     </xsl:fo r-each> CR LF   2969     </xsl:fo r-each> CR LF
2925    </xsl:tem plate> CR LF   2970    </xsl:tem plate> CR LF
2926   CR LF   2971   CR LF
2927   CR LF   2972   CR LF
2928    <xsl:temp late name= "ImageMap" > CR LF   2973    <xsl:temp late name= "ImageMap" > CR LF
2929     <xsl:par am name="P aramFrame"  /> CR LF   2974     <xsl:par am name="P aramFrame"  /> CR LF
2930     <xsl:par am name="P aramSplits " /> CR LF   2975     <xsl:par am name="P aramSplits " /> CR LF
2931     <xsl:par am name="P aramCargo"  /> CR LF   2976     <xsl:par am name="P aramCargo"  /> CR LF
2932     <xsl:par am name="P aramParent Behavior"  /> CR LF   2977     <xsl:par am name="P aramParent Behavior"  /> CR LF
2933     <xsl:par am name="P aramLinks"  /> CR LF   2978     <xsl:par am name="P aramLinks"  /> CR LF
2934     <xsl:par am name="P aramSplit"  /> CR LF   2979     <xsl:par am name="P aramSplit"  /> CR LF
2935     <xsl:par am name="P aramHorizo ntalScalin g" /> CR LF   2980     <xsl:par am name="P aramHorizo ntalScalin g" /> CR LF
2936     <xsl:par am name="P aramVertic alScaling"  /> CR LF   2981     <xsl:par am name="P aramVertic alScaling"  /> CR LF
2937   CR LF   2982   CR LF
2938     <!-- Pro cess child  frames fi rst --> CR LF   2983     <!-- Pro cess child  frames fi rst --> CR LF
2939     <!--                               --> CR LF   2984     <!--                               --> CR LF
2940     <xsl:for -each sele ct="$Param Frame/wwdo c:Content/ /wwdoc:Fra me[count($ ParamFrame  | ancesto r::wwdoc:F rame[1]) =  1]"> CR LF   2985     <xsl:for -each sele ct="$Param Frame/wwdo c:Content/ /wwdoc:Fra me[count($ ParamFrame  | ancesto r::wwdoc:F rame[1]) =  1]"> CR LF
2941      <xsl:ca ll-templat e name="Im ageMap"> CR LF   2986      <xsl:ca ll-templat e name="Im ageMap"> CR LF
2942       <xsl:w ith-param  name="Para mFrame" se lect="." / > CR LF   2987       <xsl:w ith-param  name="Para mFrame" se lect="." / > CR LF
2943       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   2988       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
2944       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   2989       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
2945       <xsl:w ith-param  name="Para mParentBeh avior" sel ect="$Para mParentBeh avior" /> CR LF   2990       <xsl:w ith-param  name="Para mParentBeh avior" sel ect="$Para mParentBeh avior" /> CR LF
2946       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   2991       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
2947       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   2992       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
2948       <xsl:w ith-param  name="Para mHorizonta lScaling"  select="$P aramHorizo ntalScalin g" /> CR LF   2993       <xsl:w ith-param  name="Para mHorizonta lScaling"  select="$P aramHorizo ntalScalin g" /> CR LF
2949       <xsl:w ith-param  name="Para mVerticalS caling" se lect="$Par amVertical Scaling" / > CR LF   2994       <xsl:w ith-param  name="Para mVerticalS caling" se lect="$Par amVertical Scaling" / > CR LF
2950      </xsl:c all-templa te> CR LF   2995      </xsl:c all-templa te> CR LF
2951     </xsl:fo r-each> CR LF   2996     </xsl:fo r-each> CR LF
2952   CR LF   2997   CR LF
2953     <!-- Get  link --> CR LF   2998     <!-- Get  link --> CR LF
2954     <!--           --> CR LF   2999     <!--           --> CR LF
2955     <xsl:var iable name ="VarLinkI nfoAsXML"> CR LF   3000     <xsl:var iable name ="VarLinkI nfoAsXML"> CR LF
2956      <xsl:ch oose> CR LF   3001      <xsl:ch oose> CR LF
2957       <xsl:w hen test=" count($Par amFrame/ww doc:Link[1 ]) = 1"> CR LF   3002       <xsl:w hen test=" count($Par amFrame/ww doc:Link[1 ]) = 1"> CR LF
2958        <xsl: call-templ ate name=" LinkInfo"> CR LF   3003        <xsl: call-templ ate name=" LinkInfo"> CR LF
2959         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   3004         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
2960         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   3005         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
2961         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   3006         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
2962         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mFrame/wwd oc:Link" / > CR LF   3007         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mFrame/wwd oc:Link" / > CR LF
2963        </xsl :call-temp late> CR LF   3008        </xsl :call-temp late> CR LF
2964       </xsl: when> CR LF   3009       </xsl: when> CR LF
2965   CR LF   3010   CR LF
2966       <xsl:o therwise> CR LF   3011       <xsl:o therwise> CR LF
2967        <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   3012        <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
2968        <xsl: variable n ame="VarCh ildLinksCo unt" selec t="count($ VarChildLi nks)" /> CR LF   3013        <xsl: variable n ame="VarCh ildLinksCo unt" selec t="count($ VarChildLi nks)" /> CR LF
2969        <xsl: if test="$ VarChildLi nksCount & gt; 0"> CR LF   3014        <xsl: if test="$ VarChildLi nksCount & gt; 0"> CR LF
2970         <xsl :call-temp late name= "LinkInfo" > CR LF   3015         <xsl :call-temp late name= "LinkInfo" > CR LF
2971          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   3016          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
2972          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF   3017          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF
2973          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   3018          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
2974          <xs l:with-par am name="P aramDocume ntLink" se lect="$Var ChildLinks [$VarChild LinksCount ]" /> CR LF   3019          <xs l:with-par am name="P aramDocume ntLink" se lect="$Var ChildLinks [$VarChild LinksCount ]" /> CR LF
2975         </xs l:call-tem plate> CR LF   3020         </xs l:call-tem plate> CR LF
2976        </xsl :if> CR LF   3021        </xsl :if> CR LF
2977       </xsl: otherwise> CR LF   3022       </xsl: otherwise> CR LF
2978      </xsl:c hoose> CR LF   3023      </xsl:c hoose> CR LF
2979     </xsl:va riable> CR LF   3024     </xsl:va riable> CR LF
2980     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> CR LF   3025     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> CR LF
2981   CR LF   3026   CR LF
2982     <xsl:if  test="stri ng-length( $VarLinkIn fo/@href)  &gt; 0"> CR LF   3027     <xsl:if  test="stri ng-length( $VarLinkIn fo/@href)  &gt; 0"> CR LF
2983      <!-- Ge t coords a ttribute - -> CR LF   3028      <!-- Ge t coords a ttribute - -> CR LF
2984      <!--                        - -> CR LF   3029      <!--                        - -> CR LF
2985      <xsl:va riable nam e="VarLeft AsPixels"> CR LF   3030      <xsl:va riable nam e="VarLeft AsPixels"> CR LF
2986       <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   3031       <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
2987       <xsl:c hoose> CR LF   3032       <xsl:c hoose> CR LF
2988        <xsl: when test= "$ParamHor izontalSca ling != 1" > CR LF   3033        <xsl: when test= "$ParamHor izontalSca ling != 1" > CR LF
2989         <xsl :value-of  select="nu mber($VarO rigLeftAsP ixels) * n umber($Par amHorizont alScaling) " /> CR LF   3034         <xsl :value-of  select="nu mber($VarO rigLeftAsP ixels) * n umber($Par amHorizont alScaling) " /> CR LF
2990        </xsl :when> CR LF   3035        </xsl :when> CR LF
2991        <xsl: otherwise> CR LF   3036        <xsl: otherwise> CR LF
2992         <xsl :value-of  select="$V arOrigLeft AsPixels"  /> CR LF   3037         <xsl :value-of  select="$V arOrigLeft AsPixels"  /> CR LF
2993        </xsl :otherwise > CR LF   3038        </xsl :otherwise > CR LF
2994       </xsl: choose> CR LF   3039       </xsl: choose> CR LF
2995      </xsl:v ariable> CR LF   3040      </xsl:v ariable> CR LF
2996   CR LF   3041   CR LF
2997      <xsl:va riable nam e="VarTopA sPixels"> CR LF   3042      <xsl:va riable nam e="VarTopA sPixels"> CR LF
2998       <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   3043       <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
2999       <xsl:c hoose> CR LF   3044       <xsl:c hoose> CR LF
3000        <xsl: when test= "$ParamVer ticalScali ng != 1"> CR LF   3045        <xsl: when test= "$ParamVer ticalScali ng != 1"> CR LF
3001         <xsl :value-of  select="nu mber($VarO rigTopAsPi xels) * nu mber($Para mVerticalS caling)" / > CR LF   3046         <xsl :value-of  select="nu mber($VarO rigTopAsPi xels) * nu mber($Para mVerticalS caling)" / > CR LF
3002        </xsl :when> CR LF   3047        </xsl :when> CR LF
3003        <xsl: otherwise> CR LF   3048        <xsl: otherwise> CR LF
3004         <xsl :value-of  select="$V arOrigTopA sPixels" / > CR LF   3049         <xsl :value-of  select="$V arOrigTopA sPixels" / > CR LF
3005        </xsl :otherwise > CR LF   3050        </xsl :otherwise > CR LF
3006       </xsl: choose> CR LF   3051       </xsl: choose> CR LF
3007      </xsl:v ariable> CR LF   3052      </xsl:v ariable> CR LF
3008   CR LF   3053   CR LF
3009      <xsl:va riable nam e="VarWidt hAsPixels" > CR LF   3054      <xsl:va riable nam e="VarWidt hAsPixels" > CR LF
3010       <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   3055       <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
3011       <xsl:c hoose> CR LF   3056       <xsl:c hoose> CR LF
3012        <xsl: when test= "$ParamHor izontalSca ling != 1" > CR LF   3057        <xsl: when test= "$ParamHor izontalSca ling != 1" > CR LF
3013         <xsl :value-of  select="nu mber($VarO rigWidthAs Pixels) *  number($Pa ramHorizon talScaling )" /> CR LF   3058         <xsl :value-of  select="nu mber($VarO rigWidthAs Pixels) *  number($Pa ramHorizon talScaling )" /> CR LF
3014        </xsl :when> CR LF   3059        </xsl :when> CR LF
3015        <xsl: otherwise> CR LF   3060        <xsl: otherwise> CR LF
3016         <xsl :value-of  select="$V arOrigWidt hAsPixels"  /> CR LF   3061         <xsl :value-of  select="$V arOrigWidt hAsPixels"  /> CR LF
3017        </xsl :otherwise > CR LF   3062        </xsl :otherwise > CR LF
3018       </xsl: choose> CR LF   3063       </xsl: choose> CR LF
3019      </xsl:v ariable> CR LF   3064      </xsl:v ariable> CR LF
3020   CR LF   3065   CR LF
3021      <xsl:va riable nam e="VarHeig htAsPixels "> CR LF   3066      <xsl:va riable nam e="VarHeig htAsPixels "> CR LF
3022       <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   3067       <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
3023       <xsl:c hoose> CR LF   3068       <xsl:c hoose> CR LF
3024        <xsl: when test= "$ParamVer ticalScali ng != 1"> CR LF   3069        <xsl: when test= "$ParamVer ticalScali ng != 1"> CR LF
3025         <xsl :value-of  select="nu mber($VarO rigHeightA sPixels) *  number($P aramVertic alScaling) " /> CR LF   3070         <xsl :value-of  select="nu mber($VarO rigHeightA sPixels) *  number($P aramVertic alScaling) " /> CR LF
3026        </xsl :when> CR LF   3071        </xsl :when> CR LF
3027        <xsl: otherwise> CR LF   3072        <xsl: otherwise> CR LF
3028         <xsl :value-of  select="$V arOrigHeig htAsPixels " /> CR LF   3073         <xsl :value-of  select="$V arOrigHeig htAsPixels " /> CR LF
3029        </xsl :otherwise > CR LF   3074        </xsl :otherwise > CR LF
3030       </xsl: choose> CR LF   3075       </xsl: choose> CR LF
3031      </xsl:v ariable> CR LF   3076      </xsl:v ariable> CR LF
3032   CR LF   3077   CR LF
3033      <!-- co ords --> CR LF   3078      <!-- co ords --> CR LF
3034      <!--         --> CR LF   3079      <!--         --> CR LF
3035      <xsl:va riable nam e="VarCoor dsString"> CR LF   3080      <xsl:va riable nam e="VarCoor dsString"> CR LF
3036       <xsl:c hoose> CR LF   3081       <xsl:c hoose> CR LF
3037        <xsl: when test= "string-le ngth($VarL eftAsPixel s) &gt; 0" > CR LF   3082        <xsl: when test= "string-le ngth($VarL eftAsPixel s) &gt; 0" > CR LF
3038         <xsl :value-of  select="$V arLeftAsPi xels" /> CR LF   3083         <xsl :value-of  select="$V arLeftAsPi xels" /> CR LF
3039        </xsl :when> CR LF   3084        </xsl :when> CR LF
3040        <xsl: otherwise> CR LF   3085        <xsl: otherwise> CR LF
3041         <xsl :value-of  select="'0 '" /> CR LF   3086         <xsl :value-of  select="'0 '" /> CR LF
3042        </xsl :otherwise > CR LF   3087        </xsl :otherwise > CR LF
3043       </xsl: choose> CR LF   3088       </xsl: choose> CR LF
3044   CR LF   3089   CR LF
3045       <xsl:v alue-of se lect="','" /> CR LF   3090       <xsl:v alue-of se lect="','" /> CR LF
3046   CR LF   3091   CR LF
3047       <xsl:c hoose> CR LF   3092       <xsl:c hoose> CR LF
3048        <xsl: when test= "string-le ngth($VarT opAsPixels ) &gt; 0"> CR LF   3093        <xsl: when test= "string-le ngth($VarT opAsPixels ) &gt; 0"> CR LF
3049         <xsl :value-of  select="$V arTopAsPix els" /> CR LF   3094         <xsl :value-of  select="$V arTopAsPix els" /> CR LF
3050        </xsl :when> CR LF   3095        </xsl :when> CR LF
3051        <xsl: otherwise> CR LF   3096        <xsl: otherwise> CR LF
3052         <xsl :value-of  select="'0 '" /> CR LF   3097         <xsl :value-of  select="'0 '" /> CR LF
3053        </xsl :otherwise > CR LF   3098        </xsl :otherwise > CR LF
3054       </xsl: choose> CR LF   3099       </xsl: choose> CR LF
3055   CR LF   3100   CR LF
3056       <xsl:v alue-of se lect="','" /> CR LF   3101       <xsl:v alue-of se lect="','" /> CR LF
3057   CR LF   3102   CR LF
3058       <xsl:c hoose> CR LF   3103       <xsl:c hoose> CR LF
3059        <xsl: when test= "string-le ngth($VarW idthAsPixe ls) &gt; 0 "> CR LF   3104        <xsl: when test= "string-le ngth($VarW idthAsPixe ls) &gt; 0 "> CR LF
3060         <xsl :value-of  select="st ring(numbe r($VarWidt hAsPixels)  + number( $VarLeftAs Pixels))"  /> CR LF   3105         <xsl :value-of  select="st ring(numbe r($VarWidt hAsPixels)  + number( $VarLeftAs Pixels))"  /> CR LF
3061        </xsl :when> CR LF   3106        </xsl :when> CR LF
3062        <xsl: otherwise> CR LF   3107        <xsl: otherwise> CR LF
3063         <xsl :value-of  select="'0 '" /> CR LF   3108         <xsl :value-of  select="'0 '" /> CR LF
3064        </xsl :otherwise > CR LF   3109        </xsl :otherwise > CR LF
3065       </xsl: choose> CR LF   3110       </xsl: choose> CR LF
3066   CR LF   3111   CR LF
3067       <xsl:v alue-of se lect="','" /> CR LF   3112       <xsl:v alue-of se lect="','" /> CR LF
3068   CR LF   3113   CR LF
3069       <xsl:c hoose> CR LF   3114       <xsl:c hoose> CR LF
3070        <xsl: when test= "string-le ngth($VarH eightAsPix els) &gt;  0"> CR LF   3115        <xsl: when test= "string-le ngth($VarH eightAsPix els) &gt;  0"> CR LF
3071         <xsl :value-of  select="st ring(numbe r($VarHeig htAsPixels ) + number ($VarTopAs Pixels))"  /> CR LF   3116         <xsl :value-of  select="st ring(numbe r($VarHeig htAsPixels ) + number ($VarTopAs Pixels))"  /> CR LF
3072        </xsl :when> CR LF   3117        </xsl :when> CR LF
3073        <xsl: otherwise> CR LF   3118        <xsl: otherwise> CR LF
3074         <xsl :value-of  select="'0 '" /> CR LF   3119         <xsl :value-of  select="'0 '" /> CR LF
3075        </xsl :otherwise > CR LF   3120        </xsl :otherwise > CR LF
3076       </xsl: choose> CR LF   3121       </xsl: choose> CR LF
3077      </xsl:v ariable> CR LF   3122      </xsl:v ariable> CR LF
3078   CR LF   3123   CR LF
3079      <!-- al t --> CR LF   3124      <!-- al t --> CR LF
3080      <!--      --> CR LF   3125      <!--      --> CR LF
3081      <xsl:va riable nam e="VarAltT ext"> CR LF   3126      <xsl:va riable nam e="VarAltT ext"> CR LF
3082       <xsl:c all-templa te name="I mages-Imag eAreaAltTe xt"> CR LF   3127       <xsl:c all-templa te name="I mages-Imag eAreaAltTe xt"> CR LF
3083        <xsl: with-param  name="Par amParentBe havior" se lect="$Par amParentBe havior" /> CR LF   3128        <xsl: with-param  name="Par amParentBe havior" se lect="$Par amParentBe havior" /> CR LF
3084        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF   3129        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF
3085       </xsl: call-templ ate> CR LF   3130       </xsl: call-templ ate> CR LF
3086      </xsl:v ariable> CR LF   3131      </xsl:v ariable> CR LF
3087   CR LF   3132   CR LF
3088      <!-- ar ea --> CR LF   3133      <!-- ar ea --> CR LF
3089      <!--       --> CR LF   3134      <!--       --> CR LF
3090      <html:a rea href=" {$VarLinkI nfo/@href} " coords=" {$VarCoord sString}"  shape="rec t"> CR LF   3135      <html:a rea href=" {$VarLinkI nfo/@href} " coords=" {$VarCoord sString}"  shape="rec t"> CR LF
3091       <!-- t arget --> CR LF   3136       <!-- t arget --> CR LF
3092       <!--         --> CR LF   3137       <!--         --> CR LF
3093       <xsl:i f test="st ring-lengt h($VarLink Info/@targ et) &gt; 0 "> CR LF   3138       <xsl:i f test="st ring-lengt h($VarLink Info/@targ et) &gt; 0 "> CR LF
3094        <xsl: attribute  name="targ et"> CR LF   3139        <xsl: attribute  name="targ et"> CR LF
3095         <xsl :value-of  select="$V arLinkInfo /@target"  /> CR LF   3140         <xsl :value-of  select="$V arLinkInfo /@target"  /> CR LF
3096        </xsl :attribute > CR LF   3141        </xsl :attribute > CR LF
3097       </xsl: if> CR LF   3142       </xsl: if> CR LF
3098   CR LF   3143   CR LF
3099       <!-- a lt --> CR LF   3144       <!-- a lt --> CR LF
3100       <!--      --> CR LF   3145       <!--      --> CR LF
3101       <xsl:a ttribute n ame="alt"> CR LF   3146       <xsl:a ttribute n ame="alt"> CR LF
3102        <xsl: value-of s elect="$Va rAltText"  /> CR LF   3147        <xsl: value-of s elect="$Va rAltText"  /> CR LF
3103       </xsl: attribute> CR LF   3148       </xsl: attribute> CR LF
3104      </html: area> CR LF   3149      </html: area> CR LF
3105     </xsl:if > CR LF   3150     </xsl:if > CR LF
3106    </xsl:tem plate> CR LF   3151    </xsl:tem plate> CR LF
3107   </xsl:styl esheet> CR LF   3152   </xsl:styl esheet> CR LF