15. Araxis Merge File Comparison Report

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

15.1 Files compared

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

15.2 Comparison summary

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

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

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

15.5 Comparison detail

1   <?xml vers ion="1.0"  encoding=" UTF-8"?> CR LF   1   <?xml vers ion="1.0"  encoding=" UTF-8"?> CR LF
2   <xsl:style sheet vers ion="1.0"  xmlns="htt p://www.w3 .org/1999/ xhtml" CR LF   2   <xsl:style sheet vers ion="1.0"  xmlns="htt p://www.w3 .org/1999/ xhtml" CR LF
3                                    xmlns:html ="http://w ww.w3.org/ 1999/xhtml " CR LF   3                                    xmlns:html ="http://w ww.w3.org/ 1999/xhtml " CR LF
4                                    xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform" CR LF   4                                    xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform" CR LF
5                                    xmlns:msxs l="urn:sch emas-micro soft-com:x slt" CR LF   5                                    xmlns:msxs l="urn:sch emas-micro soft-com:x slt" CR LF
6                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode" CR LF   6                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode" CR LF
7                                    xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema" CR LF   7                                    xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema" CR LF
8                                    xmlns: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 :div style ="font-siz e: smaller ; float: l eft"> CR LF   242        <html :div style ="font-siz e: smaller ; float: l eft"> CR LF
242         <htm l:a name=" {$VarNote/ @id}"> CR LF   243         <htm l:a name=" {$VarNote/ @id}"> CR LF
243          <xs l:attribut e name="hr ef"> CR LF   244          <xs l:attribut e name="hr ef"> CR LF
244           <x sl:text>#w wfootnote_ inline_</x sl:text> CR LF   245           <x sl:text>#w wfootnote_ inline_</x sl:text> CR LF
245           <x sl:value-o f select=" $VarNote/@ id" /> CR LF   246           <x sl:value-o f select=" $VarNote/@ id" /> CR LF
246          </x sl:attribu te> CR LF   247          </x sl:attribu te> CR LF
247   CR LF   248   CR LF
248          <xs l:value-of  select="$ VarNoteNum ber"/> CR LF   249          <xs l:value-of  select="$ VarNoteNum ber"/> CR LF
249         </ht ml:a> CR LF   250         </ht ml:a> CR LF
250        </htm l:div> CR LF   251        </htm l:div> CR LF
251   CR LF   252   CR LF
252        <xsl: apply-temp lates sele ct="$VarNo te/*" mode ="wwmode:c ontent"> CR LF   253        <xsl: apply-temp lates sele ct="$VarNo te/*" mode ="wwmode:c ontent"> CR LF
253         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   254         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
254         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   255         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
255         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   256         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
256         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF   257         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF
257         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   258         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
258        </xsl :apply-tem plates> CR LF   259        </xsl :apply-tem plates> CR LF
259        <html :br style= "clear: al l" /> CR LF   260        <html :br style= "clear: al l" /> CR LF
260       </xsl: if> CR LF   261       </xsl: if> CR LF
261      </xsl:f or-each> CR LF   262      </xsl:f or-each> CR LF
262     </xsl:if > CR LF   263     </xsl:if > CR LF
263    </xsl:tem plate> CR LF   264    </xsl:tem plate> CR LF
264   CR LF   265   CR LF
265   CR LF   266   CR LF
266    <xsl:temp late name= "Content-B ullet"> CR LF   267    <xsl:temp late name= "Content-B ullet"> CR LF
267     <xsl:par am name="P aramSplits " /> CR LF   268     <xsl:par am name="P aramSplits " /> CR LF
268     <xsl:par am name="P aramSplit"  /> CR LF   269     <xsl:par am name="P aramSplit"  /> CR LF
269     <xsl:par am name="P aramParagr aph" /> CR LF   270     <xsl:par am name="P aramParagr aph" /> CR LF
270     <xsl:par am name="P aramCharac ter" /> CR LF   271     <xsl:par am name="P aramCharac ter" /> CR LF
271     <xsl:par am name="P aramImage"  /> CR LF   272     <xsl:par am name="P aramImage"  /> CR LF
272     <xsl:par am name="P aramSepara tor" /> CR LF   273     <xsl:par am name="P aramSepara tor" /> CR LF
273     <xsl:par am name="P aramStyle"  /> CR LF   274     <xsl:par am name="P aramStyle"  /> CR LF
274   CR LF   275   CR LF
275     <xsl:cho ose> CR LF   276     <xsl:cho ose> CR LF
276      <xsl:wh en test="s tring-leng th($ParamS tyle) &gt;  0"> CR LF   277      <xsl:wh en test="s tring-leng th($ParamS tyle) &gt;  0"> CR LF
277   CR LF   278   CR LF
278       <!-- G et rule -- > CR LF   279       <!-- G et rule -- > CR LF
279       <!--           -- > CR LF   280       <!--           -- > CR LF
280       <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Character' , $ParamSt yle)" /> CR LF   281       <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Character' , $ParamSt yle)" /> CR LF
281   CR LF   282   CR LF
282       <!-- R esolve pro ject prope rties --> CR LF   283       <!-- R esolve pro ject prope rties --> CR LF
283       <!--                               --> CR LF   284       <!--                               --> CR LF
284       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> CR LF   285       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> CR LF
285        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > CR LF   286        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > CR LF
286         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramParagr aph" /> CR LF   287         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramParagr aph" /> CR LF
287         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRul e/wwprojec t:Properti es/wwproje ct:Propert y" /> CR LF   288         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRul e/wwprojec t:Properti es/wwproje ct:Propert y" /> CR LF
288         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yle" /> CR LF   289         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yle" /> CR LF
289         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> CR LF   290         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> CR LF
290         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mParagraph /wwdoc:Num ber[1]/wwd oc:Style"  /> CR LF   291         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mParagraph /wwdoc:Num ber[1]/wwd oc:Style"  /> CR LF
291        </xsl :call-temp late> CR LF   292        </xsl :call-temp late> CR LF
292       </xsl: variable> CR LF   293       </xsl: variable> CR LF
293       <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   294       <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
294   CR LF   295   CR LF
295       <!-- C SS propert ies --> CR LF   296       <!-- C SS propert ies --> CR LF
296       <!--                  --> CR LF   297       <!--                  --> CR LF
297       <xsl:v ariable na me="VarCSS Properties AsXML"> CR LF   298       <xsl:v ariable na me="VarCSS Properties AsXML"> CR LF
298        <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> CR LF   299        <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> CR LF
299         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> CR LF   300         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> CR LF
300         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" /> CR LF   301         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" /> CR LF
301         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   302         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
302        </xsl :call-temp late> CR LF   303        </xsl :call-temp late> CR LF
303       </xsl: variable> CR LF   304       </xsl: variable> CR LF
304       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > CR LF   305       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > CR LF
305   CR LF   306   CR LF
306       <!-- S tyle attri bute --> CR LF   307       <!-- S tyle attri bute --> CR LF
307       <!--                   --> CR LF   308       <!--                   --> CR LF
308       <xsl:v ariable na me="VarSty leAttribut e"> CR LF   309       <xsl:v ariable na me="VarSty leAttribut e"> CR LF
309        <xsl: call-templ ate name=" CSS-Inline Properties "> CR LF   310        <xsl: call-templ ate name=" CSS-Inline Properties "> CR LF
310         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> CR LF   311         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> CR LF
311        </xsl :call-temp late> CR LF   312        </xsl :call-temp late> CR LF
312       </xsl: variable> CR LF   313       </xsl: variable> CR LF
313   CR LF   314   CR LF
314       <xsl:v ariable na me="VarTag Property"  select="$V arRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'tag' ]/@Value"  /> CR LF   315       <xsl:v ariable na me="VarTag Property"  select="$V arRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'tag' ]/@Value"  /> CR LF
315       <xsl:v ariable na me="VarTag "> CR LF   316       <xsl:v ariable na me="VarTag "> CR LF
316        <xsl: choose> CR LF   317        <xsl: choose> CR LF
317         <xsl :when test ="string-l ength($Var TagPropert y) &gt; 0" > CR LF   318         <xsl :when test ="string-l ength($Var TagPropert y) &gt; 0" > CR LF
318          <xs l:value-of  select="$ VarTagProp erty" /> CR LF   319          <xs l:value-of  select="$ VarTagProp erty" /> CR LF
319         </xs l:when> CR LF   320         </xs l:when> CR LF
320   CR LF   321   CR LF
321         <xsl :otherwise > CR LF   322         <xsl :otherwise > CR LF
322          <xs l:value-of  select="' span'" /> CR LF   323          <xs l:value-of  select="' span'" /> CR LF
323         </xs l:otherwis e> CR LF   324         </xs l:otherwis e> CR LF
324        </xsl :choose> CR LF   325        </xsl :choose> CR LF
325       </xsl: variable> CR LF   326       </xsl: variable> CR LF
326   CR LF   327   CR LF
327       <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} "> CR LF   328       <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} "> CR LF
328        <!--  Style attr ibute --> CR LF   329        <!--  Style attr ibute --> CR LF
329        <!--                   --> CR LF   330        <!--                   --> CR LF
330        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" > CR LF   331        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" > CR LF
331         <xsl :attribute  name="sty le"> CR LF   332         <xsl :attribute  name="sty le"> CR LF
332          <xs l:value-of  select="$ VarStyleAt tribute" / > CR LF   333          <xs l:value-of  select="$ VarStyleAt tribute" / > CR LF
333         </xs l:attribut e> CR LF   334         </xs l:attribut e> CR LF
334        </xsl :if> CR LF   335        </xsl :if> CR LF
335   CR LF   336   CR LF
336        <xsl: if test="s tring-leng th($ParamI mage) &gt;  0"> CR LF   337        <xsl: if test="s tring-leng th($ParamI mage) &gt;  0"> CR LF
337         <!--  Get absol ute path f or imaging  info --> CR LF   338         <!--  Get absol ute path f or imaging  info --> CR LF
338         <!--                                        --> CR LF   339         <!--                                        --> CR LF
339         <xsl :variable  name="VarI mageFileSy stemPath"  select="ww filesystem :Combine(w wprojext:G etTargetOu tputDirect oryPath(),  wwprojext :GetGroupN ame($Param Split/@gro upID), $Pa ramImage)"  /> CR LF   340         <xsl :variable  name="VarI mageFileSy stemPath"  select="ww filesystem :Combine(w wprojext:G etTargetOu tputDirect oryPath(),  wwprojext :GetGroupN ame($Param Split/@gro upID), $Pa ramImage)"  /> CR LF
340         <xsl :variable  name="VarI mageInfo"  select="ww imaging:Ge tInfo($Var ImageFileS ystemPath) " /> CR LF   341         <xsl :variable  name="VarI mageInfo"  select="ww imaging:Ge tInfo($Var ImageFileS ystemPath) " /> CR LF
341   CR LF   342   CR LF
342         <xsl :variable  name="VarI magePath"> CR LF   343         <xsl :variable  name="VarI magePath"> CR LF
343          <xs l:call-tem plate name ="URI-Reso lveProject FileURI"> CR LF   344          <xs l:call-tem plate name ="URI-Reso lveProject FileURI"> CR LF
344           <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamSpli t/@path" / > CR LF   345           <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamSpli t/@path" / > CR LF
345           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   346           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
346           <x sl:with-pa ram name=" ParamURI"  select="$P aramImage"  /> CR LF   347           <x sl:with-pa ram name=" ParamURI"  select="$P aramImage"  /> CR LF
347          </x sl:call-te mplate> CR LF   348          </x sl:call-te mplate> CR LF
348         </xs l:variable > CR LF   349         </xs l:variable > CR LF
349   CR LF   350   CR LF
350         <!--  Image --> CR LF   351         <!--  Image --> CR LF
351         <!--        --> CR LF   352         <!--        --> CR LF
352         <htm l:img src= "{$VarImag ePath}" al t="*" bord er="0" wid th="{$VarI mageInfo/@ width}" he ight="{$Va rImageInfo /@height}"  /> CR LF   353         <htm l:img src= "{$VarImag ePath}" al t="*" bord er="0" wid th="{$VarI mageInfo/@ width}" he ight="{$Va rImageInfo /@height}"  /> CR LF
353        </xsl :if> CR LF   354        </xsl :if> CR LF
354   CR LF   355   CR LF
355        <!--  Characters  --> CR LF   356        <!--  Characters  --> CR LF
356        <!--              --> CR LF   357        <!--              --> CR LF
357        <xsl: value-of s elect="$Pa ramCharact er" /> CR LF   358        <xsl: value-of s elect="$Pa ramCharact er" /> CR LF
358   CR LF   359   CR LF
359        <!--  Separator  --> CR LF   360        <!--  Separator  --> CR LF
360        <!--             --> CR LF   361        <!--             --> CR LF
361        <xsl: value-of s elect="$Pa ramSeparat or" /> CR LF   362        <xsl: value-of s elect="$Pa ramSeparat or" /> CR LF
362       </xsl: element> CR LF   363       </xsl: element> CR LF
363      </xsl:w hen> CR LF   364      </xsl:w hen> CR LF
364   CR LF   365   CR LF
365      <xsl:ot herwise> CR LF   366      <xsl:ot herwise> CR LF
366       <xsl:i f test="st ring-lengt h($ParamIm age) &gt;  0"> CR LF   367       <xsl:i f test="st ring-lengt h($ParamIm age) &gt;  0"> CR LF
367        <!--  Get absolu te path fo r imaging  info --> CR LF   368        <!--  Get absolu te path fo r imaging  info --> CR LF
368        <!--                                        --> CR LF   369        <!--                                        --> CR LF
369        <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   370        <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
370        <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Get Info($VarI mageFileSy stemPath)"  /> CR LF   371        <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Get Info($VarI mageFileSy stemPath)"  /> CR LF
371   CR LF   372   CR LF
372        <xsl: variable n ame="VarIm agePath"> CR LF   373        <xsl: variable n ame="VarIm agePath"> CR LF
373         <xsl :call-temp late name= "URI-Resol veProjectF ileURI"> CR LF   374         <xsl :call-temp late name= "URI-Resol veProjectF ileURI"> CR LF
374          <xs l:with-par am name="P aramFromAb soluteURI"  select="$ ParamSplit /@path" /> CR LF   375          <xs l:with-par am name="P aramFromAb soluteURI"  select="$ ParamSplit /@path" /> CR LF
375          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   376          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
376          <xs l:with-par am name="P aramURI" s elect="$Pa ramImage"  /> CR LF   377          <xs l:with-par am name="P aramURI" s elect="$Pa ramImage"  /> CR LF
377         </xs l:call-tem plate> CR LF   378         </xs l:call-tem plate> CR LF
378        </xsl :variable> CR LF   379        </xsl :variable> CR LF
379   CR LF   380   CR LF
380        <!--  Image --> CR LF   381        <!--  Image --> CR LF
381        <!--        --> CR LF   382        <!--        --> CR LF
382        <html :img src=" {$VarImage Path}" alt ="*" borde r="0" widt h="{$VarIm ageInfo/@w idth}" hei ght="{$Var ImageInfo/ @height}"  /> CR LF   383        <html :img src=" {$VarImage Path}" alt ="*" borde r="0" widt h="{$VarIm ageInfo/@w idth}" hei ght="{$Var ImageInfo/ @height}"  /> CR LF
383       </xsl: if> CR LF   384       </xsl: if> CR LF
384   CR LF   385   CR LF
385       <!-- C haracters  --> CR LF   386       <!-- C haracters  --> CR LF
386       <!--              --> CR LF   387       <!--              --> CR LF
387       <xsl:v alue-of se lect="$Par amCharacte r" /> CR LF   388       <xsl:v alue-of se lect="$Par amCharacte r" /> CR LF
388   CR LF   389   CR LF
389       <!-- S eparator - -> CR LF   390       <!-- S eparator - -> CR LF
390       <!--            - -> CR LF   391       <!--            - -> CR LF
391       <xsl:v alue-of se lect="$Par amSeparato r" /> CR LF   392       <xsl:v alue-of se lect="$Par amSeparato r" /> CR LF
392      </xsl:o therwise> CR LF   393      </xsl:o therwise> CR LF
393     </xsl:ch oose> CR LF   394     </xsl:ch oose> CR LF
394    </xsl:tem plate> CR LF   395    </xsl:tem plate> CR LF
395   CR LF   396   CR LF
396   CR LF   397   CR LF
397    <xsl:temp late name= "Notes-Num ber"> CR LF   398    <xsl:temp late name= "Notes-Num ber"> CR LF
398     <xsl:par am name="P aramNotes"  /> CR LF   399     <xsl:par am name="P aramNotes"  /> CR LF
399   CR LF   400   CR LF
400     <wwnotes :NoteNumbe ring versi on="1.0"> CR LF   401     <wwnotes :NoteNumbe ring versi on="1.0"> CR LF
401      <xsl:fo r-each sel ect="$Para mNotes"> CR LF   402      <xsl:fo r-each sel ect="$Para mNotes"> CR LF
402       <xsl:v ariable na me="VarNot e" select= "." /> CR LF   403       <xsl:v ariable na me="VarNot e" select= "." /> CR LF
403   CR LF   404   CR LF
404       <wwnot es:Note id ="{$VarNot e/@id}" nu mber="{pos ition()}"  /> CR LF   405       <wwnot es:Note id ="{$VarNot e/@id}" nu mber="{pos ition()}"  /> CR LF
405      </xsl:f or-each> CR LF   406      </xsl:f or-each> CR LF
406     </wwnote s:NoteNumb ering> CR LF   407     </wwnote s:NoteNumb ering> CR LF
407    </xsl:tem plate> CR LF   408    </xsl:tem plate> CR LF
408   CR LF   409   CR LF
409   CR LF   410   CR LF
410    <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:content" > CR LF   411    <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:content" > CR LF
411     <xsl:par am name="P aramSplits " /> CR LF   412     <xsl:par am name="P aramSplits " /> CR LF
412     <xsl:par am name="P aramCargo"  /> CR LF   413     <xsl:par am name="P aramCargo"  /> CR LF
413     <xsl:par am name="P aramLinks"  /> CR LF   414     <xsl:par am name="P aramLinks"  /> CR LF
414     <xsl:par am name="P aramTOCDat a" /> CR LF   415     <xsl:par am name="P aramTOCDat a" /> CR LF
415     <xsl:par am name="P aramSplit"  /> CR LF   416     <xsl:par am name="P aramSplit"  /> CR LF
416   CR LF   417   CR LF
417     <xsl:var iable name ="VarParag raph" sele ct="." /> CR LF   418     <xsl:var iable name ="VarParag raph" sele ct="." /> CR LF
418   CR LF   419   CR LF
419     <!-- Abo rted? --> CR LF   420     <!-- Abo rted? --> CR LF
420     <!--           --> CR LF   421     <!--           --> CR LF
421     <xsl:if  test="not( wwprogress :Abort())" > CR LF   422     <xsl:if  test="not( wwprogress :Abort())" > CR LF
422      <xsl:va riable nam e="VarOver rideRule"  select="ww projext:Ge tOverrideR ule('Parag raph', $Va rParagraph /@stylenam e, $ParamS plit/@docu mentID, $V arParagrap h/@id)" /> CR LF   423      <xsl:va riable nam e="VarOver rideRule"  select="ww projext:Ge tOverrideR ule('Parag raph', $Va rParagraph /@stylenam e, $ParamS plit/@docu mentID, $V arParagrap h/@id)" /> CR LF
423      <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   424      <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
424      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF   425      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF
425      <xsl:if  test="$Va rGenerateO utput"> CR LF   426      <xsl:if  test="$Va rGenerateO utput"> CR LF
426       <!-- R elated Top ic Only or  Popup Onl y? --> CR LF   427       <!-- R elated Top ic Only or  Popup Onl y? --> CR LF
427       <!--                                       --> CR LF   428       <!--                                       --> CR LF
428       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF   429       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF
429        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="key(' wwbehavior s-paragrap hs-by-id',  $VarParag raph/@id)[ 1]" /> CR LF   430        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="key(' wwbehavior s-paragrap hs-by-id',  $VarParag raph/@id)[ 1]" /> CR LF
430        <xsl: variable n ame="VarIn PopupPage"  select="c ount($Para mCargo/wwb ehaviors:P opupPage)  &gt; 0" /> CR LF   431        <xsl: variable n ame="VarIn PopupPage"  select="c ount($Para mCargo/wwb ehaviors:P opupPage)  &gt; 0" /> CR LF
431        <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   432        <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
432        <xsl: variable n ame="VarRe latedTopic Only" sele ct="$VarPa ragraphBeh avior/@rel atedtopic  = 'define- no-output' " /> CR LF   433        <xsl: variable n ame="VarRe latedTopic Only" sele ct="$VarPa ragraphBeh avior/@rel atedtopic  = 'define- no-output' " /> CR LF
433   CR LF   434   CR LF
434        <xsl: if test="$ VarInPopup Page or (n ot($VarPop upOnly) an d not($Var RelatedTop icOnly))"> CR LF   435        <xsl: if test="$ VarInPopup Page or (n ot($VarPop upOnly) an d not($Var RelatedTop icOnly))"> CR LF
435         <!--  Paragraph  --> CR LF   436         <!--  Paragraph  --> CR LF
436         <!--             --> CR LF   437         <!--             --> CR LF
437         <xsl :call-temp late name= "Paragraph "> CR LF   438         <xsl :call-temp late name= "Paragraph "> CR LF
438          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   439          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
439          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF   440          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF
440          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF   441          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF
441          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   442          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
442          <xs l:with-par am name="P aramParagr aph" selec t="$VarPar agraph" /> CR LF   443          <xs l:with-par am name="P aramParagr aph" selec t="$VarPar agraph" /> CR LF
443          <xs l:with-par am name="P aramStyleN ame" selec t="$VarPar agraph/@st ylename" / > CR LF   444          <xs l:with-par am name="P aramStyleN ame" selec t="$VarPar agraph/@st ylename" / > CR LF
444          <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> CR LF   445          <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> CR LF
445          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> CR LF   446          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> CR LF
446         </xs l:call-tem plate> CR LF   447         </xs l:call-tem plate> CR LF
447   CR LF   448   CR LF
448         <!--  MiniTOC - -> CR LF   449         <!--  MiniTOC - -> CR LF
449         <!--          - -> CR LF   450         <!--          - -> CR LF
450         <xsl :if test=" not($VarIn PopupPage) "> CR LF   451         <xsl :if test=" not($VarIn PopupPage) "> CR LF
451          <xs l:variable  name="Var MiniTOCSub Levels" se lect="$Var OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'min itoc-suble vels']/@Va lue" /> CR LF   452          <xs l:variable  name="Var MiniTOCSub Levels" se lect="$Var OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'min itoc-suble vels']/@Va lue" /> CR LF
452          <xs l:variable  name="Var MiniTOCSub LevelsNume ricPrefix"  select="w wunits:Num ericPrefix ($VarMiniT OCSubLevel s)" /> CR LF   453          <xs l:variable  name="Var MiniTOCSub LevelsNume ricPrefix"  select="w wunits:Num ericPrefix ($VarMiniT OCSubLevel s)" /> CR LF
453          <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   454          <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
454          <xs l:if test= "($VarMini TOCSubLeve lsGreaterT hanZero) o r ($VarMin iTOCSubLev els = 'all ')"> CR LF   455          <xs l:if test= "($VarMini TOCSubLeve lsGreaterT hanZero) o r ($VarMin iTOCSubLev els = 'all ')"> CR LF
455           <x sl:for-eac h select=" $ParamTOCD ata[1]"> CR LF   456           <x sl:for-eac h select=" $ParamTOCD ata[1]"> CR LF
456            < xsl:variab le name="V arTOCEntry " select=" key('wwtoc -entry-by- id', $VarP aragraph/@ id)[@docum entID = $P aramSplit/ @documentI D]" /> CR LF   457            < xsl:variab le name="V arTOCEntry " select=" key('wwtoc -entry-by- id', $VarP aragraph/@ id)[@docum entID = $P aramSplit/ @documentI D]" /> CR LF
457            < xsl:for-ea ch select= "$VarTOCEn try[1]"> CR LF   458            < xsl:for-ea ch select= "$VarTOCEn try[1]"> CR LF
458              <xsl:call- template n ame="MiniT OC"> CR LF   459              <xsl:call- template n ame="MiniT OC"> CR LF
459               <xsl:with -param nam e="ParamSp lit" selec t="$ParamS plit" /> CR LF   460               <xsl:with -param nam e="ParamSp lit" selec t="$ParamS plit" /> CR LF
460               <xsl:with -param nam e="ParamTO CEntry" se lect="$Var TOCEntry[1 ]" /> CR LF   461               <xsl:with -param nam e="ParamTO CEntry" se lect="$Var TOCEntry[1 ]" /> CR LF
461               <xsl:with -param nam e="ParamEm itTOCEntry " select=" false()" / > CR LF   462               <xsl:with -param nam e="ParamEm itTOCEntry " select=" false()" / > CR LF
462               <xsl:with -param nam e="ParamMi niTOCSubLe vels" sele ct="$VarMi niTOCSubLe vels" /> CR LF   463               <xsl:with -param nam e="ParamMi niTOCSubLe vels" sele ct="$VarMi niTOCSubLe vels" /> CR LF
463              </xsl:call -template> CR LF   464              </xsl:call -template> CR LF
464            < /xsl:for-e ach> CR LF   465            < /xsl:for-e ach> CR LF
465           </ xsl:for-ea ch> CR LF   466           </ xsl:for-ea ch> CR LF
466          </x sl:if> CR LF   467          </x sl:if> CR LF
467         </xs l:if> CR LF   468         </xs l:if> CR LF
468        </xsl :if> CR LF   469        </xsl :if> CR LF
469       </xsl: for-each> CR LF   470       </xsl: for-each> CR LF
470      </xsl:i f> CR LF   471      </xsl:i f> CR LF
471     </xsl:if > CR LF   472     </xsl:if > CR LF
472    </xsl:tem plate> CR LF   473    </xsl:tem plate> CR LF
473   CR LF   474   CR LF
474   CR LF   475   CR LF
475    <xsl:temp late name= "MiniTOC"> CR LF   476    <xsl:temp late name= "MiniTOC"> CR LF
476     <xsl:par am name="P aramSplit"  /> CR LF   477     <xsl:par am name="P aramSplit"  /> CR LF
477     <xsl:par am name="P aramTOCEnt ry" /> CR LF   478     <xsl:par am name="P aramTOCEnt ry" /> CR LF
478     <xsl:par am name="P aramEmitTO CEntry" /> CR LF   479     <xsl:par am name="P aramEmitTO CEntry" /> CR LF
479     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF   480     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF
480   CR LF   481   CR LF
481     <xsl:if  test="($Pa ramEmitTOC Entry = tr ue()) or ( count($Par amTOCEntry /wwtoc:Ent ry[1]) = 1 )"> CR LF   482     <xsl:if  test="($Pa ramEmitTOC Entry = tr ue()) or ( count($Par amTOCEntry /wwtoc:Ent ry[1]) = 1 )"> CR LF
482      <html:d iv> CR LF   483      <html:d iv> CR LF
483       <!-- E mit top-le vel entry?  --> CR LF   484       <!-- E mit top-le vel entry?  --> CR LF
484       <!--                          --> CR LF   485       <!--                          --> CR LF
485       <xsl:c hoose> CR LF   486       <xsl:c hoose> CR LF
486        <xsl: when test= "$ParamEmi tTOCEntry  = true()"> CR LF   487        <xsl: when test= "$ParamEmi tTOCEntry  = true()"> CR LF
487         <htm l:dl> CR LF   488         <htm l:dl> CR LF
488          <ht ml:dd> CR LF   489          <ht ml:dd> CR LF
489           <! -- Paragra ph --> CR LF   490           <! -- Paragra ph --> CR LF
490           <! --            --> CR LF   491           <! --            --> CR LF
491           <x sl:call-te mplate nam e="MiniTOC Paragraph" > CR LF   492           <x sl:call-te mplate nam e="MiniTOC Paragraph" > CR LF
492            < xsl:with-p aram name= "ParamPara graph" sel ect="$Para mTOCEntry/ wwdoc:Para graph" /> CR LF   493            < xsl:with-p aram name= "ParamPara graph" sel ect="$Para mTOCEntry/ wwdoc:Para graph" /> CR LF
493           </ xsl:call-t emplate> CR LF   494           </ xsl:call-t emplate> CR LF
494          </h tml:dd> CR LF   495          </h tml:dd> CR LF
495   CR LF   496   CR LF
496          <!- - Children  --> CR LF   497          <!- - Children  --> CR LF
497          <!- -           --> CR LF   498          <!- -           --> CR LF
498          <xs l:call-tem plate name ="MiniTOCE ntries"> CR LF   499          <xs l:call-tem plate name ="MiniTOCE ntries"> CR LF
499           <x sl:with-pa ram name=" ParamRefer encePath"  select="$P aramSplit/ @path" /> CR LF   500           <x sl:with-pa ram name=" ParamRefer encePath"  select="$P aramSplit/ @path" /> CR LF
500           <x sl:with-pa ram name=" ParamParen t" select= "$ParamTOC Entry" /> CR LF   501           <x sl:with-pa ram name=" ParamParen t" select= "$ParamTOC Entry" /> CR LF
501           <x sl:with-pa ram name=" ParamMiniT OCSubLevel s" select= "$ParamMin iTOCSubLev els" /> CR LF   502           <x sl:with-pa ram name=" ParamMiniT OCSubLevel s" select= "$ParamMin iTOCSubLev els" /> CR LF
502          </x sl:call-te mplate> CR LF   503          </x sl:call-te mplate> CR LF
503         </ht ml:dl> CR LF   504         </ht ml:dl> CR LF
504        </xsl :when> CR LF   505        </xsl :when> CR LF
505   CR LF   506   CR LF
506        <xsl: otherwise> CR LF   507        <xsl: otherwise> CR LF
507         <!--  Children  --> CR LF   508         <!--  Children  --> CR LF
508         <!--            --> CR LF   509         <!--            --> CR LF
509         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF   510         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF
510          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> CR LF   511          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> CR LF
511          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> CR LF   512          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> CR LF
512          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF   513          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF
513         </xs l:call-tem plate> CR LF   514         </xs l:call-tem plate> CR LF
514        </xsl :otherwise > CR LF   515        </xsl :otherwise > CR LF
515       </xsl: choose> CR LF   516       </xsl: choose> CR LF
516      </html: div> CR LF   517      </html: div> CR LF
517     </xsl:if > CR LF   518     </xsl:if > CR LF
518    </xsl:tem plate> CR LF   519    </xsl:tem plate> CR LF
519   CR LF   520   CR LF
520   CR LF   521   CR LF
521    <xsl:temp late name= "MiniTOCEn tries"> CR LF   522    <xsl:temp late name= "MiniTOCEn tries"> CR LF
522     <xsl:par am name="P aramRefere ncePath" / > CR LF   523     <xsl:par am name="P aramRefere ncePath" / > CR LF
523     <xsl:par am name="P aramParent " /> CR LF   524     <xsl:par am name="P aramParent " /> CR LF
524     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF   525     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF
525   CR LF   526   CR LF
526     <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry"  /> CR LF   527     <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry"  /> CR LF
527   CR LF   528   CR LF
528     <xsl:for -each sele ct="$VarSu bEntries[1 ]"> CR LF   529     <xsl:for -each sele ct="$VarSu bEntries[1 ]"> CR LF
529      <html:d l> CR LF   530      <html:d l> CR LF
530   CR LF   531   CR LF
531      <xsl:fo r-each sel ect="$VarS ubEntries" > CR LF   532      <xsl:fo r-each sel ect="$VarS ubEntries" > CR LF
532       <xsl:v ariable na me="VarEnt ry" select ="." /> CR LF   533       <xsl:v ariable na me="VarEnt ry" select ="." /> CR LF
533   CR LF   534   CR LF
534       <html: dd> CR LF   535       <html: dd> CR LF
535        <xsl: choose> CR LF   536        <xsl: choose> CR LF
536         <xsl :when test ="string-l ength($Var Entry/@pat h) &gt; 0" > CR LF   537         <xsl :when test ="string-l ength($Var Entry/@pat h) &gt; 0" > CR LF
537          <!- - Get link  --> CR LF   538          <!- - Get link  --> CR LF
538          <!- -           --> CR LF   539          <!- -           --> CR LF
539          <xs l:variable  name="Var RelativeLi nkPath" se lect="wwur i:GetRelat iveTo($Var Entry/@pat h, $ParamR eferencePa th)" /> CR LF   540          <xs l:variable  name="Var RelativeLi nkPath" se lect="wwur i:GetRelat iveTo($Var Entry/@pat h, $ParamR eferencePa th)" /> CR LF
540   CR LF   541   CR LF
541          <ht ml:a href= "{$VarRela tiveLinkPa th}#{$VarE ntry/@link id}"> CR LF   542          <ht ml:a href= "{$VarRela tiveLinkPa th}#{$VarE ntry/@link id}"> CR LF
542           <x sl:call-te mplate nam e="MiniTOC Paragraph" > CR LF   543           <x sl:call-te mplate nam e="MiniTOC Paragraph" > CR LF
543            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarE ntry/wwdoc :Paragraph " /> CR LF   544            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarE ntry/wwdoc :Paragraph " /> CR LF
544           </ xsl:call-t emplate> CR LF   545           </ xsl:call-t emplate> CR LF
545          </h tml:a> CR LF   546          </h tml:a> CR LF
546         </xs l:when> CR LF   547         </xs l:when> CR LF
547   CR LF   548   CR LF
548         <xsl :otherwise > CR LF   549         <xsl :otherwise > CR LF
549          <xs l:call-tem plate name ="MiniTOCP aragraph"> CR LF   550          <xs l:call-tem plate name ="MiniTOCP aragraph"> CR LF
550           <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph"  /> CR LF   551           <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph"  /> CR LF
551          </x sl:call-te mplate> CR LF   552          </x sl:call-te mplate> CR LF
552         </xs l:otherwis e> CR LF   553         </xs l:otherwis e> CR LF
553        </xsl :choose> CR LF   554        </xsl :choose> CR LF
554       </html :dd> CR LF   555       </html :dd> CR LF
555   CR LF   556   CR LF
556       <!-- R ecurse --> CR LF   557       <!-- R ecurse --> CR LF
557       <!--          --> CR LF   558       <!--          --> CR LF
558       <xsl:c hoose> CR LF   559       <xsl:c hoose> CR LF
559        <xsl: when test= "$ParamMin iTOCSubLev els = 'all '"> CR LF   560        <xsl: when test= "$ParamMin iTOCSubLev els = 'all '"> CR LF
560         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF   561         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF
561          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF   562          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF
562          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF   563          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF
563          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF   564          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF
564         </xs l:call-tem plate> CR LF   565         </xs l:call-tem plate> CR LF
565        </xsl :when> CR LF   566        </xsl :when> CR LF
566   CR LF   567   CR LF
567        <xsl: when test= "($ParamMi niTOCSubLe vels - 1)  &gt; 0"> CR LF   568        <xsl: when test= "($ParamMi niTOCSubLe vels - 1)  &gt; 0"> CR LF
568         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF   569         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF
569          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF   570          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF
570          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF   571          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF
571          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls - 1" /> CR LF   572          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls - 1" /> CR LF
572         </xs l:call-tem plate> CR LF   573         </xs l:call-tem plate> CR LF
573        </xsl :when> CR LF   574        </xsl :when> CR LF
574       </xsl: choose> CR LF   575       </xsl: choose> CR LF
575      </xsl:f or-each> CR LF   576      </xsl:f or-each> CR LF
576   CR LF   577   CR LF
577      </html: dl> CR LF   578      </html: dl> CR LF
578     </xsl:fo r-each> CR LF   579     </xsl:fo r-each> CR LF
579    </xsl:tem plate> CR LF   580    </xsl:tem plate> CR LF
580   CR LF   581   CR LF
581   CR LF   582   CR LF
582    <xsl:temp late name= "MiniTOCPa ragraph"> CR LF   583    <xsl:temp late name= "MiniTOCPa ragraph"> CR LF
583     <xsl:par am name="P aramParagr aph" /> CR LF   584     <xsl:par am name="P aramParagr aph" /> CR LF
584   CR LF   585   CR LF
585     <xsl:for -each sele ct="$Param Paragraph/ wwdoc:Numb er/wwdoc:T ext | $Par amParagrap h/wwdoc:Te xtRun/wwdo c:Text"> CR LF   586     <xsl:for -each sele ct="$Param Paragraph/ wwdoc:Numb er/wwdoc:T ext | $Par amParagrap h/wwdoc:Te xtRun/wwdo c:Text"> CR LF
586      <xsl:va lue-of sel ect="@valu e" /> CR LF   587      <xsl:va lue-of sel ect="@valu e" /> CR LF
587     </xsl:fo r-each> CR LF   588     </xsl:fo r-each> CR LF
588    </xsl:tem plate> CR LF   589    </xsl:tem plate> CR LF
589   CR LF   590   CR LF
590   CR LF   591   CR LF
591    <xsl:temp late name= "Paragraph "> CR LF   592    <xsl:temp late name= "Paragraph "> CR LF
592     <xsl:par am name="P aramSplits " /> CR LF   593     <xsl:par am name="P aramSplits " /> CR LF
593     <xsl:par am name="P aramCargo"  /> CR LF   594     <xsl:par am name="P aramCargo"  /> CR LF
594     <xsl:par am name="P aramLinks"  /> CR LF   595     <xsl:par am name="P aramLinks"  /> CR LF
595     <xsl:par am name="P aramSplit"  /> CR LF   596     <xsl:par am name="P aramSplit"  /> CR LF
596     <xsl:par am name="P aramParagr aph" /> CR LF   597     <xsl:par am name="P aramParagr aph" /> CR LF
597     <xsl:par am name="P aramStyleN ame" /> CR LF   598     <xsl:par am name="P aramStyleN ame" /> CR LF
598     <xsl:par am name="P aramOverri deRule" /> CR LF   599     <xsl:par am name="P aramOverri deRule" /> CR LF
599     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF   600     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF
600   CR LF   601   CR LF
601     <!-- Pre serve empt y? --> CR LF   602     <!-- Pre serve empt y? --> CR LF
602     <!--                   --> CR LF   603     <!--                   --> CR LF
603     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " /> CR LF   604     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " /> CR LF
604     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF   605     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF
605   CR LF   606   CR LF
606     <!-- Non -empty tex t runs --> CR LF   607     <!-- Non -empty tex t runs --> CR LF
607     <!--                       --> CR LF   608     <!--                       --> CR LF
608      <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
  609      <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
609   CR LF   610   CR LF
610     <!-- Pro cess this  paragraph  at all? -- > CR LF   611     <!-- Pro cess this  paragraph  at all? -- > CR LF
611     <!--                                   -- > CR LF   612     <!--                                   -- > CR LF
612     <xsl:if  test="($Va rPreserveE mpty) or ( count($Var TextRuns[1 ]) = 1)"> CR LF   613     <xsl:if  test="($Va rPreserveE mpty) or ( count($Var TextRuns[1 ]) = 1)"> CR LF
613      <!-- Pa ss-through ? --> CR LF   614      <!-- Pa ss-through ? --> CR LF
614      <!--                 --> CR LF   615      <!--                 --> CR LF
615      <xsl:va riable nam e="VarPass Through"> CR LF   616      <xsl:va riable nam e="VarPass Through"> CR LF
    617       <xsl:v ariable na me="VarPas sThroughOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pas s-through' ]/@Value"  /> CR LF
    618   CR LF
    619       <xsl:c hoose> CR LF
    620        <xsl: when test= "$VarPassT hroughOpti on = 'true '"> CR LF
    621         <xsl :value-of  select="tr ue()" /> CR LF
    622        </xsl :when> CR LF
    623   CR LF
    624        <xsl: otherwise> CR LF
616       <xsl:c all-templa te name="C onditions- PassThroug h"> CR LF   625         <xsl :call-temp late name= "Condition s-PassThro ugh"> CR LF
617        <xsl: with-param  name="Par amConditio ns" select ="$ParamPa ragraph/ww doc:Condit ions" /> CR LF   626          <xs l:with-par am name="P aramCondit ions" sele ct="$Param Paragraph/ wwdoc:Cond itions" /> CR LF
618       </xsl: call-templ ate> CR LF   627         </xs l:call-tem plate> CR LF
    628        </xsl :otherwise > CR LF
    629       </xsl: choose> CR LF
619      </xsl:v ariable> CR LF   630      </xsl:v ariable> CR LF
620   CR LF   631   CR LF
621      <xsl:ch oose> CR LF   632      <xsl:ch oose> CR LF
622       <!-- P ass-throug h --> CR LF   633       <!-- P ass-throug h --> CR LF
623       <!--                --> CR LF   634       <!--                --> CR LF
624       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF   635       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF
625        <xsl: call-templ ate name=" Paragraph- PassThroug h"> CR LF   636        <xsl: call-templ ate name=" Paragraph- PassThroug h"> CR LF
626         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF   637         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF
627        </xsl :call-temp late> CR LF   638        </xsl :call-temp late> CR LF
628       </xsl: when> CR LF   639       </xsl: when> CR LF
629   CR LF   640   CR LF
630       <xsl:o therwise> CR LF   641       <xsl:o therwise> CR LF
631        <xsl: call-templ ate name=" Paragraph- Normal"> CR LF   642        <xsl: call-templ ate name=" Paragraph- Normal"> CR LF
632         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   643         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
633         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   644         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
634         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   645         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
635         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   646         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
636         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF   647         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF
637         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yleName" / > CR LF   648         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yleName" / > CR LF
638         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$Para mOverrideR ule" /> CR LF   649         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$Para mOverrideR ule" /> CR LF
639         <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" /> CR LF   650         <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" /> CR LF
640        </xsl :call-temp late> CR LF   651        </xsl :call-temp late> CR LF
641       </xsl: otherwise> CR LF   652       </xsl: otherwise> CR LF
642      </xsl:c hoose> CR LF   653      </xsl:c hoose> CR LF
643     </xsl:if > CR LF   654     </xsl:if > CR LF
644    </xsl:tem plate> CR LF   655    </xsl:tem plate> CR LF
645   CR LF   656   CR LF
646   CR LF   657   CR LF
647    <xsl:temp late name= "Paragraph -PassThrou gh"> CR LF   658    <xsl:temp late name= "Paragraph -PassThrou gh"> CR LF
648     <xsl:par am name="P aramParagr aph" /> CR LF   659     <xsl:par am name="P aramParagr aph" /> CR LF
649   CR LF   660   CR LF
650     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF   661     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF
651      <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Tex tRun/wwdoc :Text"> CR LF   662      <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Tex tRun/wwdoc :Text"> CR LF
652       <xsl:v ariable na me="VarTex t" select= "." /> CR LF   663       <xsl:v ariable na me="VarTex t" select= "." /> CR LF
653   CR LF   664   CR LF
654       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF   665       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF
655      </xsl:f or-each> CR LF   666      </xsl:f or-each> CR LF
656     </wwexsl doc:Text> CR LF   667     </wwexsl doc:Text> CR LF
657    </xsl:tem plate> CR LF   668    </xsl:tem plate> CR LF
658   CR LF   669   CR LF
659   CR LF   670   CR LF
660    <xsl:temp late name= "Paragraph -Normal"> CR LF   671    <xsl:temp late name= "Paragraph -Normal"> CR LF
661     <xsl:par am name="P aramSplits " /> CR LF   672     <xsl:par am name="P aramSplits " /> CR LF
662     <xsl:par am name="P aramCargo"  /> CR LF   673     <xsl:par am name="P aramCargo"  /> CR LF
663     <xsl:par am name="P aramLinks"  /> CR LF   674     <xsl:par am name="P aramLinks"  /> CR LF
664     <xsl:par am name="P aramSplit"  /> CR LF   675     <xsl:par am name="P aramSplit"  /> CR LF
665     <xsl:par am name="P aramParagr aph" /> CR LF   676     <xsl:par am name="P aramParagr aph" /> CR LF
666     <xsl:par am name="P aramStyleN ame" /> CR LF   677     <xsl:par am name="P aramStyleN ame" /> CR LF
667     <xsl:par am name="P aramOverri deRule" /> CR LF   678     <xsl:par am name="P aramOverri deRule" /> CR LF
668     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF   679     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF
669   CR LF   680   CR LF
670     <!-- Res olve proje ct propert ies --> CR LF   681     <!-- Res olve proje ct propert ies --> CR LF
671     <!--                               --> CR LF   682     <!--                               --> CR LF
672     <xsl:var iable name ="VarResol vedPropert iesAsXML"> CR LF   683     <xsl:var iable name ="VarResol vedPropert iesAsXML"> CR LF
673      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> CR LF   684      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> CR LF
674       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF   685       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF
675       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> CR LF   686       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> CR LF
676      </xsl:c all-templa te> CR LF   687      </xsl:c all-templa te> CR LF
677     </xsl:va riable> CR LF   688     </xsl:va riable> CR LF
678     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> CR LF   689     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> CR LF
679   CR LF   690   CR LF
680     <!-- CSS  propertie s --> CR LF   691     <!-- CSS  propertie s --> CR LF
681     <!--                  --> CR LF   692     <!--                  --> CR LF
682     <xsl:var iable name ="VarCSSPr opertiesAs XML"> CR LF   693     <xsl:var iable name ="VarCSSPr opertiesAs XML"> CR LF
683      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF   694      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF
684       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" /> CR LF   695       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" /> CR LF
685       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF   696       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF
686       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   697       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
687      </xsl:c all-templa te> CR LF   698      </xsl:c all-templa te> CR LF
688     </xsl:va riable> CR LF   699     </xsl:va riable> CR LF
689     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> CR LF   700     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> CR LF
690   CR LF   701   CR LF
691     <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   702     <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
692   CR LF   703   CR LF
693     <!-- Res olve proje ct propert ies --> CR LF   704     <!-- Res olve proje ct propert ies --> CR LF
694     <!--                               --> CR LF   705     <!--                               --> CR LF
695     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF   706     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF
696      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF   707      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF
697       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amParagrap h" /> CR LF   708       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amParagrap h" /> CR LF
698       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF   709       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF
699       <xsl:w ith-param  name="Para mStyleName " select=" $ParamPara graph/@sty lename" /> CR LF   710       <xsl:w ith-param  name="Para mStyleName " select=" $ParamPara graph/@sty lename" /> CR LF
700       <xsl:w ith-param  name="Para mStyleType " select=" 'Paragraph '" /> CR LF   711       <xsl:w ith-param  name="Para mStyleType " select=" 'Paragraph '" /> CR LF
701       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> CR LF   712       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> CR LF
702      </xsl:c all-templa te> CR LF   713      </xsl:c all-templa te> CR LF
703     </xsl:va riable> CR LF   714     </xsl:va riable> CR LF
704     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF   715     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF
705   CR LF   716   CR LF
706     <!-- CSS  propertie s --> CR LF   717     <!-- CSS  propertie s --> CR LF
707     <!--                  --> CR LF   718     <!--                  --> CR LF
708     <xsl:var iable name ="VarCSSCo ntextPrope rtiesAsXML "> CR LF   719     <xsl:var iable name ="VarCSSCo ntextPrope rtiesAsXML "> CR LF
709      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF   720      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF
710       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedContext Properties " /> CR LF   721       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedContext Properties " /> CR LF
711       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF   722       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF
712       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   723       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
713      </xsl:c all-templa te> CR LF   724      </xsl:c all-templa te> CR LF
714     </xsl:va riable> CR LF   725     </xsl:va riable> CR LF
715     <xsl:var iable name ="VarCSSCo ntextPrope rties" sel ect="msxsl :node-set( $VarCSSCon textProper tiesAsXML) /wwproject :Property"  /> CR LF   726     <xsl:var iable name ="VarCSSCo ntextPrope rties" sel ect="msxsl :node-set( $VarCSSCon textProper tiesAsXML) /wwproject :Property"  /> CR LF
716   CR LF   727   CR LF
717     <!-- Use  numbering ? --> CR LF   728     <!-- Use  numbering ? --> CR LF
718     <!--                  --> CR LF   729     <!--                  --> CR LF
719     <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   730     <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
720     <xsl:var iable name ="VarUseNu mbering" s elect="(st ring-lengt h($VarUseN umberingOp tion) = 0)  or ($VarU seNumberin gOption =  'true')" / > CR LF   731     <xsl:var iable name ="VarUseNu mbering" s elect="(st ring-lengt h($VarUseN umberingOp tion) = 0)  or ($VarU seNumberin gOption =  'true')" / > CR LF
721   CR LF   732   CR LF
722     <!-- Tex t Indent - -> CR LF   733     <!-- Tex t Indent - -> CR LF
723     <!--              - -> CR LF   734     <!--              - -> CR LF
724     <xsl:var iable name ="VarTextI ndent"> CR LF   735     <xsl:var iable name ="VarTextI ndent"> CR LF
725      <xsl:if  test="$Va rUseNumber ing"> CR LF   736      <xsl:if  test="$Va rUseNumber ing"> CR LF
726       <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarC SSProperti es[@Name =  'text-ind ent']/@Val ue" /> CR LF   737       <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarC SSProperti es[@Name =  'text-ind ent']/@Val ue" /> CR LF
727       <xsl:c hoose> CR LF   738       <xsl:c hoose> CR LF
728        <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0"> CR LF   739        <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0"> CR LF
729         <xsl :value-of  select="$V arOverride TextIndent " /> CR LF   740         <xsl :value-of  select="$V arOverride TextIndent " /> CR LF
730        </xsl :when> CR LF   741        </xsl :when> CR LF
731   CR LF   742   CR LF
732        <xsl: otherwise> CR LF   743        <xsl: otherwise> CR LF
733         <!--  Text inde nt defined ? --> CR LF   744         <!--  Text inde nt defined ? --> CR LF
734         <!--                         --> CR LF   745         <!--                         --> CR LF
735         <xsl :variable  name="VarC ontextText Indent" se lect="$Var CSSContext Properties [@Name = ' text-inden t']/@Value " /> CR LF   746         <xsl :variable  name="VarC ontextText Indent" se lect="$Var CSSContext Properties [@Name = ' text-inden t']/@Value " /> CR LF
736         <xsl :if test=" string-len gth($VarCo ntextTextI ndent) &gt ; 0"> CR LF   747         <xsl :if test=" string-len gth($VarCo ntextTextI ndent) &gt ; 0"> CR LF
737          <xs l:value-of  select="$ VarContext TextIndent " /> CR LF   748          <xs l:value-of  select="$ VarContext TextIndent " /> CR LF
738         </xs l:if> CR LF   749         </xs l:if> CR LF
739        </xsl :otherwise > CR LF   750        </xsl :otherwise > CR LF
740       </xsl: choose> CR LF   751       </xsl: choose> CR LF
741      </xsl:i f> CR LF   752      </xsl:i f> CR LF
742     </xsl:va riable> CR LF   753     </xsl:va riable> CR LF
743   CR LF   754   CR LF
744     <xsl:var iable name ="VarTextI ndentNumer icPrefix"  select="ww units:Nume ricPrefix( $VarTextIn dent)" /> CR LF   755     <xsl:var iable name ="VarTextI ndentNumer icPrefix"  select="ww units:Nume ricPrefix( $VarTextIn dent)" /> CR LF
745     <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   756     <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
746   CR LF   757   CR LF
747     <!-- Use  bullet fr om UI? --> CR LF   758     <!-- Use  bullet fr om UI? --> CR LF
748     <!--                       --> CR LF   759     <!--                       --> CR LF
749     <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   760     <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
750     <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   761     <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
751     <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   762     <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
752     <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   763     <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
753     <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   764     <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
754   CR LF   765   CR LF
755     <!-- Is  numbered p aragraph - -> CR LF   766     <!-- Is  numbered p aragraph - -> CR LF
756     <!--                         - -> CR LF   767     <!--                         - -> CR LF
757     <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   768     <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
758   CR LF   769   CR LF
759     <!-- Tag  --> CR LF   770     <!-- Tag  --> CR LF
760     <!--      --> CR LF   771     <!--      --> CR LF
761     <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   772     <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
762     <xsl:var iable name ="VarTag"> CR LF   773     <xsl:var iable name ="VarTag"> CR LF
763      <xsl:ch oose> CR LF   774      <xsl:ch oose> CR LF
764       <xsl:w hen test=" string-len gth($VarTa gProperty)  &gt; 0"> CR LF   775       <xsl:w hen test=" string-len gth($VarTa gProperty)  &gt; 0"> CR LF
765        <xsl: value-of s elect="$Va rTagProper ty" /> CR LF   776        <xsl: value-of s elect="$Va rTagProper ty" /> CR LF
766       </xsl: when> CR LF   777       </xsl: when> CR LF
767   CR LF   778   CR LF
768       <xsl:o therwise> CR LF   779       <xsl:o therwise> CR LF
769        <xsl: value-of s elect="'di v'" /> CR LF   780        <xsl: value-of s elect="'di v'" /> CR LF
770       </xsl: otherwise> CR LF   781       </xsl: otherwise> CR LF
771      </xsl:c hoose> CR LF   782      </xsl:c hoose> CR LF
772     </xsl:va riable> CR LF   783     </xsl:va riable> CR LF
773   CR LF   784   CR LF
774     <!-- Tag  to use fo r outer wr apper --> CR LF   785     <!-- Tag  to use fo r outer wr apper --> CR LF
775     <!--                                 --> CR LF   786     <!--                                 --> CR LF
776     <xsl:var iable name ="VarOuter Tag"> CR LF   787     <xsl:var iable name ="VarOuter Tag"> CR LF
777      <xsl:ch oose> CR LF   788      <xsl:ch oose> CR LF
778       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> CR LF   789       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> CR LF
779        <xsl: value-of s elect="'di v'" /> CR LF   790        <xsl: value-of s elect="'di v'" /> CR LF
780       </xsl: when> CR LF   791       </xsl: when> CR LF
781   CR LF   792   CR LF
782       <xsl:o therwise> CR LF   793       <xsl:o therwise> CR LF
783        <xsl: value-of s elect="$Va rTag" /> CR LF   794        <xsl: value-of s elect="$Va rTag" /> CR LF
784       </xsl: otherwise> CR LF   795       </xsl: otherwise> CR LF
785      </xsl:c hoose> CR LF   796      </xsl:c hoose> CR LF
786     </xsl:va riable> CR LF   797     </xsl:va riable> CR LF
787   CR LF   798   CR LF
788     <!-- Use  character  styles? - -> CR LF   799     <!-- Use  character  styles? - -> CR LF
789     <!--                         - -> CR LF   800     <!--                         - -> CR LF
790     <xsl:var iable name ="VarUseCh aracterSty lesOption"  select="$ ParamOverr ideRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'use-char acter-styl es']/@Valu e" /> CR LF   801     <xsl:var iable name ="VarUseCh aracterSty lesOption"  select="$ ParamOverr ideRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'use-char acter-styl es']/@Valu e" /> CR LF
791     <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   802     <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
792   CR LF   803   CR LF
793     <!-- Pre serve empt y? --> CR LF   804     <!-- Pre serve empt y? --> CR LF
794     <!--                   --> CR LF   805     <!--                   --> CR LF
795     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " /> CR LF   806     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " /> CR LF
796     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF   807     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF
797   CR LF   808   CR LF
798     <!-- Beg in paragra ph emit -- > CR LF   809     <!-- Beg in paragra ph emit -- > CR LF
799     <!--                        -- > CR LF   810     <!--                        -- > CR LF
800     <xsl:ele ment name= "{$VarOute rTag}" nam espace="{$ GlobalDefa ultNamespa ce}"> CR LF   811     <xsl:ele ment name= "{$VarOute rTag}" nam espace="{$ GlobalDefa ultNamespa ce}"> CR LF
801      <!-- Cl ass attrib ute --> CR LF   812      <!-- Cl ass attrib ute --> CR LF
802      <!--                   --> CR LF   813      <!--                   --> CR LF
803      <xsl:at tribute na me="class" > CR LF   814      <xsl:at tribute na me="class" > CR LF
804       <xsl:v alue-of se lect="wwst ring:OEBCl assName($P aramStyleN ame)" /> CR LF   815       <xsl:v alue-of se lect="wwst ring:OEBCl assName($P aramStyleN ame)" /> CR LF
805       <xsl:i f test="$V arIsNumber edParagrap h = true() "> CR LF   816       <xsl:i f test="$V arIsNumber edParagrap h = true() "> CR LF
806        <xsl: value-of s elect="'ww Outer'" /> CR LF   817        <xsl: value-of s elect="'ww Outer'" /> CR LF
807       </xsl: if> CR LF   818       </xsl: if> CR LF
808      </xsl:a ttribute> CR LF   819      </xsl:a ttribute> CR LF
809   CR LF   820   CR LF
810      <!-- St yle attrib ute --> CR LF   821      <!-- St yle attrib ute --> CR LF
811      <!--                   --> CR LF   822      <!--                   --> CR LF
812      <xsl:ch oose> CR LF   823      <xsl:ch oose> CR LF
813       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> CR LF   824       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> CR LF
814        <xsl: variable n ame="VarSt yleAttribu teOuter"> CR LF   825        <xsl: variable n ame="VarSt yleAttribu teOuter"> CR LF
815         <xsl :call-temp late name= "CSS-Inlin ePropertie sOuter"> CR LF   826         <xsl :call-temp late name= "CSS-Inlin ePropertie sOuter"> CR LF
816          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" /> CR LF   827          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" /> CR LF
817          <xs l:with-par am name="P aramContex tPropertie s" select= "$VarCSSCo ntextPrope rties" /> CR LF   828          <xs l:with-par am name="P aramContex tPropertie s" select= "$VarCSSCo ntextPrope rties" /> CR LF
818         </xs l:call-tem plate> CR LF   829         </xs l:call-tem plate> CR LF
819        </xsl :variable> CR LF   830        </xsl :variable> CR LF
820   CR LF   831   CR LF
821        <xsl: if test="s tring-leng th($VarSty leAttribut eOuter) &g t; 0"> CR LF   832        <xsl: if test="s tring-leng th($VarSty leAttribut eOuter) &g t; 0"> CR LF
822         <xsl :attribute  name="sty le"> CR LF   833         <xsl :attribute  name="sty le"> CR LF
823          <xs l:value-of  select="$ VarStyleAt tributeOut er" /> CR LF   834          <xs l:value-of  select="$ VarStyleAt tributeOut er" /> CR LF
824         </xs l:attribut e> CR LF   835         </xs l:attribut e> CR LF
825        </xsl :if> CR LF   836        </xsl :if> CR LF
826       </xsl: when> CR LF   837       </xsl: when> CR LF
827   CR LF   838   CR LF
828       <xsl:o therwise> CR LF   839       <xsl:o therwise> CR LF
829        <xsl: variable n ame="VarSt yleAttribu te"> CR LF   840        <xsl: variable n ame="VarSt yleAttribu te"> CR LF
830         <xsl :call-temp late name= "CSS-Inlin ePropertie s"> CR LF   841         <xsl :call-temp late name= "CSS-Inlin ePropertie s"> CR LF
831          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" /> CR LF   842          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" /> CR LF
832         </xs l:call-tem plate> CR LF   843         </xs l:call-tem plate> CR LF
833        </xsl :variable> CR LF   844        </xsl :variable> CR LF
834   CR LF   845   CR LF
835        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" > CR LF   846        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" > CR LF
836         <xsl :attribute  name="sty le"> CR LF   847         <xsl :attribute  name="sty le"> CR LF
837          <xs l:value-of  select="$ VarStyleAt tribute" / > CR LF   848          <xs l:value-of  select="$ VarStyleAt tribute" / > CR LF
838         </xs l:attribut e> CR LF   849         </xs l:attribut e> CR LF
839        </xsl :if> CR LF   850        </xsl :if> CR LF
840       </xsl: otherwise> CR LF   851       </xsl: otherwise> CR LF
841      </xsl:c hoose> CR LF   852      </xsl:c hoose> CR LF
842   CR LF   853   CR LF
843      <!-- Us e numberin g? --> CR LF   854      <!-- Us e numberin g? --> CR LF
844      <!--                  --> CR LF   855      <!--                  --> CR LF
845      <xsl:ch oose> CR LF   856      <xsl:ch oose> CR LF
846       <!-- U se Number  --> CR LF   857       <!-- U se Number  --> CR LF
847       <!--              --> CR LF   858       <!--              --> CR LF
848       <xsl:w hen test=" $VarUseNum bering"> CR LF   859       <xsl:w hen test=" $VarUseNum bering"> CR LF
849        <xsl: choose> CR LF   860        <xsl: choose> CR LF
850         <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   861         <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
851          <xs l:choose> CR LF   862          <xs l:choose> CR LF
852           <x sl:when te st="$VarTe xtIndentLe ssThanZero "> CR LF   863           <x sl:when te st="$VarTe xtIndentLe ssThanZero "> CR LF
853   CR LF   864   CR LF
854            < html:table  border="0 " cellspac ing="0" ce llpadding= "0" summar y=""> CR LF   865            < html:table  border="0 " cellspac ing="0" ce llpadding= "0" summar y=""> CR LF
855              <html:tr v align="bas eline"> CR LF   866              <html:tr v align="bas eline"> CR LF
856               <html:td> CR LF   867               <html:td> CR LF
857                <!-- Emi t number w ith inner  class and  specific n umber styl e attribut e --> CR LF   868                <!-- Emi t number w ith inner  class and  specific n umber styl e attribut e --> CR LF
858                <!--                                                                         --> CR LF   869                <!--                                                                         --> CR LF
859                <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}"> CR LF   870                <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}"> CR LF
860                 <xsl:at tribute na me="class" > CR LF   871                 <xsl:at tribute na me="class" > CR LF
861                  <xsl:v alue-of se lect="wwst ring:OEBCl assName($P aramStyleN ame)" /> CR LF   872                  <xsl:v alue-of se lect="wwst ring:OEBCl assName($P aramStyleN ame)" /> CR LF
862                  <xsl:t ext>wwInne r</xsl:tex t> CR LF   873                  <xsl:t ext>wwInne r</xsl:tex t> CR LF
863                 </xsl:a ttribute> CR LF   874                 </xsl:a ttribute> CR LF
864   CR LF   875   CR LF
865                 <xsl:va riable nam e="VarText IndentNumb erAsUnits"  select="w wunits:Num ericPrefix ($VarTextI ndent)" /> CR LF   876                 <xsl:va riable nam e="VarText IndentNumb erAsUnits"  select="w wunits:Num ericPrefix ($VarTextI ndent)" /> CR LF
866                 <xsl:va riable nam e="VarText IndentUnit s" select= "wwunits:U nitsSuffix ($VarTextI ndent)" /> CR LF   877                 <xsl:va riable nam e="VarText IndentUnit s" select= "wwunits:U nitsSuffix ($VarTextI ndent)" /> CR LF
867   CR LF   878   CR LF
868                 <xsl:at tribute na me="style" > CR LF   879                 <xsl:at tribute na me="style" > CR LF
869                  <!-- w idth --> CR LF   880                  <!-- w idth --> CR LF
870                  <!--        --> CR LF   881                  <!--        --> CR LF
871                  <xsl:t ext>width:  </xsl:tex t> CR LF   882                  <xsl:t ext>width:  </xsl:tex t> CR LF
872                  <xsl:v alue-of se lect="0 -  $VarTextIn dentNumber AsUnits" / > CR LF   883                  <xsl:v alue-of se lect="0 -  $VarTextIn dentNumber AsUnits" / > CR LF
873                  <xsl:v alue-of se lect="$Var TextIndent Units" /> CR LF   884                  <xsl:v alue-of se lect="$Var TextIndent Units" /> CR LF
874   CR LF   885   CR LF
875                  <!-- I nline inne r properti es --> CR LF   886                  <!-- I nline inne r properti es --> CR LF
876                  <!--                            --> CR LF   887                  <!--                            --> CR LF
877                  <xsl:v ariable na me="VarInl inePropert iesInnerNu mber"> CR LF   888                  <xsl:v ariable na me="VarInl inePropert iesInnerNu mber"> CR LF
878                   <xsl: call-templ ate name=" CSS-Inline Properties InnerNumbe r"> CR LF   889                   <xsl: call-templ ate name=" CSS-Inline Properties InnerNumbe r"> CR LF
879                    <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> CR LF   890                    <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> CR LF
880                   </xsl :call-temp late> CR LF   891                   </xsl :call-temp late> CR LF
881                  </xsl: variable> CR LF   892                  </xsl: variable> CR LF
882                  <xsl:i f test="st ring-lengt h($VarInli neProperti esInnerNum ber) &gt;  0"> CR LF   893                  <xsl:i f test="st ring-lengt h($VarInli neProperti esInnerNum ber) &gt;  0"> CR LF
883                   <xsl: text>; </x sl:text> CR LF   894                   <xsl: text>; </x sl:text> CR LF
884                   <xsl: value-of s elect="$Va rInlinePro pertiesInn erNumber"  /> CR LF   895                   <xsl: value-of s elect="$Va rInlinePro pertiesInn erNumber"  /> CR LF
885                  </xsl: if> CR LF   896                  </xsl: if> CR LF
886                 </xsl:a ttribute> CR LF   897                 </xsl:a ttribute> CR LF
887   CR LF   898   CR LF
888                 <xsl:ca ll-templat e name="Nu mber"> CR LF   899                 <xsl:ca ll-templat e name="Nu mber"> CR LF
889                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   900                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
890                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   901                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
891                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   902                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
892                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   903                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
893                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" /> CR LF   904                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" /> CR LF
894                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" /> CR LF   905                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" /> CR LF
895                  <xsl:w ith-param  name="Para mIgnoreDoc umentNumbe r" select= "$VarIgnor eDocumentN umber" /> CR LF   906                  <xsl:w ith-param  name="Para mIgnoreDoc umentNumbe r" select= "$VarIgnor eDocumentN umber" /> CR LF
896                  <xsl:w ith-param  name="Para mCharacter " select=" $VarBullet Character"  /> CR LF   907                  <xsl:w ith-param  name="Para mCharacter " select=" $VarBullet Character"  /> CR LF
897                  <xsl:w ith-param  name="Para mImage" se lect="$Var BulletImag e" /> CR LF   908                  <xsl:w ith-param  name="Para mImage" se lect="$Var BulletImag e" /> CR LF
898                  <xsl:w ith-param  name="Para mSeparator " select=" $VarBullet Separator"  /> CR LF   909                  <xsl:w ith-param  name="Para mSeparator " select=" $VarBullet Separator"  /> CR LF
899                  <xsl:w ith-param  name="Para mStyle" se lect="$Var BulletStyl e" /> CR LF   910                  <xsl:w ith-param  name="Para mStyle" se lect="$Var BulletStyl e" /> CR LF
900                 </xsl:c all-templa te> CR LF   911                 </xsl:c all-templa te> CR LF
901                </xsl:el ement> CR LF   912                </xsl:el ement> CR LF
902               </html:td > CR LF   913               </html:td > CR LF
903   CR LF   914   CR LF
904               <!-- Forc e second c ell to hon or first c ell width  --> CR LF   915               <!-- Forc e second c ell to hon or first c ell width  --> CR LF
905               <!--                                                  --> CR LF   916               <!--                                                  --> CR LF
906               <html:td  width="100 %"> CR LF   917               <html:td  width="100 %"> CR LF
907                <xsl:var iable name ="VarStyle AttributeI nnerConten t"> CR LF   918                <xsl:var iable name ="VarStyle AttributeI nnerConten t"> CR LF
908                 <xsl:ca ll-templat e name="CS S-InlinePr opertiesIn nerContent "> CR LF   919                 <xsl:ca ll-templat e name="CS S-InlinePr opertiesIn nerContent "> CR LF
909                  <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties"  /> CR LF   920                  <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties"  /> CR LF
910                 </xsl:c all-templa te> CR LF   921                 </xsl:c all-templa te> CR LF
911                </xsl:va riable> CR LF   922                </xsl:va riable> CR LF
912   CR LF   923   CR LF
913                <!-- Emi t content  --> CR LF   924                <!-- Emi t content  --> CR LF
914                <!--                --> CR LF   925                <!--                --> CR LF
915                <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}"> CR LF   926                <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}"> CR LF
916                 <xsl:at tribute na me="class" > CR LF   927                 <xsl:at tribute na me="class" > CR LF
917                  <xsl:v alue-of se lect="wwst ring:OEBCl assName($P aramStyleN ame)" /> CR LF   928                  <xsl:v alue-of se lect="wwst ring:OEBCl assName($P aramStyleN ame)" /> CR LF
918                  <xsl:t ext>wwInne r</xsl:tex t> CR LF   929                  <xsl:t ext>wwInne r</xsl:tex t> CR LF
919                 </xsl:a ttribute> CR LF   930                 </xsl:a ttribute> CR LF
920   CR LF   931   CR LF
921                 <!-- Te xt Runs -- > CR LF   932                 <!-- Te xt Runs -- > CR LF
922                 <!--            -- > CR LF   933                 <!--            -- > CR LF
923                 <xsl:ca ll-templat e name="Pa ragraphTex tRuns"> CR LF   934                 <xsl:ca ll-templat e name="Pa ragraphTex tRuns"> CR LF
924                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   935                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
925                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   936                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
926                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   937                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
927                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   938                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
928                  <xsl:w ith-param  name="Para mPreserveE mpty" sele ct="$VarPr eserveEmpt y" /> CR LF   939                  <xsl:w ith-param  name="Para mPreserveE mpty" sele ct="$VarPr eserveEmpt y" /> CR LF
929                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" /> CR LF   940                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" /> CR LF
930                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" /> CR LF   941                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" /> CR LF
931                 </xsl:c all-templa te> CR LF   942                 </xsl:c all-templa te> CR LF
932                </xsl:el ement> CR LF   943                </xsl:el ement> CR LF
933               </html:td > CR LF   944               </html:td > CR LF
934              </html:tr> CR LF   945              </html:tr> CR LF
935            < /html:tabl e> CR LF   946            < /html:tabl e> CR LF
936           </ xsl:when> CR LF   947           </ xsl:when> CR LF
937   CR LF   948   CR LF
938           <x sl:otherwi se> CR LF   949           <x sl:otherwi se> CR LF
939            < xsl:call-t emplate na me="Number "> CR LF   950            < xsl:call-t emplate na me="Number "> CR LF
940              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF   951              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF
941              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF   952              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF
942              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF   953              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF
943              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF   954              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF
944              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF   955              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF
945              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > CR LF   956              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > CR LF
946              <xsl:with- param name ="ParamIgn oreDocumen tNumber" s elect="$Va rIgnoreDoc umentNumbe r" /> CR LF   957              <xsl:with- param name ="ParamIgn oreDocumen tNumber" s elect="$Va rIgnoreDoc umentNumbe r" /> CR LF
947              <xsl:with- param name ="ParamCha racter" se lect="$Var BulletChar acter" /> CR LF   958              <xsl:with- param name ="ParamCha racter" se lect="$Var BulletChar acter" /> CR LF
948              <xsl:with- param name ="ParamIma ge" select ="$VarBull etImage" / > CR LF   959              <xsl:with- param name ="ParamIma ge" select ="$VarBull etImage" / > CR LF
949              <xsl:with- param name ="ParamSep arator" se lect="$Var BulletSepa rator" /> CR LF   960              <xsl:with- param name ="ParamSep arator" se lect="$Var BulletSepa rator" /> CR LF
950              <xsl:with- param name ="ParamSty le" select ="$VarBull etStyle" / > CR LF   961              <xsl:with- param name ="ParamSty le" select ="$VarBull etStyle" / > CR LF
951            < /xsl:call- template> CR LF   962            < /xsl:call- template> CR LF
952   CR LF   963   CR LF
953            < !-- Text R uns --> CR LF   964            < !-- Text R uns --> CR LF
954            < !--            --> CR LF   965            < !--            --> CR LF
955            < xsl:call-t emplate na me="Paragr aphTextRun s"> CR LF   966            < xsl:call-t emplate na me="Paragr aphTextRun s"> CR LF
956              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF   967              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF
957              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF   968              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF
958              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF   969              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF
959              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF   970              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF
960              <xsl:with- param name ="ParamPre serveEmpty " select=" $VarPreser veEmpty" / > CR LF   971              <xsl:with- param name ="ParamPre serveEmpty " select=" $VarPreser veEmpty" / > CR LF
961              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > CR LF   972              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > CR LF
962              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF   973              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF
963            < /xsl:call- template> CR LF   974            < /xsl:call- template> CR LF
964           </ xsl:otherw ise> CR LF   975           </ xsl:otherw ise> CR LF
965          </x sl:choose> CR LF   976          </x sl:choose> CR LF
966         </xs l:when> CR LF   977         </xs l:when> CR LF
967   CR LF   978   CR LF
968         <xsl :otherwise > CR LF   979         <xsl :otherwise > CR LF
969          <!- - Text Run s --> CR LF   980          <!- - Text Run s --> CR LF
970          <!- -            --> CR LF   981          <!- -            --> CR LF
971          <xs l:call-tem plate name ="Paragrap hTextRuns" > CR LF   982          <xs l:call-tem plate name ="Paragrap hTextRuns" > CR LF
972           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   983           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
973           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF   984           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF
974           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   985           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
975           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   986           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
976           <x sl:with-pa ram name=" ParamPrese rveEmpty"  select="$V arPreserve Empty" /> CR LF   987           <x sl:with-pa ram name=" ParamPrese rveEmpty"  select="$V arPreserve Empty" /> CR LF
977           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$VarUse CharacterS tyles" /> CR LF   988           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$VarUse CharacterS tyles" /> CR LF
978           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param Paragraph"  /> CR LF   989           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param Paragraph"  /> CR LF
979          </x sl:call-te mplate> CR LF   990          </x sl:call-te mplate> CR LF
980         </xs l:otherwis e> CR LF   991         </xs l:otherwis e> CR LF
981        </xsl :choose> CR LF   992        </xsl :choose> CR LF
982       </xsl: when> CR LF   993       </xsl: when> CR LF
983   CR LF   994   CR LF
984       <!-- S kip Number  --> CR LF   995       <!-- S kip Number  --> CR LF
985       <!--               --> CR LF   996       <!--               --> CR LF
986       <xsl:o therwise> CR LF   997       <xsl:o therwise> CR LF
987        <!--  Text Runs  --> CR LF   998        <!--  Text Runs  --> CR LF
988        <!--             --> CR LF   999        <!--             --> CR LF
989        <xsl: call-templ ate name=" ParagraphT extRuns"> CR LF   1000        <xsl: call-templ ate name=" ParagraphT extRuns"> CR LF
990         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1001         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
991         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1002         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
992         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1003         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
993         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1004         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
994         <xsl :with-para m name="Pa ramPreserv eEmpty" se lect="$Var PreserveEm pty" /> CR LF   1005         <xsl :with-para m name="Pa ramPreserv eEmpty" se lect="$Var PreserveEm pty" /> CR LF
995         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$VarUseCh aracterSty les" /> CR LF   1006         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$VarUseCh aracterSty les" /> CR LF
996         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF   1007         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF
997        </xsl :call-temp late> CR LF   1008        </xsl :call-temp late> CR LF
998       </xsl: otherwise> CR LF   1009       </xsl: otherwise> CR LF
999      </xsl:c hoose> CR LF   1010      </xsl:c hoose> CR LF
1000   CR LF   1011   CR LF
1001     <!-- End  paragraph  emit --> CR LF   1012     <!-- End  paragraph  emit --> CR LF
1002     <!--                      --> CR LF   1013     <!--                      --> CR LF
1003     </xsl:el ement> CR LF   1014     </xsl:el ement> CR LF
1004    </xsl:tem plate> CR LF   1015    </xsl:tem plate> CR LF
1005   CR LF   1016   CR LF
1006   CR LF   1017   CR LF
1007    <xsl:temp late name= "Number"> CR LF   1018    <xsl:temp late name= "Number"> CR LF
1008     <xsl:par am name="P aramSplits " /> CR LF   1019     <xsl:par am name="P aramSplits " /> CR LF
1009     <xsl:par am name="P aramCargo"  /> CR LF   1020     <xsl:par am name="P aramCargo"  /> CR LF
1010     <xsl:par am name="P aramLinks"  /> CR LF   1021     <xsl:par am name="P aramLinks"  /> CR LF
1011     <xsl:par am name="P aramSplit"  /> CR LF   1022     <xsl:par am name="P aramSplit"  /> CR LF
1012     <xsl:par am name="P aramParagr aph" /> CR LF   1023     <xsl:par am name="P aramParagr aph" /> CR LF
1013     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1024     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1014     <xsl:par am name="P aramIgnore DocumentNu mber" /> CR LF   1025     <xsl:par am name="P aramIgnore DocumentNu mber" /> CR LF
1015     <xsl:par am name="P aramCharac ter" /> CR LF   1026     <xsl:par am name="P aramCharac ter" /> CR LF
1016     <xsl:par am name="P aramImage"  /> CR LF   1027     <xsl:par am name="P aramImage"  /> CR LF
1017     <xsl:par am name="P aramSepara tor" /> CR LF   1028     <xsl:par am name="P aramSepara tor" /> CR LF
1018     <xsl:par am name="P aramStyle"  /> CR LF   1029     <xsl:par am name="P aramStyle"  /> CR LF
1019   CR LF   1030   CR LF
1020     <xsl:cho ose> CR LF   1031     <xsl:cho ose> CR LF
1021      <xsl:wh en test="$ ParamIgnor eDocumentN umber"> CR LF   1032      <xsl:wh en test="$ ParamIgnor eDocumentN umber"> CR LF
1022       <xsl:c all-templa te name="C ontent-Bul let"> CR LF   1033       <xsl:c all-templa te name="C ontent-Bul let"> CR LF
1023        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1034        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1024        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1035        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1025        <xsl: with-param  name="Par amParagrap h" select= "$ParamPar agraph" /> CR LF   1036        <xsl: with-param  name="Par amParagrap h" select= "$ParamPar agraph" /> CR LF
1026        <xsl: with-param  name="Par amCharacte r" select= "$ParamCha racter" /> CR LF   1037        <xsl: with-param  name="Par amCharacte r" select= "$ParamCha racter" /> CR LF
1027        <xsl: with-param  name="Par amImage" s elect="$Pa ramImage"  /> CR LF   1038        <xsl: with-param  name="Par amImage" s elect="$Pa ramImage"  /> CR LF
1028        <xsl: with-param  name="Par amSeparato r" select= "$ParamSep arator" /> CR LF   1039        <xsl: with-param  name="Par amSeparato r" select= "$ParamSep arator" /> CR LF
1029        <xsl: with-param  name="Par amStyle" s elect="$Pa ramStyle"  /> CR LF   1040        <xsl: with-param  name="Par amStyle" s elect="$Pa ramStyle"  /> CR LF
1030       </xsl: call-templ ate> CR LF   1041       </xsl: call-templ ate> CR LF
1031      </xsl:w hen> CR LF   1042      </xsl:w hen> CR LF
1032   CR LF   1043   CR LF
1033      <xsl:ot herwise> CR LF   1044      <xsl:ot herwise> CR LF
1034       <xsl:v ariable na me="VarBul letPropert iesAsXML"> CR LF   1045       <xsl:v ariable na me="VarBul letPropert iesAsXML"> CR LF
1035        <wwpr oject:Bull etProperti es> CR LF   1046        <wwpr oject:Bull etProperti es> CR LF
1036         <wwp roject:Pro perty Name ="bullet-s tyle" Valu e="{$Param Style}" /> CR LF   1047         <wwp roject:Pro perty Name ="bullet-s tyle" Valu e="{$Param Style}" /> CR LF
1037        </wwp roject:Bul letPropert ies> CR LF   1048        </wwp roject:Bul letPropert ies> CR LF
1038       </xsl: variable> CR LF   1049       </xsl: variable> CR LF
1039       <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)" /> CR LF   1050       <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)" /> CR LF
1040   CR LF   1051   CR LF
1041       <xsl:v ariable na me="VarCar go" select ="$ParamCa rgo/*[loca l-name() ! = 'BulletP roperties' ]/.. | $Va rBulletPro perties" / > CR LF   1052       <xsl:v ariable na me="VarCar go" select ="$ParamCa rgo/*[loca l-name() ! = 'BulletP roperties' ]/.. | $Va rBulletPro perties" / > CR LF
1042   CR LF   1053   CR LF
1043       <xsl:c all-templa te name="T extRun"> CR LF   1054       <xsl:c all-templa te name="T extRun"> CR LF
1044        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1055        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1045        <xsl: with-param  name="Par amCargo" s elect="$Va rCargo" /> CR LF   1056        <xsl: with-param  name="Par amCargo" s elect="$Va rCargo" /> CR LF
1046        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   1057        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
1047        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1058        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1048        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraph/@ id" /> CR LF   1059        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraph/@ id" /> CR LF
1049        <xsl: with-param  name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" /> CR LF   1060        <xsl: with-param  name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" /> CR LF
1050        <xsl: with-param  name="Par amTextRun"  select="$ ParamParag raph/wwdoc :Number[1] " /> CR LF   1061        <xsl: with-param  name="Par amTextRun"  select="$ ParamParag raph/wwdoc :Number[1] " /> CR LF
1051        <xsl: with-param  name="Par amPosition " select=" 0" /> CR LF   1062        <xsl: with-param  name="Par amPosition " select=" 0" /> CR LF
1052       </xsl: call-templ ate> CR LF   1063       </xsl: call-templ ate> CR LF
1053      </xsl:o therwise> CR LF   1064      </xsl:o therwise> CR LF
1054     </xsl:ch oose> CR LF   1065     </xsl:ch oose> CR LF
1055    </xsl:tem plate> CR LF   1066    </xsl:tem plate> CR LF
1056   CR LF   1067   CR LF
1057   CR LF   1068   CR LF
1058    <xsl:temp late name= "Paragraph TextRuns"> CR LF   1069    <xsl:temp late name= "Paragraph TextRuns"> CR LF
1059     <xsl:par am name="P aramSplits " /> CR LF   1070     <xsl:par am name="P aramSplits " /> CR LF
1060     <xsl:par am name="P aramCargo"  /> CR LF   1071     <xsl:par am name="P aramCargo"  /> CR LF
1061     <xsl:par am name="P aramLinks"  /> CR LF   1072     <xsl:par am name="P aramLinks"  /> CR LF
1062     <xsl:par am name="P aramSplit"  /> CR LF   1073     <xsl:par am name="P aramSplit"  /> CR LF
1063     <xsl:par am name="P aramPreser veEmpty" / > CR LF   1074     <xsl:par am name="P aramPreser veEmpty" / > CR LF
1064     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1075     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1065     <xsl:par am name="P aramParagr aph" /> CR LF   1076     <xsl:par am name="P aramParagr aph" /> CR LF
1066   CR LF   1077   CR LF
1067     <!-- Pre vent white space issu es with pr eformatted  text bloc ks --> CR LF   1078     <!-- Pre vent white space issu es with pr eformatted  text bloc ks --> CR LF
1068     <!--                                                               --> CR LF   1079     <!--                                                               --> CR LF
1069     <wwexsld oc:NoBreak  /> CR LF   1080     <wwexsld oc:NoBreak  /> CR LF
1070   CR LF   1081   CR LF
1071     <!-- Non -empty tex t runs --> CR LF   1082     <!-- Non -empty tex t runs --> CR LF
1072     <!--                       --> CR LF   1083     <!--                       --> CR LF
1073      <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
  1084      <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
1074   CR LF   1085   CR LF
1075     <!-- Che ck for emp ty paragra phs --> CR LF   1086     <!-- Che ck for emp ty paragra phs --> CR LF
1076     <!--                               --> CR LF   1087     <!--                               --> CR LF
1077     <xsl:cho ose> CR LF   1088     <xsl:cho ose> CR LF
1078      <xsl:wh en test="c ount($VarT extRuns[1] ) = 1"> CR LF   1089      <xsl:wh en test="c ount($VarT extRuns[1] ) = 1"> CR LF
1079       <!-- P aragraph h as content  --> CR LF   1090       <!-- P aragraph h as content  --> CR LF
1080       <!--                          --> CR LF   1091       <!--                          --> CR LF
1081       <xsl:f or-each se lect="$Var TextRuns"> CR LF   1092       <xsl:f or-each se lect="$Var TextRuns"> CR LF
1082        <xsl: variable n ame="VarTe xtRun" sel ect="." /> CR LF   1093        <xsl: variable n ame="VarTe xtRun" sel ect="." /> CR LF
1083   CR LF   1094   CR LF
1084        <xsl: call-templ ate name=" TextRun"> CR LF   1095        <xsl: call-templ ate name=" TextRun"> CR LF
1085         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1096         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1086         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1097         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1087         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1098         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1088         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1099         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1089         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param Paragraph/ @id" /> CR LF   1100         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param Paragraph/ @id" /> CR LF
1090         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF   1101         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF
1091         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> CR LF   1102         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> CR LF
1092         <xsl :with-para m name="Pa ramPositio n" select= "position( )" /> CR LF   1103         <xsl :with-para m name="Pa ramPositio n" select= "position( )" /> CR LF
1093        </xsl :call-temp late> CR LF   1104        </xsl :call-temp late> CR LF
1094       </xsl: for-each> CR LF   1105       </xsl: for-each> CR LF
1095      </xsl:w hen> CR LF   1106      </xsl:w hen> CR LF
1096   CR LF   1107   CR LF
1097      <xsl:ot herwise> CR LF   1108      <xsl:ot herwise> CR LF
1098       <!-- E mpty parag raph! --> CR LF   1109       <!-- E mpty parag raph! --> CR LF
1099       <!--                    --> CR LF   1110       <!--                    --> CR LF
1100       <xsl:i f test="$P aramPreser veEmpty"> CR LF   1111       <xsl:i f test="$P aramPreser veEmpty"> CR LF
1101        <html :a name="{ $ParamPara graph/@id} ">&#160;</ html:a> CR LF   1112        <html :a name="{ $ParamPara graph/@id} ">&#160;</ html:a> CR LF
1102       </xsl: if> CR LF   1113       </xsl: if> CR LF
1103      </xsl:o therwise> CR LF   1114      </xsl:o therwise> CR LF
1104     </xsl:ch oose> CR LF   1115     </xsl:ch oose> CR LF
1105    </xsl:tem plate> CR LF   1116    </xsl:tem plate> CR LF
1106   CR LF   1117   CR LF
1107   CR LF   1118   CR LF
1108    <xsl:temp late name= "LinkInfo" > CR LF   1119    <xsl:temp late name= "LinkInfo" > CR LF
1109     <xsl:par am name="P aramSplits " /> CR LF   1120     <xsl:par am name="P aramSplits " /> CR LF
1110     <xsl:par am name="P aramLinks"  /> CR LF   1121     <xsl:par am name="P aramLinks"  /> CR LF
1111     <xsl:par am name="P aramSplit"  /> CR LF   1122     <xsl:par am name="P aramSplit"  /> CR LF
1112     <xsl:par am name="P aramDocume ntLink" /> CR LF   1123     <xsl:par am name="P aramDocume ntLink" /> CR LF
1113   CR LF   1124   CR LF
1114     <xsl:ele ment name= "LinkInfo"  namespace ="urn:WebW orks-Engin e-Links-Sc hema"> CR LF   1125     <xsl:ele ment name= "LinkInfo"  namespace ="urn:WebW orks-Engin e-Links-Sc hema"> CR LF
1115      <xsl:if  test="cou nt($ParamD ocumentLin k) &gt; 0" > CR LF   1126      <xsl:if  test="cou nt($ParamD ocumentLin k) &gt; 0" > CR LF
1116       <!-- R esolve lin k --> CR LF   1127       <!-- R esolve lin k --> CR LF
1117       <!--                --> CR LF   1128       <!--                --> CR LF
1118       <xsl:v ariable na me="VarRes olvedLinkI nfoAsXML"> CR LF   1129       <xsl:v ariable na me="VarRes olvedLinkI nfoAsXML"> CR LF
1119        <xsl: call-templ ate name=" Links-Reso lve"> CR LF   1130        <xsl: call-templ ate name=" Links-Reso lve"> CR LF
1120         <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para meterAllow Baggage" / > CR LF   1131         <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para meterAllow Baggage" / > CR LF
1121         <xsl :with-para m name="Pa ramAllowGr oupToGroup " select=" $Parameter AllowGroup ToGroup" / > CR LF   1132         <xsl :with-para m name="Pa ramAllowGr oupToGroup " select=" $Parameter AllowGroup ToGroup" / > CR LF
1122         <xsl :with-para m name="Pa ramAllowUR L" select= "$Paramete rAllowURL"  /> CR LF   1133         <xsl :with-para m name="Pa ramAllowUR L" select= "$Paramete rAllowURL"  /> CR LF
1123         <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$Parame terBaggage SplitFileT ype" /> CR LF   1134         <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$Parame terBaggage SplitFileT ype" /> CR LF
1124         <xsl :with-para m name="Pa ramProject " select=" $GlobalPro ject" /> CR LF   1135         <xsl :with-para m name="Pa ramProject " select=" $GlobalPro ject" /> CR LF
1125         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1136         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1126         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1137         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1127         <xsl :with-para m name="Pa ramSplitGr oupID" sel ect="$Para mSplit/@gr oupID" /> CR LF   1138         <xsl :with-para m name="Pa ramSplitGr oupID" sel ect="$Para mSplit/@gr oupID" /> CR LF
1128         <xsl :with-para m name="Pa ramSplitDo cumentID"  select="$P aramSplit/ @documentI D" /> CR LF   1139         <xsl :with-para m name="Pa ramSplitDo cumentID"  select="$P aramSplit/ @documentI D" /> CR LF
1129         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" /> CR LF   1140         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" /> CR LF
1130        </xsl :call-temp late> CR LF   1141        </xsl :call-temp late> CR LF
1131       </xsl: variable> CR LF   1142       </xsl: variable> CR LF
1132       <xsl:v ariable na me="VarRes olvedLinkI nfo" selec t="msxsl:n ode-set($V arResolved LinkInfoAs XML)/wwlin ks:Resolve dLink" /> CR LF   1143       <xsl:v ariable na me="VarRes olvedLinkI nfo" selec t="msxsl:n ode-set($V arResolved LinkInfoAs XML)/wwlin ks:Resolve dLink" /> CR LF
1133   CR LF   1144   CR LF
1134       <!-- @ title --> CR LF   1145       <!-- @ title --> CR LF
1135       <!--         --> CR LF   1146       <!--         --> CR LF
1136       <xsl:i f test="st ring-lengt h($VarReso lvedLinkIn fo/@title)  &gt; 0"> CR LF   1147       <xsl:i f test="st ring-lengt h($VarReso lvedLinkIn fo/@title)  &gt; 0"> CR LF
1137        <xsl: attribute  name="titl e"> CR LF   1148        <xsl: attribute  name="titl e"> CR LF
1138         <xsl :value-of  select="$V arResolved LinkInfo/@ title" /> CR LF   1149         <xsl :value-of  select="$V arResolved LinkInfo/@ title" /> CR LF
1139        </xsl :attribute > CR LF   1150        </xsl :attribute > CR LF
1140       </xsl: if> CR LF   1151       </xsl: if> CR LF
1141   CR LF   1152   CR LF
1142       <xsl:c hoose> CR LF   1153       <xsl:c hoose> CR LF
1143        <!--  Baggage -- > CR LF   1154        <!--  Baggage -- > CR LF
1144        <!--          -- > CR LF   1155        <!--          -- > CR LF
1145        <xsl: when test= "$VarResol vedLinkInf o/@type =  'baggage'" > CR LF   1156        <xsl: when test= "$VarResol vedLinkInf o/@type =  'baggage'" > CR LF
1146         <!--  Not suppo rted --> CR LF   1157         <!--  Not suppo rted --> CR LF
1147         <!--                 --> CR LF   1158         <!--                 --> CR LF
1148        </xsl :when> CR LF   1159        </xsl :when> CR LF
1149   CR LF   1160   CR LF
1150        <!--  Document - -> CR LF   1161        <!--  Document - -> CR LF
1151        <!--           - -> CR LF   1162        <!--           - -> CR LF
1152        <xsl: when test= "($VarReso lvedLinkIn fo/@type =  'document ') or ($Va rResolvedL inkInfo/@t ype = 'gro up') or ($ VarResolve dLinkInfo/ @type = 'p roject')"> CR LF   1163        <xsl: when test= "($VarReso lvedLinkIn fo/@type =  'document ') or ($Va rResolvedL inkInfo/@t ype = 'gro up') or ($ VarResolve dLinkInfo/ @type = 'p roject')"> CR LF
1153         <xsl :attribute  name="hre f"> CR LF   1164         <xsl :attribute  name="hre f"> CR LF
1154          <xs l:variable  name="Var RelativePa th" select ="wwuri:Ge tRelativeT o($VarReso lvedLinkIn fo/@path,  $ParamSpli t/@path)"  /> CR LF   1165          <xs l:variable  name="Var RelativePa th" select ="wwuri:Ge tRelativeT o($VarReso lvedLinkIn fo/@path,  $ParamSpli t/@path)"  /> CR LF
1155   CR LF   1166   CR LF
1156          <xs l:value-of  select="$ VarRelativ ePath" /> CR LF   1167          <xs l:value-of  select="$ VarRelativ ePath" /> CR LF
1157          <xs l:if test= "string-le ngth($Para mDocumentL ink/@ancho r) &gt; 0" > CR LF   1168          <xs l:if test= "string-le ngth($Para mDocumentL ink/@ancho r) &gt; 0" > CR LF
1158           <x sl:text>#< /xsl:text> CR LF   1169           <x sl:text>#< /xsl:text> CR LF
1159           <x sl:value-o f select=" $VarResolv edLinkInfo /@linkid"  /> CR LF   1170           <x sl:value-o f select=" $VarResolv edLinkInfo /@linkid"  /> CR LF
1160          </x sl:if> CR LF   1171          </x sl:if> CR LF
1161         </xs l:attribut e> CR LF   1172         </xs l:attribut e> CR LF
1162        </xsl :when> CR LF   1173        </xsl :when> CR LF
1163   CR LF   1174   CR LF
1164        <!--  URL --> CR LF   1175        <!--  URL --> CR LF
1165        <!--      --> CR LF   1176        <!--      --> CR LF
1166        <xsl: when test= "$VarResol vedLinkInf o/@type =  'url'"> CR LF   1177        <xsl: when test= "$VarResol vedLinkInf o/@type =  'url'"> CR LF
1167         <xsl :attribute  name="hre f"> CR LF   1178         <xsl :attribute  name="hre f"> CR LF
1168          <xs l:value-of  select="$ VarResolve dLinkInfo/ @url" /> CR LF   1179          <xs l:value-of  select="$ VarResolve dLinkInfo/ @url" /> CR LF
1169         </xs l:attribut e> CR LF   1180         </xs l:attribut e> CR LF
1170        </xsl :when> CR LF   1181        </xsl :when> CR LF
1171       </xsl: choose> CR LF   1182       </xsl: choose> CR LF
1172      </xsl:i f> CR LF   1183      </xsl:i f> CR LF
1173     </xsl:el ement> CR LF   1184     </xsl:el ement> CR LF
1174    </xsl:tem plate> CR LF   1185    </xsl:tem plate> CR LF
1175   CR LF   1186   CR LF
1176   CR LF   1187   CR LF
1177    <xsl:temp late name= "TextRun"> CR LF   1188    <xsl:temp late name= "TextRun"> CR LF
1178     <xsl:par am name="P aramSplits " /> CR LF   1189     <xsl:par am name="P aramSplits " /> CR LF
1179     <xsl:par am name="P aramCargo"  /> CR LF   1190     <xsl:par am name="P aramCargo"  /> CR LF
1180     <xsl:par am name="P aramLinks"  /> CR LF   1191     <xsl:par am name="P aramLinks"  /> CR LF
1181     <xsl:par am name="P aramSplit"  /> CR LF   1192     <xsl:par am name="P aramSplit"  /> CR LF
1182     <xsl:par am name="P aramParagr aphID" /> CR LF   1193     <xsl:par am name="P aramParagr aphID" /> CR LF
1183     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1194     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1184     <xsl:par am name="P aramTextRu n" /> CR LF   1195     <xsl:par am name="P aramTextRu n" /> CR LF
1185     <xsl:par am name="P aramPositi on" /> CR LF   1196     <xsl:par am name="P aramPositi on" /> CR LF
1186   CR LF   1197   CR LF
1187     <!-- Get  rule --> CR LF   1198     <!-- Get  rule --> CR LF
1188     <!--           --> CR LF   1199     <!--           --> CR LF
1189     <xsl:var iable name ="VarRule"  select="w wprojext:G etRule('Ch aracter',  $ParamText Run/@style name)" /> CR LF   1200     <xsl:var iable name ="VarRule"  select="w wprojext:G etRule('Ch aracter',  $ParamText Run/@style name)" /> CR LF
1190   CR LF   1201   CR LF
1191     <!-- Gen erate outp ut? --> CR LF   1202     <!-- Gen erate outp ut? --> CR LF
1192     <!---                   --> CR LF   1203     <!---                   --> CR LF
1193     <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   1204     <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
1194     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF   1205     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF
1195     <xsl:if  test="$Var GenerateOu tput"> CR LF   1206     <xsl:if  test="$Var GenerateOu tput"> CR LF
1196      <!-- Pa ss-through ? --> CR LF   1207      <!-- Pa ss-through ? --> CR LF
1197      <!--                 --> CR LF   1208      <!--                 --> CR LF
1198      <xsl:va riable nam e="VarPass Through"> CR LF   1209      <xsl:va riable nam e="VarPass Through"> CR LF
    1210       <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
    1211   CR LF
    1212       <xsl:c hoose> CR LF
    1213        <xsl: when test= "$VarPassT hroughOpti on = 'true '"> CR LF
    1214         <xsl :value-of  select="tr ue()" /> CR LF
    1215        </xsl :when> CR LF
    1216   CR LF
    1217        <xsl: otherwise> CR LF
1199       <xsl:c all-templa te name="C onditions- PassThroug h"> CR LF   1218         <xsl :call-temp late name= "Condition s-PassThro ugh"> CR LF
1200        <xsl: with-param  name="Par amConditio ns" select ="$ParamTe xtRun/wwdo c:Conditio ns" /> CR LF   1219          <xs l:with-par am name="P aramCondit ions" sele ct="$Param TextRun/ww doc:Condit ions" /> CR LF
1201       </xsl: call-templ ate> CR LF   1220         </xs l:call-tem plate> CR LF
    1221        </xsl :otherwise > CR LF
    1222       </xsl: choose> CR LF
1202      </xsl:v ariable> CR LF   1223      </xsl:v ariable> CR LF
1203   CR LF   1224   CR LF
1204      <xsl:ch oose> CR LF   1225      <xsl:ch oose> CR LF
1205       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF   1226       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF
1206        <xsl: call-templ ate name=" TextRun-Pa ssThrough" > CR LF   1227        <xsl: call-templ ate name=" TextRun-Pa ssThrough" > CR LF
1207         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF   1228         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF
1208        </xsl :call-temp late> CR LF   1229        </xsl :call-temp late> CR LF
1209       </xsl: when> CR LF   1230       </xsl: when> CR LF
1210   CR LF   1231   CR LF
1211       <xsl:o therwise> CR LF   1232       <xsl:o therwise> CR LF
1212        <xsl: call-templ ate name=" TextRun-No rmal"> CR LF   1233        <xsl: call-templ ate name=" TextRun-No rmal"> CR LF
1213         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1234         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1214         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1235         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1215         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1236         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1216         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1237         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1217         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF   1238         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF
1218         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF   1239         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF
1219         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF   1240         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF
1220         <xsl :with-para m name="Pa ramRule" s elect="$Va rRule" /> CR LF   1241         <xsl :with-para m name="Pa ramRule" s elect="$Va rRule" /> CR LF
1221         <xsl :with-para m name="Pa ramPositio n" select= "$ParamPos ition" /> CR LF   1242         <xsl :with-para m name="Pa ramPositio n" select= "$ParamPos ition" /> CR LF
1222        </xsl :call-temp late> CR LF   1243        </xsl :call-temp late> CR LF
1223       </xsl: otherwise> CR LF   1244       </xsl: otherwise> CR LF
1224      </xsl:c hoose> CR LF   1245      </xsl:c hoose> CR LF
1225     </xsl:if > CR LF   1246     </xsl:if > CR LF
1226    </xsl:tem plate> CR LF   1247    </xsl:tem plate> CR LF
1227   CR LF   1248   CR LF
1228   CR LF   1249   CR LF
1229    <xsl:temp late name= "TextRun-P assThrough "> CR LF   1250    <xsl:temp late name= "TextRun-P assThrough "> CR LF
1230     <xsl:par am name="P aramTextRu n" /> CR LF   1251     <xsl:par am name="P aramTextRu n" /> CR LF
1231   CR LF   1252   CR LF
1232     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF   1253     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF
1233      <xsl:fo r-each sel ect="$Para mTextRun/w wdoc:Text" > CR LF   1254      <xsl:fo r-each sel ect="$Para mTextRun/w wdoc:Text" > CR LF
1234       <xsl:v ariable na me="VarTex t" select= "." /> CR LF   1255       <xsl:v ariable na me="VarTex t" select= "." /> CR LF
1235   CR LF   1256   CR LF
1236       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF   1257       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF
1237      </xsl:f or-each> CR LF   1258      </xsl:f or-each> CR LF
1238     </wwexsl doc:Text> CR LF   1259     </wwexsl doc:Text> CR LF
1239    </xsl:tem plate> CR LF   1260    </xsl:tem plate> CR LF
1240   CR LF   1261   CR LF
1241   CR LF   1262   CR LF
1242    <xsl:temp late name= "TextRun-N ormal"> CR LF   1263    <xsl:temp late name= "TextRun-N ormal"> CR LF
1243     <xsl:par am name="P aramSplits " /> CR LF   1264     <xsl:par am name="P aramSplits " /> CR LF
1244     <xsl:par am name="P aramCargo"  /> CR LF   1265     <xsl:par am name="P aramCargo"  /> CR LF
1245     <xsl:par am name="P aramLinks"  /> CR LF   1266     <xsl:par am name="P aramLinks"  /> CR LF
1246     <xsl:par am name="P aramSplit"  /> CR LF   1267     <xsl:par am name="P aramSplit"  /> CR LF
1247     <xsl:par am name="P aramParagr aphID" /> CR LF   1268     <xsl:par am name="P aramParagr aphID" /> CR LF
1248     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1269     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1249     <xsl:par am name="P aramTextRu n" /> CR LF   1270     <xsl:par am name="P aramTextRu n" /> CR LF
1250     <xsl:par am name="P aramRule"  /> CR LF   1271     <xsl:par am name="P aramRule"  /> CR LF
1251     <xsl:par am name="P aramPositi on" /> CR LF   1272     <xsl:par am name="P aramPositi on" /> CR LF
1252   CR LF   1273   CR LF
1253     <xsl:cho ose> CR LF   1274     <xsl:cho ose> CR LF
1254      <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   1275      <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
1255       <!-- G et overrid e rule --> CR LF   1276       <!-- G et overrid e rule --> CR LF
1256       <!--                     --> CR LF   1277       <!--                     --> CR LF
1257       <xsl:v ariable na me="VarOve rrideRule"  select="w wprojext:G etOverride Rule('Char acter', $P aramTextRu n/@stylena me, $Param Split/@doc umentID, $ ParamTextR un/@id)" / > CR LF   1278       <xsl:v ariable na me="VarOve rrideRule"  select="w wprojext:G etOverride Rule('Char acter', $P aramTextRu n/@stylena me, $Param Split/@doc umentID, $ ParamTextR un/@id)" / > CR LF
1258   CR LF   1279   CR LF
1259       <!-- R esolve pro ject prope rties --> CR LF   1280       <!-- R esolve pro ject prope rties --> CR LF
1260       <!--                               --> CR LF   1281       <!--                               --> CR LF
1261       <xsl:v ariable na me="VarRes olvedPrope rtiesAsXML "> CR LF   1282       <xsl:v ariable na me="VarRes olvedPrope rtiesAsXML "> CR LF
1262        <xsl: call-templ ate name=" Properties -ResolveOv errideRule "> CR LF   1283        <xsl: call-templ ate name=" Properties -ResolveOv errideRule "> CR LF
1263         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF   1284         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF
1264         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mTextRun/w wdoc:Style " /> CR LF   1285         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mTextRun/w wdoc:Style " /> CR LF
1265        </xsl :call-temp late> CR LF   1286        </xsl :call-temp late> CR LF
1266       </xsl: variable> CR LF   1287       </xsl: variable> CR LF
1267       <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / > CR LF   1288       <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / > CR LF
1268   CR LF   1289   CR LF
1269       <!-- C SS propert ies --> CR LF   1290       <!-- C SS propert ies --> CR LF
1270       <!--                  --> CR LF   1291       <!--                  --> CR LF
1271       <xsl:v ariable na me="VarCSS Properties AsXML"> CR LF   1292       <xsl:v ariable na me="VarCSS Properties AsXML"> CR LF
1272        <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> CR LF   1293        <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> CR LF
1273         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties" /> CR LF   1294         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties" /> CR LF
1274         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" /> CR LF   1295         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" /> CR LF
1275         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1296         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1276        </xsl :call-temp late> CR LF   1297        </xsl :call-temp late> CR LF
1277       </xsl: variable> CR LF   1298       </xsl: variable> CR LF
1278       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > CR LF   1299       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > CR LF
1279   CR LF   1300   CR LF
1280       <!-- T ag --> CR LF   1301       <!-- T ag --> CR LF
1281       <!--      --> CR LF   1302       <!--      --> CR LF
1282       <xsl:v ariable na me="VarTag Property"  select="$P aramRule/w wproject:P roperties/ wwproject: Property[@ Name = 'ta g']/@Value " /> CR LF   1303       <xsl:v ariable na me="VarTag Property"  select="$P aramRule/w wproject:P roperties/ wwproject: Property[@ Name = 'ta g']/@Value " /> CR LF
1283       <xsl:v ariable na me="VarTag "> CR LF   1304       <xsl:v ariable na me="VarTag "> CR LF
1284        <xsl: choose> CR LF   1305        <xsl: choose> CR LF
1285         <xsl :when test ="string-l ength($Var TagPropert y) &gt; 0" > CR LF   1306         <xsl :when test ="string-l ength($Var TagPropert y) &gt; 0" > CR LF
1286          <xs l:value-of  select="$ VarTagProp erty" /> CR LF   1307          <xs l:value-of  select="$ VarTagProp erty" /> CR LF
1287         </xs l:when> CR LF   1308         </xs l:when> CR LF
1288   CR LF   1309   CR LF
1289         <xsl :otherwise > CR LF   1310         <xsl :otherwise > CR LF
1290          <xs l:value-of  select="' span'" /> CR LF   1311          <xs l:value-of  select="' span'" /> CR LF
1291         </xs l:otherwis e> CR LF   1312         </xs l:otherwis e> CR LF
1292        </xsl :choose> CR LF   1313        </xsl :choose> CR LF
1293       </xsl: variable> CR LF   1314       </xsl: variable> CR LF
1294   CR LF   1315   CR LF
1295       <!-- C lass attri bute --> CR LF   1316       <!-- C lass attri bute --> CR LF
1296       <!--                   --> CR LF   1317       <!--                   --> CR LF
1297       <xsl:v ariable na me="VarCla ssAttribut e"> CR LF   1318       <xsl:v ariable na me="VarCla ssAttribut e"> CR LF
1298        <xsl: choose> CR LF   1319        <xsl: choose> CR LF
1299         <xsl :when test ="string-l ength($Par amCargo/ww project:Bu lletProper ties/wwpro ject:Prope rty[@Name  = 'bullet- style']/@V alue) &gt;  0"> CR LF   1320         <xsl :when test ="string-l ength($Par amCargo/ww project:Bu lletProper ties/wwpro ject:Prope rty[@Name  = 'bullet- style']/@V alue) &gt;  0"> CR LF
1300          <xs l:value-of  select="w wstring:OE BClassName ($ParamCar go/wwproje ct:BulletP roperties/ wwproject: Property[@ Name = 'bu llet-style ']/@Value) " /> CR LF   1321          <xs l:value-of  select="w wstring:OE BClassName ($ParamCar go/wwproje ct:BulletP roperties/ wwproject: Property[@ Name = 'bu llet-style ']/@Value) " /> CR LF
1301         </xs l:when> CR LF   1322         </xs l:when> CR LF
1302         <xsl :otherwise > CR LF   1323         <xsl :otherwise > CR LF
1303          <xs l:value-of  select="w wstring:OE BClassName ($ParamTex tRun/@styl ename)" /> CR LF   1324          <xs l:value-of  select="w wstring:OE BClassName ($ParamTex tRun/@styl ename)" /> CR LF
1304         </xs l:otherwis e> CR LF   1325         </xs l:otherwis e> CR LF
1305        </xsl :choose> CR LF   1326        </xsl :choose> CR LF
1306       </xsl: variable> CR LF   1327       </xsl: variable> CR LF
1307   CR LF   1328   CR LF
1308       <!-- S tyle attri bute --> CR LF   1329       <!-- S tyle attri bute --> CR LF
1309       <!--                   --> CR LF   1330       <!--                   --> CR LF
1310       <xsl:v ariable na me="VarSty leAttribut e"> CR LF   1331       <xsl:v ariable na me="VarSty leAttribut e"> CR LF
1311        <xsl: call-templ ate name=" CSS-Inline Properties "> CR LF   1332        <xsl: call-templ ate name=" CSS-Inline Properties "> CR LF
1312         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> CR LF   1333         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> CR LF
1313        </xsl :call-temp late> CR LF   1334        </xsl :call-temp late> CR LF
1314       </xsl: variable> CR LF   1335       </xsl: variable> CR LF
1315   CR LF   1336   CR LF
1316       <xsl:c hoose> CR LF   1337       <xsl:c hoose> CR LF
1317        <xsl: when test= "(string-l ength($Var ClassAttri bute) &gt;  0) or (st ring-lengt h($VarStyl eAttribute ) &gt; 0)" > CR LF   1338        <xsl: when test= "(string-l ength($Var ClassAttri bute) &gt;  0) or (st ring-lengt h($VarStyl eAttribute ) &gt; 0)" > CR LF
1318         <!--  Character  Style --> CR LF   1339         <!--  Character  Style --> CR LF
1319         <!--                   --> CR LF   1340         <!--                   --> CR LF
1320         <xsl :element n ame="{$Var Tag}" name space="{$G lobalDefau ltNamespac e}"> CR LF   1341         <xsl :element n ame="{$Var Tag}" name space="{$G lobalDefau ltNamespac e}"> CR LF
1321          <xs l:if test= "string-le ngth($VarC lassAttrib ute) &gt;  0"> CR LF   1342          <xs l:if test= "string-le ngth($VarC lassAttrib ute) &gt;  0"> CR LF
1322           <x sl:attribu te name="c lass"> CR LF   1343           <x sl:attribu te name="c lass"> CR LF
1323            < xsl:value- of select= "$VarClass Attribute"  /> CR LF   1344            < xsl:value- of select= "$VarClass Attribute"  /> CR LF
1324           </ xsl:attrib ute> CR LF   1345           </ xsl:attrib ute> CR LF
1325          </x sl:if> CR LF   1346          </x sl:if> CR LF
1326          <xs l:if test= "string-le ngth($VarS tyleAttrib ute) &gt;  0"> CR LF   1347          <xs l:if test= "string-le ngth($VarS tyleAttrib ute) &gt;  0"> CR LF
1327           <x sl:attribu te name="s tyle"> CR LF   1348           <x sl:attribu te name="s tyle"> CR LF
1328            < xsl:value- of select= "$VarStyle Attribute"  /> CR LF   1349            < xsl:value- of select= "$VarStyle Attribute"  /> CR LF
1329           </ xsl:attrib ute> CR LF   1350           </ xsl:attrib ute> CR LF
1330          </x sl:if> CR LF   1351          </x sl:if> CR LF
1331   CR LF   1352   CR LF
1332          <xs l:call-tem plate name ="TextRunC hildren"> CR LF   1353          <xs l:call-tem plate name ="TextRunC hildren"> CR LF
1333           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   1354           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
1334           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF   1355           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF
1335           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   1356           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
1336           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   1357           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
1337           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> CR LF   1358           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> CR LF
1338           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> CR LF   1359           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> CR LF
1339           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > CR LF   1360           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > CR LF
1340          </x sl:call-te mplate> CR LF   1361          </x sl:call-te mplate> CR LF
1341         </xs l:element> CR LF   1362         </xs l:element> CR LF
1342        </xsl :when> CR LF   1363        </xsl :when> CR LF
1343   CR LF   1364   CR LF
1344        <xsl: otherwise> CR LF   1365        <xsl: otherwise> CR LF
1345         <!--  No style  --> CR LF   1366         <!--  No style  --> CR LF
1346         <!--            --> CR LF   1367         <!--            --> CR LF
1347         <xsl :call-temp late name= "TextRunCh ildren"> CR LF   1368         <xsl :call-temp late name= "TextRunCh ildren"> CR LF
1348          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   1369          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
1349          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF   1370          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF
1350          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF   1371          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF
1351          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   1372          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
1352          <xs l:with-par am name="P aramParagr aphID" sel ect="$Para mParagraph ID" /> CR LF   1373          <xs l:with-par am name="P aramParagr aphID" sel ect="$Para mParagraph ID" /> CR LF
1353          <xs l:with-par am name="P aramTextRu n" select= "$ParamTex tRun" /> CR LF   1374          <xs l:with-par am name="P aramTextRu n" select= "$ParamTex tRun" /> CR LF
1354          <xs l:with-par am name="P aramPositi on" select ="$ParamPo sition" /> CR LF   1375          <xs l:with-par am name="P aramPositi on" select ="$ParamPo sition" /> CR LF
1355         </xs l:call-tem plate> CR LF   1376         </xs l:call-tem plate> CR LF
1356        </xsl :otherwise > CR LF   1377        </xsl :otherwise > CR LF
1357       </xsl: choose> CR LF   1378       </xsl: choose> CR LF
1358      </xsl:w hen> CR LF   1379      </xsl:w hen> CR LF
1359   CR LF   1380   CR LF
1360      <xsl:ot herwise> CR LF   1381      <xsl:ot herwise> CR LF
1361       <!-- N o style -- > CR LF   1382       <!-- N o style -- > CR LF
1362       <!--           -- > CR LF   1383       <!--           -- > CR LF
1363       <xsl:c all-templa te name="T extRunChil dren"> CR LF   1384       <xsl:c all-templa te name="T extRunChil dren"> CR LF
1364        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1385        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1365        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF   1386        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF
1366        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   1387        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
1367        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1388        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1368        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraphID " /> CR LF   1389        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraphID " /> CR LF
1369        <xsl: with-param  name="Par amTextRun"  select="$ ParamTextR un" /> CR LF   1390        <xsl: with-param  name="Par amTextRun"  select="$ ParamTextR un" /> CR LF
1370        <xsl: with-param  name="Par amPosition " select=" $ParamPosi tion" /> CR LF   1391        <xsl: with-param  name="Par amPosition " select=" $ParamPosi tion" /> CR LF
1371       </xsl: call-templ ate> CR LF   1392       </xsl: call-templ ate> CR LF
1372      </xsl:o therwise> CR LF   1393      </xsl:o therwise> CR LF
1373     </xsl:ch oose> CR LF   1394     </xsl:ch oose> CR LF
1374    </xsl:tem plate> CR LF   1395    </xsl:tem plate> CR LF
1375   CR LF   1396   CR LF
1376   CR LF   1397   CR LF
1377    <xsl:temp late name= "TextRunCh ildren"> CR LF   1398    <xsl:temp late name= "TextRunCh ildren"> CR LF
1378     <xsl:par am name="P aramSplits " /> CR LF   1399     <xsl:par am name="P aramSplits " /> CR LF
1379     <xsl:par am name="P aramCargo"  /> CR LF   1400     <xsl:par am name="P aramCargo"  /> CR LF
1380     <xsl:par am name="P aramLinks"  /> CR LF   1401     <xsl:par am name="P aramLinks"  /> CR LF
1381     <xsl:par am name="P aramSplit"  /> CR LF   1402     <xsl:par am name="P aramSplit"  /> CR LF
1382     <xsl:par am name="P aramParagr aphID" /> CR LF   1403     <xsl:par am name="P aramParagr aphID" /> CR LF
1383     <xsl:par am name="P aramTextRu n" /> CR LF   1404     <xsl:par am name="P aramTextRu n" /> CR LF
1384     <xsl:par am name="P aramPositi on" /> CR LF   1405     <xsl:par am name="P aramPositi on" /> CR LF
1385   CR LF   1406   CR LF
1386     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF   1407     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF
1387     <!--                                                   --> CR LF   1408     <!--                                                   --> CR LF
1388     <wwexsld oc:NoBreak  /> CR LF   1409     <wwexsld oc:NoBreak  /> CR LF
1389   CR LF   1410   CR LF
1390     <!-- Lin k? --> CR LF   1411     <!-- Lin k? --> CR LF
1391     <!--        --> CR LF   1412     <!--        --> CR LF
1392     <xsl:var iable name ="VarLinkI nfoAsXML"> CR LF   1413     <xsl:var iable name ="VarLinkI nfoAsXML"> CR LF
1393      <xsl:ca ll-templat e name="Li nkInfo"> CR LF   1414      <xsl:ca ll-templat e name="Li nkInfo"> CR LF
1394       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   1415       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
1395       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   1416       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
1396       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   1417       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
1397       <xsl:w ith-param  name="Para mDocumentL ink" selec t="$ParamT extRun/wwd oc:Link" / > CR LF   1418       <xsl:w ith-param  name="Para mDocumentL ink" selec t="$ParamT extRun/wwd oc:Link" / > CR LF
1398      </xsl:c all-templa te> CR LF   1419      </xsl:c all-templa te> CR LF
1399     </xsl:va riable> CR LF   1420     </xsl:va riable> CR LF
1400     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> CR LF   1421     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> CR LF
1401   CR LF   1422   CR LF
1402     <!-- Han dle links  and first  textrun an chor --> CR LF   1423     <!-- Han dle links  and first  textrun an chor --> CR LF
1403     <!--                                           --> CR LF   1424     <!--                                           --> CR LF
1404     <xsl:cho ose> CR LF   1425     <xsl:cho ose> CR LF
1405      <xsl:wh en test="s tring-leng th($VarLin kInfo/@hre f) &gt; 0" > CR LF   1426      <xsl:wh en test="s tring-leng th($VarLin kInfo/@hre f) &gt; 0" > CR LF
1406       <html: a href="{$ VarLinkInf o/@href}"> CR LF   1427       <html: a href="{$ VarLinkInf o/@href}"> CR LF
1407        <xsl: if test="s tring-leng th($VarLin kInfo/@tit le) &gt; 0 "> CR LF   1428        <xsl: if test="s tring-leng th($VarLin kInfo/@tit le) &gt; 0 "> CR LF
1408         <xsl :attribute  name="tit le"> CR LF   1429         <xsl :attribute  name="tit le"> CR LF
1409          <xs l:value-of  select="$ VarLinkInf o/@title"  /> CR LF   1430          <xs l:value-of  select="$ VarLinkInf o/@title"  /> CR LF
1410         </xs l:attribut e> CR LF   1431         </xs l:attribut e> CR LF
1411        </xsl :if> CR LF   1432        </xsl :if> CR LF
1412        <xsl: if test="$ ParamPosit ion = 1"> CR LF   1433        <xsl: if test="$ ParamPosit ion = 1"> CR LF
1413         <xsl :attribute  name="nam e"> CR LF   1434         <xsl :attribute  name="nam e"> CR LF
1414          <xs l:value-of  select="$ ParamParag raphID" /> CR LF   1435          <xs l:value-of  select="$ ParamParag raphID" /> CR LF
1415         </xs l:attribut e> CR LF   1436         </xs l:attribut e> CR LF
1416        </xsl :if> CR LF   1437        </xsl :if> CR LF
1417   CR LF   1438   CR LF
1418        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n"> CR LF   1439        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n"> CR LF
1419         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1440         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1420         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1441         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1421         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1442         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1422         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1443         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1423        </xsl :apply-tem plates> CR LF   1444        </xsl :apply-tem plates> CR LF
1424       </html :a> CR LF   1445       </html :a> CR LF
1425      </xsl:w hen> CR LF   1446      </xsl:w hen> CR LF
1426   CR LF   1447   CR LF
1427      <xsl:wh en test="$ ParamPosit ion = 1"> CR LF   1448      <xsl:wh en test="$ ParamPosit ion = 1"> CR LF
1428       <html: a name="{$ ParamParag raphID}"> CR LF   1449       <html: a name="{$ ParamParag raphID}"> CR LF
1429        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n"> CR LF   1450        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n"> CR LF
1430         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1451         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1431         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1452         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1432         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1453         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1433         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1454         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1434        </xsl :apply-tem plates> CR LF   1455        </xsl :apply-tem plates> CR LF
1435       </html :a> CR LF   1456       </html :a> CR LF
1436      </xsl:w hen> CR LF   1457      </xsl:w hen> CR LF
1437   CR LF   1458   CR LF
1438      <xsl:ot herwise> CR LF   1459      <xsl:ot herwise> CR LF
1439       <xsl:a pply-templ ates selec t="$ParamT extRun/*"  mode="wwmo de:textrun "> CR LF   1460       <xsl:a pply-templ ates selec t="$ParamT extRun/*"  mode="wwmo de:textrun "> CR LF
1440        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1461        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1441        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF   1462        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF
1442        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   1463        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
1443        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1464        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1444       </xsl: apply-temp lates> CR LF   1465       </xsl: apply-temp lates> CR LF
1445      </xsl:o therwise> CR LF   1466      </xsl:o therwise> CR LF
1446     </xsl:ch oose> CR LF   1467     </xsl:ch oose> CR LF
1447   CR LF   1468   CR LF
1448     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF   1469     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF
1449     <!--                                                   --> CR LF   1470     <!--                                                   --> CR LF
1450     <wwexsld oc:NoBreak  /> CR LF   1471     <wwexsld oc:NoBreak  /> CR LF
1451    </xsl:tem plate> CR LF   1472    </xsl:tem plate> CR LF
1452   CR LF   1473   CR LF
1453   CR LF   1474   CR LF
1454    <xsl:temp late match ="wwdoc:No te" mode=" wwmode:tex trun"> CR LF   1475    <xsl:temp late match ="wwdoc:No te" mode=" wwmode:tex trun"> CR LF
1455     <xsl:par am name="P aramSplits " /> CR LF   1476     <xsl:par am name="P aramSplits " /> CR LF
1456     <xsl:par am name="P aramCargo"  /> CR LF   1477     <xsl:par am name="P aramCargo"  /> CR LF
1457     <xsl:par am name="P aramLinks"  /> CR LF   1478     <xsl:par am name="P aramLinks"  /> CR LF
1458     <xsl:par am name="P aramSplit"  /> CR LF   1479     <xsl:par am name="P aramSplit"  /> CR LF
1459   CR LF   1480   CR LF
1460     <xsl:var iable name ="VarConte xt" select ="." /> CR LF   1481     <xsl:var iable name ="VarConte xt" select ="." /> CR LF
1461   CR LF   1482   CR LF
1462     <!-- Imp lement not es --> CR LF   1483     <!-- Imp lement not es --> CR LF
1463     <!--                   --> CR LF   1484     <!--                   --> CR LF
1464     <xsl:for -each sele ct="$Param Cargo/wwno tes:NoteNu mbering[1] "> CR LF   1485     <xsl:for -each sele ct="$Param Cargo/wwno tes:NoteNu mbering[1] "> CR LF
1465      <xsl:va riable nam e="VarNote Number" se lect="key( 'wwnotes-n otes-by-id ', $VarCon text/@id)/ @number" / > CR LF   1486      <xsl:va riable nam e="VarNote Number" se lect="key( 'wwnotes-n otes-by-id ', $VarCon text/@id)/ @number" / > CR LF
1466   CR LF   1487   CR LF
1467      <!-- Fo rce sup on  same line  as contai ning span  --> CR LF   1488      <!-- Fo rce sup on  same line  as contai ning span  --> CR LF
1468      <!--                                                --> CR LF   1489      <!--                                                --> CR LF
1469      <wwexsl doc:NoBrea k /> CR LF   1490      <wwexsl doc:NoBrea k /> CR LF
1470   CR LF   1491   CR LF
1471      <html:s up> CR LF   1492      <html:s up> CR LF
1472       <!-- F orce ancho r on same  line as co ntaining s up --> CR LF   1493       <!-- F orce ancho r on same  line as co ntaining s up --> CR LF
1473       <!--                                                  --> CR LF   1494       <!--                                                  --> CR LF
1474       <wwexs ldoc:NoBre ak /> CR LF   1495       <wwexs ldoc:NoBre ak /> CR LF
1475   CR LF   1496   CR LF
1476       <html: a> CR LF   1497       <html: a> CR LF
1477        <xsl: attribute  name="name "> CR LF   1498        <xsl: attribute  name="name "> CR LF
1478         <xsl :text>wwfo otnote_inl ine_</xsl: text> CR LF   1499         <xsl :text>wwfo otnote_inl ine_</xsl: text> CR LF
1479         <xsl :value-of  select="$V arContext/ @id" /> CR LF   1500         <xsl :value-of  select="$V arContext/ @id" /> CR LF
1480        </xsl :attribute > CR LF   1501        </xsl :attribute > CR LF
1481        <xsl: attribute  name="href "> CR LF   1502        <xsl: attribute  name="href "> CR LF
1482         <xsl :text>#</x sl:text> CR LF   1503         <xsl :text>#</x sl:text> CR LF
1483         <xsl :value-of  select="$V arContext/ @id" /> CR LF   1504         <xsl :value-of  select="$V arContext/ @id" /> CR LF
1484        </xsl :attribute > CR LF   1505        </xsl :attribute > CR LF
1485   CR LF   1506   CR LF
1486        <xsl: value-of s elect="$Va rNoteNumbe r" /> CR LF   1507        <xsl: value-of s elect="$Va rNoteNumbe r" /> CR LF
1487       </html :a> CR LF   1508       </html :a> CR LF
1488      </html: sup> CR LF   1509      </html: sup> CR LF
1489     </xsl:fo r-each> CR LF   1510     </xsl:fo r-each> CR LF
1490    </xsl:tem plate> CR LF   1511    </xsl:tem plate> CR LF
1491   CR LF   1512   CR LF
1492   CR LF   1513   CR LF
1493    <xsl:temp late match ="wwdoc:Li neBreak" m ode="wwmod e:textrun" > CR LF   1514    <xsl:temp late match ="wwdoc:Li neBreak" m ode="wwmod e:textrun" > CR LF
1494     <xsl:par am name="P aramSplits " /> CR LF   1515     <xsl:par am name="P aramSplits " /> CR LF
1495     <xsl:par am name="P aramCargo"  /> CR LF   1516     <xsl:par am name="P aramCargo"  /> CR LF
1496     <xsl:par am name="P aramLinks"  /> CR LF   1517     <xsl:par am name="P aramLinks"  /> CR LF
1497     <xsl:par am name="P aramSplit"  /> CR LF   1518     <xsl:par am name="P aramSplit"  /> CR LF
1498   CR LF   1519   CR LF
1499     <html:br  /> CR LF   1520     <html:br  /> CR LF
1500    </xsl:tem plate> CR LF   1521    </xsl:tem plate> CR LF
1501   CR LF   1522   CR LF
1502   CR LF   1523   CR LF
1503    <xsl:temp late match ="wwdoc:In dexMarker"  mode="wwm ode:textru n"> CR LF   1524    <xsl:temp late match ="wwdoc:In dexMarker"  mode="wwm ode:textru n"> CR LF
1504     <xsl:par am name="P aramSplits " /> CR LF   1525     <xsl:par am name="P aramSplits " /> CR LF
1505     <xsl:par am name="P aramCargo"  /> CR LF   1526     <xsl:par am name="P aramCargo"  /> CR LF
1506     <xsl:par am name="P aramLinks"  /> CR LF   1527     <xsl:par am name="P aramLinks"  /> CR LF
1507     <xsl:par am name="P aramSplit"  /> CR LF   1528     <xsl:par am name="P aramSplit"  /> CR LF
1508   CR LF   1529   CR LF
1509     <!-- Ign ore index  markers -- > CR LF   1530     <!-- Ign ore index  markers -- > CR LF
1510     <!--                        -- > CR LF   1531     <!--                        -- > CR LF
1511    </xsl:tem plate> CR LF   1532    </xsl:tem plate> CR LF
1512   CR LF   1533   CR LF
1513   CR LF   1534   CR LF
1514    <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:t extrun"> CR LF   1535    <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:t extrun"> CR LF
1515     <xsl:par am name="P aramSplits " /> CR LF   1536     <xsl:par am name="P aramSplits " /> CR LF
1516     <xsl:par am name="P aramCargo"  /> CR LF   1537     <xsl:par am name="P aramCargo"  /> CR LF
1517     <xsl:par am name="P aramLinks"  /> CR LF   1538     <xsl:par am name="P aramLinks"  /> CR LF
1518     <xsl:par am name="P aramSplit"  /> CR LF   1539     <xsl:par am name="P aramSplit"  /> CR LF
1519   CR LF   1540   CR LF
1520      <!--  Igno r e  marker s  --> CR LF   1541     <xsl:var iable name ="VarMarke r" select= "." /> CR LF
1521      <!--                 
--> CR LF
  1542   CR LF
    1543      <!--  Pass-th r ough  marker ?  --> CR LF
    1544      <!--                         --> CR LF
    1545     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF
    1546      <xsl:va riable nam e="VarMark erBehavior " select=" key('wwbeh aviors-mar kers-by-id ', $VarMar ker/@id)[1 ]" /> CR LF
    1547   CR LF
    1548      <xsl:if  test="$Va rMarkerBeh avior/@beh avior = 'p ass-throug h'"> CR LF
    1549       <!-- P ass-throug h --> CR LF
    1550       <!--                --> CR LF
    1551       <xsl:f or-each se lect="$Var Marker/wwd oc:TextRun "> CR LF
    1552        <xsl: variable n ame="VarTe xtRun" sel ect="." /> CR LF
    1553   CR LF
    1554        <xsl: call-templ ate name=" TextRun-Pa ssThrough" > CR LF
    1555         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> CR LF
    1556        </xsl :call-temp late> CR LF
    1557       </xsl: for-each> CR LF
    1558      </xsl:i f> CR LF
    1559     </xsl:fo r-each> CR LF
1522    </xsl:tem plate> CR LF   1560    </xsl:tem plate> CR LF
1523   CR LF   1561   CR LF
1524   CR LF   1562   CR LF
1525    <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex trun"> CR LF   1563    <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex trun"> CR LF
1526     <xsl:par am name="P aramSplits " /> CR LF   1564     <xsl:par am name="P aramSplits " /> CR LF
1527     <xsl:par am name="P aramCargo"  /> CR LF   1565     <xsl:par am name="P aramCargo"  /> CR LF
1528     <xsl:par am name="P aramLinks"  /> CR LF   1566     <xsl:par am name="P aramLinks"  /> CR LF
1529     <xsl:par am name="P aramSplit"  /> CR LF   1567     <xsl:par am name="P aramSplit"  /> CR LF
1530   CR LF   1568   CR LF
1531     <xsl:val ue-of sele ct="@value " /> CR LF   1569     <xsl:val ue-of sele ct="@value " /> CR LF
1532    </xsl:tem plate> CR LF   1570    </xsl:tem plate> CR LF
1533   CR LF   1571   CR LF
1534   CR LF   1572   CR LF
1535    <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:co ntent"> CR LF   1573    <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:co ntent"> CR LF
1536     <xsl:par am name="P aramSplits " /> CR LF   1574     <xsl:par am name="P aramSplits " /> CR LF
1537     <xsl:par am name="P aramCargo"  /> CR LF   1575     <xsl:par am name="P aramCargo"  /> CR LF
1538     <xsl:par am name="P aramLinks"  /> CR LF   1576     <xsl:par am name="P aramLinks"  /> CR LF
1539     <xsl:par am name="P aramTOCDat a" /> CR LF   1577     <xsl:par am name="P aramTOCDat a" /> CR LF
1540     <xsl:par am name="P aramSplit"  /> CR LF   1578     <xsl:par am name="P aramSplit"  /> CR LF
1541   CR LF   1579   CR LF
1542     <xsl:var iable name ="VarTable " select=" ." /> CR LF   1580     <xsl:var iable name ="VarTable " select=" ." /> CR LF
1543   CR LF   1581   CR LF
1544     <!-- Abo rted? --> CR LF   1582     <!-- Abo rted? --> CR LF
1545     <!--           --> CR LF   1583     <!--           --> CR LF
1546     <xsl:if  test="not( wwprogress :Abort())" > CR LF   1584     <xsl:if  test="not( wwprogress :Abort())" > CR LF
1547      <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   1585      <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
1548      <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   1586      <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
1549      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF   1587      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF
1550      <xsl:if  test="$Va rGenerateO utput"> CR LF   1588      <xsl:if  test="$Va rGenerateO utput"> CR LF
1551   CR LF   1589   CR LF
1552       <!-- G et behavio r --> CR LF   1590       <!-- G et behavio r --> CR LF
1553       <!--                --> CR LF   1591       <!--                --> CR LF
1554       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF   1592       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF
1555        <xsl: variable n ame="VarTa bleBehavio r" select= "key('wwbe haviors-ta bles-by-id ', $VarTab le/@id)[1] " /> CR LF   1593        <xsl: variable n ame="VarTa bleBehavio r" select= "key('wwbe haviors-ta bles-by-id ', $VarTab le/@id)[1] " /> CR LF
1556   CR LF   1594   CR LF
1557        <!--  Table --> CR LF   1595        <!--  Table --> CR LF
1558        <!--        --> CR LF   1596        <!--        --> CR LF
1559        <xsl: call-templ ate name=" Table"> CR LF   1597        <xsl: call-templ ate name=" Table"> CR LF
1560         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1598         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1561         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1599         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1562         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1600         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1563         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF   1601         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF
1564         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1602         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1565         <xsl :with-para m name="Pa ramTable"  select="$V arTable" / > CR LF   1603         <xsl :with-para m name="Pa ramTable"  select="$V arTable" / > CR LF
1566         <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" /> CR LF   1604         <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" /> CR LF
1567         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$VarO verrideRul e" /> CR LF   1605         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$VarO verrideRul e" /> CR LF
1568         <xsl :with-para m name="Pa ramTableBe havior" se lect="$Var TableBehav ior" /> CR LF   1606         <xsl :with-para m name="Pa ramTableBe havior" se lect="$Var TableBehav ior" /> CR LF
1569        </xsl :call-temp late> CR LF   1607        </xsl :call-temp late> CR LF
1570       </xsl: for-each> CR LF   1608       </xsl: for-each> CR LF
1571      </xsl:i f> CR LF   1609      </xsl:i f> CR LF
1572     </xsl:if > CR LF   1610     </xsl:if > CR LF
1573    </xsl:tem plate> CR LF   1611    </xsl:tem plate> CR LF
1574   CR LF   1612   CR LF
1575   CR LF   1613   CR LF
1576    <xsl:temp late name= "Table-Att ribute-In- Pixels"> CR LF   1614    <xsl:temp late name= "Table-Att ribute-In- Pixels"> CR LF
1577     <xsl:par am name="P aramValue"  /> CR LF   1615     <xsl:par am name="P aramValue"  /> CR LF
1578   CR LF   1616   CR LF
1579     <xsl:cho ose> CR LF   1617     <xsl:cho ose> CR LF
1580      <xsl:wh en test="s tring-leng th($ParamV alue) &gt;  0"> CR LF   1618      <xsl:wh en test="s tring-leng th($ParamV alue) &gt;  0"> CR LF
1581       <!-- N ormalize v alue for H TML attrib ute--> CR LF   1619       <!-- N ormalize v alue for H TML attrib ute--> CR LF
1582       <!--                                       --> CR LF   1620       <!--                                       --> CR LF
1583       <xsl:v ariable na me="VarVal ueToEmit"> CR LF   1621       <xsl:v ariable na me="VarVal ueToEmit"> CR LF
1584        <xsl: variable n ame="VarUn itsSuffix"  select="w wunits:Uni tsSuffix($ ParamValue )" /> CR LF   1622        <xsl: variable n ame="VarUn itsSuffix"  select="w wunits:Uni tsSuffix($ ParamValue )" /> CR LF
1585   CR LF   1623   CR LF
1586        <xsl: choose> CR LF   1624        <xsl: choose> CR LF
1587         <xsl :when test ="string-l ength($Var UnitsSuffi x) &gt; 0" > CR LF   1625         <xsl :when test ="string-l ength($Var UnitsSuffi x) &gt; 0" > CR LF
1588          <xs l:variable  name="Var NumPrefix"  select="w wunits:Num ericPrefix ($ParamVal ue)" /> CR LF   1626          <xs l:variable  name="Var NumPrefix"  select="w wunits:Num ericPrefix ($ParamVal ue)" /> CR LF
1589   CR LF   1627   CR LF
1590          <xs l:value-of  select="w wunits:Con vert($VarN umPrefix,  $VarUnitsS uffix, 'px ')" /> CR LF   1628          <xs l:value-of  select="w wunits:Con vert($VarN umPrefix,  $VarUnitsS uffix, 'px ')" /> CR LF
1591         </xs l:when> CR LF   1629         </xs l:when> CR LF
1592   CR LF   1630   CR LF
1593         <xsl :otherwise > CR LF   1631         <xsl :otherwise > CR LF
1594          <xs l:value-of  select="$ ParamValue " /> CR LF   1632          <xs l:value-of  select="$ ParamValue " /> CR LF
1595         </xs l:otherwis e> CR LF   1633         </xs l:otherwis e> CR LF
1596        </xsl :choose> CR LF   1634        </xsl :choose> CR LF
1597       </xsl: variable> CR LF   1635       </xsl: variable> CR LF
1598   CR LF   1636   CR LF
1599       <xsl:v alue-of se lect="$Var ValueToEmi t" /> CR LF   1637       <xsl:v alue-of se lect="$Var ValueToEmi t" /> CR LF
1600      </xsl:w hen> CR LF   1638      </xsl:w hen> CR LF
1601   CR LF   1639   CR LF
1602      <xsl:ot herwise> CR LF   1640      <xsl:ot herwise> CR LF
1603       <xsl:v alue-of se lect="''"  /> CR LF   1641       <xsl:v alue-of se lect="''"  /> CR LF
1604      </xsl:o therwise> CR LF   1642      </xsl:o therwise> CR LF
1605     </xsl:ch oose> CR LF   1643     </xsl:ch oose> CR LF
1606    </xsl:tem plate> CR LF   1644    </xsl:tem plate> CR LF
1607   CR LF   1645   CR LF
1608   CR LF   1646   CR LF
1609    <xsl:temp late name= "Table"> CR LF   1647    <xsl:temp late name= "Table"> CR LF
1610     <xsl:par am name="P aramSplits " /> CR LF   1648     <xsl:par am name="P aramSplits " /> CR LF
1611     <xsl:par am name="P aramCargo"  /> CR LF   1649     <xsl:par am name="P aramCargo"  /> CR LF
1612     <xsl:par am name="P aramLinks"  /> CR LF   1650     <xsl:par am name="P aramLinks"  /> CR LF
1613     <xsl:par am name="P aramTOCDat a" /> CR LF   1651     <xsl:par am name="P aramTOCDat a" /> CR LF
1614     <xsl:par am name="P aramSplit"  /> CR LF   1652     <xsl:par am name="P aramSplit"  /> CR LF
1615     <xsl:par am name="P aramTable"  /> CR LF   1653     <xsl:par am name="P aramTable"  /> CR LF
1616     <xsl:par am name="P aramStyleN ame" /> CR LF   1654     <xsl:par am name="P aramStyleN ame" /> CR LF
1617     <xsl:par am name="P aramOverri deRule" /> CR LF   1655     <xsl:par am name="P aramOverri deRule" /> CR LF
1618     <xsl:par am name="P aramTableB ehavior" / > CR LF   1656     <xsl:par am name="P aramTableB ehavior" / > CR LF
1619   CR LF   1657   CR LF
1620     <!-- Not es --> CR LF   1658     <!-- Not es --> CR LF
1621     <!--        --> CR LF   1659     <!--        --> CR LF
1622     <xsl:var iable name ="VarNotes " select=" $ParamTabl e//wwdoc:N ote[not(an cestor::ww doc:Frame) ]" /> CR LF   1660     <xsl:var iable name ="VarNotes " select=" $ParamTabl e//wwdoc:N ote[not(an cestor::ww doc:Frame) ]" /> CR LF
1623   CR LF   1661   CR LF
1624     <!-- Not e numberin g --> CR LF   1662     <!-- Not e numberin g --> CR LF
1625     <!--                  --> CR LF   1663     <!--                  --> CR LF
1626     <xsl:var iable name ="VarNoteN umberingAs XML"> CR LF   1664     <xsl:var iable name ="VarNoteN umberingAs XML"> CR LF
1627      <xsl:ca ll-templat e name="No tes-Number "> CR LF   1665      <xsl:ca ll-templat e name="No tes-Number "> CR LF
1628       <xsl:w ith-param  name="Para mNotes" se lect="$Var Notes" /> CR LF   1666       <xsl:w ith-param  name="Para mNotes" se lect="$Var Notes" /> CR LF
1629      </xsl:c all-templa te> CR LF   1667      </xsl:c all-templa te> CR LF
1630     </xsl:va riable> CR LF   1668     </xsl:va riable> CR LF
1631     <xsl:var iable name ="VarNoteN umbering"  select="ms xsl:node-s et($VarNot eNumbering AsXML)" /> CR LF   1669     <xsl:var iable name ="VarNoteN umbering"  select="ms xsl:node-s et($VarNot eNumbering AsXML)" /> CR LF
1632   CR LF   1670   CR LF
1633     <!-- Car go for rec ursion --> CR LF   1671     <!-- Car go for rec ursion --> CR LF
1634     <!--                       --> CR LF   1672     <!--                       --> CR LF
1635     <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() !=  'NoteNumbe ring']/..  | $VarNote Numbering"  /> CR LF   1673     <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() !=  'NoteNumbe ring']/..  | $VarNote Numbering"  /> CR LF
1636   CR LF   1674   CR LF
1637     <!-- Res olve proje ct propert ies --> CR LF   1675     <!-- Res olve proje ct propert ies --> CR LF
1638     <!--                               --> CR LF   1676     <!--                               --> CR LF
1639     <xsl:var iable name ="VarResol vedPropert iesAsXML"> CR LF   1677     <xsl:var iable name ="VarResol vedPropert iesAsXML"> CR LF
1640      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> CR LF   1678      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> CR LF
1641       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF   1679       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF
1642       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> CR LF   1680       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> CR LF
1643      </xsl:c all-templa te> CR LF   1681      </xsl:c all-templa te> CR LF
1644     </xsl:va riable> CR LF   1682     </xsl:va riable> CR LF
1645     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> CR LF   1683     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> CR LF
1646   CR LF   1684   CR LF
1647     <!-- CSS  propertie s --> CR LF   1685     <!-- CSS  propertie s --> CR LF
1648     <!--                  --> CR LF   1686     <!--                  --> CR LF
1649     <xsl:var iable name ="VarCSSPr opertiesAs XML"> CR LF   1687     <xsl:var iable name ="VarCSSPr opertiesAs XML"> CR LF
1650      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF   1688      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF
1651       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" /> CR LF   1689       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" /> CR LF
1652       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF   1690       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF
1653       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   1691       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
1654      </xsl:c all-templa te> CR LF   1692      </xsl:c all-templa te> CR LF
1655     </xsl:va riable> CR LF   1693     </xsl:va riable> CR LF
1656     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> CR LF   1694     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> CR LF
1657   CR LF   1695   CR LF
1658     <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   1696     <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
1659   CR LF   1697   CR LF
1660     <!-- Res olve proje ct propert ies --> CR LF   1698     <!-- Res olve proje ct propert ies --> CR LF
1661     <!--                               --> CR LF   1699     <!--                               --> CR LF
1662     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF   1700     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF
1663      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF   1701      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF
1664       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amTable" / > CR LF   1702       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amTable" / > CR LF
1665       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF   1703       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF
1666       <xsl:w ith-param  name="Para mStyleName " select=" $ParamTabl e/@stylena me" /> CR LF   1704       <xsl:w ith-param  name="Para mStyleName " select=" $ParamTabl e/@stylena me" /> CR LF
1667       <xsl:w ith-param  name="Para mStyleType " select=" 'Table'" / > CR LF   1705       <xsl:w ith-param  name="Para mStyleType " select=" 'Table'" / > CR LF
1668       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> CR LF   1706       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> CR LF
1669      </xsl:c all-templa te> CR LF   1707      </xsl:c all-templa te> CR LF
1670     </xsl:va riable> CR LF   1708     </xsl:va riable> CR LF
1671     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF   1709     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF
1672   CR LF   1710   CR LF
1673     <!-- Tab le class - -> CR LF   1711     <!-- Tab le class - -> CR LF
1674     <!--              - -> CR LF   1712     <!--              - -> CR LF
1675     <xsl:var iable name ="VarClass Attribute" > CR LF   1713     <xsl:var iable name ="VarClass Attribute" > CR LF
1676      <xsl:va lue-of sel ect="wwstr ing:OEBCla ssName($Pa ramStyleNa me)" /> CR LF   1714      <xsl:va lue-of sel ect="wwstr ing:OEBCla ssName($Pa ramStyleNa me)" /> CR LF
1677     </xsl:va riable> CR LF   1715     </xsl:va riable> CR LF
1678   CR LF   1716   CR LF
1679     <!-- Sty le attribu te --> CR LF   1717     <!-- Sty le attribu te --> CR LF
1680     <!--                   --> CR LF   1718     <!--                   --> CR LF
1681     <xsl:var iable name ="VarStyle Attribute" > CR LF   1719     <xsl:var iable name ="VarStyle Attribute" > CR LF
1682      <xsl:ca ll-templat e name="CS S-InlinePr operties"> CR LF   1720      <xsl:ca ll-templat e name="CS S-InlinePr operties"> CR LF
1683       <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties[( @Name != ' vertical-a lign')]" / > CR LF   1721       <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties[( @Name != ' vertical-a lign')]" / > CR LF
1684      </xsl:c all-templa te> CR LF   1722      </xsl:c all-templa te> CR LF
1685     </xsl:va riable> CR LF   1723     </xsl:va riable> CR LF
1686   CR LF   1724   CR LF
1687     <!-- Bor der --> CR LF   1725     <!-- Bor der --> CR LF
1688     <!--         --> CR LF   1726     <!--         --> CR LF
1689     <xsl:var iable name ="VarTable Border"> CR LF   1727     <xsl:var iable name ="VarTable Border"> CR LF
1690      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF   1728      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF
1691       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'borde r']/@Value " /> CR LF   1729       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'borde r']/@Value " /> CR LF
1692      </xsl:c all-templa te> CR LF   1730      </xsl:c all-templa te> CR LF
1693     </xsl:va riable> CR LF   1731     </xsl:va riable> CR LF
1694   CR LF   1732   CR LF
1695     <!-- Cel l padding  --> CR LF   1733     <!-- Cel l padding  --> CR LF
1696     <!--                --> CR LF   1734     <!--                --> CR LF
1697     <xsl:var iable name ="VarTable CellPaddin g"> CR LF   1735     <xsl:var iable name ="VarTable CellPaddin g"> CR LF
1698      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF   1736      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF
1699       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- padding']/ @Value" /> CR LF   1737       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- padding']/ @Value" /> CR LF
1700      </xsl:c all-templa te> CR LF   1738      </xsl:c all-templa te> CR LF
1701     </xsl:va riable> CR LF   1739     </xsl:va riable> CR LF
1702   CR LF   1740   CR LF
1703     <!-- Cel l spacing  --> CR LF   1741     <!-- Cel l spacing  --> CR LF
1704     <!--                --> CR LF   1742     <!--                --> CR LF
1705     <xsl:var iable name ="VarTable CellSpacin g"> CR LF   1743     <xsl:var iable name ="VarTable CellSpacin g"> CR LF
1706      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF   1744      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF
1707       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- spacing']/ @Value" /> CR LF   1745       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- spacing']/ @Value" /> CR LF
1708      </xsl:c all-templa te> CR LF   1746      </xsl:c all-templa te> CR LF
1709     </xsl:va riable> CR LF   1747     </xsl:va riable> CR LF
1710   CR LF   1748   CR LF
1711     <!-- Tab le vertica l alignmen t --> CR LF   1749     <!-- Tab le vertica l alignmen t --> CR LF
1712     <!--                             --> CR LF   1750     <!--                             --> CR LF
1713     <xsl:var iable name ="VarTable VerticalAl ignment"> CR LF   1751     <xsl:var iable name ="VarTable VerticalAl ignment"> CR LF
1714      <xsl:va riable nam e="VarTabl eVerticalA lignmentHi nt" select ="$VarReso lvedContex tPropertie s[@Name =  'vertical- align']/@V alue" /> CR LF   1752      <xsl:va riable nam e="VarTabl eVerticalA lignmentHi nt" select ="$VarReso lvedContex tPropertie s[@Name =  'vertical- align']/@V alue" /> CR LF
1715      <xsl:ch oose> CR LF   1753      <xsl:ch oose> CR LF
1716       <xsl:w hen test=" string-len gth($VarTa bleVertica lAlignment Hint) &gt;  0"> CR LF   1754       <xsl:w hen test=" string-len gth($VarTa bleVertica lAlignment Hint) &gt;  0"> CR LF
1717        <xsl: value-of s elect="$Va rTableVert icalAlignm entHint" / > CR LF   1755        <xsl: value-of s elect="$Va rTableVert icalAlignm entHint" / > CR LF
1718       </xsl: when> CR LF   1756       </xsl: when> CR LF
1719       <xsl:o therwise> CR LF   1757       <xsl:o therwise> CR LF
1720        <xsl: value-of s elect="''"  /> CR LF   1758        <xsl: value-of s elect="''"  /> CR LF
1721       </xsl: otherwise> CR LF   1759       </xsl: otherwise> CR LF
1722      </xsl:c hoose> CR LF   1760      </xsl:c hoose> CR LF
1723     </xsl:va riable> CR LF   1761     </xsl:va riable> CR LF
1724   CR LF   1762   CR LF
1725     <!-- Tab le summary  --> CR LF   1763     <!-- Tab le summary  --> CR LF
1726     <!--                 --> CR LF   1764     <!--                 --> CR LF
1727     <xsl:var iable name ="VarTable Summary"> CR LF   1765     <xsl:var iable name ="VarTable Summary"> CR LF
1728      <xsl:ca ll-templat e name="Ta bles-Summa ry"> CR LF   1766      <xsl:ca ll-templat e name="Ta bles-Summa ry"> CR LF
1729       <xsl:w ith-param  name="Para mTableBeha vior" sele ct="$Param TableBehav ior" /> CR LF   1767       <xsl:w ith-param  name="Para mTableBeha vior" sele ct="$Param TableBehav ior" /> CR LF
1730      </xsl:c all-templa te> CR LF   1768      </xsl:c all-templa te> CR LF
1731     </xsl:va riable> CR LF   1769     </xsl:va riable> CR LF
1732   CR LF   1770   CR LF
1733     <!-- Cap tion Side  --> CR LF   1771     <!-- Cap tion Side  --> CR LF
1734     <!--                --> CR LF   1772     <!--                --> CR LF
1735     <xsl:var iable name ="VarCapti onSide"> CR LF   1773     <xsl:var iable name ="VarCapti onSide"> CR LF
1736      <xsl:va lue-of sel ect="$VarR esolvedCon textProper ties[@Name  = 'captio n-side']/@ Value" /> CR LF   1774      <xsl:va lue-of sel ect="$VarR esolvedCon textProper ties[@Name  = 'captio n-side']/@ Value" /> CR LF
1737     </xsl:va riable> CR LF   1775     </xsl:va riable> CR LF
1738   CR LF   1776   CR LF
1739     <!-- Det ermine tab le cell wi dths --> CR LF   1777     <!-- Det ermine tab le cell wi dths --> CR LF
1740     <!--                                --> CR LF   1778     <!--                                --> CR LF
1741     <xsl:var iable name ="VarTable CellWidths AsXML"> CR LF   1779     <xsl:var iable name ="VarTable CellWidths AsXML"> CR LF
1742      <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   1780      <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
1743      <xsl:va riable nam e="VarEmit TableWidth s" select= "$VarEmitT ableWidths Option = ' true'" /> CR LF   1781      <xsl:va riable nam e="VarEmit TableWidth s" select= "$VarEmitT ableWidths Option = ' true'" /> CR LF
1744   CR LF   1782   CR LF
1745      <xsl:if  test="$Va rEmitTable Widths"> CR LF   1783      <xsl:if  test="$Va rEmitTable Widths"> CR LF
1746       <xsl:c all-templa te name="T able-CellW idths"> CR LF   1784       <xsl:c all-templa te name="T able-CellW idths"> CR LF
1747        <xsl: with-param  name="Par amTable" s elect="$Pa ramTable"  /> CR LF   1785        <xsl: with-param  name="Par amTable" s elect="$Pa ramTable"  /> CR LF
1748       </xsl: call-templ ate> CR LF   1786       </xsl: call-templ ate> CR LF
1749      </xsl:i f> CR LF   1787      </xsl:i f> CR LF
1750     </xsl:va riable> CR LF   1788     </xsl:va riable> CR LF
1751     <xsl:var iable name ="VarTable CellWidths " select=" msxsl:node -set($VarT ableCellWi dthsAsXML) /*" /> CR LF   1789     <xsl:var iable name ="VarTable CellWidths " select=" msxsl:node -set($VarT ableCellWi dthsAsXML) /*" /> CR LF
1752   CR LF   1790   CR LF
1753     <!-- Emi t <table>  element wi th class,  style, and  summary a ttrs. --> CR LF   1791     <!-- Emi t <table>  element wi th class,  style, and  summary a ttrs. --> CR LF
1754     <!--                                                                       --> CR LF   1792     <!--                                                                       --> CR LF
1755     <html:ta ble class= "{$VarClas sAttribute }" style=" border: so lid"> CR LF   1793     <html:ta ble class= "{$VarClas sAttribute }" style=" border: so lid"> CR LF
1756   CR LF   1794   CR LF
1757      <!-- st yle attrib ute --> CR LF   1795      <!-- st yle attrib ute --> CR LF
1758      <!--                   --> CR LF   1796      <!--                   --> CR LF
1759      <xsl:if  test="str ing-length ($VarStyle Attribute)  &gt; 0"> CR LF   1797      <xsl:if  test="str ing-length ($VarStyle Attribute)  &gt; 0"> CR LF
1760       <xsl:a ttribute n ame="style "> CR LF   1798       <xsl:a ttribute n ame="style "> CR LF
1761        <xsl: value-of s elect="$Va rStyleAttr ibute" /> CR LF   1799        <xsl: value-of s elect="$Va rStyleAttr ibute" /> CR LF
1762       </xsl: attribute> CR LF   1800       </xsl: attribute> CR LF
1763      </xsl:i f> CR LF   1801      </xsl:i f> CR LF
1764   CR LF   1802   CR LF
1765      <!-- bo rder attri bute --> CR LF   1803      <!-- bo rder attri bute --> CR LF
1766      <!--                    --> CR LF   1804      <!--                    --> CR LF
1767      <xsl:if  test="str ing-length ($VarTable Border) &g t; 0"> CR LF   1805      <xsl:if  test="str ing-length ($VarTable Border) &g t; 0"> CR LF
1768       <xsl:a ttribute n ame="borde r"> CR LF   1806       <xsl:a ttribute n ame="borde r"> CR LF
1769        <xsl: value-of s elect="$Va rTableBord er" /> CR LF   1807        <xsl: value-of s elect="$Va rTableBord er" /> CR LF
1770       </xsl: attribute> CR LF   1808       </xsl: attribute> CR LF
1771      </xsl:i f> CR LF   1809      </xsl:i f> CR LF
1772   CR LF   1810   CR LF
1773      <!-- ce llpadding  attribute  --> CR LF   1811      <!-- ce llpadding  attribute  --> CR LF
1774      <!--                          --> CR LF   1812      <!--                          --> CR LF
1775      <xsl:if  test="str ing-length ($VarTable CellPaddin g) &gt; 0" > CR LF   1813      <xsl:if  test="str ing-length ($VarTable CellPaddin g) &gt; 0" > CR LF
1776       <xsl:a ttribute n ame="cellp adding"> CR LF   1814       <xsl:a ttribute n ame="cellp adding"> CR LF
1777        <xsl: value-of s elect="$Va rTableCell Padding" / > CR LF   1815        <xsl: value-of s elect="$Va rTableCell Padding" / > CR LF
1778       </xsl: attribute> CR LF   1816       </xsl: attribute> CR LF
1779      </xsl:i f> CR LF   1817      </xsl:i f> CR LF
1780   CR LF   1818   CR LF
1781      <!-- ce llspacing  attribute  --> CR LF   1819      <!-- ce llspacing  attribute  --> CR LF
1782      <!--                          --> CR LF   1820      <!--                          --> CR LF
1783      <xsl:if  test="str ing-length ($VarTable CellSpacin g) &gt; 0" > CR LF   1821      <xsl:if  test="str ing-length ($VarTable CellSpacin g) &gt; 0" > CR LF
1784       <xsl:a ttribute n ame="cells pacing"> CR LF   1822       <xsl:a ttribute n ame="cells pacing"> CR LF
1785        <xsl: value-of s elect="$Va rTableCell Spacing" / > CR LF   1823        <xsl: value-of s elect="$Va rTableCell Spacing" / > CR LF
1786       </xsl: attribute> CR LF   1824       </xsl: attribute> CR LF
1787      </xsl:i f> CR LF   1825      </xsl:i f> CR LF
1788   CR LF   1826   CR LF
1789      <!-- su mmary attr ibute --> CR LF   1827      <!-- su mmary attr ibute --> CR LF
1790      <!--                     --> CR LF   1828      <!--                     --> CR LF
1791      <xsl:at tribute na me="summar y"> CR LF   1829      <xsl:at tribute na me="summar y"> CR LF
1792       <xsl:v alue-of se lect="$Var TableSumma ry" /> CR LF   1830       <xsl:v alue-of se lect="$Var TableSumma ry" /> CR LF
1793      </xsl:a ttribute> CR LF   1831      </xsl:a ttribute> CR LF
1794   CR LF   1832   CR LF
1795      <!-- Ap ply captio n template s --> CR LF   1833      <!-- Ap ply captio n template s --> CR LF
1796      <!--                            --> CR LF   1834      <!--                            --> CR LF
1797      <xsl:fo r-each sel ect="$Para mTable/wwd oc:Caption [1]"> CR LF   1835      <xsl:fo r-each sel ect="$Para mTable/wwd oc:Caption [1]"> CR LF
1798       <html: caption> CR LF   1836       <html: caption> CR LF
1799   CR LF   1837   CR LF
1800        <xsl: if test="s tring-leng th($VarCap tionSide)  &gt; 0"> CR LF   1838        <xsl: if test="s tring-leng th($VarCap tionSide)  &gt; 0"> CR LF
1801         <xsl :attribute  name="sty le"> CR LF   1839         <xsl :attribute  name="sty le"> CR LF
1802          <xs l:text>cap tion-side:  </xsl:tex t> CR LF   1840          <xs l:text>cap tion-side:  </xsl:tex t> CR LF
1803          <xs l:value-of  select="$ VarCaption Side" /> CR LF   1841          <xs l:value-of  select="$ VarCaption Side" /> CR LF
1804         </xs l:attribut e> CR LF   1842         </xs l:attribut e> CR LF
1805        </xsl :if> CR LF   1843        </xsl :if> CR LF
1806   CR LF   1844   CR LF
1807        <xsl: apply-temp lates sele ct="./*" m ode="wwmod e:content" > CR LF   1845        <xsl: apply-temp lates sele ct="./*" m ode="wwmod e:content" > CR LF
1808         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1846         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1809         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1847         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1810         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1848         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1811         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF   1849         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF
1812         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1850         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1813        </xsl :apply-tem plates> CR LF   1851        </xsl :apply-tem plates> CR LF
1814   CR LF   1852   CR LF
1815       </html :caption> CR LF   1853       </html :caption> CR LF
1816      </xsl:f or-each> CR LF   1854      </xsl:f or-each> CR LF
1817   CR LF   1855   CR LF
1818      <xsl:fo r-each sel ect="$Para mTable/wwd oc:TableHe ad|$ParamT able/wwdoc :TableBody |$ParamTab le/wwdoc:T ableFoot"> CR LF   1856      <xsl:fo r-each sel ect="$Para mTable/wwd oc:TableHe ad|$ParamT able/wwdoc :TableBody |$ParamTab le/wwdoc:T ableFoot"> CR LF
1819       <xsl:v ariable na me="VarSec tion" sele ct="." /> CR LF   1857       <xsl:v ariable na me="VarSec tion" sele ct="." /> CR LF
1820   CR LF   1858   CR LF
1821       <!-- R esolve sec tion prope rties --> CR LF   1859       <!-- R esolve sec tion prope rties --> CR LF
1822       <!--                               --> CR LF   1860       <!--                               --> CR LF
1823       <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML"> CR LF   1861       <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML"> CR LF
1824        <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule"> CR LF   1862        <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule"> CR LF
1825         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property"  /> CR LF   1863         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property"  /> CR LF
1826         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramTable"  /> CR LF   1864         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramTable"  /> CR LF
1827         <xsl :with-para m name="Pa ramTable"  select="$P aramTable"  /> CR LF   1865         <xsl :with-para m name="Pa ramTable"  select="$P aramTable"  /> CR LF
1828         <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" /> CR LF   1866         <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" /> CR LF
1829        </xsl :call-temp late> CR LF   1867        </xsl :call-temp late> CR LF
1830       </xsl: variable> CR LF   1868       </xsl: variable> CR LF
1831       <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   1869       <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
1832   CR LF   1870   CR LF
1833       <!-- P rocess sec tion rows  --> CR LF   1871       <!-- P rocess sec tion rows  --> CR LF
1834       <!--                         --> CR LF   1872       <!--                         --> CR LF
1835       <xsl:f or-each se lect="$Var Section/ww doc:TableR ow"> CR LF   1873       <xsl:f or-each se lect="$Var Section/ww doc:TableR ow"> CR LF
1836        <xsl: variable n ame="VarTa bleRow" se lect="." / > CR LF   1874        <xsl: variable n ame="VarTa bleRow" se lect="." / > CR LF
1837        <xsl: variable n ame="VarRo wPosition"  select="p osition()"  /> CR LF   1875        <xsl: variable n ame="VarRo wPosition"  select="p osition()"  /> CR LF
1838   CR LF   1876   CR LF
1839        <html :tr> CR LF   1877        <html :tr> CR LF
1840   CR LF   1878   CR LF
1841         <!--  Handle ta ble level  vertical a lign at ro w level -- > CR LF   1879         <!--  Handle ta ble level  vertical a lign at ro w level -- > CR LF
1842         <!--                                                     -- > CR LF   1880         <!--                                                     -- > CR LF
1843         <xsl :if test=" string-len gth($VarTa bleVertica lAlignment ) &gt; 0"> CR LF   1881         <xsl :if test=" string-len gth($VarTa bleVertica lAlignment ) &gt; 0"> CR LF
1844          <xs l:attribut e name="st yle"> CR LF   1882          <xs l:attribut e name="st yle"> CR LF
1845           <x sl:text>ve rtical-ali gn: </xsl: text> CR LF   1883           <x sl:text>ve rtical-ali gn: </xsl: text> CR LF
1846           <x sl:value-o f select=" $VarTableV erticalAli gnment" /> CR LF   1884           <x sl:value-o f select=" $VarTableV erticalAli gnment" /> CR LF
1847          </x sl:attribu te> CR LF   1885          </x sl:attribu te> CR LF
1848         </xs l:if> CR LF   1886         </xs l:if> CR LF
1849   CR LF   1887   CR LF
1850         <xsl :for-each  select="$V arTableRow /wwdoc:Tab leCell"> CR LF   1888         <xsl :for-each  select="$V arTableRow /wwdoc:Tab leCell"> CR LF
1851          <xs l:variable  name="Var TableCell"  select=". " /> CR LF   1889          <xs l:variable  name="Var TableCell"  select=". " /> CR LF
1852          <xs l:variable  name="Var CellPositi on" select ="position ()" /> CR LF   1890          <xs l:variable  name="Var CellPositi on" select ="position ()" /> CR LF
1853   CR LF   1891   CR LF
1854          <!- - Resolve  cell prope rties --> CR LF   1892          <!- - Resolve  cell prope rties --> CR LF
1855          <!- -                           --> CR LF   1893          <!- -                           --> CR LF
1856          <xs l:variable  name="Var ResolvedCe llProperti esAsXML"> CR LF   1894          <xs l:variable  name="Var ResolvedCe llProperti esAsXML"> CR LF
1857           <x sl:call-te mplate nam e="Propert ies-Table- Cell-Resol veProperti es"> CR LF   1895           <x sl:call-te mplate nam e="Propert ies-Table- Cell-Resol veProperti es"> CR LF
1858            < xsl:with-p aram name= "ParamSect ionPropert ies" selec t="$VarRes olvedSecti onProperti es" /> CR LF   1896            < xsl:with-p aram name= "ParamSect ionPropert ies" selec t="$VarRes olvedSecti onProperti es" /> CR LF
1859            < xsl:with-p aram name= "ParamCell Style" sel ect="$VarT ableCell/w wdoc:Style " /> CR LF   1897            < xsl:with-p aram name= "ParamCell Style" sel ect="$VarT ableCell/w wdoc:Style " /> CR LF
1860            < xsl:with-p aram name= "ParamRowI ndex" sele ct="$VarRo wPosition"  /> CR LF   1898            < xsl:with-p aram name= "ParamRowI ndex" sele ct="$VarRo wPosition"  /> CR LF
1861            < xsl:with-p aram name= "ParamColu mnIndex" s elect="$Va rCellPosit ion" /> CR LF   1899            < xsl:with-p aram name= "ParamColu mnIndex" s elect="$Va rCellPosit ion" /> CR LF
1862           </ xsl:call-t emplate> CR LF   1900           </ xsl:call-t emplate> CR LF
1863   CR LF   1901   CR LF
1864           <! -- Width a ttribute - -> CR LF   1902           <! -- Width a ttribute - -> CR LF
1865           <! --                  - -> CR LF   1903           <! --                  - -> CR LF
1866           <x sl:for-eac h select=" $VarTableC ellWidths[ @id = $Var TableCell/ @id][1]"> CR LF   1904           <x sl:for-eac h select=" $VarTableC ellWidths[ @id = $Var TableCell/ @id][1]"> CR LF
1867            < xsl:variab le name="V arTableCel lWidth" se lect="." / > CR LF   1905            < xsl:variab le name="V arTableCel lWidth" se lect="." / > CR LF
1868   CR LF   1906   CR LF
1869            < wwproject: Property N ame="width " Value="{ $VarTableC ellWidth/@ width}" /> CR LF   1907            < wwproject: Property N ame="width " Value="{ $VarTableC ellWidth/@ width}" /> CR LF
1870           </ xsl:for-ea ch> CR LF   1908           </ xsl:for-ea ch> CR LF
1871          </x sl:variabl e> CR LF   1909          </x sl:variabl e> CR LF
1872          <xs l:variable  name="Var ResolvedCe llProperti es" select ="msxsl:no de-set($Va rResolvedC ellPropert iesAsXML)/ wwproject: Property"  /> CR LF   1910          <xs l:variable  name="Var ResolvedCe llProperti es" select ="msxsl:no de-set($Va rResolvedC ellPropert iesAsXML)/ wwproject: Property"  /> CR LF
1873   CR LF   1911   CR LF
1874          <!- - Valid CS S properti es --> CR LF   1912          <!- - Valid CS S properti es --> CR LF
1875          <!- -                        --> CR LF   1913          <!- -                        --> CR LF
1876          <xs l:variable  name="Var TableCellC SSProperti esAsXML"> CR LF   1914          <xs l:variable  name="Var TableCellC SSProperti esAsXML"> CR LF
1877           <x sl:call-te mplate nam e="CSS-Tra nslateProj ectPropert ies"> CR LF   1915           <x sl:call-te mplate nam e="CSS-Tra nslateProj ectPropert ies"> CR LF
1878            < xsl:with-p aram name= "ParamProp erties" se lect="$Var ResolvedCe llProperti es" /> CR LF   1916            < xsl:with-p aram name= "ParamProp erties" se lect="$Var ResolvedCe llProperti es" /> CR LF
1879            < xsl:with-p aram name= "ParamFrom AbsoluteUR I" select= "$ParamSpl it/@path"  /> CR LF   1917            < xsl:with-p aram name= "ParamFrom AbsoluteUR I" select= "$ParamSpl it/@path"  /> CR LF
1880            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF   1918            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF
1881           </ xsl:call-t emplate> CR LF   1919           </ xsl:call-t emplate> CR LF
1882          </x sl:variabl e> CR LF   1920          </x sl:variabl e> CR LF
1883          <xs l:variable  name="Var TableCellC SSProperti es" select ="msxsl:no de-set($Va rTableCell CSSPropert iesAsXML)/ wwproject: Property"  /> CR LF   1921          <xs l:variable  name="Var TableCellC SSProperti es" select ="msxsl:no de-set($Va rTableCell CSSPropert iesAsXML)/ wwproject: Property"  /> CR LF
1884   CR LF   1922   CR LF
1885          <!- - Inline C SS propert ies --> CR LF   1923          <!- - Inline C SS propert ies --> CR LF
1886          <!- -                         --> CR LF   1924          <!- -                         --> CR LF
1887          <xs l:variable  name="Var InlineCSSP roperties" > CR LF   1925          <xs l:variable  name="Var InlineCSSP roperties" > CR LF
1888           <x sl:call-te mplate nam e="CSS-Inl inePropert ies"> CR LF   1926           <x sl:call-te mplate nam e="CSS-Inl inePropert ies"> CR LF
1889            < xsl:with-p aram name= "ParamProp erties" se lect="$Var TableCellC SSProperti es" /> CR LF   1927            < xsl:with-p aram name= "ParamProp erties" se lect="$Var TableCellC SSProperti es" /> CR LF
1890           </ xsl:call-t emplate> CR LF   1928           </ xsl:call-t emplate> CR LF
1891          </x sl:variabl e> CR LF   1929          </x sl:variabl e> CR LF
1892   CR LF   1930   CR LF
1893          <!- - Calculat e row span  --> CR LF   1931          <!- - Calculat e row span  --> CR LF
1894          <!- -                      --> CR LF   1932          <!- -                      --> CR LF
1895          <xs l:variable  name="Var RowSpan"> CR LF   1933          <xs l:variable  name="Var RowSpan"> CR LF
1896           <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   1934           <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
1897           <x sl:choose> CR LF   1935           <x sl:choose> CR LF
1898            < xsl:when t est="strin g-length($ VarRowSpan Hint) &gt;  0"> CR LF   1936            < xsl:when t est="strin g-length($ VarRowSpan Hint) &gt;  0"> CR LF
1899              <xsl:value -of select ="$VarRowS panHint" / > CR LF   1937              <xsl:value -of select ="$VarRowS panHint" / > CR LF
1900            < /xsl:when> CR LF   1938            < /xsl:when> CR LF
1901            < xsl:otherw ise> CR LF   1939            < xsl:otherw ise> CR LF
1902              <xsl:value -of select ="'0'" /> CR LF   1940              <xsl:value -of select ="'0'" /> CR LF
1903            < /xsl:other wise> CR LF   1941            < /xsl:other wise> CR LF
1904           </ xsl:choose > CR LF   1942           </ xsl:choose > CR LF
1905          </x sl:variabl e> CR LF   1943          </x sl:variabl e> CR LF
1906   CR LF   1944   CR LF
1907          <!- - Calculat e column s pan --> CR LF   1945          <!- - Calculat e column s pan --> CR LF
1908          <!- -                         --> CR LF   1946          <!- -                         --> CR LF
1909          <xs l:variable  name="Var ColumnSpan "> CR LF   1947          <xs l:variable  name="Var ColumnSpan "> CR LF
1910           <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   1948           <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
1911           <x sl:choose> CR LF   1949           <x sl:choose> CR LF
1912            < xsl:when t est="strin g-length($ VarColumnS panHint) & gt; 0"> CR LF   1950            < xsl:when t est="strin g-length($ VarColumnS panHint) & gt; 0"> CR LF
1913              <xsl:value -of select ="$VarColu mnSpanHint " /> CR LF   1951              <xsl:value -of select ="$VarColu mnSpanHint " /> CR LF
1914            < /xsl:when> CR LF   1952            < /xsl:when> CR LF
1915            < xsl:otherw ise> CR LF   1953            < xsl:otherw ise> CR LF
1916              <xsl:value -of select ="'0'" /> CR LF   1954              <xsl:value -of select ="'0'" /> CR LF
1917            < /xsl:other wise> CR LF   1955            < /xsl:other wise> CR LF
1918           </ xsl:choose > CR LF   1956           </ xsl:choose > CR LF
1919          </x sl:variabl e> CR LF   1957          </x sl:variabl e> CR LF
1920   CR LF   1958   CR LF
1921          <!- - Emit cel l --> CR LF   1959          <!- - Emit cel l --> CR LF
1922          <!- -            --> CR LF   1960          <!- -            --> CR LF
1923          <ht ml:td> CR LF   1961          <ht ml:td> CR LF
1924           <! -- Style a ttribute - -> CR LF   1962           <! -- Style a ttribute - -> CR LF
1925           <! --                  - -> CR LF   1963           <! --                  - -> CR LF
1926           <x sl:if test ="string-l ength($Var InlineCSSP roperties)  &gt; 0"> CR LF   1964           <x sl:if test ="string-l ength($Var InlineCSSP roperties)  &gt; 0"> CR LF
1927            < xsl:attrib ute name=" style"> CR LF   1965            < xsl:attrib ute name=" style"> CR LF
1928              <xsl:value -of select ="$VarInli neCSSPrope rties" /> CR LF   1966              <xsl:value -of select ="$VarInli neCSSPrope rties" /> CR LF
1929            < /xsl:attri bute> CR LF   1967            < /xsl:attri bute> CR LF
1930           </ xsl:if> CR LF   1968           </ xsl:if> CR LF
1931   CR LF   1969   CR LF
1932           <! -- Row spa n attribut e --> CR LF   1970           <! -- Row spa n attribut e --> CR LF
1933           <! --                      --> CR LF   1971           <! --                      --> CR LF
1934           <x sl:if test ="number($ VarRowSpan ) &gt; 0"> CR LF   1972           <x sl:if test ="number($ VarRowSpan ) &gt; 0"> CR LF
1935            < xsl:attrib ute name=" rowspan"> CR LF   1973            < xsl:attrib ute name=" rowspan"> CR LF
1936              <xsl:value -of select ="$VarRowS pan" /> CR LF   1974              <xsl:value -of select ="$VarRowS pan" /> CR LF
1937            < /xsl:attri bute> CR LF   1975            < /xsl:attri bute> CR LF
1938           </ xsl:if> CR LF   1976           </ xsl:if> CR LF
1939   CR LF   1977   CR LF
1940           <! -- Column  span attri bute --> CR LF   1978           <! -- Column  span attri bute --> CR LF
1941           <! --                         --> CR LF   1979           <! --                         --> CR LF
1942           <x sl:if test ="number($ VarColumnS pan) &gt;  0"> CR LF   1980           <x sl:if test ="number($ VarColumnS pan) &gt;  0"> CR LF
1943            < xsl:attrib ute name=" colspan"> CR LF   1981            < xsl:attrib ute name=" colspan"> CR LF
1944              <xsl:value -of select ="$VarColu mnSpan" /> CR LF   1982              <xsl:value -of select ="$VarColu mnSpan" /> CR LF
1945            < /xsl:attri bute> CR LF   1983            < /xsl:attri bute> CR LF
1946           </ xsl:if> CR LF   1984           </ xsl:if> CR LF
1947   CR LF   1985   CR LF
1948           <! -- Recurse  --> CR LF   1986           <! -- Recurse  --> CR LF
1949           <! --          --> CR LF   1987           <! --          --> CR LF
1950           <x sl:apply-t emplates s elect="./* " mode="ww mode:conte nt"> CR LF   1988           <x sl:apply-t emplates s elect="./* " mode="ww mode:conte nt"> CR LF
1951            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF   1989            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF
1952            < xsl:with-p aram name= "ParamCarg o" select= "$VarCargo " /> CR LF   1990            < xsl:with-p aram name= "ParamCarg o" select= "$VarCargo " /> CR LF
1953            < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" /> CR LF   1991            < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" /> CR LF
1954            < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" /> CR LF   1992            < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" /> CR LF
1955            < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" /> CR LF   1993            < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" /> CR LF
1956           </ xsl:apply- templates> CR LF   1994           </ xsl:apply- templates> CR LF
1957          </h tml:td> CR LF   1995          </h tml:td> CR LF
1958         </xs l:for-each > CR LF   1996         </xs l:for-each > CR LF
1959   CR LF   1997   CR LF
1960        </htm l:tr> CR LF   1998        </htm l:tr> CR LF
1961       </xsl: for-each> CR LF   1999       </xsl: for-each> CR LF
1962      </xsl:f or-each> CR LF   2000      </xsl:f or-each> CR LF
1963   CR LF   2001   CR LF
1964     </html:t able> CR LF   2002     </html:t able> CR LF
1965   CR LF   2003   CR LF
1966     <!-- Tab le Footnot es --> CR LF   2004     <!-- Tab le Footnot es --> CR LF
1967     <!--                   --> CR LF   2005     <!--                   --> CR LF
1968     <xsl:cal l-template  name="Con tent-Notes "> CR LF   2006     <xsl:cal l-template  name="Con tent-Notes "> CR LF
1969      <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" /> CR LF   2007      <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" /> CR LF
1970      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   2008      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
1971      <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" /> CR LF   2009      <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" /> CR LF
1972      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   2010      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
1973      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> CR LF   2011      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> CR LF
1974      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   2012      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
1975     </xsl:ca ll-templat e> CR LF   2013     </xsl:ca ll-templat e> CR LF
1976    </xsl:tem plate> CR LF   2014    </xsl:tem plate> CR LF
1977   CR LF   2015   CR LF
1978   CR LF   2016   CR LF
1979    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:co ntent"> CR LF   2017    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:co ntent"> CR LF
1980     <xsl:par am name="P aramSplits " /> CR LF   2018     <xsl:par am name="P aramSplits " /> CR LF
1981     <xsl:par am name="P aramCargo"  /> CR LF   2019     <xsl:par am name="P aramCargo"  /> CR LF
1982     <xsl:par am name="P aramLinks"  /> CR LF   2020     <xsl:par am name="P aramLinks"  /> CR LF
1983     <xsl:par am name="P aramTOCDat a" /> CR LF   2021     <xsl:par am name="P aramTOCDat a" /> CR LF
1984     <xsl:par am name="P aramSplit"  /> CR LF   2022     <xsl:par am name="P aramSplit"  /> CR LF
1985   CR LF   2023   CR LF
1986     <!-- Abo rted? --> CR LF   2024     <!-- Abo rted? --> CR LF
1987     <!--           --> CR LF   2025     <!--           --> CR LF
1988     <xsl:if  test="not( wwprogress :Abort())" > CR LF   2026     <xsl:if  test="not( wwprogress :Abort())" > CR LF
1989      <xsl:ca ll-templat e name="Fr ame"> CR LF   2027      <xsl:ca ll-templat e name="Fr ame"> CR LF
1990       <xsl:w ith-param  name="Para mFrame" se lect="." / > CR LF   2028       <xsl:w ith-param  name="Para mFrame" se lect="." / > CR LF
1991       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   2029       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
1992       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   2030       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
1993       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   2031       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
1994       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   2032       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
1995      </xsl:c all-templa te> CR LF   2033      </xsl:c all-templa te> CR LF
1996     </xsl:if > CR LF   2034     </xsl:if > CR LF
1997    </xsl:tem plate> CR LF   2035    </xsl:tem plate> CR LF
1998   CR LF   2036   CR LF
1999   CR LF   2037   CR LF
2000    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:te xtrun"> CR LF   2038    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:te xtrun"> CR LF
2001     <xsl:par am name="P aramSplits " /> CR LF   2039     <xsl:par am name="P aramSplits " /> CR LF
2002     <xsl:par am name="P aramCargo"  /> CR LF   2040     <xsl:par am name="P aramCargo"  /> CR LF
2003     <xsl:par am name="P aramLinks"  /> CR LF   2041     <xsl:par am name="P aramLinks"  /> CR LF
2004     <xsl:par am name="P aramSplit"  /> CR LF   2042     <xsl:par am name="P aramSplit"  /> CR LF
2005   CR LF   2043   CR LF
2006     <xsl:cal l-template  name="Fra me"> CR LF   2044     <xsl:cal l-template  name="Fra me"> CR LF
2007      <xsl:wi th-param n ame="Param Frame" sel ect="." /> CR LF   2045      <xsl:wi th-param n ame="Param Frame" sel ect="." /> CR LF
2008      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   2046      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
2009      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF   2047      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF
2010      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   2048      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
2011      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   2049      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
2012     </xsl:ca ll-templat e> CR LF   2050     </xsl:ca ll-templat e> CR LF
2013    </xsl:tem plate> CR LF   2051    </xsl:tem plate> CR LF
2014   CR LF   2052   CR LF
2015   CR LF   2053   CR LF
2016    <xsl:temp late name= "Frame"> CR LF   2054    <xsl:temp late name= "Frame"> CR LF
2017     <xsl:par am name="P aramFrame"  /> CR LF   2055     <xsl:par am name="P aramFrame"  /> CR LF
2018     <xsl:par am name="P aramSplits " /> CR LF   2056     <xsl:par am name="P aramSplits " /> CR LF
2019     <xsl:par am name="P aramCargo"  /> CR LF   2057     <xsl:par am name="P aramCargo"  /> CR LF
2020     <xsl:par am name="P aramLinks"  /> CR LF   2058     <xsl:par am name="P aramLinks"  /> CR LF
2021     <xsl:par am name="P aramSplit"  /> CR LF   2059     <xsl:par am name="P aramSplit"  /> CR LF
2022   CR LF   2060   CR LF
2023     <!-- Get  splits fr ame --> CR LF   2061     <!-- Get  splits fr ame --> CR LF
2024     <!--                    --> CR LF   2062     <!--                    --> CR LF
2025     <xsl:for -each sele ct="$Param Splits[1]" > CR LF   2063     <xsl:for -each sele ct="$Param Splits[1]" > CR LF
2026      <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   2064      <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
2027   CR LF   2065   CR LF
2028      <!-- Fr ame known?  --> CR LF   2066      <!-- Fr ame known?  --> CR LF
2029      <!--                --> CR LF   2067      <!--                --> CR LF
2030      <xsl:if  test="cou nt($VarSpl itsFrame)  = 1"> CR LF   2068      <xsl:if  test="cou nt($VarSpl itsFrame)  = 1"> CR LF
2031       <!-- T humbnail?  --> CR LF   2069       <!-- T humbnail?  --> CR LF
2032       <!--              --> CR LF   2070       <!--              --> CR LF
2033       <xsl:f or-each se lect="$Glo balFiles[1 ]"> CR LF   2071       <xsl:f or-each se lect="$Glo balFiles[1 ]"> CR LF
2034        <xsl: variable n ame="VarSp litsThumbn ail" selec t="$VarSpl itsFrame/w wsplits:Th umbnail" / > CR LF   2072        <xsl: variable n ame="VarSp litsThumbn ail" selec t="$VarSpl itsFrame/w wsplits:Th umbnail" / > CR LF
2035        <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   2073        <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
2036   CR LF   2074   CR LF
2037        <!--  Emit image  --> CR LF   2075        <!--  Emit image  --> CR LF
2038        <!--              --> CR LF   2076        <!--              --> CR LF
2039        <xsl: choose> CR LF   2077        <xsl: choose> CR LF
2040         <!--  Thumbnail  --> CR LF   2078         <!--  Thumbnail  --> CR LF
2041         <!--             --> CR LF   2079         <!--             --> CR LF
2042         <xsl :when test ="$VarThum bnailDefin ed"> CR LF   2080         <xsl :when test ="$VarThum bnailDefin ed"> CR LF
2043          <!- - Not supp orted --> CR LF   2081          <!- - Not supp orted --> CR LF
2044          <!- -                --> CR LF   2082          <!- -                --> CR LF
2045         </xs l:when> CR LF   2083         </xs l:when> CR LF
2046   CR LF   2084   CR LF
2047         <!--  Fullsize  --> CR LF   2085         <!--  Fullsize  --> CR LF
2048         <!--            --> CR LF   2086         <!--            --> CR LF
2049         <xsl :otherwise > CR LF   2087         <xsl :otherwise > CR LF
2050          <!- - Note num bering --> CR LF   2088          <!- - Note num bering --> CR LF
2051          <!- -                 --> CR LF   2089          <!- -                 --> CR LF
2052          <xs l:variable  name="Var Notes" sel ect="$Para mFrame//ww doc:Note"  /> CR LF   2090          <xs l:variable  name="Var Notes" sel ect="$Para mFrame//ww doc:Note"  /> CR LF
2053          <xs l:variable  name="Var NoteNumber ingAsXML"> CR LF   2091          <xs l:variable  name="Var NoteNumber ingAsXML"> CR LF
2054           <x sl:call-te mplate nam e="Notes-N umber"> CR LF   2092           <x sl:call-te mplate nam e="Notes-N umber"> CR LF
2055            < xsl:with-p aram name= "ParamNote s" select= "$VarNotes " /> CR LF   2093            < xsl:with-p aram name= "ParamNote s" select= "$VarNotes " /> CR LF
2056           </ xsl:call-t emplate> CR LF   2094           </ xsl:call-t emplate> CR LF
2057          </x sl:variabl e> CR LF   2095          </x sl:variabl e> CR LF
2058          <xs l:variable  name="Var NoteNumber ing" selec t="msxsl:n ode-set($V arNoteNumb eringAsXML )" /> CR LF   2096          <xs l:variable  name="Var NoteNumber ing" selec t="msxsl:n ode-set($V arNoteNumb eringAsXML )" /> CR LF
2059   CR LF   2097   CR LF
2060          <!- - Frame ca rgo --> CR LF   2098          <!- - Frame ca rgo --> CR LF
2061          <!- -              --> CR LF   2099          <!- -              --> CR LF
2062          <xs l:variable  name="Var Cargo" sel ect="$Para mCargo/*[l ocal-name( ) != 'Note Numbering' ]/.. | $Va rNoteNumbe ring" /> CR LF   2100          <xs l:variable  name="Var Cargo" sel ect="$Para mCargo/*[l ocal-name( ) != 'Note Numbering' ]/.. | $Va rNoteNumbe ring" /> CR LF
2063   CR LF   2101   CR LF
2064          <!- - Emit mar kup --> CR LF   2102          <!- - Emit mar kup --> CR LF
2065          <!- -              --> CR LF   2103          <!- -              --> CR LF
2066          <xs l:call-tem plate name ="Frame-Ma rkup"> CR LF   2104          <xs l:call-tem plate name ="Frame-Ma rkup"> CR LF
2067           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF   2105           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF
2068           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   2106           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
2069           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  /> CR LF   2107           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  /> CR LF
2070           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   2108           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
2071           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   2109           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
2072           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> CR LF   2110           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> CR LF
2073           <x sl:with-pa ram name=" ParamThumb nail" sele ct="false( )" /> CR LF   2111           <x sl:with-pa ram name=" ParamThumb nail" sele ct="false( )" /> CR LF
2074          </x sl:call-te mplate> CR LF   2112          </x sl:call-te mplate> CR LF
2075         </xs l:otherwis e> CR LF   2113         </xs l:otherwis e> CR LF
2076        </xsl :choose> CR LF   2114        </xsl :choose> CR LF
2077       </xsl: for-each> CR LF   2115       </xsl: for-each> CR LF
2078      </xsl:i f> CR LF   2116      </xsl:i f> CR LF
2079     </xsl:fo r-each> CR LF   2117     </xsl:fo r-each> CR LF
2080    </xsl:tem plate> CR LF   2118    </xsl:tem plate> CR LF
2081   CR LF   2119   CR LF
2082   CR LF   2120   CR LF
2083    <xsl:temp late name= "Frame-Mar kup"> CR LF   2121    <xsl:temp late name= "Frame-Mar kup"> CR LF
2084     <xsl:par am name="P aramFrame"  /> CR LF   2122     <xsl:par am name="P aramFrame"  /> CR LF
2085     <xsl:par am name="P aramSplits " /> CR LF   2123     <xsl:par am name="P aramSplits " /> CR LF
2086     <xsl:par am name="P aramCargo"  /> CR LF   2124     <xsl:par am name="P aramCargo"  /> CR LF
2087     <xsl:par am name="P aramLinks"  /> CR LF   2125     <xsl:par am name="P aramLinks"  /> CR LF
2088     <xsl:par am name="P aramSplit"  /> CR LF   2126     <xsl:par am name="P aramSplit"  /> CR LF
2089     <xsl:par am name="P aramSplits Frame" /> CR LF   2127     <xsl:par am name="P aramSplits Frame" /> CR LF
2090     <xsl:par am name="P aramThumbn ail" /> CR LF   2128     <xsl:par am name="P aramThumbn ail" /> CR LF
2091   CR LF   2129   CR LF
2092     <!-- Con text Rule  --> CR LF   2130     <!-- Con text Rule  --> CR LF
2093     <!--                --> CR LF   2131     <!--                --> CR LF
2094     <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   2132     <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
2095   CR LF   2133   CR LF
2096     <!-- Gen erate? --> CR LF   2134     <!-- Gen erate? --> CR LF
2097     <!--            --> CR LF   2135     <!--            --> CR LF
2098     <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   2136     <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
2099     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF   2137     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF
2100     <xsl:if  test="$Var GenerateOu tput"> CR LF   2138     <xsl:if  test="$Var GenerateOu tput"> CR LF
2101      <!-- De termine im age path - -> CR LF   2139      <!-- De termine im age path - -> CR LF
2102      <!--                        - -> CR LF   2140      <!--                        - -> CR LF
2103      <xsl:va riable nam e="VarImag ePath"> CR LF   2141      <xsl:va riable nam e="VarImag ePath"> CR LF
2104       <xsl:c hoose> CR LF   2142       <xsl:c hoose> CR LF
2105        <xsl: when test= "$ParamThu mbnail"> CR LF   2143        <xsl: when test= "$ParamThu mbnail"> CR LF
2106         <xsl :value-of  select="$P aramSplits Frame/wwsp lits:Thumb nail/@path " /> CR LF   2144         <xsl :value-of  select="$P aramSplits Frame/wwsp lits:Thumb nail/@path " /> CR LF
2107        </xsl :when> CR LF   2145        </xsl :when> CR LF
2108   CR LF   2146   CR LF
2109        <xsl: otherwise> CR LF   2147        <xsl: otherwise> CR LF
2110         <xsl :value-of  select="$P aramSplits Frame/@pat h" /> CR LF   2148         <xsl :value-of  select="$P aramSplits Frame/@pat h" /> CR LF
2111        </xsl :otherwise > CR LF   2149        </xsl :otherwise > CR LF
2112       </xsl: choose> CR LF   2150       </xsl: choose> CR LF
2113      </xsl:v ariable> CR LF   2151      </xsl:v ariable> CR LF
2114   CR LF   2152   CR LF
2115      <!-- Ac cess image  info --> CR LF   2153      <!-- Ac cess image  info --> CR LF
2116      <!--                     --> CR LF   2154      <!--                     --> CR LF
2117      <xsl:va riable nam e="VarImag eInfo" sel ect="wwima ging:GetIn fo($VarIma gePath)" / > CR LF   2155      <xsl:va riable nam e="VarImag eInfo" sel ect="wwima ging:GetIn fo($VarIma gePath)" / > CR LF
2118   CR LF   2156   CR LF
2119      <!-- De termine ty pe --> CR LF   2157      <!-- De termine ty pe --> CR LF
2120      <!--                  --> CR LF   2158      <!--                  --> CR LF
2121      <xsl:va riable nam e="VarVect orImageAsT ext"> CR LF   2159      <xsl:va riable nam e="VarVect orImageAsT ext"> CR LF
2122       <xsl:c all-templa te name="I mages-Vect orImageFor mat"> CR LF   2160       <xsl:c all-templa te name="I mages-Vect orImageFor mat"> CR LF
2123        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" /> CR LF   2161        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" /> CR LF
2124       </xsl: call-templ ate> CR LF   2162       </xsl: call-templ ate> CR LF
2125      </xsl:v ariable> CR LF   2163      </xsl:v ariable> CR LF
2126      <xsl:va riable nam e="VarVect orImage" s elect="$Va rVectorIma geAsText =  string(tr ue())" /> CR LF   2164      <xsl:va riable nam e="VarVect orImage" s elect="$Va rVectorIma geAsText =  string(tr ue())" /> CR LF
2127      <xsl:va riable nam e="VarRast erImageAsT ext"> CR LF   2165      <xsl:va riable nam e="VarRast erImageAsT ext"> CR LF
2128       <xsl:c all-templa te name="I mages-Rast erImageFor mat"> CR LF   2166       <xsl:c all-templa te name="I mages-Rast erImageFor mat"> CR LF
2129        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" /> CR LF   2167        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" /> CR LF
2130       </xsl: call-templ ate> CR LF   2168       </xsl: call-templ ate> CR LF
2131      </xsl:v ariable> CR LF   2169      </xsl:v ariable> CR LF
2132      <xsl:va riable nam e="VarRast erImage" s elect="$Va rRasterIma geAsText =  string(tr ue())" /> CR LF   2170      <xsl:va riable nam e="VarRast erImage" s elect="$Va rRasterIma geAsText =  string(tr ue())" /> CR LF
2133   CR LF   2171   CR LF
2134      <!-- Em it image - -> CR LF   2172      <!-- Em it image - -> CR LF
2135      <!--             - -> CR LF   2173      <!--             - -> CR LF
2136      <xsl:ch oose> CR LF   2174      <xsl:ch oose> CR LF
2137       <!-- V ector Imag e --> CR LF   2175       <!-- V ector Imag e --> CR LF
2138       <!--                --> CR LF   2176       <!--                --> CR LF
2139       <xsl:w hen test=" $VarVector Image"> CR LF   2177       <xsl:w hen test=" $VarVector Image"> CR LF
2140        <!--  Not suppor ted --> CR LF   2178        <!--  Not suppor ted --> CR LF
2141        <!--                 --> CR LF   2179        <!--                 --> CR LF
2142       </xsl: when> CR LF   2180       </xsl: when> CR LF
2143   CR LF   2181   CR LF
2144       <!-- R aster Imag e --> CR LF   2182       <!-- R aster Imag e --> CR LF
2145       <!--                --> CR LF   2183       <!--                --> CR LF
2146       <xsl:w hen test=" $VarRaster Image"> CR LF   2184       <xsl:w hen test=" $VarRaster Image"> CR LF
2147        <xsl: call-templ ate name=" Frame-Mark up-Raster" > CR LF   2185        <xsl: call-templ ate name=" Frame-Mark up-Raster" > CR LF
2148         <xsl :with-para m name="Pa ramFrame"  select="$P aramFrame"  /> CR LF   2186         <xsl :with-para m name="Pa ramFrame"  select="$P aramFrame"  /> CR LF
2149         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   2187         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
2150         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   2188         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
2151         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   2189         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
2152         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   2190         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
2153         <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" /> CR LF   2191         <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" /> CR LF
2154         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule"  /> CR LF   2192         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule"  /> CR LF
2155         <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" /> CR LF   2193         <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" /> CR LF
2156         <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / > CR LF   2194         <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / > CR LF
2157        </xsl :call-temp late> CR LF   2195        </xsl :call-temp late> CR LF
2158       </xsl: when> CR LF   2196       </xsl: when> CR LF
2159      </xsl:c hoose> CR LF   2197      </xsl:c hoose> CR LF
2160     </xsl:if > CR LF   2198     </xsl:if > CR LF
2161    </xsl:tem plate> CR LF   2199    </xsl:tem plate> CR LF
2162   CR LF   2200   CR LF
2163   CR LF   2201   CR LF
2164    <xsl:temp late name= "Frame-Mar kup-Raster "> CR LF   2202    <xsl:temp late name= "Frame-Mar kup-Raster "> CR LF
2165     <xsl:par am name="P aramFrame"  /> CR LF   2203     <xsl:par am name="P aramFrame"  /> CR LF
2166     <xsl:par am name="P aramSplits " /> CR LF   2204     <xsl:par am name="P aramSplits " /> CR LF
2167     <xsl:par am name="P aramCargo"  /> CR LF   2205     <xsl:par am name="P aramCargo"  /> CR LF
2168     <xsl:par am name="P aramLinks"  /> CR LF   2206     <xsl:par am name="P aramLinks"  /> CR LF
2169     <xsl:par am name="P aramSplit"  /> CR LF   2207     <xsl:par am name="P aramSplit"  /> CR LF
2170     <xsl:par am name="P aramSplits Frame" /> CR LF   2208     <xsl:par am name="P aramSplits Frame" /> CR LF
2171     <xsl:par am name="P aramContex tRule" /> CR LF   2209     <xsl:par am name="P aramContex tRule" /> CR LF
2172     <xsl:par am name="P aramImageI nfo" /> CR LF   2210     <xsl:par am name="P aramImageI nfo" /> CR LF
2173     <xsl:par am name="P aramThumbn ail" /> CR LF   2211     <xsl:par am name="P aramThumbn ail" /> CR LF
2174   CR LF   2212   CR LF
2175     <!-- Acc ess frame  behavior - -> CR LF   2213     <!-- Acc ess frame  behavior - -> CR LF
2176     <!--                         - -> CR LF   2214     <!--                         - -> CR LF
2177     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF   2215     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF
2178      <xsl:va riable nam e="VarBeha viorFrame"  select="k ey('wwbeha viors-fram es-by-id',  $ParamFra me/@id)[1] " /> CR LF   2216      <xsl:va riable nam e="VarBeha viorFrame"  select="k ey('wwbeha viors-fram es-by-id',  $ParamFra me/@id)[1] " /> CR LF
2179   CR LF   2217   CR LF
2180      <!-- Ov erride Rul e --> CR LF   2218      <!-- Ov erride Rul e --> CR LF
2181      <!--                 --> CR LF   2219      <!--                 --> CR LF
2182      <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   2220      <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
2183   CR LF   2221   CR LF
2184      <!-- Re solve proj ect proper ties --> CR LF   2222      <!-- Re solve proj ect proper ties --> CR LF
2185      <!--                               --> CR LF   2223      <!--                               --> CR LF
2186      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" > CR LF   2224      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" > CR LF
2187       <xsl:c all-templa te name="P roperties- ResolveOve rrideRule" > CR LF   2225       <xsl:c all-templa te name="P roperties- ResolveOve rrideRule" > CR LF
2188        <xsl: with-param  name="Par amProperti es" select ="$VarOver rideRule/w wproject:P roperties/ wwproject: Property"  /> CR LF   2226        <xsl: with-param  name="Par amProperti es" select ="$VarOver rideRule/w wproject:P roperties/ wwproject: Property"  /> CR LF
2189        <xsl: with-param  name="Par amContextS tyle" sele ct="$Param Frame" /> CR LF   2227        <xsl: with-param  name="Par amContextS tyle" sele ct="$Param Frame" /> CR LF
    2228        <xsl: with-param  name="Par amStyleTyp e" select= "'Graphic' " /> CR LF
2190       </xsl: call-templ ate> CR LF   2229       </xsl: call-templ ate> CR LF
2191      </xsl:v ariable> CR LF   2230      </xsl:v ariable> CR LF
2192      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" /> CR LF   2231      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" /> CR LF
2193   CR LF   2232   CR LF
2194      <!-- CS S properti es --> CR LF   2233      <!-- CS S properti es --> CR LF
2195      <!--                  --> CR LF   2234      <!--                  --> CR LF
2196      <xsl:va riable nam e="VarCSSP ropertiesA sXML"> CR LF   2235      <xsl:va riable nam e="VarCSSP ropertiesA sXML"> CR LF
2197       <xsl:c all-templa te name="C SS-Transla teProjectP roperties" > CR LF   2236       <xsl:c all-templa te name="C SS-Transla teProjectP roperties" > CR LF
2198        <xsl: with-param  name="Par amProperti es" select ="$VarReso lvedProper ties[not(s tarts-with (@Name, 'b order-'))  and (@Name  != 'width ') and (@N ame != 'he ight')]" / > CR LF   2237        <xsl: with-param  name="Par amProperti es" select ="$VarReso lvedProper ties[not(s tarts-with (@Name, 'b order-'))  and (@Name  != 'width ') and (@N ame != 'he ight')]" / > CR LF
2199        <xsl: with-param  name="Par amFromAbso luteURI" s elect="$Pa ramSplit/@ path" /> CR LF   2238        <xsl: with-param  name="Par amFromAbso luteURI" s elect="$Pa ramSplit/@ path" /> CR LF
2200        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   2239        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
2201       </xsl: call-templ ate> CR LF   2240       </xsl: call-templ ate> CR LF
2202      </xsl:v ariable> CR LF   2241      </xsl:v ariable> CR LF
2203      <xsl:va riable nam e="VarCSSP roperties"  select="m sxsl:node- set($VarCS SPropertie sAsXML)/ww project:Pr operty" /> CR LF   2242      <xsl:va riable nam e="VarCSSP roperties"  select="m sxsl:node- set($VarCS SPropertie sAsXML)/ww project:Pr operty" /> CR LF
2204      <xsl:va riable nam e="VarInli neCSSPrope rties"> CR LF   2243      <xsl:va riable nam e="VarInli neCSSPrope rties"> CR LF
2205       <xsl:c all-templa te name="C SS-InlineP roperties" > CR LF   2244       <xsl:c all-templa te name="C SS-InlineP roperties" > CR LF
2206        <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties[ string-len gth(@Value ) &gt; 0]"  /> CR LF   2245        <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties[ string-len gth(@Value ) &gt; 0]"  /> CR LF
2207       </xsl: call-templ ate> CR LF   2246       </xsl: call-templ ate> CR LF
2208      </xsl:v ariable> CR LF   2247      </xsl:v ariable> CR LF
2209   CR LF   2248   CR LF
2210      <!-- Wi dth/Height  --> CR LF   2249      <!-- Wi dth/Height  --> CR LF
2211      <!--                --> CR LF   2250      <!--                --> CR LF
2212      <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   2251      <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
2213      <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   2252      <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
2214      <xsl:va riable nam e="VarWidt h"> CR LF   2253      <xsl:va riable nam e="VarWidt h"> CR LF
2215       <xsl:c hoose> CR LF   2254       <xsl:c hoose> CR LF
2216        <xsl: when test= "$ParamThu mbnail"> CR LF   2255        <xsl: when test= "$ParamThu mbnail"> CR LF
2217         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF   2256         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF
2218        </xsl :when> CR LF   2257        </xsl :when> CR LF
2219   CR LF   2258   CR LF
2220        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF   2259        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF
2221         <xsl :choose> CR LF   2260         <xsl :choose> CR LF
2222          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> CR LF   2261          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> CR LF
2223           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF   2262           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF
2224   CR LF   2263   CR LF
2225           <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   2264           <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
2226          </x sl:when> CR LF   2265          </x sl:when> CR LF
2227   CR LF   2266   CR LF
2228          <xs l:otherwis e> CR LF   2267          <xs l:otherwis e> CR LF
2229           <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " /> CR LF   2268           <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " /> CR LF
2230          </x sl:otherwi se> CR LF   2269          </x sl:otherwi se> CR LF
2231         </xs l:choose> CR LF   2270         </xs l:choose> CR LF
2232        </xsl :when> CR LF   2271        </xsl :when> CR LF
2233   CR LF   2272   CR LF
2234        <xsl: otherwise> CR LF   2273        <xsl: otherwise> CR LF
2235         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF   2274         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF
2236        </xsl :otherwise > CR LF   2275        </xsl :otherwise > CR LF
2237       </xsl: choose> CR LF   2276       </xsl: choose> CR LF
2238      </xsl:v ariable> CR LF   2277      </xsl:v ariable> CR LF
2239      <xsl:va riable nam e="VarHeig ht"> CR LF   2278      <xsl:va riable nam e="VarHeig ht"> CR LF
2240       <xsl:c hoose> CR LF   2279       <xsl:c hoose> CR LF
2241        <xsl: when test= "$ParamThu mbnail"> CR LF   2280        <xsl: when test= "$ParamThu mbnail"> CR LF
2242         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF   2281         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF
2243        </xsl :when> CR LF   2282        </xsl :when> CR LF
2244   CR LF   2283   CR LF
2245        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF   2284        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF
2246         <xsl :choose> CR LF   2285         <xsl :choose> CR LF
2247          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> CR LF   2286          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> CR LF
2248           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF   2287           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF
2249   CR LF   2288   CR LF
2250           <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   2289           <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
2251          </x sl:when> CR LF   2290          </x sl:when> CR LF
2252   CR LF   2291   CR LF
2253          <xs l:otherwis e> CR LF   2292          <xs l:otherwis e> CR LF
2254           <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" /> CR LF   2293           <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" /> CR LF
2255          </x sl:otherwi se> CR LF   2294          </x sl:otherwi se> CR LF
2256         </xs l:choose> CR LF   2295         </xs l:choose> CR LF
2257        </xsl :when> CR LF   2296        </xsl :when> CR LF
2258   CR LF   2297   CR LF
2259        <xsl: otherwise> CR LF   2298        <xsl: otherwise> CR LF
2260         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF   2299         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF
2261        </xsl :otherwise > CR LF   2300        </xsl :otherwise > CR LF
2262       </xsl: choose> CR LF   2301       </xsl: choose> CR LF
2263      </xsl:v ariable> CR LF   2302      </xsl:v ariable> CR LF
2264   CR LF   2303   CR LF
2265      <!-- Sr c --> CR LF   2304      <!-- Sr c --> CR LF
2266      <!--      --> CR LF   2305      <!--      --> CR LF
2267      <xsl:va riable nam e="VarSrc"  select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " /> CR LF   2306      <xsl:va riable nam e="VarSrc"  select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " /> CR LF
2268   CR LF   2307   CR LF
2269      <!-- Al t Text --> CR LF   2308      <!-- Al t Text --> CR LF
2270      <!--           --> CR LF   2309      <!--           --> CR LF
2271      <xsl:va riable nam e="VarAltT ext"> CR LF   2310      <xsl:va riable nam e="VarAltT ext"> CR LF
2272       <xsl:c all-templa te name="I mages-AltT ext"> CR LF   2311       <xsl:c all-templa te name="I mages-AltT ext"> CR LF
2273        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF   2312        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF
2274        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF   2313        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF
2275       </xsl: call-templ ate> CR LF   2314       </xsl: call-templ ate> CR LF
2276      </xsl:v ariable> CR LF   2315      </xsl:v ariable> CR LF
2277   CR LF   2316   CR LF
2278      <!-- Lo ng Descrip tion --> CR LF   2317      <!-- Lo ng Descrip tion --> CR LF
2279      <!--                    --> CR LF   2318      <!--                    --> CR LF
2280      <xsl:va riable nam e="VarLong Descriptio n"> CR LF   2319      <xsl:va riable nam e="VarLong Descriptio n"> CR LF
2281       <xsl:c all-templa te name="I mages-Long Descriptio n"> CR LF   2320       <xsl:c all-templa te name="I mages-Long Descriptio n"> CR LF
2282        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> CR LF   2321        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> CR LF
2283        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF   2322        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF
2284       </xsl: call-templ ate> CR LF   2323       </xsl: call-templ ate> CR LF
2285      </xsl:v ariable> CR LF   2324      </xsl:v ariable> CR LF
2286   CR LF   2325   CR LF
2287      <!-- Ta g --> CR LF   2326      <!-- Ta g --> CR LF
2288      <!--      --> CR LF   2327      <!--      --> CR LF
2289      <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   2328      <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
2290      <xsl:va riable nam e="VarTag" > CR LF   2329      <xsl:va riable nam e="VarTag" > CR LF
2291       <xsl:c hoose> CR LF   2330       <xsl:c hoose> CR LF
2292        <xsl: when test= "string-le ngth($VarT agProperty ) &gt; 0"> CR LF   2331        <xsl: when test= "string-le ngth($VarT agProperty ) &gt; 0"> CR LF
2293         <xsl :value-of  select="$V arTagPrope rty" /> CR LF   2332         <xsl :value-of  select="$V arTagPrope rty" /> CR LF
2294        </xsl :when> CR LF   2333        </xsl :when> CR LF
2295   CR LF   2334   CR LF
2296        <xsl: otherwise> CR LF   2335        <xsl: otherwise> CR LF
2297         <xsl :value-of  select="'i mg'" /> CR LF   2336         <xsl :value-of  select="'i mg'" /> CR LF
2298        </xsl :otherwise > CR LF   2337        </xsl :otherwise > CR LF
2299       </xsl: choose> CR LF   2338       </xsl: choose> CR LF
2300      </xsl:v ariable> CR LF   2339      </xsl:v ariable> CR LF
2301   CR LF   2340   CR LF
2302      <!-- Gr aphic elem ent --> CR LF   2341      <!-- Gr aphic elem ent --> CR LF
2303      <!--                   --> CR LF   2342      <!--                   --> CR LF
2304      <xsl:el ement name ="{$VarTag }" namespa ce="{$Glob alDefaultN amespace}" > CR LF   2343      <xsl:el ement name ="{$VarTag }" namespa ce="{$Glob alDefaultN amespace}" > CR LF
2305       <!-- C lass attri bute --> CR LF   2344       <!-- C lass attri bute --> CR LF
2306       <!--                   --> CR LF   2345       <!--                   --> CR LF
2307       <xsl:a ttribute n ame="class "> CR LF   2346       <xsl:a ttribute n ame="class "> CR LF
2308        <xsl: value-of s elect="wws tring:OEBC lassName($ ParamFrame /@stylenam e)" /> CR LF   2347        <xsl: value-of s elect="wws tring:OEBC lassName($ ParamFrame /@stylenam e)" /> CR LF
2309       </xsl: attribute> CR LF   2348       </xsl: attribute> CR LF
2310   CR LF   2349   CR LF
2311       <!-- S rc attribu te --> CR LF   2350       <!-- S rc attribu te --> CR LF
2312       <!--                 --> CR LF   2351       <!--                 --> CR LF
2313       <xsl:a ttribute n ame="src"> CR LF   2352       <xsl:a ttribute n ame="src"> CR LF
2314        <xsl: value-of s elect="$Va rSrc" /> CR LF   2353        <xsl: value-of s elect="$Va rSrc" /> CR LF
2315       </xsl: attribute> CR LF   2354       </xsl: attribute> CR LF
2316   CR LF   2355   CR LF
2317       <!-- W idth attri bute --> CR LF   2356       <!-- W idth attri bute --> CR LF
2318       <!--                   --> CR LF   2357       <!--                   --> CR LF
2319       <xsl:i f test="$V arWidth &g t; 0"> CR LF   2358       <xsl:i f test="$V arWidth &g t; 0"> CR LF
2320        <xsl: attribute  name="widt h"> CR LF   2359        <xsl: attribute  name="widt h"> CR LF
2321         <xsl :value-of  select="$V arWidth"/> CR LF   2360         <xsl :value-of  select="$V arWidth"/> CR LF
2322        </xsl :attribute > CR LF   2361        </xsl :attribute > CR LF
2323       </xsl: if> CR LF   2362       </xsl: if> CR LF
2324   CR LF   2363   CR LF
2325       <!-- H eight attr ibute --> CR LF   2364       <!-- H eight attr ibute --> CR LF
2326       <!--                    --> CR LF   2365       <!--                    --> CR LF
2327       <xsl:i f test="$V arHeight & gt; 0"> CR LF   2366       <xsl:i f test="$V arHeight & gt; 0"> CR LF
2328        <xsl: attribute  name="heig ht"> CR LF   2367        <xsl: attribute  name="heig ht"> CR LF
2329         <xsl :value-of  select="$V arHeight"/ > CR LF   2368         <xsl :value-of  select="$V arHeight"/ > CR LF
2330        </xsl :attribute > CR LF   2369        </xsl :attribute > CR LF
2331       </xsl: if> CR LF   2370       </xsl: if> CR LF
2332   CR LF   2371   CR LF
2333       <!-- S tyle attri bute --> CR LF   2372       <!-- S tyle attri bute --> CR LF
2334       <!--                   --> CR LF   2373       <!--                   --> CR LF
2335       <xsl:a ttribute n ame="style "> CR LF   2374       <xsl:a ttribute n ame="style "> CR LF
2336        <xsl: if test="s tring-leng th($VarInl ineCSSProp erties) &g t; 0"> CR LF   2375        <xsl: if test="s tring-leng th($VarInl ineCSSProp erties) &g t; 0"> CR LF
2337         <xsl :value-of  select="$V arInlineCS SPropertie s" /> CR LF   2376         <xsl :value-of  select="$V arInlineCS SPropertie s" /> CR LF
2338         <xsl :text>; </ xsl:text> CR LF   2377         <xsl :text>; </ xsl:text> CR LF
2339        </xsl :if> CR LF   2378        </xsl :if> CR LF
2340        <xsl: text>borde r: none</x sl:text> CR LF   2379        <xsl: text>borde r: none</x sl:text> CR LF
2341       </xsl: attribute> CR LF   2380       </xsl: attribute> CR LF
2342   CR LF   2381   CR LF
2343       <!-- A lt attribu te --> CR LF   2382       <!-- A lt attribu te --> CR LF
2344       <!--                 --> CR LF   2383       <!--                 --> CR LF
2345       <xsl:a ttribute n ame="alt"> CR LF   2384       <xsl:a ttribute n ame="alt"> CR LF
2346        <xsl: value-of s elect="$Va rAltText"  /> CR LF   2385        <xsl: value-of s elect="$Va rAltText"  /> CR LF
2347       </xsl: attribute> CR LF   2386       </xsl: attribute> CR LF
2348   CR LF   2387   CR LF
2349       <!-- L ongdesc at tribute -- > CR LF   2388       <!-- L ongdesc at tribute -- > CR LF
2350       <!--                      -- > CR LF   2389       <!--                      -- > CR LF
2351       <xsl:i f test="st ring-lengt h($VarLong Descriptio n) &gt; 0" > CR LF   2390       <xsl:i f test="st ring-lengt h($VarLong Descriptio n) &gt; 0" > CR LF
2352        <xsl: attribute  name="long desc"> CR LF   2391        <xsl: attribute  name="long desc"> CR LF
2353         <xsl :value-of  select="$V arLongDesc ription" / > CR LF   2392         <xsl :value-of  select="$V arLongDesc ription" / > CR LF
2354        </xsl :attribute > CR LF   2393        </xsl :attribute > CR LF
2355       </xsl: if> CR LF   2394       </xsl: if> CR LF
2356      </xsl:e lement> CR LF   2395      </xsl:e lement> CR LF
2357   CR LF   2396   CR LF
2358      <!-- Ge nerate D L inks --> CR LF   2397      <!-- Ge nerate D L inks --> CR LF
2359      <!--                    --> CR LF   2398      <!--                    --> CR LF
2360      <xsl:va riable nam e="VarGene rateDLinks " select=" wwprojext: GetFormatS etting('ac cessibilit y-image-d- links', 'f alse')" /> CR LF   2399      <xsl:va riable nam e="VarGene rateDLinks " select=" wwprojext: GetFormatS etting('ac cessibilit y-image-d- links', 'f alse')" /> CR LF
2361      <xsl:if  test="$Va rGenerateD Links = 't rue'"> CR LF   2400      <xsl:if  test="$Va rGenerateD Links = 't rue'"> CR LF
2362       <xsl:i f test="st ring-lengt h($VarLong Descriptio n) &gt; 0" > CR LF   2401       <xsl:i f test="st ring-lengt h($VarLong Descriptio n) &gt; 0" > CR LF
2363        <xsl: text> </xs l:text> CR LF   2402        <xsl: text> </xs l:text> CR LF
2364        <html :a href="{ $VarLongDe scription} " title="{ concat('De scription  link for ' , wwfilesy stem:GetFi leName($Pa ramSplitsF rame/@path ))}">[D]</ html:a><ht ml:br /> CR LF   2403        <html :a href="{ $VarLongDe scription} " title="{ concat('De scription  link for ' , wwfilesy stem:GetFi leName($Pa ramSplitsF rame/@path ))}">[D]</ html:a><ht ml:br /> CR LF
2365       </xsl: if> CR LF   2404       </xsl: if> CR LF
2366      </xsl:i f> CR LF   2405      </xsl:i f> CR LF
2367   CR LF   2406   CR LF
2368      <!-- No tes --> CR LF   2407      <!-- No tes --> CR LF
2369      <!--        --> CR LF   2408      <!--        --> CR LF
2370      <xsl:ch oose> CR LF   2409      <xsl:ch oose> CR LF
2371       <!-- T humbnail - -> CR LF   2410       <!-- T humbnail - -> CR LF
2372       <!--            - -> CR LF   2411       <!--            - -> CR LF
2373       <xsl:w hen test=" $ParamThum bnail"> CR LF   2412       <xsl:w hen test=" $ParamThum bnail"> CR LF
2374        <!--  Nothing to  do --> CR LF   2413        <!--  Nothing to  do --> CR LF
2375        <!--                 --> CR LF   2414        <!--                 --> CR LF
2376       </xsl: when> CR LF   2415       </xsl: when> CR LF
2377   CR LF   2416   CR LF
2378       <!-- F ullsize -- > CR LF   2417       <!-- F ullsize -- > CR LF
2379       <!--           -- > CR LF   2418       <!--           -- > CR LF
2380       <xsl:o therwise> CR LF   2419       <xsl:o therwise> CR LF
2381        <!--  Frame Foot notes --> CR LF   2420        <!--  Frame Foot notes --> CR LF
2382        <!--                   --> CR LF   2421        <!--                   --> CR LF
2383        <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" /> CR LF   2422        <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" /> CR LF
2384        <xsl: call-templ ate name=" Content-No tes"> CR LF   2423        <xsl: call-templ ate name=" Content-No tes"> CR LF
2385         <xsl :with-para m name="Pa ramNotes"  select="$V arNotes" / > CR LF   2424         <xsl :with-para m name="Pa ramNotes"  select="$V arNotes" / > CR LF
2386         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   2425         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
2387         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   2426         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
2388         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   2427         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
2389         <xsl :with-para m name="Pa ramTOCData " select=" ''" /> CR LF   2428         <xsl :with-para m name="Pa ramTOCData " select=" ''" /> CR LF
2390         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   2429         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
2391        </xsl :call-temp late> CR LF   2430        </xsl :call-temp late> CR LF
2392       </xsl: otherwise> CR LF   2431       </xsl: otherwise> CR LF
2393      </xsl:c hoose> CR LF   2432      </xsl:c hoose> CR LF
2394     </xsl:fo r-each> CR LF   2433     </xsl:fo r-each> CR LF
2395    </xsl:tem plate> CR LF   2434    </xsl:tem plate> CR LF
2396   CR LF   2435   CR LF
2397   CR LF   2436   CR LF
2398    <xsl:temp late name= "ImageMap" > CR LF   2437    <xsl:temp late name= "ImageMap" > CR LF
2399     <xsl:par am name="P aramFrame"  /> CR LF   2438     <xsl:par am name="P aramFrame"  /> CR LF
2400     <xsl:par am name="P aramSplits " /> CR LF   2439     <xsl:par am name="P aramSplits " /> CR LF
2401     <xsl:par am name="P aramCargo"  /> CR LF   2440     <xsl:par am name="P aramCargo"  /> CR LF
2402     <xsl:par am name="P aramParent Behavior"  /> CR LF   2441     <xsl:par am name="P aramParent Behavior"  /> CR LF
2403     <xsl:par am name="P aramLinks"  /> CR LF   2442     <xsl:par am name="P aramLinks"  /> CR LF
2404     <xsl:par am name="P aramSplit"  /> CR LF   2443     <xsl:par am name="P aramSplit"  /> CR LF
2405     <xsl:par am name="P aramHorizo ntalScalin g" /> CR LF   2444     <xsl:par am name="P aramHorizo ntalScalin g" /> CR LF
2406     <xsl:par am name="P aramVertic alScaling"  /> CR LF   2445     <xsl:par am name="P aramVertic alScaling"  /> CR LF
2407   CR LF   2446   CR LF
2408     <!-- Pro cess child  frames fi rst --> CR LF   2447     <!-- Pro cess child  frames fi rst --> CR LF
2409     <!--                               --> CR LF   2448     <!--                               --> CR LF
2410     <xsl:for -each sele ct="$Param Frame/wwdo c:Content/ /wwdoc:Fra me[count($ ParamFrame  | ancesto r::wwdoc:F rame[1]) =  1]"> CR LF   2449     <xsl:for -each sele ct="$Param Frame/wwdo c:Content/ /wwdoc:Fra me[count($ ParamFrame  | ancesto r::wwdoc:F rame[1]) =  1]"> CR LF
2411      <xsl:ca ll-templat e name="Im ageMap"> CR LF   2450      <xsl:ca ll-templat e name="Im ageMap"> CR LF
2412       <xsl:w ith-param  name="Para mFrame" se lect="." / > CR LF   2451       <xsl:w ith-param  name="Para mFrame" se lect="." / > CR LF
2413       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   2452       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
2414       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   2453       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
2415       <xsl:w ith-param  name="Para mParentBeh avior" sel ect="$Para mParentBeh avior" /> CR LF   2454       <xsl:w ith-param  name="Para mParentBeh avior" sel ect="$Para mParentBeh avior" /> CR LF
2416       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   2455       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
2417       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   2456       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
2418       <xsl:w ith-param  name="Para mHorizonta lScaling"  select="$P aramHorizo ntalScalin g" /> CR LF   2457       <xsl:w ith-param  name="Para mHorizonta lScaling"  select="$P aramHorizo ntalScalin g" /> CR LF
2419       <xsl:w ith-param  name="Para mVerticalS caling" se lect="$Par amVertical Scaling" / > CR LF   2458       <xsl:w ith-param  name="Para mVerticalS caling" se lect="$Par amVertical Scaling" / > CR LF
2420      </xsl:c all-templa te> CR LF   2459      </xsl:c all-templa te> CR LF
2421     </xsl:fo r-each> CR LF   2460     </xsl:fo r-each> CR LF
2422   CR LF   2461   CR LF
2423     <!-- Get  link --> CR LF   2462     <!-- Get  link --> CR LF
2424     <!--           --> CR LF   2463     <!--           --> CR LF
2425     <xsl:var iable name ="VarLinkI nfoAsXML"> CR LF   2464     <xsl:var iable name ="VarLinkI nfoAsXML"> CR LF
2426      <xsl:ch oose> CR LF   2465      <xsl:ch oose> CR LF
2427       <xsl:w hen test=" count($Par amFrame/ww doc:Link[1 ]) = 1"> CR LF   2466       <xsl:w hen test=" count($Par amFrame/ww doc:Link[1 ]) = 1"> CR LF
2428        <xsl: call-templ ate name=" LinkInfo"> CR LF   2467        <xsl: call-templ ate name=" LinkInfo"> CR LF
2429         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   2468         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
2430         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   2469         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
2431         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   2470         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
2432         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mFrame/wwd oc:Link" / > CR LF   2471         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mFrame/wwd oc:Link" / > CR LF
2433        </xsl :call-temp late> CR LF   2472        </xsl :call-temp late> CR LF
2434       </xsl: when> CR LF   2473       </xsl: when> CR LF
2435   CR LF   2474   CR LF
2436       <xsl:o therwise> CR LF   2475       <xsl:o therwise> CR LF
2437        <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   2476        <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
2438        <xsl: variable n ame="VarCh ildLinksCo unt" selec t="count($ VarChildLi nks)" /> CR LF   2477        <xsl: variable n ame="VarCh ildLinksCo unt" selec t="count($ VarChildLi nks)" /> CR LF
2439        <xsl: if test="$ VarChildLi nksCount & gt; 0"> CR LF   2478        <xsl: if test="$ VarChildLi nksCount & gt; 0"> CR LF
2440         <xsl :call-temp late name= "LinkInfo" > CR LF   2479         <xsl :call-temp late name= "LinkInfo" > CR LF
2441          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   2480          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
2442          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF   2481          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF
2443          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   2482          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
2444          <xs l:with-par am name="P aramDocume ntLink" se lect="$Var ChildLinks [$VarChild LinksCount ]" /> CR LF   2483          <xs l:with-par am name="P aramDocume ntLink" se lect="$Var ChildLinks [$VarChild LinksCount ]" /> CR LF
2445         </xs l:call-tem plate> CR LF   2484         </xs l:call-tem plate> CR LF
2446        </xsl :if> CR LF   2485        </xsl :if> CR LF
2447       </xsl: otherwise> CR LF   2486       </xsl: otherwise> CR LF
2448      </xsl:c hoose> CR LF   2487      </xsl:c hoose> CR LF
2449     </xsl:va riable> CR LF   2488     </xsl:va riable> CR LF
2450     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> CR LF   2489     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> CR LF
2451   CR LF   2490   CR LF
2452     <xsl:if  test="stri ng-length( $VarLinkIn fo/@href)  &gt; 0"> CR LF   2491     <xsl:if  test="stri ng-length( $VarLinkIn fo/@href)  &gt; 0"> CR LF
2453      <!-- Ge t coords a ttribute - -> CR LF   2492      <!-- Ge t coords a ttribute - -> CR LF
2454      <!--                        - -> CR LF   2493      <!--                        - -> CR LF
2455      <xsl:va riable nam e="VarLeft AsPixels"> CR LF   2494      <xsl:va riable nam e="VarLeft AsPixels"> CR LF
2456       <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   2495       <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
2457       <xsl:c hoose> CR LF   2496       <xsl:c hoose> CR LF
2458        <xsl: when test= "$ParamHor izontalSca ling != 1" > CR LF   2497        <xsl: when test= "$ParamHor izontalSca ling != 1" > CR LF
2459         <xsl :value-of  select="nu mber($VarO rigLeftAsP ixels) * n umber($Par amHorizont alScaling) " /> CR LF   2498         <xsl :value-of  select="nu mber($VarO rigLeftAsP ixels) * n umber($Par amHorizont alScaling) " /> CR LF
2460        </xsl :when> CR LF   2499        </xsl :when> CR LF
2461        <xsl: otherwise> CR LF   2500        <xsl: otherwise> CR LF
2462         <xsl :value-of  select="$V arOrigLeft AsPixels"  /> CR LF   2501         <xsl :value-of  select="$V arOrigLeft AsPixels"  /> CR LF
2463        </xsl :otherwise > CR LF   2502        </xsl :otherwise > CR LF
2464       </xsl: choose> CR LF   2503       </xsl: choose> CR LF
2465      </xsl:v ariable> CR LF   2504      </xsl:v ariable> CR LF
2466   CR LF   2505   CR LF
2467      <xsl:va riable nam e="VarTopA sPixels"> CR LF   2506      <xsl:va riable nam e="VarTopA sPixels"> CR LF
2468       <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   2507       <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
2469       <xsl:c hoose> CR LF   2508       <xsl:c hoose> CR LF
2470        <xsl: when test= "$ParamVer ticalScali ng != 1"> CR LF   2509        <xsl: when test= "$ParamVer ticalScali ng != 1"> CR LF
2471         <xsl :value-of  select="nu mber($VarO rigTopAsPi xels) * nu mber($Para mVerticalS caling)" / > CR LF   2510         <xsl :value-of  select="nu mber($VarO rigTopAsPi xels) * nu mber($Para mVerticalS caling)" / > CR LF
2472        </xsl :when> CR LF   2511        </xsl :when> CR LF
2473        <xsl: otherwise> CR LF   2512        <xsl: otherwise> CR LF
2474         <xsl :value-of  select="$V arOrigTopA sPixels" / > CR LF   2513         <xsl :value-of  select="$V arOrigTopA sPixels" / > CR LF
2475        </xsl :otherwise > CR LF   2514        </xsl :otherwise > CR LF
2476       </xsl: choose> CR LF   2515       </xsl: choose> CR LF
2477      </xsl:v ariable> CR LF   2516      </xsl:v ariable> CR LF
2478   CR LF   2517   CR LF
2479      <xsl:va riable nam e="VarWidt hAsPixels" > CR LF   2518      <xsl:va riable nam e="VarWidt hAsPixels" > CR LF
2480       <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   2519       <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
2481       <xsl:c hoose> CR LF   2520       <xsl:c hoose> CR LF
2482        <xsl: when test= "$ParamHor izontalSca ling != 1" > CR LF   2521        <xsl: when test= "$ParamHor izontalSca ling != 1" > CR LF
2483         <xsl :value-of  select="nu mber($VarO rigWidthAs Pixels) *  number($Pa ramHorizon talScaling )" /> CR LF   2522         <xsl :value-of  select="nu mber($VarO rigWidthAs Pixels) *  number($Pa ramHorizon talScaling )" /> CR LF
2484        </xsl :when> CR LF   2523        </xsl :when> CR LF
2485        <xsl: otherwise> CR LF   2524        <xsl: otherwise> CR LF
2486         <xsl :value-of  select="$V arOrigWidt hAsPixels"  /> CR LF   2525         <xsl :value-of  select="$V arOrigWidt hAsPixels"  /> CR LF
2487        </xsl :otherwise > CR LF   2526        </xsl :otherwise > CR LF
2488       </xsl: choose> CR LF   2527       </xsl: choose> CR LF
2489      </xsl:v ariable> CR LF   2528      </xsl:v ariable> CR LF
2490   CR LF   2529   CR LF
2491      <xsl:va riable nam e="VarHeig htAsPixels "> CR LF   2530      <xsl:va riable nam e="VarHeig htAsPixels "> CR LF
2492       <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   2531       <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
2493       <xsl:c hoose> CR LF   2532       <xsl:c hoose> CR LF
2494        <xsl: when test= "$ParamVer ticalScali ng != 1"> CR LF   2533        <xsl: when test= "$ParamVer ticalScali ng != 1"> CR LF
2495         <xsl :value-of  select="nu mber($VarO rigHeightA sPixels) *  number($P aramVertic alScaling) " /> CR LF   2534         <xsl :value-of  select="nu mber($VarO rigHeightA sPixels) *  number($P aramVertic alScaling) " /> CR LF
2496        </xsl :when> CR LF   2535        </xsl :when> CR LF
2497        <xsl: otherwise> CR LF   2536        <xsl: otherwise> CR LF
2498         <xsl :value-of  select="$V arOrigHeig htAsPixels " /> CR LF   2537         <xsl :value-of  select="$V arOrigHeig htAsPixels " /> CR LF
2499        </xsl :otherwise > CR LF   2538        </xsl :otherwise > CR LF
2500       </xsl: choose> CR LF   2539       </xsl: choose> CR LF
2501      </xsl:v ariable> CR LF   2540      </xsl:v ariable> CR LF
2502   CR LF   2541   CR LF
2503      <!-- co ords --> CR LF   2542      <!-- co ords --> CR LF
2504      <!--         --> CR LF   2543      <!--         --> CR LF
2505      <xsl:va riable nam e="VarCoor dsString"> CR LF   2544      <xsl:va riable nam e="VarCoor dsString"> CR LF
2506       <xsl:c hoose> CR LF   2545       <xsl:c hoose> CR LF
2507        <xsl: when test= "string-le ngth($VarL eftAsPixel s) &gt; 0" > CR LF   2546        <xsl: when test= "string-le ngth($VarL eftAsPixel s) &gt; 0" > CR LF
2508         <xsl :value-of  select="$V arLeftAsPi xels" /> CR LF   2547         <xsl :value-of  select="$V arLeftAsPi xels" /> CR LF
2509        </xsl :when> CR LF   2548        </xsl :when> CR LF
2510        <xsl: otherwise> CR LF   2549        <xsl: otherwise> CR LF
2511         <xsl :value-of  select="'0 '" /> CR LF   2550         <xsl :value-of  select="'0 '" /> CR LF
2512        </xsl :otherwise > CR LF   2551        </xsl :otherwise > CR LF
2513       </xsl: choose> CR LF   2552       </xsl: choose> CR LF
2514   CR LF   2553   CR LF
2515       <xsl:v alue-of se lect="','" /> CR LF   2554       <xsl:v alue-of se lect="','" /> CR LF
2516   CR LF   2555   CR LF
2517       <xsl:c hoose> CR LF   2556       <xsl:c hoose> CR LF
2518        <xsl: when test= "string-le ngth($VarT opAsPixels ) &gt; 0"> CR LF   2557        <xsl: when test= "string-le ngth($VarT opAsPixels ) &gt; 0"> CR LF
2519         <xsl :value-of  select="$V arTopAsPix els" /> CR LF   2558         <xsl :value-of  select="$V arTopAsPix els" /> CR LF
2520        </xsl :when> CR LF   2559        </xsl :when> CR LF
2521        <xsl: otherwise> CR LF   2560        <xsl: otherwise> CR LF
2522         <xsl :value-of  select="'0 '" /> CR LF   2561         <xsl :value-of  select="'0 '" /> CR LF
2523        </xsl :otherwise > CR LF   2562        </xsl :otherwise > CR LF
2524       </xsl: choose> CR LF   2563       </xsl: choose> CR LF
2525   CR LF   2564   CR LF
2526       <xsl:v alue-of se lect="','" /> CR LF   2565       <xsl:v alue-of se lect="','" /> CR LF
2527   CR LF   2566   CR LF
2528       <xsl:c hoose> CR LF   2567       <xsl:c hoose> CR LF
2529        <xsl: when test= "string-le ngth($VarW idthAsPixe ls) &gt; 0 "> CR LF   2568        <xsl: when test= "string-le ngth($VarW idthAsPixe ls) &gt; 0 "> CR LF
2530         <xsl :value-of  select="st ring(numbe r($VarWidt hAsPixels)  + number( $VarLeftAs Pixels))"  /> CR LF   2569         <xsl :value-of  select="st ring(numbe r($VarWidt hAsPixels)  + number( $VarLeftAs Pixels))"  /> CR LF
2531        </xsl :when> CR LF   2570        </xsl :when> CR LF
2532        <xsl: otherwise> CR LF   2571        <xsl: otherwise> CR LF
2533         <xsl :value-of  select="'0 '" /> CR LF   2572         <xsl :value-of  select="'0 '" /> CR LF
2534        </xsl :otherwise > CR LF   2573        </xsl :otherwise > CR LF
2535       </xsl: choose> CR LF   2574       </xsl: choose> CR LF
2536   CR LF   2575   CR LF
2537       <xsl:v alue-of se lect="','" /> CR LF   2576       <xsl:v alue-of se lect="','" /> CR LF
2538   CR LF   2577   CR LF
2539       <xsl:c hoose> CR LF   2578       <xsl:c hoose> CR LF
2540        <xsl: when test= "string-le ngth($VarH eightAsPix els) &gt;  0"> CR LF   2579        <xsl: when test= "string-le ngth($VarH eightAsPix els) &gt;  0"> CR LF
2541         <xsl :value-of  select="st ring(numbe r($VarHeig htAsPixels ) + number ($VarTopAs Pixels))"  /> CR LF   2580         <xsl :value-of  select="st ring(numbe r($VarHeig htAsPixels ) + number ($VarTopAs Pixels))"  /> CR LF
2542        </xsl :when> CR LF   2581        </xsl :when> CR LF
2543        <xsl: otherwise> CR LF   2582        <xsl: otherwise> CR LF
2544         <xsl :value-of  select="'0 '" /> CR LF   2583         <xsl :value-of  select="'0 '" /> CR LF
2545        </xsl :otherwise > CR LF   2584        </xsl :otherwise > CR LF
2546       </xsl: choose> CR LF   2585       </xsl: choose> CR LF
2547      </xsl:v ariable> CR LF   2586      </xsl:v ariable> CR LF
2548   CR LF   2587   CR LF
2549      <!-- al t --> CR LF   2588      <!-- al t --> CR LF
2550      <!--      --> CR LF   2589      <!--      --> CR LF
2551      <xsl:va riable nam e="VarAltT ext"> CR LF   2590      <xsl:va riable nam e="VarAltT ext"> CR LF
2552       <xsl:c all-templa te name="I mages-Imag eAreaAltTe xt"> CR LF   2591       <xsl:c all-templa te name="I mages-Imag eAreaAltTe xt"> CR LF
2553        <xsl: with-param  name="Par amParentBe havior" se lect="$Par amParentBe havior" /> CR LF   2592        <xsl: with-param  name="Par amParentBe havior" se lect="$Par amParentBe havior" /> CR LF
2554        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF   2593        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF
2555       </xsl: call-templ ate> CR LF   2594       </xsl: call-templ ate> CR LF
2556      </xsl:v ariable> CR LF   2595      </xsl:v ariable> CR LF
2557   CR LF   2596   CR LF
2558      <!-- ar ea --> CR LF   2597      <!-- ar ea --> CR LF
2559      <!--       --> CR LF   2598      <!--       --> CR LF
2560      <html:a rea href=" {$VarLinkI nfo/@href} " coords=" {$VarCoord sString}"  shape="rec t"> CR LF   2599      <html:a rea href=" {$VarLinkI nfo/@href} " coords=" {$VarCoord sString}"  shape="rec t"> CR LF
2561       <!-- a lt --> CR LF   2600       <!-- a lt --> CR LF
2562       <!--      --> CR LF   2601       <!--      --> CR LF
2563       <xsl:a ttribute n ame="alt"> CR LF   2602       <xsl:a ttribute n ame="alt"> CR LF
2564        <xsl: value-of s elect="$Va rAltText"  /> CR LF   2603        <xsl: value-of s elect="$Va rAltText"  /> CR LF
2565       </xsl: attribute> CR LF   2604       </xsl: attribute> CR LF
2566      </html: area> CR LF   2605      </html: area> CR LF
2567     </xsl:if > CR LF   2606     </xsl:if > CR LF
2568    </xsl:tem plate> CR LF   2607    </xsl:tem plate> CR LF
2569   </xsl:styl esheet> CR LF   2608   </xsl:styl esheet> CR LF