46. Araxis Merge File Comparison Report

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

46.1 Files compared

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

46.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 56 4860
Changed 26 106
Inserted 9 30
Removed 5 31

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

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

46.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 :span> CR LF   59        <html :span> CR LF
59         <xsl :text>[[</ xsl:text> CR LF   60         <xsl :text>[[</ xsl:text> CR LF
60         <xsl :call-temp late name= "MediaWiki -ProjectRo otedLink"> CR LF   61         <xsl :call-temp late name= "MediaWiki -ProjectRo otedLink"> CR LF
61          <xs l:with-par am name="P aramLinkPa th" select ="$VarTOCE ntry/@path " /> CR LF   62          <xs l:with-par am name="P aramLinkPa th" select ="$VarTOCE ntry/@path " /> CR LF
62          <xs l:with-par am name="P aramTarget OutputDire ctoryPath"  select="$ ParamSplit /@target-o utput-dire ctory-path " /> CR LF   63          <xs l:with-par am name="P aramTarget OutputDire ctoryPath"  select="$ ParamSplit /@target-o utput-dire ctory-path " /> CR LF
63         </xs l:call-tem plate> CR LF   64         </xs l:call-tem plate> CR LF
64         <xsl :text>|</x sl:text> CR LF   65         <xsl :text>|</x sl:text> CR LF
65         <xsl :call-temp late name= "Breadcrum bEntry"> CR LF   66         <xsl :call-temp late name= "Breadcrum bEntry"> CR LF
66          <xs l:with-par am name="P aramTOCEnt ry" select ="$VarTOCE ntry" /> CR LF   67          <xs l:with-par am name="P aramTOCEnt ry" select ="$VarTOCE ntry" /> CR LF
67         </xs l:call-tem plate> CR LF   68         </xs l:call-tem plate> CR LF
68         <xsl :text>]]</ xsl:text> CR LF   69         <xsl :text>]]</ xsl:text> CR LF
69        </htm l:span> CR LF   70        </htm l:span> CR LF
70   CR LF   71   CR LF
71       </xsl: when> CR LF   72       </xsl: when> CR LF
72   CR LF   73   CR LF
73       <xsl:o therwise> CR LF   74       <xsl:o therwise> CR LF
74        <!--  Entry with out link - -> CR LF   75        <!--  Entry with out link - -> CR LF
75        <!--                      - -> CR LF   76        <!--                      - -> CR LF
76        <xsl: call-templ ate name=" Breadcrumb Entry"> CR LF   77        <xsl: call-templ ate name=" Breadcrumb Entry"> CR LF
77         <xsl :with-para m name="Pa ramTOCEntr y" select= "$VarTOCEn try" /> CR LF   78         <xsl :with-para m name="Pa ramTOCEntr y" select= "$VarTOCEn try" /> CR LF
78        </xsl :call-temp late> CR LF   79        </xsl :call-temp late> CR LF
79       </xsl: otherwise> CR LF   80       </xsl: otherwise> CR LF
80      </xsl:c hoose> CR LF   81      </xsl:c hoose> CR LF
81   CR LF   82   CR LF
82      <!-- Em it separat or --> CR LF   83      <!-- Em it separat or --> CR LF
83      <!--                  --> CR LF   84      <!--                  --> CR LF
84      <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   85      <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
85      <xsl:ch oose> CR LF   86      <xsl:ch oose> CR LF
86       <xsl:w hen test=" string-len gth($VarBr eadcrumbsS eparator)  &gt; 0"> CR LF   87       <xsl:w hen test=" string-len gth($VarBr eadcrumbsS eparator)  &gt; 0"> CR LF
87        <xsl: value-of s elect="$Va rBreadcrum bsSeparato r" /> CR LF   88        <xsl: value-of s elect="$Va rBreadcrum bsSeparato r" /> CR LF
88       </xsl: when> CR LF   89       </xsl: when> CR LF
89   CR LF   90   CR LF
90       <xsl:o therwise> CR LF   91       <xsl:o therwise> CR LF
91        <xsl: text> : </ xsl:text> CR LF   92        <xsl: text> : </ xsl:text> CR LF
92       </xsl: otherwise> CR LF   93       </xsl: otherwise> CR LF
93      </xsl:c hoose> CR LF   94      </xsl:c hoose> CR LF
94     </xsl:fo r-each> CR LF   95     </xsl:fo r-each> CR LF
95   CR LF   96   CR LF
96     <!-- Emi t entry -- > CR LF   97     <!-- Emi t entry -- > CR LF
97     <!--             -- > CR LF   98     <!--             -- > CR LF
98     <xsl:cal l-template  name="Bre adcrumbEnt ry"> CR LF   99     <xsl:cal l-template  name="Bre adcrumbEnt ry"> CR LF
99      <xsl:wi th-param n ame="Param TOCEntry"  select="$P aramBreadc rumbTOCEnt ry" /> CR LF   100      <xsl:wi th-param n ame="Param TOCEntry"  select="$P aramBreadc rumbTOCEnt ry" /> CR LF
100     </xsl:ca ll-templat e> CR LF   101     </xsl:ca ll-templat e> CR LF
101    </xsl:tem plate> CR LF   102    </xsl:tem plate> CR LF
102   CR LF   103   CR LF
103   CR LF   104   CR LF
104    <xsl:temp late name= "Breadcrum bEntry"> CR LF   105    <xsl:temp late name= "Breadcrum bEntry"> CR LF
105     <xsl:par am name="P aramTOCEnt ry" /> CR LF   106     <xsl:par am name="P aramTOCEnt ry" /> CR LF
106   CR LF   107   CR LF
107     <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   108     <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
108      <xsl:va riable nam e="VarText " select=" ." /> CR LF   109      <xsl:va riable nam e="VarText " select=" ." /> CR LF
109   CR LF   110   CR LF
110      <xsl:va lue-of sel ect="$VarT ext/@value " /> CR LF   111      <xsl:va lue-of sel ect="$VarT ext/@value " /> CR LF
111     </xsl:fo r-each> CR LF   112     </xsl:fo r-each> CR LF
112    </xsl:tem plate> CR LF   113    </xsl:tem plate> CR LF
113   CR LF   114   CR LF
114   CR LF   115   CR LF
115    <xsl:temp late name= "Content-C ontent"> CR LF   116    <xsl:temp late name= "Content-C ontent"> CR LF
116     <xsl:par am name="P aramConten t" /> CR LF   117     <xsl:par am name="P aramConten t" /> CR LF
117     <xsl:par am name="P aramSplits " /> CR LF   118     <xsl:par am name="P aramSplits " /> CR LF
118     <xsl:par am name="P aramCargo"  /> CR LF   119     <xsl:par am name="P aramCargo"  /> CR LF
119     <xsl:par am name="P aramLinks"  /> CR LF   120     <xsl:par am name="P aramLinks"  /> CR LF
120     <xsl:par am name="P aramTOCDat a" /> CR LF   121     <xsl:par am name="P aramTOCDat a" /> CR LF
121     <xsl:par am name="P aramSplit"  /> CR LF   122     <xsl:par am name="P aramSplit"  /> CR LF
122   CR LF   123   CR LF
123     <!-- Con tent --> CR LF   124     <!-- Con tent --> CR LF
124     <!--          --> CR LF   125     <!--          --> CR LF
125     <xsl:app ly-templat es select= "$ParamCon tent" mode ="wwmode:c ontent"> CR LF   126     <xsl:app ly-templat es select= "$ParamCon tent" mode ="wwmode:c ontent"> CR LF
126      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   127      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
127      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF   128      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF
128      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   129      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
129      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> CR LF   130      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> CR LF
130      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   131      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
131     </xsl:ap ply-templa tes> CR LF   132     </xsl:ap ply-templa tes> CR LF
132   CR LF   133   CR LF
133     <!-- Rel ated Topic s --> CR LF   134     <!-- Rel ated Topic s --> CR LF
134     <!--                  --> CR LF   135     <!--                  --> CR LF
135     <xsl:cal l-template  name="Rel atedTopics "> CR LF   136     <xsl:cal l-template  name="Rel atedTopics "> CR LF
136      <xsl:wi th-param n ame="Param Content" s elect="$Pa ramContent " /> CR LF   137      <xsl:wi th-param n ame="Param Content" s elect="$Pa ramContent " /> CR LF
137      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   138      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
138      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF   139      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF
139      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   140      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
140      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   141      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
141     </xsl:ca ll-templat e> CR LF   142     </xsl:ca ll-templat e> CR LF
142    </xsl:tem plate> CR LF   143    </xsl:tem plate> CR LF
143   CR LF   144   CR LF
144   CR LF   145   CR LF
145    <xsl:temp late name= "RelatedTo pics"> CR LF   146    <xsl:temp late name= "RelatedTo pics"> CR LF
146     <xsl:par am name="P aramConten t" /> CR LF   147     <xsl:par am name="P aramConten t" /> CR LF
147     <xsl:par am name="P aramSplits " /> CR LF   148     <xsl:par am name="P aramSplits " /> CR LF
148     <xsl:par am name="P aramCargo"  /> CR LF   149     <xsl:par am name="P aramCargo"  /> CR LF
149     <xsl:par am name="P aramLinks"  /> CR LF   150     <xsl:par am name="P aramLinks"  /> CR LF
150     <xsl:par am name="P aramSplit"  /> CR LF   151     <xsl:par am name="P aramSplit"  /> CR LF
151   CR LF   152   CR LF
152     <xsl:var iable name ="VarRelat edTopicPar agraphsAsX ML"> CR LF   153     <xsl:var iable name ="VarRelat edTopicPar agraphsAsX ML"> CR LF
153      <xsl:ca ll-templat e name="Re latedTopic Paragraphs "> CR LF   154      <xsl:ca ll-templat e name="Re latedTopic Paragraphs "> CR LF
154       <xsl:w ith-param  name="Para mContent"  select="$P aramConten t" /> CR LF   155       <xsl:w ith-param  name="Para mContent"  select="$P aramConten t" /> CR LF
155       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   156       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
156       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   157       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
157      </xsl:c all-templa te> CR LF   158      </xsl:c all-templa te> CR LF
158     </xsl:va riable> CR LF   159     </xsl:va riable> CR LF
159     <xsl:var iable name ="VarRelat edTopicPar agraphs" s elect="msx sl:node-se t($VarRela tedTopicPa ragraphsAs XML)/wwdoc :Paragraph " /> CR LF   160     <xsl:var iable name ="VarRelat edTopicPar agraphs" s elect="msx sl:node-se t($VarRela tedTopicPa ragraphsAs XML)/wwdoc :Paragraph " /> CR LF
160   CR LF   161   CR LF
161     <xsl:if  test="coun t($VarRela tedTopicPa ragraphs)  &gt; 0"> CR LF   162     <xsl:if  test="coun t($VarRela tedTopicPa ragraphs)  &gt; 0"> CR LF
162      <html:h r /> CR LF   163      <html:h r /> CR LF
163      <html:d iv> CR LF   164      <html:d iv> CR LF
164       <html: div style= "font-weig ht: bold;" > CR LF   165       <html: div style= "font-weig ht: bold;" > CR LF
165        <xsl: value-of s elect="$Gl obalLocale /wwlocale: Locale/wwl ocale:Stri ngs/wwloca le:String[ @name = 'R elatedTopi cs']/@valu e" /> CR LF   166        <xsl: value-of s elect="$Gl obalLocale /wwlocale: Locale/wwl ocale:Stri ngs/wwloca le:String[ @name = 'R elatedTopi cs']/@valu e" /> CR LF
166       </html :div> CR LF   167       </html :div> CR LF
167   CR LF   168   CR LF
168       <xsl:f or-each se lect="$Var RelatedTop icParagrap hs"> CR LF   169       <xsl:f or-each se lect="$Var RelatedTop icParagrap hs"> CR LF
169        <xsl: variable n ame="VarRe latedTopic Paragraph"  select=". " /> CR LF   170        <xsl: variable n ame="VarRe latedTopic Paragraph"  select=". " /> CR LF
170   CR LF   171   CR LF
171        <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   172        <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
172        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="$Para mCargo/wwb ehaviors:B ehaviors[1 ]" /> CR LF   173        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="$Para mCargo/wwb ehaviors:B ehaviors[1 ]" /> CR LF
173   CR LF   174   CR LF
174        <html :div style ="margin-l eft: 12pt; "> CR LF   175        <html :div style ="margin-l eft: 12pt; "> CR LF
175         <xsl :call-temp late name= "Paragraph -Normal"> CR LF   176         <xsl :call-temp late name= "Paragraph -Normal"> CR LF
176          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   177          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
177          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF   178          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF
178          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF   179          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF
179          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   180          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
180          <xs l:with-par am name="P aramParagr aph" selec t="$VarRel atedTopicP aragraph"  /> CR LF   181          <xs l:with-par am name="P aramParagr aph" selec t="$VarRel atedTopicP aragraph"  /> CR LF
181          <xs l:with-par am name="P aramStyleN ame" selec t="$VarRel atedTopicP aragraph/@ stylename"  /> CR LF   182          <xs l:with-par am name="P aramStyleN ame" selec t="$VarRel atedTopicP aragraph/@ stylename"  /> CR LF
182          <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> CR LF   183          <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> CR LF
183          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> CR LF   184          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> CR LF
184         </xs l:call-tem plate> CR LF   185         </xs l:call-tem plate> CR LF
185        </htm l:div> CR LF   186        </htm l:div> CR LF
186       </xsl: for-each> CR LF   187       </xsl: for-each> CR LF
187      </html: div> CR LF   188      </html: div> CR LF
188     </xsl:if > CR LF   189     </xsl:if > CR LF
189    </xsl:tem plate> CR LF   190    </xsl:tem plate> CR LF
190   CR LF   191   CR LF
191   CR LF   192   CR LF
192    <xsl:temp late name= "RelatedTo picParagra phs"> CR LF   193    <xsl:temp late name= "RelatedTo picParagra phs"> CR LF
193     <xsl:par am name="P aramConten t" /> CR LF   194     <xsl:par am name="P aramConten t" /> CR LF
194     <xsl:par am name="P aramCargo"  /> CR LF   195     <xsl:par am name="P aramCargo"  /> CR LF
195     <xsl:par am name="P aramSplit"  /> CR LF   196     <xsl:par am name="P aramSplit"  /> CR LF
196   CR LF   197   CR LF
197     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF   198     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF
198      <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   199      <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
199   CR LF   200   CR LF
200      <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   201      <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
201       <xsl:v ariable na me="VarBeh aviorParag raph" sele ct="." /> CR LF   202       <xsl:v ariable na me="VarBeh aviorParag raph" sele ct="." /> CR LF
202   CR LF   203   CR LF
203       <xsl:f or-each se lect="$Par amContent[ 1]"> CR LF   204       <xsl:f or-each se lect="$Par amContent[ 1]"> CR LF
204        <xsl: for-each s elect="key ('wwdoc-pa ragraphs-b y-id', $Va rBehaviorP aragraph/@ id)[1]"> CR LF   205        <xsl: for-each s elect="key ('wwdoc-pa ragraphs-b y-id', $Va rBehaviorP aragraph/@ id)[1]"> CR LF
205         <xsl :variable  name="VarP aragraph"  select="."  /> CR LF   206         <xsl :variable  name="VarP aragraph"  select="."  /> CR LF
206   CR LF   207   CR LF
207         <!--  Paragraph  has link?  --> CR LF   208         <!--  Paragraph  has link?  --> CR LF
208         <!--                        --> CR LF   209         <!--                        --> CR LF
209         <xsl :variable  name="VarC hildLinks"  select="$ VarParagra ph//wwdoc: Link[count ($VarParag raph | anc estor::wwd oc:Paragra ph[1]) = 1 ]" /> CR LF   210         <xsl :variable  name="VarC hildLinks"  select="$ VarParagra ph//wwdoc: Link[count ($VarParag raph | anc estor::wwd oc:Paragra ph[1]) = 1 ]" /> CR LF
210         <xsl :variable  name="VarC hildLinksC ount" sele ct="count( $VarChildL inks)" /> CR LF   211         <xsl :variable  name="VarC hildLinksC ount" sele ct="count( $VarChildL inks)" /> CR LF
211         <xsl :if test=" $VarChildL inksCount  &gt; 0"> CR LF   212         <xsl :if test=" $VarChildL inksCount  &gt; 0"> CR LF
212          <!- - Emit par agraph --> CR LF   213          <!- - Emit par agraph --> CR LF
213          <!- -                 --> CR LF   214          <!- -                 --> CR LF
214          <ww doc:Paragr aph> CR LF   215          <ww doc:Paragr aph> CR LF
215           <x sl:copy-of  select="$ VarParagra ph/@*" /> CR LF   216           <x sl:copy-of  select="$ VarParagra ph/@*" /> CR LF
216   CR LF   217   CR LF
217           <! -- Insure  link is de fined --> CR LF   218           <! -- Insure  link is de fined --> CR LF
218           <! --                          --> CR LF   219           <! --                          --> CR LF
219           <x sl:if test ="count($V arParagrap h/wwdoc:Li nk) = 0"> CR LF   220           <x sl:if test ="count($V arParagrap h/wwdoc:Li nk) = 0"> CR LF
220            < xsl:copy-o f select=" $VarChildL inks[1]" / > CR LF   221            < xsl:copy-o f select=" $VarChildL inks[1]" / > CR LF
221           </ xsl:if> CR LF   222           </ xsl:if> CR LF
222   CR LF   223   CR LF
223           <x sl:copy-of  select="$ VarParagra ph/*" /> CR LF   224           <x sl:copy-of  select="$ VarParagra ph/*" /> CR LF
224          </w wdoc:Parag raph> CR LF   225          </w wdoc:Parag raph> CR LF
225         </xs l:if> CR LF   226         </xs l:if> CR LF
226        </xsl :for-each> CR LF   227        </xsl :for-each> CR LF
227       </xsl: for-each> CR LF   228       </xsl: for-each> CR LF
228      </xsl:f or-each> CR LF   229      </xsl:f or-each> CR LF
229     </xsl:fo r-each> CR LF   230     </xsl:fo r-each> CR LF
230    </xsl:tem plate> CR LF   231    </xsl:tem plate> CR LF
231   CR LF   232   CR LF
232   CR LF   233   CR LF
233    <xsl:temp late name= "Content-N otes"> CR LF   234    <xsl:temp late name= "Content-N otes"> CR LF
234     <xsl:par am name="P aramNotes"  /> CR LF   235     <xsl:par am name="P aramNotes"  /> CR LF
235     <xsl:par am name="P aramSplits " /> CR LF   236     <xsl:par am name="P aramSplits " /> CR LF
236     <xsl:par am name="P aramCargo"  /> CR LF   237     <xsl:par am name="P aramCargo"  /> CR LF
237     <xsl:par am name="P aramLinks"  /> CR LF   238     <xsl:par am name="P aramLinks"  /> CR LF
238     <xsl:par am name="P aramTOCDat a" /> CR LF   239     <xsl:par am name="P aramTOCDat a" /> CR LF
239     <xsl:par am name="P aramSplit"  /> CR LF   240     <xsl:par am name="P aramSplit"  /> CR LF
240   CR LF   241   CR LF
241     <xsl:if  test="coun t($ParamNo tes[1]) =  1"> CR LF   242     <xsl:if  test="coun t($ParamNo tes[1]) =  1"> CR LF
242      <html:h r /> CR LF   243      <html:h r /> CR LF
243      <xsl:fo r-each sel ect="$Para mNotes"> CR LF   244      <xsl:fo r-each sel ect="$Para mNotes"> CR LF
244       <xsl:v ariable na me="VarNot e" select= "." /> CR LF   245       <xsl:v ariable na me="VarNot e" select= "." /> CR LF
245   CR LF   246   CR LF
246       <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   247       <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
247   CR LF   248   CR LF
248       <xsl:i f test="st ring-lengt h($VarNote Number) &g t; 0"> CR LF   249       <xsl:i f test="st ring-lengt h($VarNote Number) &g t; 0"> CR LF
249        <html :div style ="display:  inline; f ont-size:  smaller; p adding-rig ht: 10px;" > CR LF   250        <html :div style ="display:  inline; f ont-size:  smaller; p adding-rig ht: 10px;" > CR LF
250         <!--  Force on  one line - -> CR LF   251         <!--  Force on  one line - -> CR LF
251         <!--                     - -> CR LF   252         <!--                     - -> CR LF
252         <wwe xsldoc:NoB reak /> CR LF   253         <wwe xsldoc:NoB reak /> CR LF
253   CR LF   254   CR LF
254         <htm l:span id= "ww{$VarNo te/@id}"> CR LF   255         <htm l:span id= "ww{$VarNo te/@id}"> CR LF
255          <xs l:text>[[< /xsl:text> CR LF   256          <xs l:text>[[< /xsl:text> CR LF
256          <xs l:text>#ww footnote_i nline_</xs l:text> CR LF   257          <xs l:text>#ww footnote_i nline_</xs l:text> CR LF
257          <xs l:value-of  select="$ VarNote/@i d" /> CR LF   258          <xs l:value-of  select="$ VarNote/@i d" /> CR LF
258   CR LF   259   CR LF
259          <xs l:text>|</ xsl:text> CR LF   260          <xs l:text>|</ xsl:text> CR LF
260   CR LF   261   CR LF
261           <x sl:value-o f select=" $VarNoteNu mber"/> CR LF   262           <x sl:value-o f select=" $VarNoteNu mber"/> CR LF
262          <xs l:text>]]< /xsl:text> CR LF   263          <xs l:text>]]< /xsl:text> CR LF
263         </ht ml:span> CR LF   264         </ht ml:span> CR LF
264   CR LF   265   CR LF
265         <!--  Force on  one line - -> CR LF   266         <!--  Force on  one line - -> CR LF
266         <!--                     - -> CR LF   267         <!--                     - -> CR LF
267         <wwe xsldoc:NoB reak /> CR LF   268         <wwe xsldoc:NoB reak /> CR LF
268        </htm l:div> CR LF   269        </htm l:div> CR LF
269   CR LF   270   CR LF
270        <xsl: apply-temp lates sele ct="$VarNo te/*" mode ="wwmode:c ontent"> CR LF   271        <xsl: apply-temp lates sele ct="$VarNo te/*" mode ="wwmode:c ontent"> CR LF
271         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   272         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
272         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   273         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
273         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   274         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
274         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF   275         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF
275         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   276         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
276        </xsl :apply-tem plates> CR LF   277        </xsl :apply-tem plates> CR LF
277       </xsl: if> CR LF   278       </xsl: if> CR LF
278      </xsl:f or-each> CR LF   279      </xsl:f or-each> CR LF
279     </xsl:if > CR LF   280     </xsl:if > CR LF
280    </xsl:tem plate> CR LF   281    </xsl:tem plate> CR LF
281   CR LF   282   CR LF
282   CR LF   283   CR LF
283    <xsl:temp late name= "Content-B ullet"> CR LF   284    <xsl:temp late name= "Content-B ullet"> CR LF
284     <xsl:par am name="P aramSplits " /> CR LF   285     <xsl:par am name="P aramSplits " /> CR LF
285     <xsl:par am name="P aramSplit"  /> CR LF   286     <xsl:par am name="P aramSplit"  /> CR LF
286     <xsl:par am name="P aramParagr aph" /> CR LF   287     <xsl:par am name="P aramParagr aph" /> CR LF
287     <xsl:par am name="P aramCharac ter" /> CR LF   288     <xsl:par am name="P aramCharac ter" /> CR LF
288     <xsl:par am name="P aramImage"  /> CR LF   289     <xsl:par am name="P aramImage"  /> CR LF
289     <xsl:par am name="P aramSepara tor" /> CR LF   290     <xsl:par am name="P aramSepara tor" /> CR LF
290     <xsl:par am name="P aramStyle"  /> CR LF   291     <xsl:par am name="P aramStyle"  /> CR LF
291   CR LF   292   CR LF
292     <xsl:cho ose> CR LF   293     <xsl:cho ose> CR LF
293      <xsl:wh en test="s tring-leng th($ParamS tyle) &gt;  0"> CR LF   294      <xsl:wh en test="s tring-leng th($ParamS tyle) &gt;  0"> CR LF
294   CR LF   295   CR LF
295       <!-- G et rule -- > CR LF   296       <!-- G et rule -- > CR LF
296       <!--           -- > CR LF   297       <!--           -- > CR LF
297       <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Character' , $ParamSt yle)" /> CR LF   298       <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Character' , $ParamSt yle)" /> CR LF
298   CR LF   299   CR LF
299       <!-- R esolve pro ject prope rties --> CR LF   300       <!-- R esolve pro ject prope rties --> CR LF
300       <!--                               --> CR LF   301       <!--                               --> CR LF
301       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> CR LF   302       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> CR LF
302        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > CR LF   303        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > CR LF
303         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramParagr aph" /> CR LF   304         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramParagr aph" /> CR LF
304         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRul e/wwprojec t:Properti es/wwproje ct:Propert y" /> CR LF   305         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRul e/wwprojec t:Properti es/wwproje ct:Propert y" /> CR LF
305         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yle" /> CR LF   306         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yle" /> CR LF
306         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> CR LF   307         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> CR LF
307         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mParagraph /wwdoc:Num ber[1]/wwd oc:Style"  /> CR LF   308         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mParagraph /wwdoc:Num ber[1]/wwd oc:Style"  /> CR LF
308        </xsl :call-temp late> CR LF   309        </xsl :call-temp late> CR LF
309       </xsl: variable> CR LF   310       </xsl: variable> CR LF
310       <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   311       <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
311   CR LF   312   CR LF
312       <!-- C SS propert ies --> CR LF   313       <!-- C SS propert ies --> CR LF
313       <!--                  --> CR LF   314       <!--                  --> CR LF
314       <xsl:v ariable na me="VarCSS Properties AsXML"> CR LF   315       <xsl:v ariable na me="VarCSS Properties AsXML"> CR LF
315        <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> CR LF   316        <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> CR LF
316         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> CR LF   317         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> CR LF
317         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" /> CR LF   318         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" /> CR LF
318         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   319         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
319        </xsl :call-temp late> CR LF   320        </xsl :call-temp late> CR LF
320       </xsl: variable> CR LF   321       </xsl: variable> CR LF
321       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > CR LF   322       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > CR LF
322   CR LF   323   CR LF
323       <!-- S tyle attri bute --> CR LF   324       <!-- S tyle attri bute --> CR LF
324       <!--                   --> CR LF   325       <!--                   --> CR LF
325       <xsl:v ariable na me="VarSty leAttribut e"> CR LF   326       <xsl:v ariable na me="VarSty leAttribut e"> CR LF
326        <xsl: call-templ ate name=" CSS-Inline Properties "> CR LF   327        <xsl: call-templ ate name=" CSS-Inline Properties "> CR LF
327         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> CR LF   328         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> CR LF
328        </xsl :call-temp late> CR LF   329        </xsl :call-temp late> CR LF
329       </xsl: variable> CR LF   330       </xsl: variable> CR LF
330   CR LF   331   CR LF
331       <xsl:v ariable na me="VarTag Property"  select="$V arRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'tag' ]/@Value"  /> CR LF   332       <xsl:v ariable na me="VarTag Property"  select="$V arRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'tag' ]/@Value"  /> CR LF
332       <xsl:v ariable na me="VarTag "> CR LF   333       <xsl:v ariable na me="VarTag "> CR LF
333        <xsl: choose> CR LF   334        <xsl: choose> CR LF
334         <xsl :when test ="string-l ength($Var TagPropert y) &gt; 0" > CR LF   335         <xsl :when test ="string-l ength($Var TagPropert y) &gt; 0" > CR LF
335          <xs l:value-of  select="$ VarTagProp erty" /> CR LF   336          <xs l:value-of  select="$ VarTagProp erty" /> CR LF
336         </xs l:when> CR LF   337         </xs l:when> CR LF
337   CR LF   338   CR LF
338         <xsl :otherwise > CR LF   339         <xsl :otherwise > CR LF
339          <xs l:value-of  select="' span'" /> CR LF   340          <xs l:value-of  select="' span'" /> CR LF
340         </xs l:otherwis e> CR LF   341         </xs l:otherwis e> CR LF
341        </xsl :choose> CR LF   342        </xsl :choose> CR LF
342       </xsl: variable> CR LF   343       </xsl: variable> CR LF
343   CR LF   344   CR LF
344       <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} "> CR LF   345       <xsl:e lement nam e="{$VarTa g}" namesp ace="{$Glo balDefault Namespace} "> CR LF
345        <!--  Style attr ibute --> CR LF   346        <!--  Style attr ibute --> CR LF
346        <!--                   --> CR LF   347        <!--                   --> CR LF
347        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" > CR LF   348        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" > CR LF
348         <xsl :attribute  name="sty le"> CR LF   349         <xsl :attribute  name="sty le"> CR LF
349          <xs l:value-of  select="$ VarStyleAt tribute" / > CR LF   350          <xs l:value-of  select="$ VarStyleAt tribute" / > CR LF
350         </xs l:attribut e> CR LF   351         </xs l:attribut e> CR LF
351        </xsl :if> CR LF   352        </xsl :if> CR LF
352   CR LF   353   CR LF
353        <xsl: if test="s tring-leng th($ParamI mage) &gt;  0"> CR LF   354        <xsl: if test="s tring-leng th($ParamI mage) &gt;  0"> CR LF
354         <!--  Get absol ute path f or imaging  info --> CR LF   355         <!--  Get absol ute path f or imaging  info --> CR LF
355         <!--                                        --> CR LF   356         <!--                                        --> CR LF
356         <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   357         <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
357         <xsl :variable  name="VarI mageInfo"  select="ww imaging:Ge tInfo($Var ImageFileS ystemPath) " /> CR LF   358         <xsl :variable  name="VarI mageInfo"  select="ww imaging:Ge tInfo($Var ImageFileS ystemPath) " /> CR LF
358   CR LF   359   CR LF
359         <xsl :variable  name="VarI magePath"> CR LF   360         <xsl :variable  name="VarI magePath"> CR LF
360          <xs l:call-tem plate name ="URI-Reso lveProject FileURI"> CR LF   361          <xs l:call-tem plate name ="URI-Reso lveProject FileURI"> CR LF
361           <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamSpli t/@path" / > CR LF   362           <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamSpli t/@path" / > CR LF
362           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   363           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
363           <x sl:with-pa ram name=" ParamURI"  select="$P aramImage"  /> CR LF   364           <x sl:with-pa ram name=" ParamURI"  select="$P aramImage"  /> CR LF
364          </x sl:call-te mplate> CR LF   365          </x sl:call-te mplate> CR LF
365         </xs l:variable > CR LF   366         </xs l:variable > CR LF
366   CR LF   367   CR LF
367         <!--  Image --> CR LF   368         <!--  Image --> CR LF
368         <!--        --> CR LF   369         <!--        --> CR LF
369         <xsl :text>[[</ xsl:text> CR LF   370         <xsl :text>[[</ xsl:text> CR LF
370          <xs l:call-tem plate name ="MediaWik i-ImageRoo tedLink"> CR LF   371          <xs l:call-tem plate name ="MediaWik i-ImageRoo tedLink"> CR LF
371           <x sl:with-pa ram name=" ParamLinkP ath" selec t="$VarIma gePath" /> CR LF   372           <x sl:with-pa ram name=" ParamLinkP ath" selec t="$VarIma gePath" /> CR LF
372           <x sl:with-pa ram name=" ParamOutpu tDirectory Path" sele ct="$Param Split/@tar get-output -directory -path" /> CR LF   373           <x sl:with-pa ram name=" ParamOutpu tDirectory Path" sele ct="$Param Split/@tar get-output -directory -path" /> CR LF
373          </x sl:call-te mplate> CR LF   374          </x sl:call-te mplate> CR LF
374   CR LF   375   CR LF
375         <xsl :text>|</x sl:text> CR LF   376         <xsl :text>|</x sl:text> CR LF
376   CR LF   377   CR LF
377         <xsl :value-of  select="$V arImageInf o/@width"  /> CR LF   378         <xsl :value-of  select="$V arImageInf o/@width"  /> CR LF
378         <xsl :text>px</ xsl:text> CR LF   379         <xsl :text>px</ xsl:text> CR LF
379         <xsl :text>]]</ xsl:text> CR LF   380         <xsl :text>]]</ xsl:text> CR LF
380        </xsl :if> CR LF   381        </xsl :if> CR LF
381   CR LF   382   CR LF
382        <!--  Characters  --> CR LF   383        <!--  Characters  --> CR LF
383        <!--              --> CR LF   384        <!--              --> CR LF
384        <xsl: value-of s elect="$Pa ramCharact er" /> CR LF   385        <xsl: value-of s elect="$Pa ramCharact er" /> CR LF
385   CR LF   386   CR LF
386        <!--  Separator  --> CR LF   387        <!--  Separator  --> CR LF
387        <!--             --> CR LF   388        <!--             --> CR LF
388        <xsl: value-of s elect="$Pa ramSeparat or" /> CR LF   389        <xsl: value-of s elect="$Pa ramSeparat or" /> CR LF
389       </xsl: element> CR LF   390       </xsl: element> CR LF
390      </xsl:w hen> CR LF   391      </xsl:w hen> CR LF
391   CR LF   392   CR LF
392      <xsl:ot herwise> CR LF   393      <xsl:ot herwise> CR LF
393       <xsl:i f test="st ring-lengt h($ParamIm age) &gt;  0"> CR LF   394       <xsl:i f test="st ring-lengt h($ParamIm age) &gt;  0"> CR LF
394        <!--  Get absolu te path fo r imaging  info --> CR LF   395        <!--  Get absolu te path fo r imaging  info --> CR LF
395        <!--                                        --> CR LF   396        <!--                                        --> CR LF
396        <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   397        <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
397        <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Get Info($VarI mageFileSy stemPath)"  /> CR LF   398        <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Get Info($VarI mageFileSy stemPath)"  /> CR LF
398   CR LF   399   CR LF
399        <xsl: variable n ame="VarIm agePath"> CR LF   400        <xsl: variable n ame="VarIm agePath"> CR LF
400         <xsl :call-temp late name= "URI-Resol veProjectF ileURI"> CR LF   401         <xsl :call-temp late name= "URI-Resol veProjectF ileURI"> CR LF
401          <xs l:with-par am name="P aramFromAb soluteURI"  select="$ ParamSplit /@path" /> CR LF   402          <xs l:with-par am name="P aramFromAb soluteURI"  select="$ ParamSplit /@path" /> CR LF
402          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   403          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
403          <xs l:with-par am name="P aramURI" s elect="$Pa ramImage"  /> CR LF   404          <xs l:with-par am name="P aramURI" s elect="$Pa ramImage"  /> CR LF
404         </xs l:call-tem plate> CR LF   405         </xs l:call-tem plate> CR LF
405        </xsl :variable> CR LF   406        </xsl :variable> CR LF
406   CR LF   407   CR LF
407        <!--  Image --> CR LF   408        <!--  Image --> CR LF
408        <!--        --> CR LF   409        <!--        --> CR LF
409        <xsl: text>[[</x sl:text> CR LF   410        <xsl: text>[[</x sl:text> CR LF
410         <xsl :call-temp late name= "MediaWiki -ImageRoot edLink"> CR LF   411         <xsl :call-temp late name= "MediaWiki -ImageRoot edLink"> CR LF
411          <xs l:with-par am name="P aramLinkPa th" select ="$VarImag ePath" /> CR LF   412          <xs l:with-par am name="P aramLinkPa th" select ="$VarImag ePath" /> CR LF
412          <xs l:with-par am name="P aramOutput DirectoryP ath" selec t="$ParamS plit/@targ et-output- directory- path" /> CR LF   413          <xs l:with-par am name="P aramOutput DirectoryP ath" selec t="$ParamS plit/@targ et-output- directory- path" /> CR LF
413         </xs l:call-tem plate> CR LF   414         </xs l:call-tem plate> CR LF
414   CR LF   415   CR LF
415        <xsl: text>|</xs l:text> CR LF   416        <xsl: text>|</xs l:text> CR LF
416   CR LF   417   CR LF
417        <xsl: value-of s elect="$Va rImageInfo /@width" / > CR LF   418        <xsl: value-of s elect="$Va rImageInfo /@width" / > CR LF
418        <xsl: text>px</x sl:text> CR LF   419        <xsl: text>px</x sl:text> CR LF
419        <xsl: text>]]</x sl:text> CR LF   420        <xsl: text>]]</x sl:text> CR LF
420       </xsl: if> CR LF   421       </xsl: if> CR LF
421   CR LF   422   CR LF
422       <!-- C haracters  --> CR LF   423       <!-- C haracters  --> CR LF
423       <!--              --> CR LF   424       <!--              --> CR LF
424       <xsl:v alue-of se lect="$Par amCharacte r" /> CR LF   425       <xsl:v alue-of se lect="$Par amCharacte r" /> CR LF
425   CR LF   426   CR LF
426       <!-- S eparator - -> CR LF   427       <!-- S eparator - -> CR LF
427       <!--            - -> CR LF   428       <!--            - -> CR LF
428       <xsl:v alue-of se lect="$Par amSeparato r" /> CR LF   429       <xsl:v alue-of se lect="$Par amSeparato r" /> CR LF
429      </xsl:o therwise> CR LF   430      </xsl:o therwise> CR LF
430     </xsl:ch oose> CR LF   431     </xsl:ch oose> CR LF
431    </xsl:tem plate> CR LF   432    </xsl:tem plate> CR LF
432   CR LF   433   CR LF
433   CR LF   434   CR LF
434    <xsl:temp late name= "Notes-Num ber"> CR LF   435    <xsl:temp late name= "Notes-Num ber"> CR LF
435     <xsl:par am name="P aramNotes"  /> CR LF   436     <xsl:par am name="P aramNotes"  /> CR LF
436   CR LF   437   CR LF
437     <wwnotes :NoteNumbe ring versi on="1.0"> CR LF   438     <wwnotes :NoteNumbe ring versi on="1.0"> CR LF
438      <xsl:fo r-each sel ect="$Para mNotes"> CR LF   439      <xsl:fo r-each sel ect="$Para mNotes"> CR LF
439       <xsl:v ariable na me="VarNot e" select= "." /> CR LF   440       <xsl:v ariable na me="VarNot e" select= "." /> CR LF
440   CR LF   441   CR LF
441       <wwnot es:Note id ="{$VarNot e/@id}" nu mber="{pos ition()}"  /> CR LF   442       <wwnot es:Note id ="{$VarNot e/@id}" nu mber="{pos ition()}"  /> CR LF
442      </xsl:f or-each> CR LF   443      </xsl:f or-each> CR LF
443     </wwnote s:NoteNumb ering> CR LF   444     </wwnote s:NoteNumb ering> CR LF
444    </xsl:tem plate> CR LF   445    </xsl:tem plate> CR LF
445   CR LF   446   CR LF
446   CR LF   447   CR LF
447    <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:content" > CR LF   448    <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:content" > CR LF
448     <xsl:par am name="P aramSplits " /> CR LF   449     <xsl:par am name="P aramSplits " /> CR LF
449     <xsl:par am name="P aramCargo"  /> CR LF   450     <xsl:par am name="P aramCargo"  /> CR LF
450     <xsl:par am name="P aramLinks"  /> CR LF   451     <xsl:par am name="P aramLinks"  /> CR LF
451     <xsl:par am name="P aramTOCDat a" /> CR LF   452     <xsl:par am name="P aramTOCDat a" /> CR LF
452     <xsl:par am name="P aramSplit"  /> CR LF   453     <xsl:par am name="P aramSplit"  /> CR LF
453   CR LF   454   CR LF
454     <xsl:var iable name ="VarParag raph" sele ct="." /> CR LF   455     <xsl:var iable name ="VarParag raph" sele ct="." /> CR LF
455   CR LF   456   CR LF
456     <!-- Abo rted? --> CR LF   457     <!-- Abo rted? --> CR LF
457     <!--           --> CR LF   458     <!--           --> CR LF
458     <xsl:if  test="not( wwprogress :Abort())" > CR LF   459     <xsl:if  test="not( wwprogress :Abort())" > CR LF
459      <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   460      <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
460      <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   461      <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
461      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF   462      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF
462      <xsl:if  test="$Va rGenerateO utput"> CR LF   463      <xsl:if  test="$Va rGenerateO utput"> CR LF
463       <!-- R elated Top ic Only or  Popup Onl y? --> CR LF   464       <!-- R elated Top ic Only or  Popup Onl y? --> CR LF
464       <!--                                       --> CR LF   465       <!--                                       --> CR LF
465       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF   466       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF
466        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="key(' wwbehavior s-paragrap hs-by-id',  $VarParag raph/@id)[ 1]" /> CR LF   467        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="key(' wwbehavior s-paragrap hs-by-id',  $VarParag raph/@id)[ 1]" /> CR LF
467        <xsl: variable n ame="VarIn PopupPage"  select="c ount($Para mCargo/wwb ehaviors:P opupPage)  &gt; 0" /> CR LF   468        <xsl: variable n ame="VarIn PopupPage"  select="c ount($Para mCargo/wwb ehaviors:P opupPage)  &gt; 0" /> CR LF
468        <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   469        <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
469        <xsl: variable n ame="VarRe latedTopic Only" sele ct="$VarPa ragraphBeh avior/@rel atedtopic  = 'define- no-output' " /> CR LF   470        <xsl: variable n ame="VarRe latedTopic Only" sele ct="$VarPa ragraphBeh avior/@rel atedtopic  = 'define- no-output' " /> CR LF
470   CR LF   471   CR LF
471        <xsl: if test="$ VarInPopup Page or (n ot($VarPop upOnly) an d not($Var RelatedTop icOnly))"> CR LF   472        <xsl: if test="$ VarInPopup Page or (n ot($VarPop upOnly) an d not($Var RelatedTop icOnly))"> CR LF
472         <!--  Paragraph  --> CR LF   473         <!--  Paragraph  --> CR LF
473         <!--             --> CR LF   474         <!--             --> CR LF
474         <xsl :call-temp late name= "Paragraph "> CR LF   475         <xsl :call-temp late name= "Paragraph "> CR LF
475          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   476          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
476          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF   477          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF
477          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF   478          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF
478          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   479          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
479          <xs l:with-par am name="P aramParagr aph" selec t="$VarPar agraph" /> CR LF   480          <xs l:with-par am name="P aramParagr aph" selec t="$VarPar agraph" /> CR LF
480          <xs l:with-par am name="P aramStyleN ame" selec t="$VarPar agraph/@st ylename" / > CR LF   481          <xs l:with-par am name="P aramStyleN ame" selec t="$VarPar agraph/@st ylename" / > CR LF
481          <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> CR LF   482          <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> CR LF
482          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> CR LF   483          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> CR LF
483         </xs l:call-tem plate> CR LF   484         </xs l:call-tem plate> CR LF
484   CR LF   485   CR LF
485         <!--  MiniTOC - -> CR LF   486         <!--  MiniTOC - -> CR LF
486         <!--          - -> CR LF   487         <!--          - -> CR LF
487         <xsl :if test=" not($VarIn PopupPage) "> CR LF   488         <xsl :if test=" not($VarIn PopupPage) "> CR LF
488          <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   489          <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
489          <xs l:variable  name="Var MiniTOCSub LevelsNume ricPrefix"  select="w wunits:Num ericPrefix ($VarMiniT OCSubLevel s)" /> CR LF   490          <xs l:variable  name="Var MiniTOCSub LevelsNume ricPrefix"  select="w wunits:Num ericPrefix ($VarMiniT OCSubLevel s)" /> CR LF
490          <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   491          <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
491          <xs l:if test= "($VarMini TOCSubLeve lsGreaterT hanZero) o r ($VarMin iTOCSubLev els = 'all ')"> CR LF   492          <xs l:if test= "($VarMini TOCSubLeve lsGreaterT hanZero) o r ($VarMin iTOCSubLev els = 'all ')"> CR LF
492           <x sl:for-eac h select=" $ParamTOCD ata[1]"> CR LF   493           <x sl:for-eac h select=" $ParamTOCD ata[1]"> CR LF
493            < xsl:variab le name="V arTOCEntry " select=" key('wwtoc -entry-by- id', $VarP aragraph/@ id)[@docum entID = $P aramSplit/ @documentI D]" /> CR LF   494            < xsl:variab le name="V arTOCEntry " select=" key('wwtoc -entry-by- id', $VarP aragraph/@ id)[@docum entID = $P aramSplit/ @documentI D]" /> CR LF
494            < xsl:for-ea ch select= "$VarTOCEn try[1]"> CR LF   495            < xsl:for-ea ch select= "$VarTOCEn try[1]"> CR LF
495              <xsl:call- template n ame="MiniT OC"> CR LF   496              <xsl:call- template n ame="MiniT OC"> CR LF
496               <xsl:with -param nam e="ParamSp lit" selec t="$ParamS plit" /> CR LF   497               <xsl:with -param nam e="ParamSp lit" selec t="$ParamS plit" /> CR LF
497               <xsl:with -param nam e="ParamTO CEntry" se lect="$Var TOCEntry[1 ]" /> CR LF   498               <xsl:with -param nam e="ParamTO CEntry" se lect="$Var TOCEntry[1 ]" /> CR LF
498               <xsl:with -param nam e="ParamEm itTOCEntry " select=" false()" / > CR LF   499               <xsl:with -param nam e="ParamEm itTOCEntry " select=" false()" / > CR LF
499               <xsl:with -param nam e="ParamMi niTOCSubLe vels" sele ct="$VarMi niTOCSubLe vels" /> CR LF   500               <xsl:with -param nam e="ParamMi niTOCSubLe vels" sele ct="$VarMi niTOCSubLe vels" /> CR LF
500              </xsl:call -template> CR LF   501              </xsl:call -template> CR LF
501            < /xsl:for-e ach> CR LF   502            < /xsl:for-e ach> CR LF
502           </ xsl:for-ea ch> CR LF   503           </ xsl:for-ea ch> CR LF
503          </x sl:if> CR LF   504          </x sl:if> CR LF
504         </xs l:if> CR LF   505         </xs l:if> CR LF
505        </xsl :if> CR LF   506        </xsl :if> CR LF
506       </xsl: for-each> CR LF   507       </xsl: for-each> CR LF
507      </xsl:i f> CR LF   508      </xsl:i f> CR LF
508     </xsl:if > CR LF   509     </xsl:if > CR LF
509    </xsl:tem plate> CR LF   510    </xsl:tem plate> CR LF
510   CR LF   511   CR LF
511   CR LF   512   CR LF
512    <xsl:temp late name= "MiniTOC"> CR LF   513    <xsl:temp late name= "MiniTOC"> CR LF
513     <xsl:par am name="P aramSplit"  /> CR LF   514     <xsl:par am name="P aramSplit"  /> CR LF
514     <xsl:par am name="P aramTOCEnt ry" /> CR LF   515     <xsl:par am name="P aramTOCEnt ry" /> CR LF
515     <xsl:par am name="P aramEmitTO CEntry" /> CR LF   516     <xsl:par am name="P aramEmitTO CEntry" /> CR LF
516     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF   517     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF
517   CR LF   518   CR LF
518     <xsl:if  test="($Pa ramEmitTOC Entry = tr ue()) or ( count($Par amTOCEntry /wwtoc:Ent ry[1]) = 1 )"> CR LF   519     <xsl:if  test="($Pa ramEmitTOC Entry = tr ue()) or ( count($Par amTOCEntry /wwtoc:Ent ry[1]) = 1 )"> CR LF
519      <html:d iv style=" background -color: #D DDDDD; bor der-color:  #000000;  border-wid th: 1px; b order-styl e: solid;  padding: 8 px;"> CR LF   520      <html:d iv style=" background -color: #D DDDDD; bor der-color:  #000000;  border-wid th: 1px; b order-styl e: solid;  padding: 8 px;"> CR LF
520       <!-- E mit top-le vel entry?  --> CR LF   521       <!-- E mit top-le vel entry?  --> CR LF
521       <!--                          --> CR LF   522       <!--                          --> CR LF
522       <xsl:c hoose> CR LF   523       <xsl:c hoose> CR LF
523        <xsl: when test= "$ParamEmi tTOCEntry  = true()"> CR LF   524        <xsl: when test= "$ParamEmi tTOCEntry  = true()"> CR LF
524         <htm l:div styl e="margin- left:12 pt ;"> CR LF   525         <htm l:div styl e="margin- left:12 pt ;"> CR LF
525          <ht ml:div sty le="margin -left: 12p t;"> CR LF   526          <ht ml:div sty le="margin -left: 12p t;"> CR LF
526           <! -- Force o n one line  --> CR LF   527           <! -- Force o n one line  --> CR LF
527           <! --                     --> CR LF   528           <! --                     --> CR LF
528           <w wexsldoc:N oBreak /> CR LF   529           <w wexsldoc:N oBreak /> CR LF
529   CR LF   530   CR LF
530           <! -- Paragra ph --> CR LF   531           <! -- Paragra ph --> CR LF
531           <! --            --> CR LF   532           <! --            --> CR LF
532           <x sl:call-te mplate nam e="MiniTOC Paragraph" > CR LF   533           <x sl:call-te mplate nam e="MiniTOC Paragraph" > CR LF
533            < xsl:with-p aram name= "ParamPara graph" sel ect="$Para mTOCEntry/ wwdoc:Para graph" /> CR LF   534            < xsl:with-p aram name= "ParamPara graph" sel ect="$Para mTOCEntry/ wwdoc:Para graph" /> CR LF
534           </ xsl:call-t emplate> CR LF   535           </ xsl:call-t emplate> CR LF
535   CR LF   536   CR LF
536           <! -- Force o n one line  --> CR LF   537           <! -- Force o n one line  --> CR LF
537           <! --                     --> CR LF   538           <! --                     --> CR LF
538           <w wexsldoc:N oBreak /> CR LF   539           <w wexsldoc:N oBreak /> CR LF
539          </h tml:div> CR LF   540          </h tml:div> CR LF
540   CR LF   541   CR LF
541          <!- - Children  --> CR LF   542          <!- - Children  --> CR LF
542          <!- -           --> CR LF   543          <!- -           --> CR LF
543          <xs l:call-tem plate name ="MiniTOCE ntries"> CR LF   544          <xs l:call-tem plate name ="MiniTOCE ntries"> CR LF
544           <x sl:with-pa ram name=" ParamRefer encePath"  select="$P aramSplit/ @path" /> CR LF   545           <x sl:with-pa ram name=" ParamRefer encePath"  select="$P aramSplit/ @path" /> CR LF
545           <x sl:with-pa ram name=" ParamParen t" select= "$ParamTOC Entry" /> CR LF   546           <x sl:with-pa ram name=" ParamParen t" select= "$ParamTOC Entry" /> CR LF
546           <x sl:with-pa ram name=" ParamMiniT OCSubLevel s" select= "$ParamMin iTOCSubLev els" /> CR LF   547           <x sl:with-pa ram name=" ParamMiniT OCSubLevel s" select= "$ParamMin iTOCSubLev els" /> CR LF
547           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   548           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
548          </x sl:call-te mplate> CR LF   549          </x sl:call-te mplate> CR LF
549         </ht ml:div> CR LF   550         </ht ml:div> CR LF
550        </xsl :when> CR LF   551        </xsl :when> CR LF
551   CR LF   552   CR LF
552        <xsl: otherwise> CR LF   553        <xsl: otherwise> CR LF
553         <!--  Children  --> CR LF   554         <!--  Children  --> CR LF
554         <!--            --> CR LF   555         <!--            --> CR LF
555         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF   556         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF
556          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> CR LF   557          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> CR LF
557          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> CR LF   558          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> CR LF
558          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF   559          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF
559          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   560          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
560         </xs l:call-tem plate> CR LF   561         </xs l:call-tem plate> CR LF
561        </xsl :otherwise > CR LF   562        </xsl :otherwise > CR LF
562       </xsl: choose> CR LF   563       </xsl: choose> CR LF
563      </html: div> CR LF   564      </html: div> CR LF
564     </xsl:if > CR LF   565     </xsl:if > CR LF
565    </xsl:tem plate> CR LF   566    </xsl:tem plate> CR LF
566   CR LF   567   CR LF
567   CR LF   568   CR LF
568    <xsl:temp late name= "MiniTOCEn tries"> CR LF   569    <xsl:temp late name= "MiniTOCEn tries"> CR LF
569     <xsl:par am name="P aramRefere ncePath" / > CR LF   570     <xsl:par am name="P aramRefere ncePath" / > CR LF
570     <xsl:par am name="P aramParent " /> CR LF   571     <xsl:par am name="P aramParent " /> CR LF
571     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF   572     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF
572     <xsl:par am name="P aramSplit"  /> CR LF   573     <xsl:par am name="P aramSplit"  /> CR LF
573   CR LF   574   CR LF
574     <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry"  /> CR LF   575     <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry"  /> CR LF
575   CR LF   576   CR LF
576     <xsl:for -each sele ct="$VarSu bEntries[1 ]"> CR LF   577     <xsl:for -each sele ct="$VarSu bEntries[1 ]"> CR LF
577      <html:d iv style=" margin-lef t: 12pt;"> CR LF   578      <html:d iv style=" margin-lef t: 12pt;"> CR LF
578   CR LF   579   CR LF
579      <xsl:fo r-each sel ect="$VarS ubEntries" > CR LF   580      <xsl:fo r-each sel ect="$VarS ubEntries" > CR LF
580       <xsl:v ariable na me="VarEnt ry" select ="." /> CR LF   581       <xsl:v ariable na me="VarEnt ry" select ="." /> CR LF
581   CR LF   582   CR LF
582       <html: div style= "margin-le ft: 12pt;" > CR LF   583       <html: div style= "margin-le ft: 12pt;" > CR LF
583        <!--  Force on o ne line -- > CR LF   584        <!--  Force on o ne line -- > CR LF
584        <!--                     -- > CR LF   585        <!--                     -- > CR LF
585        <wwex sldoc:NoBr eak /> CR LF   586        <wwex sldoc:NoBr eak /> CR LF
586   CR LF   587   CR LF
587        <xsl: choose> CR LF   588        <xsl: choose> CR LF
588         <xsl :when test ="string-l ength($Var Entry/@pat h) &gt; 0" > CR LF   589         <xsl :when test ="string-l ength($Var Entry/@pat h) &gt; 0" > CR LF
589   CR LF   590   CR LF
590          <ht ml:span> CR LF   591          <ht ml:span> CR LF
591   CR LF   592   CR LF
592          <!- - Force on  a single  line --> CR LF   593          <!- - Force on  a single  line --> CR LF
593          <!- -                          --> CR LF   594          <!- -                          --> CR LF
594          <ww exsldoc:No Break /> CR LF   595          <ww exsldoc:No Break /> CR LF
595   CR LF   596   CR LF
596          <xs l:text>[[< /xsl:text> CR LF   597          <xs l:text>[[< /xsl:text> CR LF
597          <xs l:call-tem plate name ="MediaWik i-ProjectR ootedLink" > CR LF   598          <xs l:call-tem plate name ="MediaWik i-ProjectR ootedLink" > CR LF
598           <x sl:with-pa ram name=" ParamLinkP ath" selec t="concat( $VarEntry/ @path, '#' , $VarEntr y/@linkid) " /> CR LF   599           <x sl:with-pa ram name=" ParamLinkP ath" selec t="concat( $VarEntry/ @path, '#' , $VarEntr y/@linkid) " /> CR LF
599           <x sl:with-pa ram name=" ParamTarge tOutputDir ectoryPath " select=" $ParamSpli t/@target- output-dir ectory-pat h" /> CR LF   600           <x sl:with-pa ram name=" ParamTarge tOutputDir ectoryPath " select=" $ParamSpli t/@target- output-dir ectory-pat h" /> CR LF
600          </x sl:call-te mplate> CR LF   601          </x sl:call-te mplate> CR LF
601          <xs l:text>|</ xsl:text> CR LF   602          <xs l:text>|</ xsl:text> CR LF
602          <xs l:call-tem plate name ="MiniTOCP aragraph"> CR LF   603          <xs l:call-tem plate name ="MiniTOCP aragraph"> CR LF
603           <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph"  /> CR LF   604           <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph"  /> CR LF
604          </x sl:call-te mplate> CR LF   605          </x sl:call-te mplate> CR LF
605          <xs l:text>]]< /xsl:text> CR LF   606          <xs l:text>]]< /xsl:text> CR LF
606   CR LF   607   CR LF
607          <!- - Force on  a single  line --> CR LF   608          <!- - Force on  a single  line --> CR LF
608          <!- -                          --> CR LF   609          <!- -                          --> CR LF
609          <ww exsldoc:No Break /> CR LF   610          <ww exsldoc:No Break /> CR LF
610   CR LF   611   CR LF
611          </h tml:span> CR LF   612          </h tml:span> CR LF
612         </xs l:when> CR LF   613         </xs l:when> CR LF
613   CR LF   614   CR LF
614         <xsl :otherwise > CR LF   615         <xsl :otherwise > CR LF
615          <xs l:call-tem plate name ="MiniTOCP aragraph"> CR LF   616          <xs l:call-tem plate name ="MiniTOCP aragraph"> CR LF
616           <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph"  /> CR LF   617           <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph"  /> CR LF
617          </x sl:call-te mplate> CR LF   618          </x sl:call-te mplate> CR LF
618         </xs l:otherwis e> CR LF   619         </xs l:otherwis e> CR LF
619        </xsl :choose> CR LF   620        </xsl :choose> CR LF
620   CR LF   621   CR LF
621        <!--  Force on o ne line -- > CR LF   622        <!--  Force on o ne line -- > CR LF
622        <!--                     -- > CR LF   623        <!--                     -- > CR LF
623        <wwex sldoc:NoBr eak /> CR LF   624        <wwex sldoc:NoBr eak /> CR LF
624       </html :div> CR LF   625       </html :div> CR LF
625   CR LF   626   CR LF
626       <!-- R ecurse --> CR LF   627       <!-- R ecurse --> CR LF
627       <!--          --> CR LF   628       <!--          --> CR LF
628       <xsl:c hoose> CR LF   629       <xsl:c hoose> CR LF
629        <xsl: when test= "$ParamMin iTOCSubLev els = 'all '"> CR LF   630        <xsl: when test= "$ParamMin iTOCSubLev els = 'all '"> CR LF
630         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF   631         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF
631          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF   632          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF
632          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF   633          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF
633          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF   634          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF
634          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   635          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
635         </xs l:call-tem plate> CR LF   636         </xs l:call-tem plate> CR LF
636        </xsl :when> CR LF   637        </xsl :when> CR LF
637   CR LF   638   CR LF
638        <xsl: when test= "($ParamMi niTOCSubLe vels - 1)  &gt; 0"> CR LF   639        <xsl: when test= "($ParamMi niTOCSubLe vels - 1)  &gt; 0"> CR LF
639         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF   640         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF
640          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF   641          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF
641          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF   642          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF
642          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls - 1" /> CR LF   643          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls - 1" /> CR LF
643          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   644          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
644         </xs l:call-tem plate> CR LF   645         </xs l:call-tem plate> CR LF
645        </xsl :when> CR LF   646        </xsl :when> CR LF
646       </xsl: choose> CR LF   647       </xsl: choose> CR LF
647      </xsl:f or-each> CR LF   648      </xsl:f or-each> CR LF
648   CR LF   649   CR LF
649      </html: div> CR LF   650      </html: div> CR LF
650     </xsl:fo r-each> CR LF   651     </xsl:fo r-each> CR LF
651    </xsl:tem plate> CR LF   652    </xsl:tem plate> CR LF
652   CR LF   653   CR LF
653   CR LF   654   CR LF
654    <xsl:temp late name= "MiniTOCPa ragraph"> CR LF   655    <xsl:temp late name= "MiniTOCPa ragraph"> CR LF
655     <xsl:par am name="P aramParagr aph" /> CR LF   656     <xsl:par am name="P aramParagr aph" /> CR LF
656   CR LF   657   CR LF
657     <xsl:for -each sele ct="$Param Paragraph/ wwdoc:Numb er/wwdoc:T ext | $Par amParagrap h/wwdoc:Te xtRun/wwdo c:Text"> CR LF   658     <xsl:for -each sele ct="$Param Paragraph/ wwdoc:Numb er/wwdoc:T ext | $Par amParagrap h/wwdoc:Te xtRun/wwdo c:Text"> CR LF
658      <xsl:va lue-of sel ect="@valu e" /> CR LF   659      <xsl:va lue-of sel ect="@valu e" /> CR LF
659     </xsl:fo r-each> CR LF   660     </xsl:fo r-each> CR LF
660    </xsl:tem plate> CR LF   661    </xsl:tem plate> CR LF
661   CR LF   662   CR LF
662   CR LF   663   CR LF
663    <xsl:temp late name= "Paragraph "> CR LF   664    <xsl:temp late name= "Paragraph "> CR LF
664     <xsl:par am name="P aramSplits " /> CR LF   665     <xsl:par am name="P aramSplits " /> CR LF
665     <xsl:par am name="P aramCargo"  /> CR LF   666     <xsl:par am name="P aramCargo"  /> CR LF
666     <xsl:par am name="P aramLinks"  /> CR LF   667     <xsl:par am name="P aramLinks"  /> CR LF
667     <xsl:par am name="P aramSplit"  /> CR LF   668     <xsl:par am name="P aramSplit"  /> CR LF
668     <xsl:par am name="P aramParagr aph" /> CR LF   669     <xsl:par am name="P aramParagr aph" /> CR LF
669     <xsl:par am name="P aramStyleN ame" /> CR LF   670     <xsl:par am name="P aramStyleN ame" /> CR LF
670     <xsl:par am name="P aramOverri deRule" /> CR LF   671     <xsl:par am name="P aramOverri deRule" /> CR LF
671     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF   672     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF
672   CR LF   673   CR LF
673     <!-- Pre serve empt y? --> CR LF   674     <!-- Pre serve empt y? --> CR LF
674     <!--                   --> CR LF   675     <!--                   --> CR LF
675     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " /> CR LF   676     <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
676     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF   677     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF
677   CR LF   678   CR LF
678     <!-- Non -empty tex t runs --> CR LF   679     <!-- Non -empty tex t runs --> CR LF
679     <!--                       --> CR LF   680     <!--                       --> CR LF
680      <xsl:varia ble name=" VarTextRun s" select= "$ParamPar agraph/wwd oc:TextRun [count(chi ld::wwdoc: Text[1] |  child::wwd oc:Frame[1 ] | child: :wwdoc:Not e[1] | chi ld::wwdoc: LineBreak[ 1]
) &gt; 0]"  /> CR LF
  681      <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
681   CR LF   682   CR LF
682     <!-- Pro cess this  paragraph  at all? -- > CR LF   683     <!-- Pro cess this  paragraph  at all? -- > CR LF
683     <!--                                   -- > CR LF   684     <!--                                   -- > CR LF
684     <xsl:if  test="($Va rPreserveE mpty) or ( count($Var TextRuns[1 ]) = 1)"> CR LF   685     <xsl:if  test="($Va rPreserveE mpty) or ( count($Var TextRuns[1 ]) = 1)"> CR LF
685      <!-- Pa ss-through ? --> CR LF   686      <!-- Pa ss-through ? --> CR LF
686      <!--                 --> CR LF   687      <!--                 --> CR LF
687      <xsl:va riable nam e="VarPass Through"> CR LF   688      <xsl:va riable nam e="VarPass Through"> CR LF
    689       <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
    690   CR LF
    691       <xsl:c hoose> CR LF
    692        <xsl: when test= "$VarPassT hroughOpti on = 'true '"> CR LF
    693         <xsl :value-of  select="tr ue()" /> CR LF
    694        </xsl :when> CR LF
    695   CR LF
    696        <xsl: otherwise> CR LF
688       <xsl:c all-templa te name="C onditions- PassThroug h"> CR LF   697         <xsl :call-temp late name= "Condition s-PassThro ugh"> CR LF
689        <xsl: with-param  name="Par amConditio ns" select ="$ParamPa ragraph/ww doc:Condit ions" /> CR LF   698          <xs l:with-par am name="P aramCondit ions" sele ct="$Param Paragraph/ wwdoc:Cond itions" /> CR LF
690       </xsl: call-templ ate> CR LF   699         </xs l:call-tem plate> CR LF
    700        </xsl :otherwise > CR LF
    701       </xsl: choose> CR LF
691      </xsl:v ariable> CR LF   702      </xsl:v ariable> CR LF
692   CR LF   703   CR LF
693      <xsl:ch oose> CR LF   704      <xsl:ch oose> CR LF
694       <!-- P ass-throug h --> CR LF   705       <!-- P ass-throug h --> CR LF
695       <!--                --> CR LF   706       <!--                --> CR LF
696       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF   707       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF
697        <xsl: call-templ ate name=" Paragraph- PassThroug h"> CR LF   708        <xsl: call-templ ate name=" Paragraph- PassThroug h"> CR LF
698         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF   709         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF
699        </xsl :call-temp late> CR LF   710        </xsl :call-temp late> CR LF
700       </xsl: when> CR LF   711       </xsl: when> CR LF
701   CR LF   712   CR LF
702       <xsl:o therwise> CR LF   713       <xsl:o therwise> CR LF
703        <xsl: call-templ ate name=" Paragraph- Normal"> CR LF   714        <xsl: call-templ ate name=" Paragraph- Normal"> CR LF
704         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   715         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
705         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   716         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
706         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   717         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
707         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   718         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
708         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF   719         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF
709         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yleName" / > CR LF   720         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yleName" / > CR LF
710         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$Para mOverrideR ule" /> CR LF   721         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$Para mOverrideR ule" /> CR LF
711         <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" /> CR LF   722         <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" /> CR LF
712        </xsl :call-temp late> CR LF   723        </xsl :call-temp late> CR LF
713       </xsl: otherwise> CR LF   724       </xsl: otherwise> CR LF
714      </xsl:c hoose> CR LF   725      </xsl:c hoose> CR LF
715     </xsl:if > CR LF   726     </xsl:if > CR LF
716    </xsl:tem plate> CR LF   727    </xsl:tem plate> CR LF
717   CR LF   728   CR LF
718   CR LF   729   CR LF
719    <xsl:temp late name= "Paragraph -PassThrou gh"> CR LF   730    <xsl:temp late name= "Paragraph -PassThrou gh"> CR LF
720     <xsl:par am name="P aramParagr aph" /> CR LF   731     <xsl:par am name="P aramParagr aph" /> CR LF
721   CR LF   732   CR LF
722     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF   733     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF
723      <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Tex tRun/wwdoc :Text"> CR LF   734      <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Tex tRun/wwdoc :Text"> CR LF
724       <xsl:v ariable na me="VarTex t" select= "." /> CR LF   735       <xsl:v ariable na me="VarTex t" select= "." /> CR LF
725   CR LF   736   CR LF
726       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF   737       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF
727      </xsl:f or-each> CR LF   738      </xsl:f or-each> CR LF
728     </wwexsl doc:Text> CR LF   739     </wwexsl doc:Text> CR LF
729    </xsl:tem plate> CR LF   740    </xsl:tem plate> CR LF
730   CR LF   741   CR LF
731   CR LF   742   CR LF
732    <xsl:temp late name= "Paragraph -Normal"> CR LF   743    <xsl:temp late name= "Paragraph -Normal"> CR LF
733     <xsl:par am name="P aramSplits " /> CR LF   744     <xsl:par am name="P aramSplits " /> CR LF
734     <xsl:par am name="P aramCargo"  /> CR LF   745     <xsl:par am name="P aramCargo"  /> CR LF
735     <xsl:par am name="P aramLinks"  /> CR LF   746     <xsl:par am name="P aramLinks"  /> CR LF
736     <xsl:par am name="P aramSplit"  /> CR LF   747     <xsl:par am name="P aramSplit"  /> CR LF
737     <xsl:par am name="P aramParagr aph" /> CR LF   748     <xsl:par am name="P aramParagr aph" /> CR LF
738     <xsl:par am name="P aramStyleN ame" /> CR LF   749     <xsl:par am name="P aramStyleN ame" /> CR LF
739     <xsl:par am name="P aramOverri deRule" /> CR LF   750     <xsl:par am name="P aramOverri deRule" /> CR LF
740     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF   751     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF
741   CR LF   752   CR LF
742     <!-- Res olve proje ct propert ies --> CR LF   753     <!-- Res olve proje ct propert ies --> CR LF
743     <!--                               --> CR LF   754     <!--                               --> CR LF
744     <xsl:var iable name ="VarResol vedPropert iesAsXML"> CR LF   755     <xsl:var iable name ="VarResol vedPropert iesAsXML"> CR LF
745      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> CR LF   756      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> CR LF
746       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF   757       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF
747       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> CR LF   758       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> CR LF
748      </xsl:c all-templa te> CR LF   759      </xsl:c all-templa te> CR LF
749     </xsl:va riable> CR LF   760     </xsl:va riable> CR LF
750     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> CR LF   761     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> CR LF
751   CR LF   762   CR LF
752     <!-- CSS  propertie s --> CR LF   763     <!-- CSS  propertie s --> CR LF
753     <!--                  --> CR LF   764     <!--                  --> CR LF
754     <xsl:var iable name ="VarCSSPr opertiesAs XML"> CR LF   765     <xsl:var iable name ="VarCSSPr opertiesAs XML"> CR LF
755      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF   766      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF
756       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" /> CR LF   767       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" /> CR LF
757       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF   768       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF
758       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   769       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
759      </xsl:c all-templa te> CR LF   770      </xsl:c all-templa te> CR LF
760     </xsl:va riable> CR LF   771     </xsl:va riable> CR LF
761     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> CR LF   772     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> CR LF
762   CR LF   773   CR LF
763     <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   774     <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
764   CR LF   775   CR LF
765     <!-- Res olve proje ct propert ies --> CR LF   776     <!-- Res olve proje ct propert ies --> CR LF
766     <!--                               --> CR LF   777     <!--                               --> CR LF
767     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF   778     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF
768      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF   779      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF
769       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amParagrap h" /> CR LF   780       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amParagrap h" /> CR LF
770       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF   781       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF
771       <xsl:w ith-param  name="Para mStyleName " select=" $ParamPara graph/@sty lename" /> CR LF   782       <xsl:w ith-param  name="Para mStyleName " select=" $ParamPara graph/@sty lename" /> CR LF
772       <xsl:w ith-param  name="Para mStyleType " select=" 'Paragraph '" /> CR LF   783       <xsl:w ith-param  name="Para mStyleType " select=" 'Paragraph '" /> CR LF
773       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> CR LF   784       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> CR LF
774      </xsl:c all-templa te> CR LF   785      </xsl:c all-templa te> CR LF
775     </xsl:va riable> CR LF   786     </xsl:va riable> CR LF
776     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF   787     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF
777   CR LF   788   CR LF
778     <!-- CSS  propertie s --> CR LF   789     <!-- CSS  propertie s --> CR LF
779     <!--                  --> CR LF   790     <!--                  --> CR LF
780     <xsl:var iable name ="VarCSSCo ntextPrope rtiesAsXML "> CR LF   791     <xsl:var iable name ="VarCSSCo ntextPrope rtiesAsXML "> CR LF
781      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF   792      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF
782       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedContext Properties " /> CR LF   793       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedContext Properties " /> CR LF
783       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF   794       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF
784       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   795       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
785      </xsl:c all-templa te> CR LF   796      </xsl:c all-templa te> CR LF
786     </xsl:va riable> CR LF   797     </xsl:va riable> CR LF
787     <xsl:var iable name ="VarCSSCo ntextPrope rties" sel ect="msxsl :node-set( $VarCSSCon textProper tiesAsXML) /wwproject :Property"  /> CR LF   798     <xsl:var iable name ="VarCSSCo ntextPrope rties" sel ect="msxsl :node-set( $VarCSSCon textProper tiesAsXML) /wwproject :Property"  /> CR LF
788   CR LF   799   CR LF
789     <!-- Use  numbering ? --> CR LF   800     <!-- Use  numbering ? --> CR LF
790     <!--                  --> CR LF   801     <!--                  --> CR LF
791     <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   802     <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
792     <xsl:var iable name ="VarUseNu mbering" s elect="(st ring-lengt h($VarUseN umberingOp tion) = 0)  or ($VarU seNumberin gOption =  'true')" / > CR LF   803     <xsl:var iable name ="VarUseNu mbering" s elect="(st ring-lengt h($VarUseN umberingOp tion) = 0)  or ($VarU seNumberin gOption =  'true')" / > CR LF
793   CR LF   804   CR LF
794     <!-- Tex t Indent - -> CR LF   805     <!-- Tex t Indent - -> CR LF
795     <!--              - -> CR LF   806     <!--              - -> CR LF
796     <xsl:var iable name ="VarTextI ndent"> CR LF   807     <xsl:var iable name ="VarTextI ndent"> CR LF
797      <xsl:if  test="$Va rUseNumber ing"> CR LF   808      <xsl:if  test="$Va rUseNumber ing"> CR LF
798       <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarC SSProperti es[@Name =  'text-ind ent']/@Val ue" /> CR LF   809       <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarC SSProperti es[@Name =  'text-ind ent']/@Val ue" /> CR LF
799       <xsl:c hoose> CR LF   810       <xsl:c hoose> CR LF
800        <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0"> CR LF   811        <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0"> CR LF
801         <xsl :value-of  select="$V arOverride TextIndent " /> CR LF   812         <xsl :value-of  select="$V arOverride TextIndent " /> CR LF
802        </xsl :when> CR LF   813        </xsl :when> CR LF
803   CR LF   814   CR LF
804        <xsl: otherwise> CR LF   815        <xsl: otherwise> CR LF
805         <!--  Text inde nt defined ? --> CR LF   816         <!--  Text inde nt defined ? --> CR LF
806         <!--                         --> CR LF   817         <!--                         --> CR LF
807         <xsl :variable  name="VarC ontextText Indent" se lect="$Var CSSContext Properties [@Name = ' text-inden t']/@Value " /> CR LF   818         <xsl :variable  name="VarC ontextText Indent" se lect="$Var CSSContext Properties [@Name = ' text-inden t']/@Value " /> CR LF
808         <xsl :if test=" string-len gth($VarCo ntextTextI ndent) &gt ; 0"> CR LF   819         <xsl :if test=" string-len gth($VarCo ntextTextI ndent) &gt ; 0"> CR LF
809          <xs l:value-of  select="$ VarContext TextIndent " /> CR LF   820          <xs l:value-of  select="$ VarContext TextIndent " /> CR LF
810         </xs l:if> CR LF   821         </xs l:if> CR LF
811        </xsl :otherwise > CR LF   822        </xsl :otherwise > CR LF
812       </xsl: choose> CR LF   823       </xsl: choose> CR LF
813      </xsl:i f> CR LF   824      </xsl:i f> CR LF
814     </xsl:va riable> CR LF   825     </xsl:va riable> CR LF
815   CR LF   826   CR LF
816     <xsl:var iable name ="VarTextI ndentNumer icPrefix"  select="ww units:Nume ricPrefix( $VarTextIn dent)" /> CR LF   827     <xsl:var iable name ="VarTextI ndentNumer icPrefix"  select="ww units:Nume ricPrefix( $VarTextIn dent)" /> CR LF
817     <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   828     <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
818   CR LF   829   CR LF
819     <!-- Use  bullet fr om UI? --> CR LF   830     <!-- Use  bullet fr om UI? --> CR LF
820     <!--                       --> CR LF   831     <!--                       --> CR LF
821     <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   832     <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
822     <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   833     <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
823     <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   834     <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
824     <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   835     <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
825     <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   836     <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
826   CR LF   837   CR LF
827     <!-- Is  numbered p aragraph - -> CR LF   838     <!-- Is  numbered p aragraph - -> CR LF
828     <!--                         - -> CR LF   839     <!--                         - -> CR LF
829     <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   840     <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
830   CR LF   841   CR LF
831     <!-- Cit ation --> CR LF   842     <!-- Cit ation --> CR LF
832     <!--           --> CR LF   843     <!--           --> CR LF
833     <xsl:var iable name ="VarCitat ion"> CR LF   844     <xsl:var iable name ="VarCitat ion"> CR LF
834      <xsl:ca ll-templat e name="Be haviors-Op tions-Opti onMarker"> CR LF   845      <xsl:ca ll-templat e name="Be haviors-Op tions-Opti onMarker"> CR LF
835       <xsl:w ith-param  name="Para mContainer " select=" $ParamPara graph" /> CR LF   846       <xsl:w ith-param  name="Para mContainer " select=" $ParamPara graph" /> CR LF
836       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   847       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
837       <xsl:w ith-param  name="Para mParagraph ID" select ="$ParamPa ragraph/@i d" /> CR LF   848       <xsl:w ith-param  name="Para mParagraph ID" select ="$ParamPa ragraph/@i d" /> CR LF
838       <xsl:w ith-param  name="Para mRule" sel ect="$VarC ontextRule " /> CR LF   849       <xsl:w ith-param  name="Para mRule" sel ect="$VarC ontextRule " /> CR LF
839       <xsl:w ith-param  name="Para mOption" s elect="'ci tation'" / > CR LF   850       <xsl:w ith-param  name="Para mOption" s elect="'ci tation'" / > CR LF
840      </xsl:c all-templa te> CR LF   851      </xsl:c all-templa te> CR LF
841     </xsl:va riable> CR LF   852     </xsl:va riable> CR LF
842   CR LF   853   CR LF
843     <!-- Tag  --> CR LF   854     <!-- Tag  --> CR LF
844     <!--      --> CR LF   855     <!--      --> CR LF
845     <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   856     <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
846     <xsl:var iable name ="VarTag"> CR LF   857     <xsl:var iable name ="VarTag"> CR LF
847      <xsl:ch oose> CR LF   858      <xsl:ch oose> CR LF
848       <xsl:w hen test=" string-len gth($VarTa gProperty)  &gt; 0"> CR LF   859       <xsl:w hen test=" string-len gth($VarTa gProperty)  &gt; 0"> CR LF
849        <xsl: value-of s elect="$Va rTagProper ty" /> CR LF   860        <xsl: value-of s elect="$Va rTagProper ty" /> CR LF
850       </xsl: when> CR LF   861       </xsl: when> CR LF
851   CR LF   862   CR LF
852       <xsl:o therwise> CR LF   863       <xsl:o therwise> CR LF
853        <xsl: value-of s elect="'di v'" /> CR LF   864        <xsl: value-of s elect="'di v'" /> CR LF
854       </xsl: otherwise> CR LF   865       </xsl: otherwise> CR LF
855      </xsl:c hoose> CR LF   866      </xsl:c hoose> CR LF
856     </xsl:va riable> CR LF   867     </xsl:va riable> CR LF
857   CR LF   868   CR LF
858     <!-- Tag  to use fo r outer wr apper --> CR LF   869     <!-- Tag  to use fo r outer wr apper --> CR LF
859     <!--                                 --> CR LF   870     <!--                                 --> CR LF
860     <xsl:var iable name ="VarOuter Tag"> CR LF   871     <xsl:var iable name ="VarOuter Tag"> CR LF
861      <xsl:ch oose> CR LF   872      <xsl:ch oose> CR LF
862       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> CR LF   873       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> CR LF
863        <xsl: value-of s elect="'di v'" /> CR LF   874        <xsl: value-of s elect="'di v'" /> CR LF
864       </xsl: when> CR LF   875       </xsl: when> CR LF
865   CR LF   876   CR LF
866       <xsl:o therwise> CR LF   877       <xsl:o therwise> CR LF
867        <xsl: value-of s elect="$Va rTag" /> CR LF   878        <xsl: value-of s elect="$Va rTag" /> CR LF
868       </xsl: otherwise> CR LF   879       </xsl: otherwise> CR LF
869      </xsl:c hoose> CR LF   880      </xsl:c hoose> CR LF
870     </xsl:va riable> CR LF   881     </xsl:va riable> CR LF
871   CR LF   882   CR LF
872     <!-- Use  character  styles? - -> CR LF   883     <!-- Use  character  styles? - -> CR LF
873     <!--                         - -> CR LF   884     <!--                         - -> CR LF
874     <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   885     <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
875     <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   886     <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
876   CR LF   887   CR LF
877     <!-- Pre serve empt y? --> CR LF   888     <!-- Pre serve empt y? --> CR LF
878     <!--                   --> CR LF   889     <!--                   --> CR LF
879     <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   890     <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
880     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF   891     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF
881   CR LF   892   CR LF
882     <!-- Beg in paragra ph emit -- > CR LF   893     <!-- Beg in paragra ph emit -- > CR LF
883     <!--                        -- > CR LF   894     <!--                        -- > CR LF
884     <xsl:ele ment name= "{$VarOute rTag}" nam espace="{$ GlobalDefa ultNamespa ce}"> CR LF   895     <xsl:ele ment name= "{$VarOute rTag}" nam espace="{$ GlobalDefa ultNamespa ce}"> CR LF
885      <!-- St yle attrib ute --> CR LF   896      <!-- St yle attrib ute --> CR LF
886      <!--                   --> CR LF   897      <!--                   --> CR LF
887      <xsl:ch oose> CR LF   898      <xsl:ch oose> CR LF
888       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> CR LF   899       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> CR LF
889        <xsl: variable n ame="VarSt yleAttribu teOuter"> CR LF   900        <xsl: variable n ame="VarSt yleAttribu teOuter"> CR LF
890         <xsl :call-temp late name= "CSS-Inlin ePropertie sOuter"> CR LF   901         <xsl :call-temp late name= "CSS-Inlin ePropertie sOuter"> CR LF
891          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SContextPr operties"  /> CR LF   902          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SContextPr operties"  /> CR LF
892          <xs l:with-par am name="P aramContex tPropertie s" select= "$VarCSSCo ntextPrope rties" /> CR LF   903          <xs l:with-par am name="P aramContex tPropertie s" select= "$VarCSSCo ntextPrope rties" /> CR LF
893         </xs l:call-tem plate> CR LF   904         </xs l:call-tem plate> CR LF
894        </xsl :variable> CR LF   905        </xsl :variable> CR LF
895   CR LF   906   CR LF
896        <xsl: if test="s tring-leng th($VarSty leAttribut eOuter) &g t; 0"> CR LF   907        <xsl: if test="s tring-leng th($VarSty leAttribut eOuter) &g t; 0"> CR LF
897         <xsl :attribute  name="sty le"> CR LF   908         <xsl :attribute  name="sty le"> CR LF
898          <xs l:value-of  select="$ VarStyleAt tributeOut er" /> CR LF   909          <xs l:value-of  select="$ VarStyleAt tributeOut er" /> CR LF
899         </xs l:attribut e> CR LF   910         </xs l:attribut e> CR LF
900        </xsl :if> CR LF   911        </xsl :if> CR LF
901       </xsl: when> CR LF   912       </xsl: when> CR LF
902   CR LF   913   CR LF
903       <xsl:o therwise> CR LF   914       <xsl:o therwise> CR LF
904        <xsl: variable n ame="VarSt yleAttribu te"> CR LF   915        <xsl: variable n ame="VarSt yleAttribu te"> CR LF
905         <xsl :call-temp late name= "CSS-Inlin ePropertie s"> CR LF   916         <xsl :call-temp late name= "CSS-Inlin ePropertie s"> CR LF
906          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SContextPr operties"  /> CR LF   917          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SContextPr operties"  /> CR LF
907         </xs l:call-tem plate> CR LF   918         </xs l:call-tem plate> CR LF
908        </xsl :variable> CR LF   919        </xsl :variable> CR LF
909   CR LF   920   CR LF
910        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" > CR LF   921        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" > CR LF
911         <xsl :attribute  name="sty le"> CR LF   922         <xsl :attribute  name="sty le"> CR LF
912          <xs l:value-of  select="$ VarStyleAt tribute" / > CR LF   923          <xs l:value-of  select="$ VarStyleAt tribute" / > CR LF
913         </xs l:attribut e> CR LF   924         </xs l:attribut e> CR LF
914        </xsl :if> CR LF   925        </xsl :if> CR LF
915       </xsl: otherwise> CR LF   926       </xsl: otherwise> CR LF
916      </xsl:c hoose> CR LF   927      </xsl:c hoose> CR LF
917   CR LF   928   CR LF
918      <!-- Ci te attribu te --> CR LF   929      <!-- Ci te attribu te --> CR LF
919      <!--                  --> CR LF   930      <!--                  --> CR LF
920      <xsl:if  test="str ing-length ($VarCitat ion) &gt;  0"> CR LF   931      <xsl:if  test="str ing-length ($VarCitat ion) &gt;  0"> CR LF
921       <xsl:a ttribute n ame="cite" > CR LF   932       <xsl:a ttribute n ame="cite" > CR LF
922        <xsl: value-of s elect="$Va rCitation"  /> CR LF   933        <xsl: value-of s elect="$Va rCitation"  /> CR LF
923       </xsl: attribute> CR LF   934       </xsl: attribute> CR LF
924      </xsl:i f> CR LF   935      </xsl:i f> CR LF
925   CR LF   936   CR LF
926      <!-- Us e numberin g? --> CR LF   937      <!-- Us e numberin g? --> CR LF
927      <!--                  --> CR LF   938      <!--                  --> CR LF
928      <xsl:ch oose> CR LF   939      <xsl:ch oose> CR LF
929       <!-- U se Number  --> CR LF   940       <!-- U se Number  --> CR LF
930       <!--              --> CR LF   941       <!--              --> CR LF
931       <xsl:w hen test=" $VarUseNum bering"> CR LF   942       <xsl:w hen test=" $VarUseNum bering"> CR LF
932        <xsl: choose> CR LF   943        <xsl: choose> CR LF
933         <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   944         <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
934          <xs l:choose> CR LF   945          <xs l:choose> CR LF
935           <x sl:when te st="$VarTe xtIndentLe ssThanZero "> CR LF   946           <x sl:when te st="$VarTe xtIndentLe ssThanZero "> CR LF
936            < html:table  border="0 " cellspac ing="0" ce llpadding= "0" width= "99%" summ ary=""> CR LF   947            < html:table  border="0 " cellspac ing="0" ce llpadding= "0" width= "99%" summ ary=""> CR LF
937              <html:tr v align="bas eline"> CR LF   948              <html:tr v align="bas eline"> CR LF
938               <xsl:vari able name= "VarTextIn dentNumber AsUnits" s elect="wwu nits:Numer icPrefix($ VarTextInd ent)" /> CR LF   949               <xsl:vari able name= "VarTextIn dentNumber AsUnits" s elect="wwu nits:Numer icPrefix($ VarTextInd ent)" /> CR LF
939               <xsl:vari able name= "VarTextIn dentUnits"  select="w wunits:Uni tsSuffix($ VarTextInd ent)" /> CR LF   950               <xsl:vari able name= "VarTextIn dentUnits"  select="w wunits:Uni tsSuffix($ VarTextInd ent)" /> CR LF
940   CR LF   951   CR LF
941               <html:td  style="{co ncat('widt h: ', 0 -  $VarTextIn dentNumber AsUnits, $ VarTextInd entUnits)} "> CR LF   952               <html:td  style="{co ncat('widt h: ', 0 -  $VarTextIn dentNumber AsUnits, $ VarTextInd entUnits)} "> CR LF
942                <!-- For ce single  line --> CR LF   953                <!-- For ce single  line --> CR LF
943                <!--                     --> CR LF   954                <!--                     --> CR LF
944                <wwexsld oc:NoBreak  /> CR LF   955                <wwexsld oc:NoBreak  /> CR LF
945   CR LF   956   CR LF
946                 <!-- Fo rce single  line --> CR LF   957                 <!-- Fo rce single  line --> CR LF
947                 <!--                     --> CR LF   958                 <!--                     --> CR LF
948                 <wwexsl doc:NoBrea k /> CR LF   959                 <wwexsl doc:NoBrea k /> CR LF
949   CR LF   960   CR LF
950                 <xsl:el ement name ="{$VarTag }" namespa ce="{$Glob alDefaultN amespace}" > CR LF   961                 <xsl:el ement name ="{$VarTag }" namespa ce="{$Glob alDefaultN amespace}" > CR LF
951                  <xsl:v ariable na me="VarSty leAttribut eInnerNumb er"> CR LF   962                  <xsl:v ariable na me="VarSty leAttribut eInnerNumb er"> CR LF
952                   <xsl: call-templ ate name=" CSS-Inline Properties InnerNumbe r"> CR LF   963                   <xsl: call-templ ate name=" CSS-Inline Properties InnerNumbe r"> CR LF
953                    <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS ContextPro perties" / > CR LF   964                    <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS ContextPro perties" / > CR LF
954                   </xsl :call-temp late> CR LF   965                   </xsl :call-temp late> CR LF
955                  </xsl: variable> CR LF   966                  </xsl: variable> CR LF
956                  <xsl:i f test="st ring-lengt h($VarStyl eAttribute InnerNumbe r) &gt; 0" > CR LF   967                  <xsl:i f test="st ring-lengt h($VarStyl eAttribute InnerNumbe r) &gt; 0" > CR LF
957                   <xsl: attribute  name="styl e"> CR LF   968                   <xsl: attribute  name="styl e"> CR LF
958                    <xsl :value-of  select="$V arStyleAtt ributeInne rNumber" / > CR LF   969                    <xsl :value-of  select="$V arStyleAtt ributeInne rNumber" / > CR LF
959                   </xsl :attribute > CR LF   970                   </xsl :attribute > CR LF
960                  </xsl: if> CR LF   971                  </xsl: if> CR LF
961   CR LF   972   CR LF
962                  <xsl:c all-templa te name="N umber"> CR LF   973                  <xsl:c all-templa te name="N umber"> CR LF
963                   <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   974                   <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
964                   <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF   975                   <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF
965                   <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   976                   <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
966                   <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   977                   <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
967                   <xsl: with-param  name="Par amParagrap h" select= "$ParamPar agraph" /> CR LF   978                   <xsl: with-param  name="Par amParagrap h" select= "$ParamPar agraph" /> CR LF
968                   <xsl: with-param  name="Par amUseChara cterStyles " select=" $VarUseCha racterStyl es" /> CR LF   979                   <xsl: with-param  name="Par amUseChara cterStyles " select=" $VarUseCha racterStyl es" /> CR LF
969                   <xsl: with-param  name="Par amIgnoreDo cumentNumb er" select ="$VarIgno reDocument Number" /> CR LF   980                   <xsl: with-param  name="Par amIgnoreDo cumentNumb er" select ="$VarIgno reDocument Number" /> CR LF
970                   <xsl: with-param  name="Par amCharacte r" select= "$VarBulle tCharacter " /> CR LF   981                   <xsl: with-param  name="Par amCharacte r" select= "$VarBulle tCharacter " /> CR LF
971                   <xsl: with-param  name="Par amImage" s elect="$Va rBulletIma ge" /> CR LF   982                   <xsl: with-param  name="Par amImage" s elect="$Va rBulletIma ge" /> CR LF
972                   <xsl: with-param  name="Par amSeparato r" select= "$VarBulle tSeparator " /> CR LF   983                   <xsl: with-param  name="Par amSeparato r" select= "$VarBulle tSeparator " /> CR LF
973                   <xsl: with-param  name="Par amStyle" s elect="$Va rBulletSty le" /> CR LF   984                   <xsl: with-param  name="Par amStyle" s elect="$Va rBulletSty le" /> CR LF
974                  </xsl: call-templ ate> CR LF   985                  </xsl: call-templ ate> CR LF
975                 </xsl:e lement> CR LF   986                 </xsl:e lement> CR LF
976   CR LF   987   CR LF
977                 <!-- Fo rce single  line --> CR LF   988                 <!-- Fo rce single  line --> CR LF
978                 <!--                     --> CR LF   989                 <!--                     --> CR LF
979                 <wwexsl doc:NoBrea k /> CR LF   990                 <wwexsl doc:NoBrea k /> CR LF
980   CR LF   991   CR LF
981                <!-- For ce single  line --> CR LF   992                <!-- For ce single  line --> CR LF
982                <!--                     --> CR LF   993                <!--                     --> CR LF
983                <wwexsld oc:NoBreak  /> CR LF   994                <wwexsld oc:NoBreak  /> CR LF
984               </html:td > CR LF   995               </html:td > CR LF
985   CR LF   996   CR LF
986               <html:td> CR LF   997               <html:td> CR LF
987                <!-- For ce single  line --> CR LF   998                <!-- For ce single  line --> CR LF
988                <!--                     --> CR LF   999                <!--                     --> CR LF
989                <wwexsld oc:NoBreak  /> CR LF   1000                <wwexsld oc:NoBreak  /> CR LF
990   CR LF   1001   CR LF
991                <!-- Emi t content  --> CR LF   1002                <!-- Emi t content  --> CR LF
992                <!--                --> CR LF   1003                <!--                --> CR LF
993                <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}"> CR LF   1004                <xsl:ele ment name= "{$VarTag} " namespac e="{$Globa lDefaultNa mespace}"> CR LF
994                 <xsl:va riable nam e="VarStyl eAttribute InnerConte nt"> CR LF   1005                 <xsl:va riable nam e="VarStyl eAttribute InnerConte nt"> CR LF
995                  <xsl:c all-templa te name="C SS-InlineP ropertiesI nnerConten t"> CR LF   1006                  <xsl:c all-templa te name="C SS-InlineP ropertiesI nnerConten t"> CR LF
996                   <xsl: with-param  name="Par amProperti es" select ="$VarCSSC ontextProp erties" /> CR LF   1007                   <xsl: with-param  name="Par amProperti es" select ="$VarCSSC ontextProp erties" /> CR LF
997                  </xsl: call-templ ate> CR LF   1008                  </xsl: call-templ ate> CR LF
998                 </xsl:v ariable> CR LF   1009                 </xsl:v ariable> CR LF
999                 <xsl:if  test="str ing-length ($VarStyle AttributeI nnerConten t) &gt; 0" > CR LF   1010                 <xsl:if  test="str ing-length ($VarStyle AttributeI nnerConten t) &gt; 0" > CR LF
1000                  <xsl:a ttribute n ame="style "> CR LF   1011                  <xsl:a ttribute n ame="style "> CR LF
1001                   <xsl: value-of s elect="$Va rStyleAttr ibuteInner Content" / > CR LF   1012                   <xsl: value-of s elect="$Va rStyleAttr ibuteInner Content" / > CR LF
1002                  </xsl: attribute> CR LF   1013                  </xsl: attribute> CR LF
1003                 </xsl:i f> CR LF   1014                 </xsl:i f> CR LF
1004   CR LF   1015   CR LF
1005                 <!-- Te xt Runs -- > CR LF   1016                 <!-- Te xt Runs -- > CR LF
1006                 <!--            -- > CR LF   1017                 <!--            -- > CR LF
1007                 <xsl:ca ll-templat e name="Pa ragraphTex tRuns"> CR LF   1018                 <xsl:ca ll-templat e name="Pa ragraphTex tRuns"> CR LF
1008                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   1019                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
1009                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   1020                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
1010                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   1021                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
1011                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   1022                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
1012                  <xsl:w ith-param  name="Para mPreserveE mpty" sele ct="$VarPr eserveEmpt y" /> CR LF   1023                  <xsl:w ith-param  name="Para mPreserveE mpty" sele ct="$VarPr eserveEmpt y" /> CR LF
1013                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" /> CR LF   1024                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" /> CR LF
1014                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" /> CR LF   1025                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" /> CR LF
1015                 </xsl:c all-templa te> CR LF   1026                 </xsl:c all-templa te> CR LF
1016                </xsl:el ement> CR LF   1027                </xsl:el ement> CR LF
1017   CR LF   1028   CR LF
1018                <!-- For ce single  line --> CR LF   1029                <!-- For ce single  line --> CR LF
1019                <!--                     --> CR LF   1030                <!--                     --> CR LF
1020                <wwexsld oc:NoBreak  /> CR LF   1031                <wwexsld oc:NoBreak  /> CR LF
1021               </html:td > CR LF   1032               </html:td > CR LF
1022              </html:tr> CR LF   1033              </html:tr> CR LF
1023            < /html:tabl e> CR LF   1034            < /html:tabl e> CR LF
1024           </ xsl:when> CR LF   1035           </ xsl:when> CR LF
1025   CR LF   1036   CR LF
1026           <x sl:otherwi se> CR LF   1037           <x sl:otherwi se> CR LF
1027            < xsl:call-t emplate na me="Number "> CR LF   1038            < xsl:call-t emplate na me="Number "> CR LF
1028              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF   1039              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF
1029              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF   1040              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF
1030              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF   1041              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF
1031              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF   1042              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF
1032              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF   1043              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF
1033              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > CR LF   1044              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > CR LF
1034              <xsl:with- param name ="ParamIgn oreDocumen tNumber" s elect="$Va rIgnoreDoc umentNumbe r" /> CR LF   1045              <xsl:with- param name ="ParamIgn oreDocumen tNumber" s elect="$Va rIgnoreDoc umentNumbe r" /> CR LF
1035              <xsl:with- param name ="ParamCha racter" se lect="$Var BulletChar acter" /> CR LF   1046              <xsl:with- param name ="ParamCha racter" se lect="$Var BulletChar acter" /> CR LF
1036              <xsl:with- param name ="ParamIma ge" select ="$VarBull etImage" / > CR LF   1047              <xsl:with- param name ="ParamIma ge" select ="$VarBull etImage" / > CR LF
1037              <xsl:with- param name ="ParamSep arator" se lect="$Var BulletSepa rator" /> CR LF   1048              <xsl:with- param name ="ParamSep arator" se lect="$Var BulletSepa rator" /> CR LF
1038              <xsl:with- param name ="ParamSty le" select ="$VarBull etStyle" / > CR LF   1049              <xsl:with- param name ="ParamSty le" select ="$VarBull etStyle" / > CR LF
1039            < /xsl:call- template> CR LF   1050            < /xsl:call- template> CR LF
1040   CR LF   1051   CR LF
1041            < !-- Text R uns --> CR LF   1052            < !-- Text R uns --> CR LF
1042            < !--            --> CR LF   1053            < !--            --> CR LF
1043            < xsl:call-t emplate na me="Paragr aphTextRun s"> CR LF   1054            < xsl:call-t emplate na me="Paragr aphTextRun s"> CR LF
1044              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF   1055              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF
1045              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF   1056              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF
1046              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF   1057              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF
1047              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF   1058              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF
1048              <xsl:with- param name ="ParamPre serveEmpty " select=" $VarPreser veEmpty" / > CR LF   1059              <xsl:with- param name ="ParamPre serveEmpty " select=" $VarPreser veEmpty" / > CR LF
1049              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > CR LF   1060              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > CR LF
1050              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF   1061              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF
1051            < /xsl:call- template> CR LF   1062            < /xsl:call- template> CR LF
1052           </ xsl:otherw ise> CR LF   1063           </ xsl:otherw ise> CR LF
1053          </x sl:choose> CR LF   1064          </x sl:choose> CR LF
1054         </xs l:when> CR LF   1065         </xs l:when> CR LF
1055   CR LF   1066   CR LF
1056         <xsl :otherwise > CR LF   1067         <xsl :otherwise > CR LF
1057          <!- - Text Run s --> CR LF   1068          <!- - Text Run s --> CR LF
1058          <!- -            --> CR LF   1069          <!- -            --> CR LF
1059          <xs l:call-tem plate name ="Paragrap hTextRuns" > CR LF   1070          <xs l:call-tem plate name ="Paragrap hTextRuns" > CR LF
1060           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   1071           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
1061           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF   1072           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF
1062           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   1073           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
1063           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   1074           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
1064           <x sl:with-pa ram name=" ParamPrese rveEmpty"  select="$V arPreserve Empty" /> CR LF   1075           <x sl:with-pa ram name=" ParamPrese rveEmpty"  select="$V arPreserve Empty" /> CR LF
1065           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$VarUse CharacterS tyles" /> CR LF   1076           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$VarUse CharacterS tyles" /> CR LF
1066           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param Paragraph"  /> CR LF   1077           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param Paragraph"  /> CR LF
1067          </x sl:call-te mplate> CR LF   1078          </x sl:call-te mplate> CR LF
1068         </xs l:otherwis e> CR LF   1079         </xs l:otherwis e> CR LF
1069        </xsl :choose> CR LF   1080        </xsl :choose> CR LF
1070       </xsl: when> CR LF   1081       </xsl: when> CR LF
1071   CR LF   1082   CR LF
1072       <!-- S kip Number  --> CR LF   1083       <!-- S kip Number  --> CR LF
1073       <!--               --> CR LF   1084       <!--               --> CR LF
1074       <xsl:o therwise> CR LF   1085       <xsl:o therwise> CR LF
1075        <!--  Text Runs  --> CR LF   1086        <!--  Text Runs  --> CR LF
1076        <!--             --> CR LF   1087        <!--             --> CR LF
1077        <xsl: call-templ ate name=" ParagraphT extRuns"> CR LF   1088        <xsl: call-templ ate name=" ParagraphT extRuns"> CR LF
1078         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1089         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1079         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1090         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1080         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1091         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1081         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1092         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1082         <xsl :with-para m name="Pa ramPreserv eEmpty" se lect="$Var PreserveEm pty" /> CR LF   1093         <xsl :with-para m name="Pa ramPreserv eEmpty" se lect="$Var PreserveEm pty" /> CR LF
1083         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$VarUseCh aracterSty les" /> CR LF   1094         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$VarUseCh aracterSty les" /> CR LF
1084         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF   1095         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF
1085        </xsl :call-temp late> CR LF   1096        </xsl :call-temp late> CR LF
1086       </xsl: otherwise> CR LF   1097       </xsl: otherwise> CR LF
1087      </xsl:c hoose> CR LF   1098      </xsl:c hoose> CR LF
1088   CR LF   1099   CR LF
1089     <!-- End  paragraph  emit --> CR LF   1100     <!-- End  paragraph  emit --> CR LF
1090     <!--                      --> CR LF   1101     <!--                      --> CR LF
1091     </xsl:el ement> CR LF   1102     </xsl:el ement> CR LF
1092    </xsl:tem plate> CR LF   1103    </xsl:tem plate> CR LF
1093   CR LF   1104   CR LF
1094   CR LF   1105   CR LF
1095    <xsl:temp late name= "Number"> CR LF   1106    <xsl:temp late name= "Number"> CR LF
1096     <xsl:par am name="P aramSplits " /> CR LF   1107     <xsl:par am name="P aramSplits " /> CR LF
1097     <xsl:par am name="P aramCargo"  /> CR LF   1108     <xsl:par am name="P aramCargo"  /> CR LF
1098     <xsl:par am name="P aramLinks"  /> CR LF   1109     <xsl:par am name="P aramLinks"  /> CR LF
1099     <xsl:par am name="P aramSplit"  /> CR LF   1110     <xsl:par am name="P aramSplit"  /> CR LF
1100     <xsl:par am name="P aramParagr aph" /> CR LF   1111     <xsl:par am name="P aramParagr aph" /> CR LF
1101     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1112     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1102     <xsl:par am name="P aramIgnore DocumentNu mber" /> CR LF   1113     <xsl:par am name="P aramIgnore DocumentNu mber" /> CR LF
1103     <xsl:par am name="P aramCharac ter" /> CR LF   1114     <xsl:par am name="P aramCharac ter" /> CR LF
1104     <xsl:par am name="P aramImage"  /> CR LF   1115     <xsl:par am name="P aramImage"  /> CR LF
1105     <xsl:par am name="P aramSepara tor" /> CR LF   1116     <xsl:par am name="P aramSepara tor" /> CR LF
1106     <xsl:par am name="P aramStyle"  /> CR LF   1117     <xsl:par am name="P aramStyle"  /> CR LF
1107   CR LF   1118   CR LF
1108     <xsl:cho ose> CR LF   1119     <xsl:cho ose> CR LF
1109      <xsl:wh en test="$ ParamIgnor eDocumentN umber"> CR LF   1120      <xsl:wh en test="$ ParamIgnor eDocumentN umber"> CR LF
1110       <xsl:c all-templa te name="C ontent-Bul let"> CR LF   1121       <xsl:c all-templa te name="C ontent-Bul let"> CR LF
1111        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1122        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1112        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1123        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1113        <xsl: with-param  name="Par amParagrap h" select= "$ParamPar agraph" /> CR LF   1124        <xsl: with-param  name="Par amParagrap h" select= "$ParamPar agraph" /> CR LF
1114        <xsl: with-param  name="Par amCharacte r" select= "$ParamCha racter" /> CR LF   1125        <xsl: with-param  name="Par amCharacte r" select= "$ParamCha racter" /> CR LF
1115        <xsl: with-param  name="Par amImage" s elect="$Pa ramImage"  /> CR LF   1126        <xsl: with-param  name="Par amImage" s elect="$Pa ramImage"  /> CR LF
1116        <xsl: with-param  name="Par amSeparato r" select= "$ParamSep arator" /> CR LF   1127        <xsl: with-param  name="Par amSeparato r" select= "$ParamSep arator" /> CR LF
1117        <xsl: with-param  name="Par amStyle" s elect="$Pa ramStyle"  /> CR LF   1128        <xsl: with-param  name="Par amStyle" s elect="$Pa ramStyle"  /> CR LF
1118       </xsl: call-templ ate> CR LF   1129       </xsl: call-templ ate> CR LF
1119      </xsl:w hen> CR LF   1130      </xsl:w hen> CR LF
1120   CR LF   1131   CR LF
1121      <xsl:ot herwise> CR LF   1132      <xsl:ot herwise> CR LF
1122       <xsl:v ariable na me="VarBul letPropert iesAsXML"> CR LF   1133       <xsl:v ariable na me="VarBul letPropert iesAsXML"> CR LF
1123        <wwpr oject:Bull etProperti es> CR LF   1134        <wwpr oject:Bull etProperti es> CR LF
1124         <wwp roject:Pro perty Name ="bullet-s tyle" Valu e="{$Param Style}" /> CR LF   1135         <wwp roject:Pro perty Name ="bullet-s tyle" Valu e="{$Param Style}" /> CR LF
1125        </wwp roject:Bul letPropert ies> CR LF   1136        </wwp roject:Bul letPropert ies> CR LF
1126       </xsl: variable> CR LF   1137       </xsl: variable> CR LF
1127       <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)" /> CR LF   1138       <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)" /> CR LF
1128   CR LF   1139   CR LF
1129       <xsl:v ariable na me="VarCar go" select ="$ParamCa rgo/*[loca l-name() ! = 'BulletP roperties' ]/.. | $Va rBulletPro perties" / > CR LF   1140       <xsl:v ariable na me="VarCar go" select ="$ParamCa rgo/*[loca l-name() ! = 'BulletP roperties' ]/.. | $Va rBulletPro perties" / > CR LF
1130   CR LF   1141   CR LF
1131       <xsl:c all-templa te name="T extRun"> CR LF   1142       <xsl:c all-templa te name="T extRun"> CR LF
1132        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1143        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1133        <xsl: with-param  name="Par amCargo" s elect="$Va rCargo" /> CR LF   1144        <xsl: with-param  name="Par amCargo" s elect="$Va rCargo" /> CR LF
1134        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   1145        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
1135        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1146        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1136        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraph/@ id" /> CR LF   1147        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraph/@ id" /> CR LF
1137        <xsl: with-param  name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" /> CR LF   1148        <xsl: with-param  name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" /> CR LF
1138        <xsl: with-param  name="Par amTextRun"  select="$ ParamParag raph/wwdoc :Number[1] " /> CR LF   1149        <xsl: with-param  name="Par amTextRun"  select="$ ParamParag raph/wwdoc :Number[1] " /> CR LF
1139        <xsl: with-param  name="Par amPosition " select=" 0" /> CR LF   1150        <xsl: with-param  name="Par amPosition " select=" 0" /> CR LF
1140       </xsl: call-templ ate> CR LF   1151       </xsl: call-templ ate> CR LF
1141      </xsl:o therwise> CR LF   1152      </xsl:o therwise> CR LF
1142     </xsl:ch oose> CR LF   1153     </xsl:ch oose> CR LF
1143    </xsl:tem plate> CR LF   1154    </xsl:tem plate> CR LF
1144   CR LF   1155   CR LF
1145   CR LF   1156   CR LF
1146    <xsl:temp late name= "Paragraph TextRuns"> CR LF   1157    <xsl:temp late name= "Paragraph TextRuns"> CR LF
1147     <xsl:par am name="P aramSplits " /> CR LF   1158     <xsl:par am name="P aramSplits " /> CR LF
1148     <xsl:par am name="P aramCargo"  /> CR LF   1159     <xsl:par am name="P aramCargo"  /> CR LF
1149     <xsl:par am name="P aramLinks"  /> CR LF   1160     <xsl:par am name="P aramLinks"  /> CR LF
1150     <xsl:par am name="P aramSplit"  /> CR LF   1161     <xsl:par am name="P aramSplit"  /> CR LF
1151     <xsl:par am name="P aramPreser veEmpty" / > CR LF   1162     <xsl:par am name="P aramPreser veEmpty" / > CR LF
1152     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1163     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1153     <xsl:par am name="P aramParagr aph" /> CR LF   1164     <xsl:par am name="P aramParagr aph" /> CR LF
1154   CR LF   1165   CR LF
1155     <!-- Pre vent white space issu es with pr eformatted  text bloc ks --> CR LF   1166     <!-- Pre vent white space issu es with pr eformatted  text bloc ks --> CR LF
1156     <!--                                                               --> CR LF   1167     <!--                                                               --> CR LF
1157     <wwexsld oc:NoBreak  /> CR LF   1168     <wwexsld oc:NoBreak  /> CR LF
1158   CR LF   1169   CR LF
1159     <!-- Non -empty tex t runs --> CR LF   1170     <!-- Non -empty tex t runs --> CR LF
1160     <!--                       --> CR LF   1171     <!--                       --> CR LF
1161      <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
  1172      <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
1162   CR LF   1173   CR LF
1163     <!-- Che ck for emp ty paragra phs --> CR LF   1174     <!-- Che ck for emp ty paragra phs --> CR LF
1164     <!--                               --> CR LF   1175     <!--                               --> CR LF
1165     <xsl:cho ose> CR LF   1176     <xsl:cho ose> CR LF
1166      <xsl:wh en test="c ount($VarT extRuns[1] ) = 1"> CR LF   1177      <xsl:wh en test="c ount($VarT extRuns[1] ) = 1"> CR LF
1167       <!-- P aragraph h as content  --> CR LF   1178       <!-- P aragraph h as content  --> CR LF
1168       <!--                          --> CR LF   1179       <!--                          --> CR LF
1169       <xsl:f or-each se lect="$Var TextRuns"> CR LF   1180       <xsl:f or-each se lect="$Var TextRuns"> CR LF
1170        <xsl: variable n ame="VarTe xtRun" sel ect="." /> CR LF   1181        <xsl: variable n ame="VarTe xtRun" sel ect="." /> CR LF
1171   CR LF   1182   CR LF
1172        <xsl: call-templ ate name=" TextRun"> CR LF   1183        <xsl: call-templ ate name=" TextRun"> CR LF
1173         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1184         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1174         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1185         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1175         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1186         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1176         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1187         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1177         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param Paragraph/ @id" /> CR LF   1188         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param Paragraph/ @id" /> CR LF
1178         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF   1189         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF
1179         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> CR LF   1190         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> CR LF
1180         <xsl :with-para m name="Pa ramPositio n" select= "position( )" /> CR LF   1191         <xsl :with-para m name="Pa ramPositio n" select= "position( )" /> CR LF
1181        </xsl :call-temp late> CR LF   1192        </xsl :call-temp late> CR LF
1182       </xsl: for-each> CR LF   1193       </xsl: for-each> CR LF
1183      </xsl:w hen> CR LF   1194      </xsl:w hen> CR LF
1184   CR LF   1195   CR LF
1185      <xsl:ot herwise> CR LF   1196      <xsl:ot herwise> CR LF
1186       <!-- E mpty parag raph! --> CR LF   1197       <!-- E mpty parag raph! --> CR LF
1187       <!--                    --> CR LF   1198       <!--                    --> CR LF
1188       <xsl:i f test="$P aramPreser veEmpty"> CR LF   1199       <xsl:i f test="$P aramPreser veEmpty"> CR LF
1189        <!--  Force on o ne line -- > CR LF   1200        <!--  Force on o ne line -- > CR LF
1190        <!--                     -- > CR LF   1201        <!--                     -- > CR LF
1191        <wwex sldoc:NoBr eak /> CR LF   1202        <wwex sldoc:NoBr eak /> CR LF
1192   CR LF   1203   CR LF
1193        <html :span id=" ww{$ParamP aragraph/@ id}">&#x00 A0;</html: span> CR LF   1204        <html :span id=" ww{$ParamP aragraph/@ id}">&#x00 A0;</html: span> CR LF
1194   CR LF   1205   CR LF
1195        <!--  Force on o ne line -- > CR LF   1206        <!--  Force on o ne line -- > CR LF
1196        <!--                     -- > CR LF   1207        <!--                     -- > CR LF
1197        <wwex sldoc:NoBr eak /> CR LF   1208        <wwex sldoc:NoBr eak /> CR LF
1198       </xsl: if> CR LF   1209       </xsl: if> CR LF
1199      </xsl:o therwise> CR LF   1210      </xsl:o therwise> CR LF
1200     </xsl:ch oose> CR LF   1211     </xsl:ch oose> CR LF
1201    </xsl:tem plate> CR LF   1212    </xsl:tem plate> CR LF
1202   CR LF   1213   CR LF
1203   CR LF   1214   CR LF
1204    <xsl:temp late name= "LinkInfo" > CR LF   1215    <xsl:temp late name= "LinkInfo" > CR LF
1205     <xsl:par am name="P aramSplits " /> CR LF   1216     <xsl:par am name="P aramSplits " /> CR LF
1206     <xsl:par am name="P aramLinks"  /> CR LF   1217     <xsl:par am name="P aramLinks"  /> CR LF
1207     <xsl:par am name="P aramSplit"  /> CR LF   1218     <xsl:par am name="P aramSplit"  /> CR LF
1208     <xsl:par am name="P aramDocume ntLink" /> CR LF   1219     <xsl:par am name="P aramDocume ntLink" /> CR LF
1209   CR LF   1220   CR LF
1210     <xsl:ele ment name= "LinkInfo"  namespace ="urn:WebW orks-Engin e-Links-Sc hema"> CR LF   1221     <xsl:ele ment name= "LinkInfo"  namespace ="urn:WebW orks-Engin e-Links-Sc hema"> CR LF
1211      <xsl:if  test="cou nt($ParamD ocumentLin k) &gt; 0" > CR LF   1222      <xsl:if  test="cou nt($ParamD ocumentLin k) &gt; 0" > CR LF
1212       <!-- R esolve lin k --> CR LF   1223       <!-- R esolve lin k --> CR LF
1213       <!--                --> CR LF   1224       <!--                --> CR LF
1214       <xsl:v ariable na me="VarRes olvedLinkI nfoAsXML"> CR LF   1225       <xsl:v ariable na me="VarRes olvedLinkI nfoAsXML"> CR LF
1215        <xsl: call-templ ate name=" Links-Reso lve"> CR LF   1226        <xsl: call-templ ate name=" Links-Reso lve"> CR LF
1216         <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para meterAllow Baggage" / > CR LF   1227         <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para meterAllow Baggage" / > CR LF
1217         <xsl :with-para m name="Pa ramAllowGr oupToGroup " select=" $Parameter AllowGroup ToGroup" / > CR LF   1228         <xsl :with-para m name="Pa ramAllowGr oupToGroup " select=" $Parameter AllowGroup ToGroup" / > CR LF
1218         <xsl :with-para m name="Pa ramAllowUR L" select= "$Paramete rAllowURL"  /> CR LF   1229         <xsl :with-para m name="Pa ramAllowUR L" select= "$Paramete rAllowURL"  /> CR LF
1219         <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$Parame terBaggage SplitFileT ype" /> CR LF   1230         <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$Parame terBaggage SplitFileT ype" /> CR LF
1220         <xsl :with-para m name="Pa ramProject " select=" $GlobalPro ject" /> CR LF   1231         <xsl :with-para m name="Pa ramProject " select=" $GlobalPro ject" /> CR LF
1221         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1232         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1222         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1233         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1223         <xsl :with-para m name="Pa ramSplitGr oupID" sel ect="$Para mSplit/@gr oupID" /> CR LF   1234         <xsl :with-para m name="Pa ramSplitGr oupID" sel ect="$Para mSplit/@gr oupID" /> CR LF
1224         <xsl :with-para m name="Pa ramSplitDo cumentID"  select="$P aramSplit/ @documentI D" /> CR LF   1235         <xsl :with-para m name="Pa ramSplitDo cumentID"  select="$P aramSplit/ @documentI D" /> CR LF
1225         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" /> CR LF   1236         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" /> CR LF
1226        </xsl :call-temp late> CR LF   1237        </xsl :call-temp late> CR LF
1227       </xsl: variable> CR LF   1238       </xsl: variable> CR LF
1228       <xsl:v ariable na me="VarRes olvedLinkI nfo" selec t="msxsl:n ode-set($V arResolved LinkInfoAs XML)/wwlin ks:Resolve dLink" /> CR LF   1239       <xsl:v ariable na me="VarRes olvedLinkI nfo" selec t="msxsl:n ode-set($V arResolved LinkInfoAs XML)/wwlin ks:Resolve dLink" /> CR LF
1229   CR LF   1240   CR LF
1230       <!-- @ title --> CR LF   1241       <!-- @ title --> CR LF
1231       <!--         --> CR LF   1242       <!--         --> CR LF
1232       <xsl:i f test="st ring-lengt h($VarReso lvedLinkIn fo/@title)  &gt; 0"> CR LF   1243       <xsl:i f test="st ring-lengt h($VarReso lvedLinkIn fo/@title)  &gt; 0"> CR LF
1233        <xsl: attribute  name="titl e"> CR LF   1244        <xsl: attribute  name="titl e"> CR LF
1234         <xsl :value-of  select="$V arResolved LinkInfo/@ title" /> CR LF   1245         <xsl :value-of  select="$V arResolved LinkInfo/@ title" /> CR LF
1235        </xsl :attribute > CR LF   1246        </xsl :attribute > CR LF
1236       </xsl: if> CR LF   1247       </xsl: if> CR LF
1237   CR LF   1248   CR LF
1238       <xsl:c hoose> CR LF   1249       <xsl:c hoose> CR LF
1239        <!--  Baggage -- > CR LF   1250        <!--  Baggage -- > CR LF
1240        <!--          -- > CR LF   1251        <!--          -- > CR LF
1241        <xsl: when test= "$VarResol vedLinkInf o/@type =  'baggage'" > CR LF   1252        <xsl: when test= "$VarResol vedLinkInf o/@type =  'baggage'" > CR LF
1242         <xsl :attribute  name="hre f"> CR LF   1253         <xsl :attribute  name="hre f"> CR LF
1243          <xs l:call-tem plate name ="MediaWik i-ImageRoo tedLink"> CR LF   1254          <xs l:call-tem plate name ="MediaWik i-ImageRoo tedLink"> CR LF
1244           <x sl:with-pa ram name=" ParamLinkP ath" selec t="$VarRes olvedLinkI nfo/@path"  /> CR LF   1255           <x sl:with-pa ram name=" ParamLinkP ath" selec t="$VarRes olvedLinkI nfo/@path"  /> CR LF
1245           <x sl:with-pa ram name=" ParamTarge tOutputDir ectoryPath " select=" $ParamSpli t/@target- output-dir ectory-pat h" /> CR LF   1256           <x sl:with-pa ram name=" ParamTarge tOutputDir ectoryPath " select=" $ParamSpli t/@target- output-dir ectory-pat h" /> CR LF
1246          </x sl:call-te mplate> CR LF   1257          </x sl:call-te mplate> CR LF
1247         </xs l:attribut e> CR LF   1258         </xs l:attribut e> CR LF
1248        </xsl :when> CR LF   1259        </xsl :when> CR LF
1249   CR LF   1260   CR LF
1250        <!--  Document - -> CR LF   1261        <!--  Document - -> CR LF
1251        <!--           - -> CR LF   1262        <!--           - -> CR LF
1252        <xsl: when test= "($VarReso lvedLinkIn fo/@type =  'document ') or ($Va rResolvedL inkInfo/@t ype = 'gro up') or ($ VarResolve dLinkInfo/ @type = 'p roject')"> CR LF   1263        <xsl: when test= "($VarReso lvedLinkIn fo/@type =  'document ') or ($Va rResolvedL inkInfo/@t ype = 'gro up') or ($ VarResolve dLinkInfo/ @type = 'p roject')"> CR LF
1253         <xsl :attribute  name="hre f"> CR LF   1264         <xsl :attribute  name="hre f"> CR LF
1254          <xs l:call-tem plate name ="MediaWik i-ProjectR ootedLink" > CR LF   1265          <xs l:call-tem plate name ="MediaWik i-ProjectR ootedLink" > CR LF
1255           <x sl:with-pa ram name=" ParamLinkP ath" selec t="$VarRes olvedLinkI nfo/@path"  /> CR LF   1266           <x sl:with-pa ram name=" ParamLinkP ath" selec t="$VarRes olvedLinkI nfo/@path"  /> CR LF
1256           <x sl:with-pa ram name=" ParamTarge tOutputDir ectoryPath " select=" $ParamSpli t/@target- output-dir ectory-pat h" /> CR LF   1267           <x sl:with-pa ram name=" ParamTarge tOutputDir ectoryPath " select=" $ParamSpli t/@target- output-dir ectory-pat h" /> CR LF
1257          </x sl:call-te mplate> CR LF   1268          </x sl:call-te mplate> CR LF
1258         </xs l:attribut e> CR LF   1269         </xs l:attribut e> CR LF
1259        </xsl :when> CR LF   1270        </xsl :when> CR LF
1260   CR LF   1271   CR LF
1261        <!--  URL --> CR LF   1272        <!--  URL --> CR LF
1262        <!--      --> CR LF   1273        <!--      --> CR LF
1263        <xsl: when test= "$VarResol vedLinkInf o/@type =  'url'"> CR LF   1274        <xsl: when test= "$VarResol vedLinkInf o/@type =  'url'"> CR LF
1264         <xsl :attribute  name="hre f"> CR LF   1275         <xsl :attribute  name="hre f"> CR LF
1265          <xs l:value-of  select="$ VarResolve dLinkInfo/ @url" /> CR LF   1276          <xs l:value-of  select="$ VarResolve dLinkInfo/ @url" /> CR LF
1266         </xs l:attribut e> CR LF   1277         </xs l:attribut e> CR LF
1267   CR LF   1278   CR LF
1268         <!--  External  URL Target  --> CR LF   1279         <!--  External  URL Target  --> CR LF
1269         <!--                        --> CR LF   1280         <!--                        --> CR LF
1270         <xsl :if test=" not(wwuri: IsFile($Va rResolvedL inkInfo/@u rl))"> CR LF   1281         <xsl :if test=" not(wwuri: IsFile($Va rResolvedL inkInfo/@u rl))"> CR LF
1271          <xs l:variable  name="Var Target" se lect="wwpr ojext:GetF ormatSetti ng('extern al-url-tar get')" /> CR LF   1282          <xs l:variable  name="Var Target" se lect="wwpr ojext:GetF ormatSetti ng('extern al-url-tar get')" /> CR LF
1272   CR LF   1283   CR LF
1273          <xs l:if test= "(string-l ength($Var Target) &g t; 0) and  ($VarTarge t != 'none ')"> CR LF   1284          <xs l:if test= "(string-l ength($Var Target) &g t; 0) and  ($VarTarge t != 'none ')"> CR LF
1274           <x sl:attribu te name="t arget"> CR LF   1285           <x sl:attribu te name="t arget"> CR LF
1275            < xsl:value- of select= "$VarTarge t" /> CR LF   1286            < xsl:value- of select= "$VarTarge t" /> CR LF
1276           </ xsl:attrib ute> CR LF   1287           </ xsl:attrib ute> CR LF
1277          </x sl:if> CR LF   1288          </x sl:if> CR LF
1278         </xs l:if> CR LF   1289         </xs l:if> CR LF
1279        </xsl :when> CR LF   1290        </xsl :when> CR LF
1280       </xsl: choose> CR LF   1291       </xsl: choose> CR LF
1281      </xsl:i f> CR LF   1292      </xsl:i f> CR LF
1282     </xsl:el ement> CR LF   1293     </xsl:el ement> CR LF
1283    </xsl:tem plate> CR LF   1294    </xsl:tem plate> CR LF
1284   CR LF   1295   CR LF
1285   CR LF   1296   CR LF
1286    <xsl:temp late name= "TextRun"> CR LF   1297    <xsl:temp late name= "TextRun"> CR LF
1287     <xsl:par am name="P aramSplits " /> CR LF   1298     <xsl:par am name="P aramSplits " /> CR LF
1288     <xsl:par am name="P aramCargo"  /> CR LF   1299     <xsl:par am name="P aramCargo"  /> CR LF
1289     <xsl:par am name="P aramLinks"  /> CR LF   1300     <xsl:par am name="P aramLinks"  /> CR LF
1290     <xsl:par am name="P aramSplit"  /> CR LF   1301     <xsl:par am name="P aramSplit"  /> CR LF
1291     <xsl:par am name="P aramParagr aphID" /> CR LF   1302     <xsl:par am name="P aramParagr aphID" /> CR LF
1292     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1303     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1293     <xsl:par am name="P aramTextRu n" /> CR LF   1304     <xsl:par am name="P aramTextRu n" /> CR LF
1294     <xsl:par am name="P aramPositi on" /> CR LF   1305     <xsl:par am name="P aramPositi on" /> CR LF
1295   CR LF   1306   CR LF
1296     <!-- Get  rule --> CR LF   1307     <!-- Get  rule --> CR LF
1297     <!--           --> CR LF   1308     <!--           --> CR LF
1298     <xsl:var iable name ="VarRule"  select="w wprojext:G etRule('Ch aracter',  $ParamText Run/@style name)" /> CR LF   1309     <xsl:var iable name ="VarRule"  select="w wprojext:G etRule('Ch aracter',  $ParamText Run/@style name)" /> CR LF
1299   CR LF   1310   CR LF
1300     <!-- Gen erate outp ut? --> CR LF   1311     <!-- Gen erate outp ut? --> CR LF
1301     <!---                   --> CR LF   1312     <!---                   --> CR LF
1302     <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   1313     <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
1303     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF   1314     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF
1304     <xsl:if  test="$Var GenerateOu tput"> CR LF   1315     <xsl:if  test="$Var GenerateOu tput"> CR LF
1305      <!-- Pa ss-through ? --> CR LF   1316      <!-- Pa ss-through ? --> CR LF
1306      <!--                 --> CR LF   1317      <!--                 --> CR LF
1307      <xsl:va riable nam e="VarPass Through"> CR LF   1318      <xsl:va riable nam e="VarPass Through"> CR LF
    1319       <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
    1320   CR LF
    1321       <xsl:c hoose> CR LF
    1322        <xsl: when test= "$VarPassT hroughOpti on = 'true '"> CR LF
    1323         <xsl :value-of  select="tr ue()" /> CR LF
    1324        </xsl :when> CR LF
    1325   CR LF
    1326        <xsl: otherwise> CR LF
1308       <xsl:c all-templa te name="C onditions- PassThroug h"> CR LF   1327         <xsl :call-temp late name= "Condition s-PassThro ugh"> CR LF
1309        <xsl: with-param  name="Par amConditio ns" select ="$ParamTe xtRun/wwdo c:Conditio ns" /> CR LF   1328          <xs l:with-par am name="P aramCondit ions" sele ct="$Param TextRun/ww doc:Condit ions" /> CR LF
1310       </xsl: call-templ ate> CR LF   1329         </xs l:call-tem plate> CR LF
    1330        </xsl :otherwise > CR LF
    1331       </xsl: choose> CR LF
1311      </xsl:v ariable> CR LF   1332      </xsl:v ariable> CR LF
1312   CR LF   1333   CR LF
1313      <xsl:ch oose> CR LF   1334      <xsl:ch oose> CR LF
1314       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF   1335       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF
1315        <xsl: call-templ ate name=" TextRun-Pa ssThrough" > CR LF   1336        <xsl: call-templ ate name=" TextRun-Pa ssThrough" > CR LF
1316         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF   1337         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF
1317        </xsl :call-temp late> CR LF   1338        </xsl :call-temp late> CR LF
1318       </xsl: when> CR LF   1339       </xsl: when> CR LF
1319   CR LF   1340   CR LF
1320       <xsl:o therwise> CR LF   1341       <xsl:o therwise> CR LF
1321        <xsl: call-templ ate name=" TextRun-No rmal"> CR LF   1342        <xsl: call-templ ate name=" TextRun-No rmal"> CR LF
1322         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1343         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1323         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1344         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1324         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1345         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1325         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1346         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1326         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF   1347         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF
1327         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF   1348         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF
1328         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF   1349         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF
1329         <xsl :with-para m name="Pa ramRule" s elect="$Va rRule" /> CR LF   1350         <xsl :with-para m name="Pa ramRule" s elect="$Va rRule" /> CR LF
1330         <xsl :with-para m name="Pa ramPositio n" select= "$ParamPos ition" /> CR LF   1351         <xsl :with-para m name="Pa ramPositio n" select= "$ParamPos ition" /> CR LF
1331        </xsl :call-temp late> CR LF   1352        </xsl :call-temp late> CR LF
1332       </xsl: otherwise> CR LF   1353       </xsl: otherwise> CR LF
1333      </xsl:c hoose> CR LF   1354      </xsl:c hoose> CR LF
1334     </xsl:if > CR LF   1355     </xsl:if > CR LF
1335    </xsl:tem plate> CR LF   1356    </xsl:tem plate> CR LF
1336   CR LF   1357   CR LF
1337   CR LF   1358   CR LF
1338    <xsl:temp late name= "TextRun-P assThrough "> CR LF   1359    <xsl:temp late name= "TextRun-P assThrough "> CR LF
1339     <xsl:par am name="P aramTextRu n" /> CR LF   1360     <xsl:par am name="P aramTextRu n" /> CR LF
1340   CR LF   1361   CR LF
1341     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF   1362     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF
1342      <xsl:fo r-each sel ect="$Para mTextRun/w wdoc:Text" > CR LF   1363      <xsl:fo r-each sel ect="$Para mTextRun/w wdoc:Text" > CR LF
1343       <xsl:v ariable na me="VarTex t" select= "." /> CR LF   1364       <xsl:v ariable na me="VarTex t" select= "." /> CR LF
1344   CR LF   1365   CR LF
1345       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF   1366       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF
1346      </xsl:f or-each> CR LF   1367      </xsl:f or-each> CR LF
1347     </wwexsl doc:Text> CR LF   1368     </wwexsl doc:Text> CR LF
1348    </xsl:tem plate> CR LF   1369    </xsl:tem plate> CR LF
1349   CR LF   1370   CR LF
1350   CR LF   1371   CR LF
1351    <xsl:temp late name= "TextRun-N ormal"> CR LF   1372    <xsl:temp late name= "TextRun-N ormal"> CR LF
1352     <xsl:par am name="P aramSplits " /> CR LF   1373     <xsl:par am name="P aramSplits " /> CR LF
1353     <xsl:par am name="P aramCargo"  /> CR LF   1374     <xsl:par am name="P aramCargo"  /> CR LF
1354     <xsl:par am name="P aramLinks"  /> CR LF   1375     <xsl:par am name="P aramLinks"  /> CR LF
1355     <xsl:par am name="P aramSplit"  /> CR LF   1376     <xsl:par am name="P aramSplit"  /> CR LF
1356     <xsl:par am name="P aramParagr aphID" /> CR LF   1377     <xsl:par am name="P aramParagr aphID" /> CR LF
1357     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1378     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1358     <xsl:par am name="P aramTextRu n" /> CR LF   1379     <xsl:par am name="P aramTextRu n" /> CR LF
1359     <xsl:par am name="P aramRule"  /> CR LF   1380     <xsl:par am name="P aramRule"  /> CR LF
1360     <xsl:par am name="P aramPositi on" /> CR LF   1381     <xsl:par am name="P aramPositi on" /> CR LF
1361   CR LF   1382   CR LF
1362     <xsl:cho ose> CR LF   1383     <xsl:cho ose> CR LF
1363      <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   1384      <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
1364       <!-- R esolve pro ject prope rties --> CR LF   1385       <!-- R esolve pro ject prope rties --> CR LF
1365       <!--                               --> CR LF   1386       <!--                               --> CR LF
1366       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> CR LF   1387       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> CR LF
1367        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > CR LF   1388        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > CR LF
1368         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramTextRu n" /> CR LF   1389         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramTextRu n" /> CR LF
1369         <xsl :with-para m name="Pa ramPropert ies" selec t="$ParamR ule/wwproj ect:Proper ties/wwpro ject:Prope rty" /> CR LF   1390         <xsl :with-para m name="Pa ramPropert ies" selec t="$ParamR ule/wwproj ect:Proper ties/wwpro ject:Prope rty" /> CR LF
1370         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamTe xtRun/@sty lename" /> CR LF   1391         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamTe xtRun/@sty lename" /> CR LF
1371         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> CR LF   1392         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> CR LF
1372         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mTextRun/w wdoc:Style " /> CR LF   1393         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mTextRun/w wdoc:Style " /> CR LF
1373        </xsl :call-temp late> CR LF   1394        </xsl :call-temp late> CR LF
1374       </xsl: variable> CR LF   1395       </xsl: variable> CR LF
1375       <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   1396       <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
1376   CR LF   1397   CR LF
1377       <!-- C SS propert ies --> CR LF   1398       <!-- C SS propert ies --> CR LF
1378       <!--                  --> CR LF   1399       <!--                  --> CR LF
1379       <xsl:v ariable na me="VarCSS ContextPro pertiesAsX ML"> CR LF   1400       <xsl:v ariable na me="VarCSS ContextPro pertiesAsX ML"> CR LF
1380        <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> CR LF   1401        <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> CR LF
1381         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> CR LF   1402         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> CR LF
1382         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" /> CR LF   1403         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" /> CR LF
1383         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1404         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1384        </xsl :call-temp late> CR LF   1405        </xsl :call-temp late> CR LF
1385       </xsl: variable> CR LF   1406       </xsl: variable> CR LF
1386       <xsl:v ariable na me="VarCSS ContextPro perties" s elect="msx sl:node-se t($VarCSSC ontextProp ertiesAsXM L)/wwproje ct:Propert y" /> CR LF   1407       <xsl:v ariable na me="VarCSS ContextPro perties" s elect="msx sl:node-se t($VarCSSC ontextProp ertiesAsXM L)/wwproje ct:Propert y" /> CR LF
1387   CR LF   1408   CR LF
1388       <!-- A bbreviatio n --> CR LF   1409       <!-- A bbreviatio n --> CR LF
1389       <!--                --> CR LF   1410       <!--                --> CR LF
1390       <xsl:v ariable na me="VarAbb reviationT itle"> CR LF   1411       <xsl:v ariable na me="VarAbb reviationT itle"> CR LF
1391        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker "> CR LF   1412        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker "> CR LF
1392         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" /> CR LF   1413         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" /> CR LF
1393         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1414         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1394         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF   1415         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF
1395         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > CR LF   1416         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > CR LF
1396         <xsl :with-para m name="Pa ramOption"  select="' abbreviati on'" /> CR LF   1417         <xsl :with-para m name="Pa ramOption"  select="' abbreviati on'" /> CR LF
1397        </xsl :call-temp late> CR LF   1418        </xsl :call-temp late> CR LF
1398       </xsl: variable> CR LF   1419       </xsl: variable> CR LF
1399   CR LF   1420   CR LF
1400       <!-- A cronym --> CR LF   1421       <!-- A cronym --> CR LF
1401       <!--          --> CR LF   1422       <!--          --> CR LF
1402       <xsl:v ariable na me="VarAcr onymTitle" > CR LF   1423       <xsl:v ariable na me="VarAcr onymTitle" > CR LF
1403        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker "> CR LF   1424        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker "> CR LF
1404         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" /> CR LF   1425         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" /> CR LF
1405         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1426         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1406         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF   1427         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF
1407         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > CR LF   1428         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > CR LF
1408         <xsl :with-para m name="Pa ramOption"  select="' acronym'"  /> CR LF   1429         <xsl :with-para m name="Pa ramOption"  select="' acronym'"  /> CR LF
1409        </xsl :call-temp late> CR LF   1430        </xsl :call-temp late> CR LF
1410       </xsl: variable> CR LF   1431       </xsl: variable> CR LF
1411   CR LF   1432   CR LF
1412       <!-- C itation -- > CR LF   1433       <!-- C itation -- > CR LF
1413       <!--           -- > CR LF   1434       <!--           -- > CR LF
1414       <xsl:v ariable na me="VarCit ation"> CR LF   1435       <xsl:v ariable na me="VarCit ation"> CR LF
1415        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker "> CR LF   1436        <xsl: call-templ ate name=" Behaviors- Options-Op tionMarker "> CR LF
1416         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" /> CR LF   1437         <xsl :with-para m name="Pa ramContain er" select ="$ParamTe xtRun" /> CR LF
1417         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1438         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1418         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF   1439         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF
1419         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > CR LF   1440         <xsl :with-para m name="Pa ramRule" s elect="$Pa ramRule" / > CR LF
1420         <xsl :with-para m name="Pa ramOption"  select="' citation'"  /> CR LF   1441         <xsl :with-para m name="Pa ramOption"  select="' citation'"  /> CR LF
1421        </xsl :call-temp late> CR LF   1442        </xsl :call-temp late> CR LF
1422       </xsl: variable> CR LF   1443       </xsl: variable> CR LF
1423   CR LF   1444   CR LF
1424       <!-- T ag --> CR LF   1445       <!-- T ag --> CR LF
1425       <!--      --> CR LF   1446       <!--      --> CR LF
1426       <xsl:v ariable na me="VarTag Property"  select="$P aramRule/w wproject:P roperties/ wwproject: Property[@ Name = 'ta g']/@Value " /> CR LF   1447       <xsl:v ariable na me="VarTag Property"  select="$P aramRule/w wproject:P roperties/ wwproject: Property[@ Name = 'ta g']/@Value " /> CR LF
1427       <xsl:v ariable na me="VarTag "> CR LF   1448       <xsl:v ariable na me="VarTag "> CR LF
1428        <xsl: choose> CR LF   1449        <xsl: choose> CR LF
1429         <xsl :when test ="string-l ength($Var Abbreviati onTitle) & gt; 0"> CR LF   1450         <xsl :when test ="string-l ength($Var Abbreviati onTitle) & gt; 0"> CR LF
1430          <xs l:value-of  select="' abbr'" /> CR LF   1451          <xs l:value-of  select="' abbr'" /> CR LF
1431         </xs l:when> CR LF   1452         </xs l:when> CR LF
1432         <xsl :when test ="string-l ength($Var AcronymTit le) &gt; 0 "> CR LF   1453         <xsl :when test ="string-l ength($Var AcronymTit le) &gt; 0 "> CR LF
1433          <xs l:value-of  select="' acronym'"  /> CR LF   1454          <xs l:value-of  select="' acronym'"  /> CR LF
1434         </xs l:when> CR LF   1455         </xs l:when> CR LF
1435         <xsl :when test ="string-l ength($Var Citation)  &gt; 0"> CR LF   1456         <xsl :when test ="string-l ength($Var Citation)  &gt; 0"> CR LF
1436          <xs l:value-of  select="' q'" /> CR LF   1457          <xs l:value-of  select="' q'" /> CR LF
1437         </xs l:when> CR LF   1458         </xs l:when> CR LF
1438   CR LF   1459   CR LF
1439         <xsl :otherwise > CR LF   1460         <xsl :otherwise > CR LF
1440          <xs l:choose> CR LF   1461          <xs l:choose> CR LF
1441           <x sl:when te st="string -length($V arTagPrope rty) &gt;  0"> CR LF   1462           <x sl:when te st="string -length($V arTagPrope rty) &gt;  0"> CR LF
1442            < xsl:value- of select= "$VarTagPr operty" /> CR LF   1463            < xsl:value- of select= "$VarTagPr operty" /> CR LF
1443           </ xsl:when> CR LF   1464           </ xsl:when> CR LF
1444   CR LF   1465   CR LF
1445           <x sl:otherwi se> CR LF   1466           <x sl:otherwi se> CR LF
1446            < xsl:value- of select= "'span'" / > CR LF   1467            < xsl:value- of select= "'span'" / > CR LF
1447           </ xsl:otherw ise> CR LF   1468           </ xsl:otherw ise> CR LF
1448          </x sl:choose> CR LF   1469          </x sl:choose> CR LF
1449         </xs l:otherwis e> CR LF   1470         </xs l:otherwis e> CR LF
1450        </xsl :choose> CR LF   1471        </xsl :choose> CR LF
1451       </xsl: variable> CR LF   1472       </xsl: variable> CR LF
1452   CR LF   1473   CR LF
1453       <!-- S tyle attri bute --> CR LF   1474       <!-- S tyle attri bute --> CR LF
1454       <!--                   --> CR LF   1475       <!--                   --> CR LF
1455       <xsl:v ariable na me="VarSty leAttribut e"> CR LF   1476       <xsl:v ariable na me="VarSty leAttribut e"> CR LF
1456        <xsl: call-templ ate name=" CSS-Inline Properties "> CR LF   1477        <xsl: call-templ ate name=" CSS-Inline Properties "> CR LF
1457         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS ContextPro perties" / > CR LF   1478         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS ContextPro perties" / > CR LF
1458        </xsl :call-temp late> CR LF   1479        </xsl :call-temp late> CR LF
1459       </xsl: variable> CR LF   1480       </xsl: variable> CR LF
1460   CR LF   1481   CR LF
1461       <xsl:c hoose> CR LF   1482       <xsl:c hoose> CR LF
1462        <xsl: when test= "(string-l ength($Par amTextRun/ @stylename ) &gt; 0)  or (string -length($V arStyleAtt ribute) &g t; 0)"> CR LF   1483        <xsl: when test= "(string-l ength($Par amTextRun/ @stylename ) &gt; 0)  or (string -length($V arStyleAtt ribute) &g t; 0)"> CR LF
1463         <!--  Character  Style --> CR LF   1484         <!--  Character  Style --> CR LF
1464         <!--                   --> CR LF   1485         <!--                   --> CR LF
1465         <xsl :element n ame="{$Var Tag}" name space="{$G lobalDefau ltNamespac e}"> CR LF   1486         <xsl :element n ame="{$Var Tag}" name space="{$G lobalDefau ltNamespac e}"> CR LF
1466          <xs l:if test= "string-le ngth($VarS tyleAttrib ute) &gt;  0"> CR LF   1487          <xs l:if test= "string-le ngth($VarS tyleAttrib ute) &gt;  0"> CR LF
1467           <x sl:attribu te name="s tyle"> CR LF   1488           <x sl:attribu te name="s tyle"> CR LF
1468            < xsl:value- of select= "$VarStyle Attribute"  /> CR LF   1489            < xsl:value- of select= "$VarStyle Attribute"  /> CR LF
1469           </ xsl:attrib ute> CR LF   1490           </ xsl:attrib ute> CR LF
1470          </x sl:if> CR LF   1491          </x sl:if> CR LF
1471   CR LF   1492   CR LF
1472          <!- - Abbrevia tion title  --> CR LF   1493          <!- - Abbrevia tion title  --> CR LF
1473          <!- -                      --> CR LF   1494          <!- -                      --> CR LF
1474          <xs l:if test= "string-le ngth($VarA bbreviatio nTitle) &g t; 0"> CR LF   1495          <xs l:if test= "string-le ngth($VarA bbreviatio nTitle) &g t; 0"> CR LF
1475           <x sl:attribu te name="t itle"> CR LF   1496           <x sl:attribu te name="t itle"> CR LF
1476            < xsl:value- of select= "$VarAbbre viationTit le" /> CR LF   1497            < xsl:value- of select= "$VarAbbre viationTit le" /> CR LF
1477           </ xsl:attrib ute> CR LF   1498           </ xsl:attrib ute> CR LF
1478          </x sl:if> CR LF   1499          </x sl:if> CR LF
1479   CR LF   1500   CR LF
1480          <!- - Acronym  title --> CR LF   1501          <!- - Acronym  title --> CR LF
1481          <!- -                      --> CR LF   1502          <!- -                      --> CR LF
1482          <xs l:if test= "string-le ngth($VarA cronymTitl e) &gt; 0" > CR LF   1503          <xs l:if test= "string-le ngth($VarA cronymTitl e) &gt; 0" > CR LF
1483           <x sl:attribu te name="t itle"> CR LF   1504           <x sl:attribu te name="t itle"> CR LF
1484            < xsl:value- of select= "$VarAcron ymTitle" / > CR LF   1505            < xsl:value- of select= "$VarAcron ymTitle" / > CR LF
1485           </ xsl:attrib ute> CR LF   1506           </ xsl:attrib ute> CR LF
1486          </x sl:if> CR LF   1507          </x sl:if> CR LF
1487   CR LF   1508   CR LF
1488          <!- - Cite att ribute --> CR LF   1509          <!- - Cite att ribute --> CR LF
1489          <!- -                 --> CR LF   1510          <!- -                 --> CR LF
1490          <xs l:if test= "string-le ngth($VarC itation) & gt; 0"> CR LF   1511          <xs l:if test= "string-le ngth($VarC itation) & gt; 0"> CR LF
1491           <x sl:attribu te name="c ite"> CR LF   1512           <x sl:attribu te name="c ite"> CR LF
1492            < xsl:value- of select= "$VarCitat ion" /> CR LF   1513            < xsl:value- of select= "$VarCitat ion" /> CR LF
1493           </ xsl:attrib ute> CR LF   1514           </ xsl:attrib ute> CR LF
1494          </x sl:if> CR LF   1515          </x sl:if> CR LF
1495   CR LF   1516   CR LF
1496          <xs l:call-tem plate name ="TextRunC hildren"> CR LF   1517          <xs l:call-tem plate name ="TextRunC hildren"> CR LF
1497           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   1518           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
1498           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF   1519           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF
1499           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   1520           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
1500           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   1521           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
1501           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> CR LF   1522           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> CR LF
1502           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> CR LF   1523           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> CR LF
1503           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > CR LF   1524           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > CR LF
1504          </x sl:call-te mplate> CR LF   1525          </x sl:call-te mplate> CR LF
1505         </xs l:element> CR LF   1526         </xs l:element> CR LF
1506        </xsl :when> CR LF   1527        </xsl :when> CR LF
1507   CR LF   1528   CR LF
1508        <xsl: otherwise> CR LF   1529        <xsl: otherwise> CR LF
1509         <!--  No style  --> CR LF   1530         <!--  No style  --> CR LF
1510         <!--            --> CR LF   1531         <!--            --> CR LF
1511         <xsl :call-temp late name= "TextRunCh ildren"> CR LF   1532         <xsl :call-temp late name= "TextRunCh ildren"> CR LF
1512          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   1533          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
1513          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF   1534          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF
1514          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF   1535          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF
1515          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   1536          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
1516          <xs l:with-par am name="P aramParagr aphID" sel ect="$Para mParagraph ID" /> CR LF   1537          <xs l:with-par am name="P aramParagr aphID" sel ect="$Para mParagraph ID" /> CR LF
1517          <xs l:with-par am name="P aramTextRu n" select= "$ParamTex tRun" /> CR LF   1538          <xs l:with-par am name="P aramTextRu n" select= "$ParamTex tRun" /> CR LF
1518          <xs l:with-par am name="P aramPositi on" select ="$ParamPo sition" /> CR LF   1539          <xs l:with-par am name="P aramPositi on" select ="$ParamPo sition" /> CR LF
1519         </xs l:call-tem plate> CR LF   1540         </xs l:call-tem plate> CR LF
1520        </xsl :otherwise > CR LF   1541        </xsl :otherwise > CR LF
1521       </xsl: choose> CR LF   1542       </xsl: choose> CR LF
1522      </xsl:w hen> CR LF   1543      </xsl:w hen> CR LF
1523   CR LF   1544   CR LF
1524      <xsl:ot herwise> CR LF   1545      <xsl:ot herwise> CR LF
1525       <!-- N o style -- > CR LF   1546       <!-- N o style -- > CR LF
1526       <!--           -- > CR LF   1547       <!--           -- > CR LF
1527       <xsl:c all-templa te name="T extRunChil dren"> CR LF   1548       <xsl:c all-templa te name="T extRunChil dren"> CR LF
1528        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1549        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1529        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF   1550        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF
1530        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   1551        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
1531        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1552        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1532        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraphID " /> CR LF   1553        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraphID " /> CR LF
1533        <xsl: with-param  name="Par amTextRun"  select="$ ParamTextR un" /> CR LF   1554        <xsl: with-param  name="Par amTextRun"  select="$ ParamTextR un" /> CR LF
1534        <xsl: with-param  name="Par amPosition " select=" $ParamPosi tion" /> CR LF   1555        <xsl: with-param  name="Par amPosition " select=" $ParamPosi tion" /> CR LF
1535       </xsl: call-templ ate> CR LF   1556       </xsl: call-templ ate> CR LF
1536      </xsl:o therwise> CR LF   1557      </xsl:o therwise> CR LF
1537     </xsl:ch oose> CR LF   1558     </xsl:ch oose> CR LF
1538    </xsl:tem plate> CR LF   1559    </xsl:tem plate> CR LF
1539   CR LF   1560   CR LF
1540   CR LF   1561   CR LF
1541    <xsl:temp late name= "TextRunCh ildren"> CR LF   1562    <xsl:temp late name= "TextRunCh ildren"> CR LF
1542     <xsl:par am name="P aramSplits " /> CR LF   1563     <xsl:par am name="P aramSplits " /> CR LF
1543     <xsl:par am name="P aramCargo"  /> CR LF   1564     <xsl:par am name="P aramCargo"  /> CR LF
1544     <xsl:par am name="P aramLinks"  /> CR LF   1565     <xsl:par am name="P aramLinks"  /> CR LF
1545     <xsl:par am name="P aramSplit"  /> CR LF   1566     <xsl:par am name="P aramSplit"  /> CR LF
1546     <xsl:par am name="P aramParagr aphID" /> CR LF   1567     <xsl:par am name="P aramParagr aphID" /> CR LF
1547     <xsl:par am name="P aramTextRu n" /> CR LF   1568     <xsl:par am name="P aramTextRu n" /> CR LF
1548     <xsl:par am name="P aramPositi on" /> CR LF   1569     <xsl:par am name="P aramPositi on" /> CR LF
1549   CR LF   1570   CR LF
1550     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF   1571     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF
1551     <!--                                                   --> CR LF   1572     <!--                                                   --> CR LF
1552     <wwexsld oc:NoBreak  /> CR LF   1573     <wwexsld oc:NoBreak  /> CR LF
1553   CR LF   1574   CR LF
1554     <!-- Lin k? --> CR LF   1575     <!-- Lin k? --> CR LF
1555     <!--        --> CR LF   1576     <!--        --> CR LF
1556     <xsl:var iable name ="VarLinkI nfoAsXML"> CR LF   1577     <xsl:var iable name ="VarLinkI nfoAsXML"> CR LF
1557      <xsl:ca ll-templat e name="Li nkInfo"> CR LF   1578      <xsl:ca ll-templat e name="Li nkInfo"> CR LF
1558       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   1579       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
1559       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   1580       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
1560       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   1581       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
1561       <xsl:w ith-param  name="Para mDocumentL ink" selec t="$ParamT extRun/wwd oc:Link" / > CR LF   1582       <xsl:w ith-param  name="Para mDocumentL ink" selec t="$ParamT extRun/wwd oc:Link" / > CR LF
1562      </xsl:c all-templa te> CR LF   1583      </xsl:c all-templa te> CR LF
1563     </xsl:va riable> CR LF   1584     </xsl:va riable> CR LF
1564     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> CR LF   1585     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> CR LF
1565   CR LF   1586   CR LF
1566     <!-- Han dle links  and first  textrun an chor --> CR LF   1587     <!-- Han dle links  and first  textrun an chor --> CR LF
1567     <!--                                           --> CR LF   1588     <!--                                           --> CR LF
1568     <xsl:cho ose> CR LF   1589     <xsl:cho ose> CR LF
1569      <xsl:wh en test="s tring-leng th($VarLin kInfo/@hre f) &gt; 0" > CR LF   1590      <xsl:wh en test="s tring-leng th($VarLin kInfo/@hre f) &gt; 0" > CR LF
1570       <html: span id="w w{$ParamPa ragraphID} "> CR LF   1591       <html: span id="w w{$ParamPa ragraphID} "> CR LF
1571        <xsl: text>[[</x sl:text> CR LF   1592        <xsl: text>[[</x sl:text> CR LF
1572        <xsl: value-of s elect="$Va rLinkInfo/ @href" /> CR LF   1593        <xsl: value-of s elect="$Va rLinkInfo/ @href" /> CR LF
1573        <xsl: text>|</xs l:text> CR LF   1594        <xsl: text>|</xs l:text> CR LF
1574        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n"> CR LF   1595        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n"> CR LF
1575         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1596         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1576         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1597         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1577         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1598         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1578         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1599         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1579        </xsl :apply-tem plates> CR LF   1600        </xsl :apply-tem plates> CR LF
1580        <xsl: text>]]</x sl:text> CR LF   1601        <xsl: text>]]</x sl:text> CR LF
1581       </html :span> CR LF   1602       </html :span> CR LF
1582      </xsl:w hen> CR LF   1603      </xsl:w hen> CR LF
1583   CR LF   1604   CR LF
1584      <xsl:wh en test="$ ParamPosit ion = 1"> CR LF   1605      <xsl:wh en test="$ ParamPosit ion = 1"> CR LF
1585       <html: span id="w w{$ParamPa ragraphID} "> CR LF   1606       <html: span id="w w{$ParamPa ragraphID} "> CR LF
1586        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n"> CR LF   1607        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n"> CR LF
1587         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1608         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1588         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1609         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1589         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1610         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1590         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1611         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1591        </xsl :apply-tem plates> CR LF   1612        </xsl :apply-tem plates> CR LF
1592       </html :span> CR LF   1613       </html :span> CR LF
1593      </xsl:w hen> CR LF   1614      </xsl:w hen> CR LF
1594   CR LF   1615   CR LF
1595      <xsl:ot herwise> CR LF   1616      <xsl:ot herwise> CR LF
1596       <xsl:a pply-templ ates selec t="$ParamT extRun/*"  mode="wwmo de:textrun "> CR LF   1617       <xsl:a pply-templ ates selec t="$ParamT extRun/*"  mode="wwmo de:textrun "> CR LF
1597        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1618        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1598        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF   1619        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF
1599        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   1620        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
1600        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1621        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1601       </xsl: apply-temp lates> CR LF   1622       </xsl: apply-temp lates> CR LF
1602      </xsl:o therwise> CR LF   1623      </xsl:o therwise> CR LF
1603     </xsl:ch oose> CR LF   1624     </xsl:ch oose> CR LF
1604   CR LF   1625   CR LF
1605     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF   1626     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF
1606     <!--                                                   --> CR LF   1627     <!--                                                   --> CR LF
1607     <wwexsld oc:NoBreak  /> CR LF   1628     <wwexsld oc:NoBreak  /> CR LF
1608    </xsl:tem plate> CR LF   1629    </xsl:tem plate> CR LF
1609   CR LF   1630   CR LF
1610   CR LF   1631   CR LF
1611    <xsl:temp late match ="wwdoc:No te" mode=" wwmode:tex trun"> CR LF   1632    <xsl:temp late match ="wwdoc:No te" mode=" wwmode:tex trun"> CR LF
1612     <xsl:par am name="P aramSplits " /> CR LF   1633     <xsl:par am name="P aramSplits " /> CR LF
1613     <xsl:par am name="P aramCargo"  /> CR LF   1634     <xsl:par am name="P aramCargo"  /> CR LF
1614     <xsl:par am name="P aramLinks"  /> CR LF   1635     <xsl:par am name="P aramLinks"  /> CR LF
1615     <xsl:par am name="P aramSplit"  /> CR LF   1636     <xsl:par am name="P aramSplit"  /> CR LF
1616   CR LF   1637   CR LF
1617     <xsl:var iable name ="VarConte xt" select ="." /> CR LF   1638     <xsl:var iable name ="VarConte xt" select ="." /> CR LF
1618   CR LF   1639   CR LF
1619     <!-- Imp lement not es --> CR LF   1640     <!-- Imp lement not es --> CR LF
1620     <!--                   --> CR LF   1641     <!--                   --> CR LF
1621     <xsl:for -each sele ct="$Param Cargo/wwno tes:NoteNu mbering[1] "> CR LF   1642     <xsl:for -each sele ct="$Param Cargo/wwno tes:NoteNu mbering[1] "> CR LF
1622      <xsl:va riable nam e="VarNote Number" se lect="key( 'wwnotes-n otes-by-id ', $VarCon text/@id)/ @number" / > CR LF   1643      <xsl:va riable nam e="VarNote Number" se lect="key( 'wwnotes-n otes-by-id ', $VarCon text/@id)/ @number" / > CR LF
1623   CR LF   1644   CR LF
1624      <!-- Fo rce sup on  same line  as contai ning span  --> CR LF   1645      <!-- Fo rce sup on  same line  as contai ning span  --> CR LF
1625      <!--                                                --> CR LF   1646      <!--                                                --> CR LF
1626      <wwexsl doc:NoBrea k /> CR LF   1647      <wwexsl doc:NoBrea k /> CR LF
1627   CR LF   1648   CR LF
1628      <html:s up> CR LF   1649      <html:s up> CR LF
1629       <!-- F orce ancho r on same  line as co ntaining s up --> CR LF   1650       <!-- F orce ancho r on same  line as co ntaining s up --> CR LF
1630       <!--                                                  --> CR LF   1651       <!--                                                  --> CR LF
1631       <wwexs ldoc:NoBre ak /> CR LF   1652       <wwexs ldoc:NoBre ak /> CR LF
1632   CR LF   1653   CR LF
1633       <html: span id="w wfootnote_ inline_{$V arContext/ @id}"> CR LF   1654       <html: span id="w wfootnote_ inline_{$V arContext/ @id}"> CR LF
1634        <xsl: text>[[</x sl:text> CR LF   1655        <xsl: text>[[</x sl:text> CR LF
1635        <xsl: text>#ww</ xsl:text> CR LF   1656        <xsl: text>#ww</ xsl:text> CR LF
1636        <xsl: value-of s elect="$Va rContext/@ id" /> CR LF   1657        <xsl: value-of s elect="$Va rContext/@ id" /> CR LF
1637        <xsl: text>|</xs l:text> CR LF   1658        <xsl: text>|</xs l:text> CR LF
1638        <xsl: value-of s elect="$Va rNoteNumbe r" /> CR LF   1659        <xsl: value-of s elect="$Va rNoteNumbe r" /> CR LF
1639        <xsl: text>]]</x sl:text> CR LF   1660        <xsl: text>]]</x sl:text> CR LF
1640       </html :span> CR LF   1661       </html :span> CR LF
1641   CR LF   1662   CR LF
1642       <!-- F orce ancho r on same  line as co ntaining s up --> CR LF   1663       <!-- F orce ancho r on same  line as co ntaining s up --> CR LF
1643       <!--                                                  --> CR LF   1664       <!--                                                  --> CR LF
1644       <wwexs ldoc:NoBre ak /> CR LF   1665       <wwexs ldoc:NoBre ak /> CR LF
1645      </html: sup> CR LF   1666      </html: sup> CR LF
1646   CR LF   1667   CR LF
1647      <!-- Fo rce anchor  on same l ine as con taining su p --> CR LF   1668      <!-- Fo rce anchor  on same l ine as con taining su p --> CR LF
1648      <!--                                                  --> CR LF   1669      <!--                                                  --> CR LF
1649      <wwexsl doc:NoBrea k /> CR LF   1670      <wwexsl doc:NoBrea k /> CR LF
1650     </xsl:fo r-each> CR LF   1671     </xsl:fo r-each> CR LF
1651    </xsl:tem plate> CR LF   1672    </xsl:tem plate> CR LF
1652   CR LF   1673   CR LF
1653   CR LF   1674   CR LF
1654    <xsl:temp late match ="wwdoc:Li neBreak" m ode="wwmod e:textrun" > CR LF   1675    <xsl:temp late match ="wwdoc:Li neBreak" m ode="wwmod e:textrun" > CR LF
1655     <xsl:par am name="P aramSplits " /> CR LF   1676     <xsl:par am name="P aramSplits " /> CR LF
1656     <xsl:par am name="P aramCargo"  /> CR LF   1677     <xsl:par am name="P aramCargo"  /> CR LF
1657     <xsl:par am name="P aramLinks"  /> CR LF   1678     <xsl:par am name="P aramLinks"  /> CR LF
1658     <xsl:par am name="P aramSplit"  /> CR LF   1679     <xsl:par am name="P aramSplit"  /> CR LF
1659   CR LF   1680   CR LF
1660     <!-- Not  available  for Media Wiki --> CR LF   1681     <!-- Not  available  for Media Wiki --> CR LF
1661     <!--                                --> CR LF   1682     <!--                                --> CR LF
1662    </xsl:tem plate> CR LF   1683    </xsl:tem plate> CR LF
1663   CR LF   1684   CR LF
1664   CR LF   1685   CR LF
1665    <xsl:temp late match ="wwdoc:In dexMarker"  mode="wwm ode:textru n"> CR LF   1686    <xsl:temp late match ="wwdoc:In dexMarker"  mode="wwm ode:textru n"> CR LF
1666     <xsl:par am name="P aramSplits " /> CR LF   1687     <xsl:par am name="P aramSplits " /> CR LF
1667     <xsl:par am name="P aramCargo"  /> CR LF   1688     <xsl:par am name="P aramCargo"  /> CR LF
1668     <xsl:par am name="P aramLinks"  /> CR LF   1689     <xsl:par am name="P aramLinks"  /> CR LF
1669     <xsl:par am name="P aramSplit"  /> CR LF   1690     <xsl:par am name="P aramSplit"  /> CR LF
1670   CR LF   1691   CR LF
1671     <!-- Ign ore index  markers -- > CR LF   1692     <!-- Ign ore index  markers -- > CR LF
1672     <!--                        -- > CR LF   1693     <!--                        -- > CR LF
1673    </xsl:tem plate> CR LF   1694    </xsl:tem plate> CR LF
1674   CR LF   1695   CR LF
1675   CR LF   1696   CR LF
1676    <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:t extrun"> CR LF   1697    <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:t extrun"> CR LF
1677     <xsl:par am name="P aramSplits " /> CR LF   1698     <xsl:par am name="P aramSplits " /> CR LF
1678     <xsl:par am name="P aramCargo"  /> CR LF   1699     <xsl:par am name="P aramCargo"  /> CR LF
1679     <xsl:par am name="P aramLinks"  /> CR LF   1700     <xsl:par am name="P aramLinks"  /> CR LF
1680     <xsl:par am name="P aramSplit"  /> CR LF   1701     <xsl:par am name="P aramSplit"  /> CR LF
1681   CR LF   1702   CR LF
1682      <!--  Igno r e  marker s  --> CR LF   1703     <xsl:var iable name ="VarMarke r" select= "." /> CR LF
1683      <!--                 
--> CR LF
  1704   CR LF
    1705      <!--  Pass-th r ough  marker ?  --> CR LF
    1706      <!--                         --> CR LF
    1707     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF
    1708      <xsl:va riable nam e="VarMark erBehavior " select=" key('wwbeh aviors-mar kers-by-id ', $VarMar ker/@id)[1 ]" /> CR LF
    1709   CR LF
    1710      <xsl:if  test="$Va rMarkerBeh avior/@beh avior = 'p ass-throug h'"> CR LF
    1711       <!-- P ass-throug h --> CR LF
    1712       <!--                --> CR LF
    1713       <xsl:f or-each se lect="$Var Marker/wwd oc:TextRun "> CR LF
    1714        <xsl: variable n ame="VarTe xtRun" sel ect="." /> CR LF
    1715   CR LF
    1716        <xsl: call-templ ate name=" TextRun-Pa ssThrough" > CR LF
    1717         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> CR LF
    1718        </xsl :call-temp late> CR LF
    1719       </xsl: for-each> CR LF
    1720      </xsl:i f> CR LF
    1721     </xsl:fo r-each> CR LF
1684    </xsl:tem plate> CR LF   1722    </xsl:tem plate> CR LF
1685   CR LF   1723   CR LF
1686   CR LF   1724   CR LF
1687    <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex trun"> CR LF   1725    <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex trun"> CR LF
1688     <xsl:par am name="P aramSplits " /> CR LF   1726     <xsl:par am name="P aramSplits " /> CR LF
1689     <xsl:par am name="P aramCargo"  /> CR LF   1727     <xsl:par am name="P aramCargo"  /> CR LF
1690     <xsl:par am name="P aramLinks"  /> CR LF   1728     <xsl:par am name="P aramLinks"  /> CR LF
1691     <xsl:par am name="P aramSplit"  /> CR LF   1729     <xsl:par am name="P aramSplit"  /> CR LF
1692   CR LF   1730   CR LF
1693     <xsl:val ue-of sele ct="@value " /> CR LF   1731     <xsl:val ue-of sele ct="@value " /> CR LF
1694    </xsl:tem plate> CR LF   1732    </xsl:tem plate> CR LF
1695   CR LF   1733   CR LF
1696   CR LF   1734   CR LF
1697    <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:co ntent"> CR LF   1735    <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:co ntent"> CR LF
1698     <xsl:par am name="P aramSplits " /> CR LF   1736     <xsl:par am name="P aramSplits " /> CR LF
1699     <xsl:par am name="P aramCargo"  /> CR LF   1737     <xsl:par am name="P aramCargo"  /> CR LF
1700     <xsl:par am name="P aramLinks"  /> CR LF   1738     <xsl:par am name="P aramLinks"  /> CR LF
1701     <xsl:par am name="P aramTOCDat a" /> CR LF   1739     <xsl:par am name="P aramTOCDat a" /> CR LF
1702     <xsl:par am name="P aramSplit"  /> CR LF   1740     <xsl:par am name="P aramSplit"  /> CR LF
1703   CR LF   1741   CR LF
1704     <xsl:var iable name ="VarTable " select=" ." /> CR LF   1742     <xsl:var iable name ="VarTable " select=" ." /> CR LF
1705   CR LF   1743   CR LF
1706     <!-- Abo rted? --> CR LF   1744     <!-- Abo rted? --> CR LF
1707     <!--           --> CR LF   1745     <!--           --> CR LF
1708     <xsl:if  test="not( wwprogress :Abort())" > CR LF   1746     <xsl:if  test="not( wwprogress :Abort())" > CR LF
1709      <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   1747      <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
1710      <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   1748      <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
1711      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF   1749      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF
1712      <xsl:if  test="$Va rGenerateO utput"> CR LF   1750      <xsl:if  test="$Va rGenerateO utput"> CR LF
1713   CR LF   1751   CR LF
1714       <!-- G et behavio r --> CR LF   1752       <!-- G et behavio r --> CR LF
1715       <!--                --> CR LF   1753       <!--                --> CR LF
1716       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF   1754       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF
1717        <xsl: variable n ame="VarTa bleBehavio r" select= "key('wwbe haviors-ta bles-by-id ', $VarTab le/@id)[1] " /> CR LF   1755        <xsl: variable n ame="VarTa bleBehavio r" select= "key('wwbe haviors-ta bles-by-id ', $VarTab le/@id)[1] " /> CR LF
1718   CR LF   1756   CR LF
1719        <!--  Table --> CR LF   1757        <!--  Table --> CR LF
1720        <!--        --> CR LF   1758        <!--        --> CR LF
1721        <xsl: call-templ ate name=" Table"> CR LF   1759        <xsl: call-templ ate name=" Table"> CR LF
1722         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1760         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1723         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1761         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1724         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1762         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1725         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF   1763         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF
1726         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1764         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1727         <xsl :with-para m name="Pa ramTable"  select="$V arTable" / > CR LF   1765         <xsl :with-para m name="Pa ramTable"  select="$V arTable" / > CR LF
1728         <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" /> CR LF   1766         <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" /> CR LF
1729         <xsl :with-para m name="Pa ramTableBe havior" se lect="$Var TableBehav ior" /> CR LF   1767         <xsl :with-para m name="Pa ramTableBe havior" se lect="$Var TableBehav ior" /> CR LF
1730        </xsl :call-temp late> CR LF   1768        </xsl :call-temp late> CR LF
1731       </xsl: for-each> CR LF   1769       </xsl: for-each> CR LF
1732      </xsl:i f> CR LF   1770      </xsl:i f> CR LF
1733     </xsl:if > CR LF   1771     </xsl:if > CR LF
1734    </xsl:tem plate> CR LF   1772    </xsl:tem plate> CR LF
1735   CR LF   1773   CR LF
1736   CR LF   1774   CR LF
1737    <xsl:temp late name= "Table-Att ribute-In- Pixels"> CR LF   1775    <xsl:temp late name= "Table-Att ribute-In- Pixels"> CR LF
1738     <xsl:par am name="P aramValue"  /> CR LF   1776     <xsl:par am name="P aramValue"  /> CR LF
1739   CR LF   1777   CR LF
1740     <xsl:cho ose> CR LF   1778     <xsl:cho ose> CR LF
1741      <xsl:wh en test="s tring-leng th($ParamV alue) &gt;  0"> CR LF   1779      <xsl:wh en test="s tring-leng th($ParamV alue) &gt;  0"> CR LF
1742       <!-- N ormalize v alue for H TML attrib ute--> CR LF   1780       <!-- N ormalize v alue for H TML attrib ute--> CR LF
1743       <!--                                       --> CR LF   1781       <!--                                       --> CR LF
1744       <xsl:v ariable na me="VarVal ueToEmit"> CR LF   1782       <xsl:v ariable na me="VarVal ueToEmit"> CR LF
1745        <xsl: variable n ame="VarUn itsSuffix"  select="w wunits:Uni tsSuffix($ ParamValue )" /> CR LF   1783        <xsl: variable n ame="VarUn itsSuffix"  select="w wunits:Uni tsSuffix($ ParamValue )" /> CR LF
1746   CR LF   1784   CR LF
1747        <xsl: choose> CR LF   1785        <xsl: choose> CR LF
1748         <xsl :when test ="string-l ength($Var UnitsSuffi x) &gt; 0" > CR LF   1786         <xsl :when test ="string-l ength($Var UnitsSuffi x) &gt; 0" > CR LF
1749          <xs l:variable  name="Var NumPrefix"  select="w wunits:Num ericPrefix ($ParamVal ue)" /> CR LF   1787          <xs l:variable  name="Var NumPrefix"  select="w wunits:Num ericPrefix ($ParamVal ue)" /> CR LF
1750   CR LF   1788   CR LF
1751          <xs l:value-of  select="w wunits:Con vert($VarN umPrefix,  $VarUnitsS uffix, 'px ')" /> CR LF   1789          <xs l:value-of  select="w wunits:Con vert($VarN umPrefix,  $VarUnitsS uffix, 'px ')" /> CR LF
1752         </xs l:when> CR LF   1790         </xs l:when> CR LF
1753   CR LF   1791   CR LF
1754         <xsl :otherwise > CR LF   1792         <xsl :otherwise > CR LF
1755          <xs l:value-of  select="$ ParamValue " /> CR LF   1793          <xs l:value-of  select="$ ParamValue " /> CR LF
1756         </xs l:otherwis e> CR LF   1794         </xs l:otherwis e> CR LF
1757        </xsl :choose> CR LF   1795        </xsl :choose> CR LF
1758       </xsl: variable> CR LF   1796       </xsl: variable> CR LF
1759   CR LF   1797   CR LF
1760       <xsl:v alue-of se lect="$Var ValueToEmi t" /> CR LF   1798       <xsl:v alue-of se lect="$Var ValueToEmi t" /> CR LF
1761      </xsl:w hen> CR LF   1799      </xsl:w hen> CR LF
1762   CR LF   1800   CR LF
1763      <xsl:ot herwise> CR LF   1801      <xsl:ot herwise> CR LF
1764       <xsl:v alue-of se lect="''"  /> CR LF   1802       <xsl:v alue-of se lect="''"  /> CR LF
1765      </xsl:o therwise> CR LF   1803      </xsl:o therwise> CR LF
1766     </xsl:ch oose> CR LF   1804     </xsl:ch oose> CR LF
1767    </xsl:tem plate> CR LF   1805    </xsl:tem plate> CR LF
1768   CR LF   1806   CR LF
1769   CR LF   1807   CR LF
1770    <xsl:temp late name= "Table"> CR LF   1808    <xsl:temp late name= "Table"> CR LF
1771     <xsl:par am name="P aramSplits " /> CR LF   1809     <xsl:par am name="P aramSplits " /> CR LF
1772     <xsl:par am name="P aramCargo"  /> CR LF   1810     <xsl:par am name="P aramCargo"  /> CR LF
1773     <xsl:par am name="P aramLinks"  /> CR LF   1811     <xsl:par am name="P aramLinks"  /> CR LF
1774     <xsl:par am name="P aramTOCDat a" /> CR LF   1812     <xsl:par am name="P aramTOCDat a" /> CR LF
1775     <xsl:par am name="P aramSplit"  /> CR LF   1813     <xsl:par am name="P aramSplit"  /> CR LF
1776     <xsl:par am name="P aramTable"  /> CR LF   1814     <xsl:par am name="P aramTable"  /> CR LF
1777     <xsl:par am name="P aramStyleN ame" /> CR LF   1815     <xsl:par am name="P aramStyleN ame" /> CR LF
1778     <xsl:par am name="P aramTableB ehavior" / > CR LF   1816     <xsl:par am name="P aramTableB ehavior" / > CR LF
1779   CR LF   1817   CR LF
1780     <!-- Not es --> CR LF   1818     <!-- Not es --> CR LF
1781     <!--        --> CR LF   1819     <!--        --> CR LF
1782     <xsl:var iable name ="VarNotes " select=" $ParamTabl e//wwdoc:N ote[not(an cestor::ww doc:Frame) ]" /> CR LF   1820     <xsl:var iable name ="VarNotes " select=" $ParamTabl e//wwdoc:N ote[not(an cestor::ww doc:Frame) ]" /> CR LF
1783   CR LF   1821   CR LF
1784     <!-- Not e numberin g --> CR LF   1822     <!-- Not e numberin g --> CR LF
1785     <!--                  --> CR LF   1823     <!--                  --> CR LF
1786     <xsl:var iable name ="VarNoteN umberingAs XML"> CR LF   1824     <xsl:var iable name ="VarNoteN umberingAs XML"> CR LF
1787      <xsl:ca ll-templat e name="No tes-Number "> CR LF   1825      <xsl:ca ll-templat e name="No tes-Number "> CR LF
1788       <xsl:w ith-param  name="Para mNotes" se lect="$Var Notes" /> CR LF   1826       <xsl:w ith-param  name="Para mNotes" se lect="$Var Notes" /> CR LF
1789      </xsl:c all-templa te> CR LF   1827      </xsl:c all-templa te> CR LF
1790     </xsl:va riable> CR LF   1828     </xsl:va riable> CR LF
1791     <xsl:var iable name ="VarNoteN umbering"  select="ms xsl:node-s et($VarNot eNumbering AsXML)" /> CR LF   1829     <xsl:var iable name ="VarNoteN umbering"  select="ms xsl:node-s et($VarNot eNumbering AsXML)" /> CR LF
1792   CR LF   1830   CR LF
1793     <!-- Car go for rec ursion --> CR LF   1831     <!-- Car go for rec ursion --> CR LF
1794     <!--                       --> CR LF   1832     <!--                       --> CR LF
1795     <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() !=  'NoteNumbe ring']/..  | $VarNote Numbering"  /> CR LF   1833     <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() !=  'NoteNumbe ring']/..  | $VarNote Numbering"  /> CR LF
1796   CR LF   1834   CR LF
1797     <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   1835     <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
1798   CR LF   1836   CR LF
1799     <!-- Res olve proje ct propert ies --> CR LF   1837     <!-- Res olve proje ct propert ies --> CR LF
1800     <!--                               --> CR LF   1838     <!--                               --> CR LF
1801     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF   1839     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF
1802      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF   1840      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF
1803       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amTable" / > CR LF   1841       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amTable" / > CR LF
1804       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF   1842       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF
1805       <xsl:w ith-param  name="Para mStyleName " select=" $ParamTabl e/@stylena me" /> CR LF   1843       <xsl:w ith-param  name="Para mStyleName " select=" $ParamTabl e/@stylena me" /> CR LF
1806       <xsl:w ith-param  name="Para mStyleType " select=" 'Table'" / > CR LF   1844       <xsl:w ith-param  name="Para mStyleType " select=" 'Table'" / > CR LF
1807       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> CR LF   1845       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> CR LF
1808      </xsl:c all-templa te> CR LF   1846      </xsl:c all-templa te> CR LF
1809     </xsl:va riable> CR LF   1847     </xsl:va riable> CR LF
1810     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF   1848     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF
1811   CR LF   1849   CR LF
1812     <!-- CSS  propertie s --> CR LF   1850     <!-- CSS  propertie s --> CR LF
1813     <!--                  --> CR LF   1851     <!--                  --> CR LF
1814     <xsl:var iable name ="VarCSSPr opertiesAs XML"> CR LF   1852     <xsl:var iable name ="VarCSSPr opertiesAs XML"> CR LF
1815      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF   1853      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF
1816       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedContext Properties " /> CR LF   1854       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedContext Properties " /> CR LF
1817       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF   1855       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF
1818       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   1856       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
1819      </xsl:c all-templa te> CR LF   1857      </xsl:c all-templa te> CR LF
1820     </xsl:va riable> CR LF   1858     </xsl:va riable> CR LF
1821     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> CR LF   1859     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> CR LF
1822   CR LF   1860   CR LF
1823     <!-- Sty le attribu te --> CR LF   1861     <!-- Sty le attribu te --> CR LF
1824     <!--                   --> CR LF   1862     <!--                   --> CR LF
1825     <xsl:var iable name ="VarStyle Attribute" > CR LF   1863     <xsl:var iable name ="VarStyle Attribute" > CR LF
1826      <xsl:ca ll-templat e name="CS S-InlinePr operties"> CR LF   1864      <xsl:ca ll-templat e name="CS S-InlinePr operties"> CR LF
1827       <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties[( @Name != ' vertical-a lign')]" / > CR LF   1865       <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties[( @Name != ' vertical-a lign')]" / > CR LF
1828      </xsl:c all-templa te> CR LF   1866      </xsl:c all-templa te> CR LF
1829     </xsl:va riable> CR LF   1867     </xsl:va riable> CR LF
1830   CR LF   1868   CR LF
1831     <!-- Bor der --> CR LF   1869     <!-- Bor der --> CR LF
1832     <!--         --> CR LF   1870     <!--         --> CR LF
1833     <xsl:var iable name ="VarTable Border"> CR LF   1871     <xsl:var iable name ="VarTable Border"> CR LF
1834      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF   1872      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF
1835       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'borde r']/@Value " /> CR LF   1873       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'borde r']/@Value " /> CR LF
1836      </xsl:c all-templa te> CR LF   1874      </xsl:c all-templa te> CR LF
1837     </xsl:va riable> CR LF   1875     </xsl:va riable> CR LF
1838   CR LF   1876   CR LF
1839     <!-- Cel l padding  --> CR LF   1877     <!-- Cel l padding  --> CR LF
1840     <!--                --> CR LF   1878     <!--                --> CR LF
1841     <xsl:var iable name ="VarTable CellPaddin g"> CR LF   1879     <xsl:var iable name ="VarTable CellPaddin g"> CR LF
1842      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF   1880      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF
1843       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- padding']/ @Value" /> CR LF   1881       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- padding']/ @Value" /> CR LF
1844      </xsl:c all-templa te> CR LF   1882      </xsl:c all-templa te> CR LF
1845     </xsl:va riable> CR LF   1883     </xsl:va riable> CR LF
1846   CR LF   1884   CR LF
1847     <!-- Cel l spacing  --> CR LF   1885     <!-- Cel l spacing  --> CR LF
1848     <!--                --> CR LF   1886     <!--                --> CR LF
1849     <xsl:var iable name ="VarTable CellSpacin g"> CR LF   1887     <xsl:var iable name ="VarTable CellSpacin g"> CR LF
1850      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF   1888      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF
1851       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- spacing']/ @Value" /> CR LF   1889       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- spacing']/ @Value" /> CR LF
1852      </xsl:c all-templa te> CR LF   1890      </xsl:c all-templa te> CR LF
1853     </xsl:va riable> CR LF   1891     </xsl:va riable> CR LF
1854   CR LF   1892   CR LF
1855     <!-- Tab le vertica l alignmen t --> CR LF   1893     <!-- Tab le vertica l alignmen t --> CR LF
1856     <!--                             --> CR LF   1894     <!--                             --> CR LF
1857     <xsl:var iable name ="VarTable VerticalAl ignment"> CR LF   1895     <xsl:var iable name ="VarTable VerticalAl ignment"> CR LF
1858      <xsl:va riable nam e="VarTabl eVerticalA lignmentHi nt" select ="$VarReso lvedContex tPropertie s[@Name =  'vertical- align']/@V alue" /> CR LF   1896      <xsl:va riable nam e="VarTabl eVerticalA lignmentHi nt" select ="$VarReso lvedContex tPropertie s[@Name =  'vertical- align']/@V alue" /> CR LF
1859      <xsl:ch oose> CR LF   1897      <xsl:ch oose> CR LF
1860       <xsl:w hen test=" string-len gth($VarTa bleVertica lAlignment Hint) &gt;  0"> CR LF   1898       <xsl:w hen test=" string-len gth($VarTa bleVertica lAlignment Hint) &gt;  0"> CR LF
1861        <xsl: value-of s elect="$Va rTableVert icalAlignm entHint" / > CR LF   1899        <xsl: value-of s elect="$Va rTableVert icalAlignm entHint" / > CR LF
1862       </xsl: when> CR LF   1900       </xsl: when> CR LF
1863       <xsl:o therwise> CR LF   1901       <xsl:o therwise> CR LF
1864        <xsl: value-of s elect="''"  /> CR LF   1902        <xsl: value-of s elect="''"  /> CR LF
1865       </xsl: otherwise> CR LF   1903       </xsl: otherwise> CR LF
1866      </xsl:c hoose> CR LF   1904      </xsl:c hoose> CR LF
1867     </xsl:va riable> CR LF   1905     </xsl:va riable> CR LF
1868   CR LF   1906   CR LF
1869     <!-- Tab le summary  --> CR LF   1907     <!-- Tab le summary  --> CR LF
1870     <!--                 --> CR LF   1908     <!--                 --> CR LF
1871     <xsl:var iable name ="VarTable Summary"> CR LF   1909     <xsl:var iable name ="VarTable Summary"> CR LF
1872      <xsl:ca ll-templat e name="Ta bles-Summa ry"> CR LF   1910      <xsl:ca ll-templat e name="Ta bles-Summa ry"> CR LF
1873       <xsl:w ith-param  name="Para mTableBeha vior" sele ct="$Param TableBehav ior" /> CR LF   1911       <xsl:w ith-param  name="Para mTableBeha vior" sele ct="$Param TableBehav ior" /> CR LF
1874      </xsl:c all-templa te> CR LF   1912      </xsl:c all-templa te> CR LF
1875     </xsl:va riable> CR LF   1913     </xsl:va riable> CR LF
1876   CR LF   1914   CR LF
1877     <!-- Cap tion Side  --> CR LF   1915     <!-- Cap tion Side  --> CR LF
1878     <!--                --> CR LF   1916     <!--                --> CR LF
1879     <xsl:var iable name ="VarCapti onSide"> CR LF   1917     <xsl:var iable name ="VarCapti onSide"> CR LF
1880      <xsl:va lue-of sel ect="$VarR esolvedCon textProper ties[@Name  = 'captio n-side']/@ Value" /> CR LF   1918      <xsl:va lue-of sel ect="$VarR esolvedCon textProper ties[@Name  = 'captio n-side']/@ Value" /> CR LF
1881     </xsl:va riable> CR LF   1919     </xsl:va riable> CR LF
1882   CR LF   1920   CR LF
1883     <!-- Det ermine tab le cell wi dths --> CR LF   1921     <!-- Det ermine tab le cell wi dths --> CR LF
1884     <!--                                --> CR LF   1922     <!--                                --> CR LF
1885     <xsl:var iable name ="VarTable CellWidths AsXML"> CR LF   1923     <xsl:var iable name ="VarTable CellWidths AsXML"> CR LF
1886      <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   1924      <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
1887      <xsl:va riable nam e="VarEmit TableWidth s" select= "$VarEmitT ableWidths Option = ' true'" /> CR LF   1925      <xsl:va riable nam e="VarEmit TableWidth s" select= "$VarEmitT ableWidths Option = ' true'" /> CR LF
1888   CR LF   1926   CR LF
1889      <xsl:if  test="$Va rEmitTable Widths"> CR LF   1927      <xsl:if  test="$Va rEmitTable Widths"> CR LF
1890       <xsl:c all-templa te name="T able-CellW idths"> CR LF   1928       <xsl:c all-templa te name="T able-CellW idths"> CR LF
1891        <xsl: with-param  name="Par amTable" s elect="$Pa ramTable"  /> CR LF   1929        <xsl: with-param  name="Par amTable" s elect="$Pa ramTable"  /> CR LF
1892       </xsl: call-templ ate> CR LF   1930       </xsl: call-templ ate> CR LF
1893      </xsl:i f> CR LF   1931      </xsl:i f> CR LF
1894     </xsl:va riable> CR LF   1932     </xsl:va riable> CR LF
1895     <xsl:var iable name ="VarTable CellWidths " select=" msxsl:node -set($VarT ableCellWi dthsAsXML) /*" /> CR LF   1933     <xsl:var iable name ="VarTable CellWidths " select=" msxsl:node -set($VarT ableCellWi dthsAsXML) /*" /> CR LF
1896   CR LF   1934   CR LF
1897     <!-- Emi t <table>  element wi th attribu tes. --> CR LF   1935     <!-- Emi t <table>  element wi th attribu tes. --> CR LF
1898     <!--                                           --> CR LF   1936     <!--                                           --> CR LF
1899     <html:ta ble> CR LF   1937     <html:ta ble> CR LF
1900   CR LF   1938   CR LF
1901      <!-- st yle attrib ute --> CR LF   1939      <!-- st yle attrib ute --> CR LF
1902      <!--                   --> CR LF   1940      <!--                   --> CR LF
1903      <xsl:if  test="str ing-length ($VarStyle Attribute)  &gt; 0"> CR LF   1941      <xsl:if  test="str ing-length ($VarStyle Attribute)  &gt; 0"> CR LF
1904       <xsl:a ttribute n ame="style "> CR LF   1942       <xsl:a ttribute n ame="style "> CR LF
1905        <xsl: value-of s elect="$Va rStyleAttr ibute" /> CR LF   1943        <xsl: value-of s elect="$Va rStyleAttr ibute" /> CR LF
1906       </xsl: attribute> CR LF   1944       </xsl: attribute> CR LF
1907      </xsl:i f> CR LF   1945      </xsl:i f> CR LF
1908   CR LF   1946   CR LF
1909      <!-- bo rder attri bute --> CR LF   1947      <!-- bo rder attri bute --> CR LF
1910      <!--                    --> CR LF   1948      <!--                    --> CR LF
1911      <xsl:if  test="str ing-length ($VarTable Border) &g t; 0"> CR LF   1949      <xsl:if  test="str ing-length ($VarTable Border) &g t; 0"> CR LF
1912       <xsl:a ttribute n ame="borde r"> CR LF   1950       <xsl:a ttribute n ame="borde r"> CR LF
1913        <xsl: value-of s elect="$Va rTableBord er" /> CR LF   1951        <xsl: value-of s elect="$Va rTableBord er" /> CR LF
1914       </xsl: attribute> CR LF   1952       </xsl: attribute> CR LF
1915      </xsl:i f> CR LF   1953      </xsl:i f> CR LF
1916   CR LF   1954   CR LF
1917      <!-- ce llpadding  attribute  --> CR LF   1955      <!-- ce llpadding  attribute  --> CR LF
1918      <!--                          --> CR LF   1956      <!--                          --> CR LF
1919      <xsl:if  test="str ing-length ($VarTable CellPaddin g) &gt; 0" > CR LF   1957      <xsl:if  test="str ing-length ($VarTable CellPaddin g) &gt; 0" > CR LF
1920       <xsl:a ttribute n ame="cellp adding"> CR LF   1958       <xsl:a ttribute n ame="cellp adding"> CR LF
1921        <xsl: value-of s elect="$Va rTableCell Padding" / > CR LF   1959        <xsl: value-of s elect="$Va rTableCell Padding" / > CR LF
1922       </xsl: attribute> CR LF   1960       </xsl: attribute> CR LF
1923      </xsl:i f> CR LF   1961      </xsl:i f> CR LF
1924   CR LF   1962   CR LF
1925      <!-- ce llspacing  attribute  --> CR LF   1963      <!-- ce llspacing  attribute  --> CR LF
1926      <!--                          --> CR LF   1964      <!--                          --> CR LF
1927      <xsl:if  test="str ing-length ($VarTable CellSpacin g) &gt; 0" > CR LF   1965      <xsl:if  test="str ing-length ($VarTable CellSpacin g) &gt; 0" > CR LF
1928       <xsl:a ttribute n ame="cells pacing"> CR LF   1966       <xsl:a ttribute n ame="cells pacing"> CR LF
1929        <xsl: value-of s elect="$Va rTableCell Spacing" / > CR LF   1967        <xsl: value-of s elect="$Va rTableCell Spacing" / > CR LF
1930       </xsl: attribute> CR LF   1968       </xsl: attribute> CR LF
1931      </xsl:i f> CR LF   1969      </xsl:i f> CR LF
1932   CR LF   1970   CR LF
1933      <!-- su mmary attr ibute --> CR LF   1971      <!-- su mmary attr ibute --> CR LF
1934      <!--                     --> CR LF   1972      <!--                     --> CR LF
1935      <xsl:at tribute na me="summar y"> CR LF   1973      <xsl:at tribute na me="summar y"> CR LF
1936       <xsl:v alue-of se lect="$Var TableSumma ry" /> CR LF   1974       <xsl:v alue-of se lect="$Var TableSumma ry" /> CR LF
1937      </xsl:a ttribute> CR LF   1975      </xsl:a ttribute> CR LF
1938   CR LF   1976   CR LF
1939      <!-- Ap ply captio n template s --> CR LF   1977      <!-- Ap ply captio n template s --> CR LF
1940      <!--                            --> CR LF   1978      <!--                            --> CR LF
1941      <xsl:fo r-each sel ect="$Para mTable/wwd oc:Caption [1]"> CR LF   1979      <xsl:fo r-each sel ect="$Para mTable/wwd oc:Caption [1]"> CR LF
1942       <html: caption> CR LF   1980       <html: caption> CR LF
1943   CR LF   1981   CR LF
1944        <xsl: if test="s tring-leng th($VarCap tionSide)  &gt; 0"> CR LF   1982        <xsl: if test="s tring-leng th($VarCap tionSide)  &gt; 0"> CR LF
1945         <xsl :attribute  name="sty le"> CR LF   1983         <xsl :attribute  name="sty le"> CR LF
1946          <xs l:value-of  select="c oncat('cap tion-side:  ', $VarCa ptionSide) " /> CR LF   1984          <xs l:value-of  select="c oncat('cap tion-side:  ', $VarCa ptionSide) " /> CR LF
1947         </xs l:attribut e> CR LF   1985         </xs l:attribut e> CR LF
1948        </xsl :if> CR LF   1986        </xsl :if> CR LF
1949   CR LF   1987   CR LF
1950        <!--  Force on o ne line -- > CR LF   1988        <!--  Force on o ne line -- > CR LF
1951        <!--                     -- > CR LF   1989        <!--                     -- > CR LF
1952        <wwex sldoc:NoBr eak /> CR LF   1990        <wwex sldoc:NoBr eak /> CR LF
1953   CR LF   1991   CR LF
1954        <xsl: apply-temp lates sele ct="./*" m ode="wwmod e:content" > CR LF   1992        <xsl: apply-temp lates sele ct="./*" m ode="wwmod e:content" > CR LF
1955         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1993         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1956         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1994         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1957         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1995         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1958         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF   1996         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF
1959         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1997         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1960        </xsl :apply-tem plates> CR LF   1998        </xsl :apply-tem plates> CR LF
1961   CR LF   1999   CR LF
1962        <!--  Force on o ne line -- > CR LF   2000        <!--  Force on o ne line -- > CR LF
1963        <!--                     -- > CR LF   2001        <!--                     -- > CR LF
1964        <wwex sldoc:NoBr eak /> CR LF   2002        <wwex sldoc:NoBr eak /> CR LF
1965   CR LF   2003   CR LF
1966       </html :caption> CR LF   2004       </html :caption> CR LF
1967      </xsl:f or-each> CR LF   2005      </xsl:f or-each> CR LF
1968   CR LF   2006   CR LF
1969      <xsl:fo r-each sel ect="$Para mTable/wwd oc:TableHe ad|$ParamT able/wwdoc :TableBody |$ParamTab le/wwdoc:T ableFoot"> CR LF   2007      <xsl:fo r-each sel ect="$Para mTable/wwd oc:TableHe ad|$ParamT able/wwdoc :TableBody |$ParamTab le/wwdoc:T ableFoot"> CR LF
1970       <xsl:v ariable na me="VarSec tion" sele ct="." /> CR LF   2008       <xsl:v ariable na me="VarSec tion" sele ct="." /> CR LF
1971   CR LF   2009   CR LF
1972       <!-- R esolve sec tion prope rties --> CR LF   2010       <!-- R esolve sec tion prope rties --> CR LF
1973       <!--                               --> CR LF   2011       <!--                               --> CR LF
1974       <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML"> CR LF   2012       <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML"> CR LF
1975        <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule"> CR LF   2013        <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule"> CR LF
1976         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property"  /> CR LF   2014         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property"  /> CR LF
1977         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramTable"  /> CR LF   2015         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramTable"  /> CR LF
1978         <xsl :with-para m name="Pa ramTable"  select="$P aramTable"  /> CR LF   2016         <xsl :with-para m name="Pa ramTable"  select="$P aramTable"  /> CR LF
1979         <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" /> CR LF   2017         <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" /> CR LF
1980        </xsl :call-temp late> CR LF   2018        </xsl :call-temp late> CR LF
1981       </xsl: variable> CR LF   2019       </xsl: variable> CR LF
1982       <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   2020       <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
1983   CR LF   2021   CR LF
1984       <!-- P rocess sec tion rows  --> CR LF   2022       <!-- P rocess sec tion rows  --> CR LF
1985       <!--                         --> CR LF   2023       <!--                         --> CR LF
1986       <xsl:f or-each se lect="$Var Section/ww doc:TableR ow"> CR LF   2024       <xsl:f or-each se lect="$Var Section/ww doc:TableR ow"> CR LF
1987        <xsl: variable n ame="VarTa bleRow" se lect="." / > CR LF   2025        <xsl: variable n ame="VarTa bleRow" se lect="." / > CR LF
1988        <xsl: variable n ame="VarRo wPosition"  select="p osition()"  /> CR LF   2026        <xsl: variable n ame="VarRo wPosition"  select="p osition()"  /> CR LF
1989   CR LF   2027   CR LF
1990        <html :tr> CR LF   2028        <html :tr> CR LF
1991   CR LF   2029   CR LF
1992         <!--  Handle ta ble level  vertical a lign at ro w level -- > CR LF   2030         <!--  Handle ta ble level  vertical a lign at ro w level -- > CR LF
1993         <!--                                                     -- > CR LF   2031         <!--                                                     -- > CR LF
1994         <xsl :if test=" string-len gth($VarTa bleVertica lAlignment ) &gt; 0"> CR LF   2032         <xsl :if test=" string-len gth($VarTa bleVertica lAlignment ) &gt; 0"> CR LF
1995          <xs l:attribut e name="st yle"> CR LF   2033          <xs l:attribut e name="st yle"> CR LF
1996           <x sl:value-o f select=" concat('ve rtical-ali gn: ', $Va rTableVert icalAlignm ent, ';')"  /> CR LF   2034           <x sl:value-o f select=" concat('ve rtical-ali gn: ', $Va rTableVert icalAlignm ent, ';')"  /> CR LF
1997          </x sl:attribu te> CR LF   2035          </x sl:attribu te> CR LF
1998         </xs l:if> CR LF   2036         </xs l:if> CR LF
1999   CR LF   2037   CR LF
2000         <xsl :for-each  select="$V arTableRow /wwdoc:Tab leCell"> CR LF   2038         <xsl :for-each  select="$V arTableRow /wwdoc:Tab leCell"> CR LF
2001          <xs l:variable  name="Var TableCell"  select=". " /> CR LF   2039          <xs l:variable  name="Var TableCell"  select=". " /> CR LF
2002          <xs l:variable  name="Var CellPositi on" select ="position ()" /> CR LF   2040          <xs l:variable  name="Var CellPositi on" select ="position ()" /> CR LF
2003   CR LF   2041   CR LF
2004          <!- - Resolve  cell prope rties --> CR LF   2042          <!- - Resolve  cell prope rties --> CR LF
2005          <!- -                           --> CR LF   2043          <!- -                           --> CR LF
2006          <xs l:variable  name="Var ResolvedCe llProperti esAsXML"> CR LF   2044          <xs l:variable  name="Var ResolvedCe llProperti esAsXML"> CR LF
2007           <x sl:call-te mplate nam e="Propert ies-Table- Cell-Resol veProperti es"> CR LF   2045           <x sl:call-te mplate nam e="Propert ies-Table- Cell-Resol veProperti es"> CR LF
2008            < xsl:with-p aram name= "ParamSect ionPropert ies" selec t="$VarRes olvedSecti onProperti es" /> CR LF   2046            < xsl:with-p aram name= "ParamSect ionPropert ies" selec t="$VarRes olvedSecti onProperti es" /> CR LF
2009            < xsl:with-p aram name= "ParamCell Style" sel ect="$VarT ableCell/w wdoc:Style " /> CR LF   2047            < xsl:with-p aram name= "ParamCell Style" sel ect="$VarT ableCell/w wdoc:Style " /> CR LF
2010            < xsl:with-p aram name= "ParamRowI ndex" sele ct="$VarRo wPosition"  /> CR LF   2048            < xsl:with-p aram name= "ParamRowI ndex" sele ct="$VarRo wPosition"  /> CR LF
2011            < xsl:with-p aram name= "ParamColu mnIndex" s elect="$Va rCellPosit ion" /> CR LF   2049            < xsl:with-p aram name= "ParamColu mnIndex" s elect="$Va rCellPosit ion" /> CR LF
2012           </ xsl:call-t emplate> CR LF   2050           </ xsl:call-t emplate> CR LF
2013   CR LF   2051   CR LF
2014           <! -- Width a ttribute - -> CR LF   2052           <! -- Width a ttribute - -> CR LF
2015           <! --                  - -> CR LF   2053           <! --                  - -> CR LF
2016           <x sl:for-eac h select=" $VarTableC ellWidths[ @id = $Var TableCell/ @id][1]"> CR LF   2054           <x sl:for-eac h select=" $VarTableC ellWidths[ @id = $Var TableCell/ @id][1]"> CR LF
2017            < xsl:variab le name="V arTableCel lWidth" se lect="." / > CR LF   2055            < xsl:variab le name="V arTableCel lWidth" se lect="." / > CR LF
2018   CR LF   2056   CR LF
2019            < wwproject: Property N ame="width " Value="{ $VarTableC ellWidth/@ width}" /> CR LF   2057            < wwproject: Property N ame="width " Value="{ $VarTableC ellWidth/@ width}" /> CR LF
2020           </ xsl:for-ea ch> CR LF   2058           </ xsl:for-ea ch> CR LF
2021          </x sl:variabl e> CR LF   2059          </x sl:variabl e> CR LF
2022          <xs l:variable  name="Var ResolvedCe llProperti es" select ="msxsl:no de-set($Va rResolvedC ellPropert iesAsXML)/ wwproject: Property"  /> CR LF   2060          <xs l:variable  name="Var ResolvedCe llProperti es" select ="msxsl:no de-set($Va rResolvedC ellPropert iesAsXML)/ wwproject: Property"  /> CR LF
2023   CR LF   2061   CR LF
2024          <!- - Valid CS S properti es --> CR LF   2062          <!- - Valid CS S properti es --> CR LF
2025          <!- -                        --> CR LF   2063          <!- -                        --> CR LF
2026          <xs l:variable  name="Var TableCellC SSProperti esAsXML"> CR LF   2064          <xs l:variable  name="Var TableCellC SSProperti esAsXML"> CR LF
2027           <x sl:call-te mplate nam e="CSS-Tra nslateProj ectPropert ies"> CR LF   2065           <x sl:call-te mplate nam e="CSS-Tra nslateProj ectPropert ies"> CR LF
2028            < xsl:with-p aram name= "ParamProp erties" se lect="$Var ResolvedCe llProperti es" /> CR LF   2066            < xsl:with-p aram name= "ParamProp erties" se lect="$Var ResolvedCe llProperti es" /> CR LF
2029            < xsl:with-p aram name= "ParamFrom AbsoluteUR I" select= "$ParamSpl it/@path"  /> CR LF   2067            < xsl:with-p aram name= "ParamFrom AbsoluteUR I" select= "$ParamSpl it/@path"  /> CR LF
2030            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF   2068            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF
2031           </ xsl:call-t emplate> CR LF   2069           </ xsl:call-t emplate> CR LF
2032          </x sl:variabl e> CR LF   2070          </x sl:variabl e> CR LF
2033          <xs l:variable  name="Var TableCellC SSProperti es" select ="msxsl:no de-set($Va rTableCell CSSPropert iesAsXML)/ wwproject: Property"  /> CR LF   2071          <xs l:variable  name="Var TableCellC SSProperti es" select ="msxsl:no de-set($Va rTableCell CSSPropert iesAsXML)/ wwproject: Property"  /> CR LF
2034   CR LF   2072   CR LF
2035          <!- - Inline C SS propert ies --> CR LF   2073          <!- - Inline C SS propert ies --> CR LF
2036          <!- -                         --> CR LF   2074          <!- -                         --> CR LF
2037          <xs l:variable  name="Var InlineCSSP roperties" > CR LF   2075          <xs l:variable  name="Var InlineCSSP roperties" > CR LF
2038           <x sl:call-te mplate nam e="CSS-Inl inePropert ies"> CR LF   2076           <x sl:call-te mplate nam e="CSS-Inl inePropert ies"> CR LF
2039            < xsl:with-p aram name= "ParamProp erties" se lect="$Var TableCellC SSProperti es" /> CR LF   2077            < xsl:with-p aram name= "ParamProp erties" se lect="$Var TableCellC SSProperti es" /> CR LF
2040           </ xsl:call-t emplate> CR LF   2078           </ xsl:call-t emplate> CR LF
2041          </x sl:variabl e> CR LF   2079          </x sl:variabl e> CR LF
2042   CR LF   2080   CR LF
2043          <!- - Calculat e row span  --> CR LF   2081          <!- - Calculat e row span  --> CR LF
2044          <!- -                      --> CR LF   2082          <!- -                      --> CR LF
2045          <xs l:variable  name="Var RowSpan"> CR LF   2083          <xs l:variable  name="Var RowSpan"> CR LF
2046           <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   2084           <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
2047           <x sl:choose> CR LF   2085           <x sl:choose> CR LF
2048            < xsl:when t est="strin g-length($ VarRowSpan Hint) &gt;  0"> CR LF   2086            < xsl:when t est="strin g-length($ VarRowSpan Hint) &gt;  0"> CR LF
2049              <xsl:value -of select ="$VarRowS panHint" / > CR LF   2087              <xsl:value -of select ="$VarRowS panHint" / > CR LF
2050            < /xsl:when> CR LF   2088            < /xsl:when> CR LF
2051            < xsl:otherw ise> CR LF   2089            < xsl:otherw ise> CR LF
2052              <xsl:value -of select ="'0'" /> CR LF   2090              <xsl:value -of select ="'0'" /> CR LF
2053            < /xsl:other wise> CR LF   2091            < /xsl:other wise> CR LF
2054           </ xsl:choose > CR LF   2092           </ xsl:choose > CR LF
2055          </x sl:variabl e> CR LF   2093          </x sl:variabl e> CR LF
2056   CR LF   2094   CR LF
2057          <!- - Calculat e column s pan --> CR LF   2095          <!- - Calculat e column s pan --> CR LF
2058          <!- -                         --> CR LF   2096          <!- -                         --> CR LF
2059          <xs l:variable  name="Var ColumnSpan "> CR LF   2097          <xs l:variable  name="Var ColumnSpan "> CR LF
2060           <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   2098           <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
2061           <x sl:choose> CR LF   2099           <x sl:choose> CR LF
2062            < xsl:when t est="strin g-length($ VarColumnS panHint) & gt; 0"> CR LF   2100            < xsl:when t est="strin g-length($ VarColumnS panHint) & gt; 0"> CR LF
2063              <xsl:value -of select ="$VarColu mnSpanHint " /> CR LF   2101              <xsl:value -of select ="$VarColu mnSpanHint " /> CR LF
2064            < /xsl:when> CR LF   2102            < /xsl:when> CR LF
2065            < xsl:otherw ise> CR LF   2103            < xsl:otherw ise> CR LF
2066              <xsl:value -of select ="'0'" /> CR LF   2104              <xsl:value -of select ="'0'" /> CR LF
2067            < /xsl:other wise> CR LF   2105            < /xsl:other wise> CR LF
2068           </ xsl:choose > CR LF   2106           </ xsl:choose > CR LF
2069          </x sl:variabl e> CR LF   2107          </x sl:variabl e> CR LF
2070   CR LF   2108   CR LF
2071          <!- - Emit cel l --> CR LF   2109          <!- - Emit cel l --> CR LF
2072          <!- -            --> CR LF   2110          <!- -            --> CR LF
2073          <ht ml:td> CR LF   2111          <ht ml:td> CR LF
2074           <! -- Style a ttribute - -> CR LF   2112           <! -- Style a ttribute - -> CR LF
2075           <! --                  - -> CR LF   2113           <! --                  - -> CR LF
2076           <x sl:if test ="string-l ength($Var InlineCSSP roperties)  &gt; 0"> CR LF   2114           <x sl:if test ="string-l ength($Var InlineCSSP roperties)  &gt; 0"> CR LF
2077            < xsl:attrib ute name=" style"> CR LF   2115            < xsl:attrib ute name=" style"> CR LF
2078              <xsl:value -of select ="$VarInli neCSSPrope rties" /> CR LF   2116              <xsl:value -of select ="$VarInli neCSSPrope rties" /> CR LF
2079            < /xsl:attri bute> CR LF   2117            < /xsl:attri bute> CR LF
2080           </ xsl:if> CR LF   2118           </ xsl:if> CR LF
2081   CR LF   2119   CR LF
2082           <! -- Row spa n attribut e --> CR LF   2120           <! -- Row spa n attribut e --> CR LF
2083           <! --                      --> CR LF   2121           <! --                      --> CR LF
2084           <x sl:if test ="number($ VarRowSpan ) &gt; 0"> CR LF   2122           <x sl:if test ="number($ VarRowSpan ) &gt; 0"> CR LF
2085            < xsl:attrib ute name=" rowspan"> CR LF   2123            < xsl:attrib ute name=" rowspan"> CR LF
2086              <xsl:value -of select ="$VarRowS pan" /> CR LF   2124              <xsl:value -of select ="$VarRowS pan" /> CR LF
2087            < /xsl:attri bute> CR LF   2125            < /xsl:attri bute> CR LF
2088           </ xsl:if> CR LF   2126           </ xsl:if> CR LF
2089   CR LF   2127   CR LF
2090           <! -- Column  span attri bute --> CR LF   2128           <! -- Column  span attri bute --> CR LF
2091           <! --                         --> CR LF   2129           <! --                         --> CR LF
2092           <x sl:if test ="number($ VarColumnS pan) &gt;  0"> CR LF   2130           <x sl:if test ="number($ VarColumnS pan) &gt;  0"> CR LF
2093            < xsl:attrib ute name=" colspan"> CR LF   2131            < xsl:attrib ute name=" colspan"> CR LF
2094              <xsl:value -of select ="$VarColu mnSpan" /> CR LF   2132              <xsl:value -of select ="$VarColu mnSpan" /> CR LF
2095            < /xsl:attri bute> CR LF   2133            < /xsl:attri bute> CR LF
2096           </ xsl:if> CR LF   2134           </ xsl:if> CR LF
2097   CR LF   2135   CR LF
2098           <! -- Recurse  --> CR LF   2136           <! -- Recurse  --> CR LF
2099           <! --          --> CR LF   2137           <! --          --> CR LF
2100           <x sl:apply-t emplates s elect="./* " mode="ww mode:conte nt"> CR LF   2138           <x sl:apply-t emplates s elect="./* " mode="ww mode:conte nt"> CR LF
2101            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF   2139            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF
2102            < xsl:with-p aram name= "ParamCarg o" select= "$VarCargo " /> CR LF   2140            < xsl:with-p aram name= "ParamCarg o" select= "$VarCargo " /> CR LF
2103            < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" /> CR LF   2141            < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" /> CR LF
2104            < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" /> CR LF   2142            < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" /> CR LF
2105            < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" /> CR LF   2143            < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" /> CR LF
2106           </ xsl:apply- templates> CR LF   2144           </ xsl:apply- templates> CR LF
2107          </h tml:td> CR LF   2145          </h tml:td> CR LF
2108         </xs l:for-each > CR LF   2146         </xs l:for-each > CR LF
2109   CR LF   2147   CR LF
2110        </htm l:tr> CR LF   2148        </htm l:tr> CR LF
2111       </xsl: for-each> CR LF   2149       </xsl: for-each> CR LF
2112      </xsl:f or-each> CR LF   2150      </xsl:f or-each> CR LF
2113   CR LF   2151   CR LF
2114     </html:t able> CR LF   2152     </html:t able> CR LF
2115   CR LF   2153   CR LF
2116     <!-- Tab le Footnot es --> CR LF   2154     <!-- Tab le Footnot es --> CR LF
2117     <!--                   --> CR LF   2155     <!--                   --> CR LF
2118     <xsl:cal l-template  name="Con tent-Notes "> CR LF   2156     <xsl:cal l-template  name="Con tent-Notes "> CR LF
2119      <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" /> CR LF   2157      <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" /> CR LF
2120      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   2158      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
2121      <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" /> CR LF   2159      <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" /> CR LF
2122      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   2160      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
2123      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> CR LF   2161      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> CR LF
2124      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   2162      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
2125     </xsl:ca ll-templat e> CR LF   2163     </xsl:ca ll-templat e> CR LF
2126    </xsl:tem plate> CR LF   2164    </xsl:tem plate> CR LF
2127   CR LF   2165   CR LF
2128   CR LF   2166   CR LF
2129    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:co ntent"> CR LF   2167    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:co ntent"> CR LF
2130     <xsl:par am name="P aramSplits " /> CR LF   2168     <xsl:par am name="P aramSplits " /> CR LF
2131     <xsl:par am name="P aramCargo"  /> CR LF   2169     <xsl:par am name="P aramCargo"  /> CR LF
2132     <xsl:par am name="P aramLinks"  /> CR LF   2170     <xsl:par am name="P aramLinks"  /> CR LF
2133     <xsl:par am name="P aramTOCDat a" /> CR LF   2171     <xsl:par am name="P aramTOCDat a" /> CR LF
2134     <xsl:par am name="P aramSplit"  /> CR LF   2172     <xsl:par am name="P aramSplit"  /> CR LF
2135   CR LF   2173   CR LF
2136     <!-- Abo rted? --> CR LF   2174     <!-- Abo rted? --> CR LF
2137     <!--           --> CR LF   2175     <!--           --> CR LF
2138     <xsl:if  test="not( wwprogress :Abort())" > CR LF   2176     <xsl:if  test="not( wwprogress :Abort())" > CR LF
2139      <xsl:ca ll-templat e name="Fr ame"> CR LF   2177      <xsl:ca ll-templat e name="Fr ame"> CR LF
2140       <xsl:w ith-param  name="Para mFrame" se lect="." / > CR LF   2178       <xsl:w ith-param  name="Para mFrame" se lect="." / > CR LF
2141       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   2179       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
2142       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   2180       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
2143       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   2181       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
2144       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   2182       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
2145      </xsl:c all-templa te> CR LF   2183      </xsl:c all-templa te> CR LF
2146     </xsl:if > CR LF   2184     </xsl:if > CR LF
2147    </xsl:tem plate> CR LF   2185    </xsl:tem plate> CR LF
2148   CR LF   2186   CR LF
2149   CR LF   2187   CR LF
2150    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:te xtrun"> CR LF   2188    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:te xtrun"> CR LF
2151     <xsl:par am name="P aramSplits " /> CR LF   2189     <xsl:par am name="P aramSplits " /> CR LF
2152     <xsl:par am name="P aramCargo"  /> CR LF   2190     <xsl:par am name="P aramCargo"  /> CR LF
2153     <xsl:par am name="P aramLinks"  /> CR LF   2191     <xsl:par am name="P aramLinks"  /> CR LF
2154     <xsl:par am name="P aramSplit"  /> CR LF   2192     <xsl:par am name="P aramSplit"  /> CR LF
2155   CR LF   2193   CR LF
2156     <xsl:cal l-template  name="Fra me"> CR LF   2194     <xsl:cal l-template  name="Fra me"> CR LF
2157      <xsl:wi th-param n ame="Param Frame" sel ect="." /> CR LF   2195      <xsl:wi th-param n ame="Param Frame" sel ect="." /> CR LF
2158      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   2196      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
2159      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF   2197      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF
2160      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   2198      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
2161      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   2199      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
2162     </xsl:ca ll-templat e> CR LF   2200     </xsl:ca ll-templat e> CR LF
2163    </xsl:tem plate> CR LF   2201    </xsl:tem plate> CR LF
2164   CR LF   2202   CR LF
2165   CR LF   2203   CR LF
2166    <xsl:temp late name= "Frame"> CR LF   2204    <xsl:temp late name= "Frame"> CR LF
2167     <xsl:par am name="P aramFrame"  /> CR LF   2205     <xsl:par am name="P aramFrame"  /> CR LF
2168     <xsl:par am name="P aramSplits " /> CR LF   2206     <xsl:par am name="P aramSplits " /> CR LF
2169     <xsl:par am name="P aramCargo"  /> CR LF   2207     <xsl:par am name="P aramCargo"  /> CR LF
2170     <xsl:par am name="P aramLinks"  /> CR LF   2208     <xsl:par am name="P aramLinks"  /> CR LF
2171     <xsl:par am name="P aramSplit"  /> CR LF   2209     <xsl:par am name="P aramSplit"  /> CR LF
2172   CR LF   2210   CR LF
2173     <!-- Get  splits fr ame --> CR LF   2211     <!-- Get  splits fr ame --> CR LF
2174     <!--                    --> CR LF   2212     <!--                    --> CR LF
2175     <xsl:for -each sele ct="$Param Splits[1]" > CR LF   2213     <xsl:for -each sele ct="$Param Splits[1]" > CR LF
2176      <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   2214      <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
2177   CR LF   2215   CR LF
2178      <!-- Fr ame known?  --> CR LF   2216      <!-- Fr ame known?  --> CR LF
2179      <!--                --> CR LF   2217      <!--                --> CR LF
2180      <xsl:if  test="cou nt($VarSpl itsFrame)  = 1"> CR LF   2218      <xsl:if  test="cou nt($VarSpl itsFrame)  = 1"> CR LF
2181       <!-- T humbnail?  --> CR LF    
2182       <!--              --> CR LF    
2183       <xsl:f or-each se lect="$Glo balFiles[1 ]"> CR LF    
2184        <xsl: variable n ame="VarSp litsThumbn ail" selec t="$VarSpl itsFrame/w wsplits:Th umbnail" / > CR LF    
2185        <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    
2186   CR LF    
2187        <!--  Emit image  --> CR LF   2219       <!-- E mit image  --> CR LF
2188        <!--              --> CR LF   2220       <!--              --> CR LF
2189        <xsl: choose> CR LF    
2190         <!--  Thumbnail  --> CR LF    
2191         <!--             --> CR LF    
2192         <xsl :when test ="$VarThum bnailDefin ed"> CR LF    
2193          <!- - Emit mar kup --> CR LF    
2194          <!- -              --> CR LF    
2195          <xs l:call-tem plate name ="Frame-Ma rkup"> CR LF    
2196           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF    
2197           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF    
2198           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF    
2199           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF    
2200           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF    
2201           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> CR LF    
2202           <x sl:with-pa ram name=" ParamThumb nail" sele ct="true() " /> CR LF    
2203          </x sl:call-te mplate> CR LF    
2204         </xs l:when> CR LF    
2205   CR LF    
2206         <!--  Fullsize  --> CR LF    
2207         <!--            --> CR LF    
2208         <xsl :otherwise > CR LF    
2209          <!- - Note num bering --> CR LF   2221       <!-- N ote number ing --> CR LF
2210          <!- -                 --> CR LF   2222       <!--                  --> CR LF
2211          <xs l:variable  name="Var Notes" sel ect="$Para mFrame//ww doc:Note"  /> CR LF   2223       <xsl:v ariable na me="VarNot es" select ="$ParamFr ame//wwdoc :Note" /> CR LF
2212          <xs l:variable  name="Var NoteNumber ingAsXML"> CR LF   2224       <xsl:v ariable na me="VarNot eNumbering AsXML"> CR LF
2213           <x sl:call-te mplate nam e="Notes-N umber"> CR LF   2225        <xsl: call-templ ate name=" Notes-Numb er"> CR LF
2214            < xsl:with-p aram name= "ParamNote s" select= "$VarNotes " /> CR LF   2226         <xsl :with-para m name="Pa ramNotes"  select="$V arNotes" / > CR LF
2215           </ xsl:call-t emplate> CR LF   2227        </xsl :call-temp late> CR LF
2216          </x sl:variabl e> CR LF   2228       </xsl: variable> CR LF
2217          <xs l:variable  name="Var NoteNumber ing" selec t="msxsl:n ode-set($V arNoteNumb eringAsXML )" /> CR LF   2229       <xsl:v ariable na me="VarNot eNumbering " select=" msxsl:node -set($VarN oteNumberi ngAsXML)"  /> CR LF
2218   CR LF   2230   CR LF
2219          <!- - Frame ca rgo --> CR LF   2231       <!-- F rame cargo  --> CR LF
2220          <!- -              --> CR LF   2232       <!--               --> CR LF
2221          <xs l:variable  name="Var Cargo" sel ect="$Para mCargo/*[l ocal-name( ) != 'Note Numbering' ]/.. | $Va rNoteNumbe ring" /> CR LF   2233       <xsl:v ariable na me="VarCar go" select ="$ParamCa rgo/*[loca l-name() ! = 'NoteNum bering']/. . | $VarNo teNumberin g" /> CR LF
2222   CR LF   2234   CR LF
2223          <!- - Emit mar kup --> CR LF   2235       <!-- E mit markup  --> CR LF
2224          <!- -              --> CR LF   2236       <!--               --> CR LF
2225          <xs l:call-tem plate name ="Frame-Ma rkup"> CR LF   2237       <xsl:c all-templa te name="F rame-Marku p"> CR LF
2226           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF   2238        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF
2227           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   2239        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
2228           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  /> CR LF   2240        <xsl: with-param  name="Par amCargo" s elect="$Va rCargo" /> CR LF
2229           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   2241        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
2230           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   2242        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
2231           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> CR LF   2243        <xsl: with-param  name="Par amSplitsFr ame" selec t="$VarSpl itsFrame"  /> CR LF
2232           <x sl:with-pa ram name=" ParamThumb nail" sele ct="false( )" /> CR LF    
2233          </x sl:call-te mplate> CR LF   2244       </xsl: call-templ ate> CR LF
2234         </xs l:otherwis e> CR LF    
2235        </xsl :choose> CR LF    
2236       </xsl: for-each> CR LF    
2237      </xsl:i f> CR LF   2245      </xsl:i f> CR LF
2238     </xsl:fo r-each> CR LF   2246     </xsl:fo r-each> CR LF
2239    </xsl:tem plate> CR LF   2247    </xsl:tem plate> CR LF
2240   CR LF   2248   CR LF
2241   CR LF   2249   CR LF
2242    <xsl:temp late name= "Frame-Mar kup"> CR LF   2250    <xsl:temp late name= "Frame-Mar kup"> CR LF
2243     <xsl:par am name="P aramFrame"  /> CR LF   2251     <xsl:par am name="P aramFrame"  /> CR LF
2244     <xsl:par am name="P aramSplits " /> CR LF   2252     <xsl:par am name="P aramSplits " /> CR LF
2245     <xsl:par am name="P aramCargo"  /> CR LF   2253     <xsl:par am name="P aramCargo"  /> CR LF
2246     <xsl:par am name="P aramLinks"  /> CR LF   2254     <xsl:par am name="P aramLinks"  /> CR LF
2247     <xsl:par am name="P aramSplit"  /> CR LF   2255     <xsl:par am name="P aramSplit"  /> CR LF
2248     <xsl:par am name="P aramSplits Frame" /> CR LF   2256     <xsl:par am name="P aramSplits Frame" /> CR LF
2249     <xsl:par am name="P aramThumbn ail" /> CR LF    
2250   CR LF   2257   CR LF
2251     <!-- Con text Rule  --> CR LF   2258     <!-- Con text Rule  --> CR LF
2252     <!--                --> CR LF   2259     <!--                --> CR LF
2253     <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   2260     <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
2254   CR LF   2261   CR LF
2255     <!-- Gen erate? --> CR LF   2262     <!-- Gen erate? --> CR LF
2256     <!--            --> CR LF   2263     <!--            --> CR LF
2257     <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   2264     <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
2258     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF   2265     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF
2259     <xsl:if  test="$Var GenerateOu tput"> CR LF   2266     <xsl:if  test="$Var GenerateOu tput"> CR LF
2260       <!--  Determin e
 image  path  --> CR LF
  2267        <!--  Acc e ss  image  info  --> CR LF
2261       <!--                          --> CR LF   2268        <!--                     
--> CR LF
2262       <xsl:varia ble name=" VarImage
Pa
th
"
> CR LF
  2269        <xsl:varia ble name=" VarImage Info" sele ct="wwimag ing:GetInf o($ Pa ramSplitsF rame/@pa th ) "  / > CR LF
    2270   CR LF
    2271      <!-- De termine th umbnail -- > CR LF
    2272      <!--                       -- > CR LF
    2273      <!-- De termine th umbnail wi dth/height  limits -- > CR LF
    2274      <!--                                             -- > CR LF
    2275      <xsl:va riable nam e="VarThum bnailWidth Option"> CR LF
    2276       <xsl:c all-templa te name="I mages-MaxS izeOption" > CR LF
    2277        <xsl: with-param  name="Par amMaxSizeO ptionValue " select=" $VarContex tRule/wwpr oject:Opti ons/wwproj ect:Option [@Name = ' thumbnail- width']/@V alue" /> CR LF
    2278       </xsl: call-templ ate> CR LF
    2279      </xsl:v ariable> CR LF
    2280   CR LF
    2281      <xsl:va riable nam e="VarThum bnailHeigh tOption"> CR LF
    2282       <xsl:c all-templa te name="I mages-MaxS izeOption" > CR LF
    2283        <xsl: with-param  name="Par amMaxSizeO ptionValue " select=" $VarContex tRule/wwpr oject:Opti ons/wwproj ect:Option [@Name = ' thumbnail- height']/@ Value" /> CR LF
    2284       </xsl: call-templ ate> CR LF
    2285      </xsl:v ariable> CR LF
    2286   CR LF
    2287      <!-- De termine sc aling rati o --> CR LF
    2288      <!--                            --> CR LF
    2289      <xsl:va riable nam e="VarScal ingRatio"> CR LF
    2290       <xsl:v ariable na me="VarWid thRatio" s elect="$Va rThumbnail WidthOptio n div $Var ImageInfo/ @width" /> CR LF
    2291       <xsl:v ariable na me="VarHei ghtRatio"  select="$V arThumbnai lHeightOpt ion div $V arImageInf o/@height"  /> CR LF
    2292   CR LF
2263       <xsl:c hoose> CR LF   2293       <xsl:c hoose> CR LF
2264         <xsl:when  test="$ P ar amT h umbn a
i l "> CR LF
  2294        <xsl: when test= "($VarWidt hRatio &gt ; 0) and ( $VarHeight Ratio &gt;  0)"> CR LF
2265          <xsl:value -of select ="$ P ar amSplitsFr am e /wwspl i ts:T h umbnail/@p at h " /> CR LF   2295         <xsl :choose> CR LF
    2296          <xs l:when tes t="$VarWid thRatio &l t; $VarHei ghtRatio"> CR LF
    2297           <x sl:value-o f select=" $VarWidthR atio" /> CR LF
    2298          </x sl:when> CR LF
    2299   CR LF
    2300          <xs l:otherwis e> CR LF
    2301           <x sl:value-o f select=" $VarHeight Ratio" /> CR LF
    2302          </x sl:otherwi se> CR LF
    2303         </xs l:choose> CR LF
    2304        </xsl :when> CR LF
    2305   CR LF
    2306        <xsl: when test= "$VarWidth Ratio &gt;  0"> CR LF
    2307         <xsl :value-of  select="$V arWidthRat io" /> CR LF
    2308        </xsl :when> CR LF
    2309         CR LF
    2310         <xsl:when  test="$ V ar Heig h tR a t i o &gt; 0 "> CR LF
    2311          <xsl:value -of select ="$ V ar H e
i g h tR at io " /> CR LF
2266        </xsl :when> CR LF   2312        </xsl :when> CR LF
2267   CR LF   2313   CR LF
2268        <xsl: otherwise> CR LF   2314        <xsl: otherwise> CR LF
2269          <xsl:value -of select =" $ParamSpli tsFrame/@p ath " /> CR LF   2315          <xsl:value -of select =" 1.0 " /> CR LF
2270        </xsl :otherwise > CR LF   2316        </xsl :otherwise > CR LF
2271       </xsl: choose> CR LF   2317       </xsl: choose> CR LF
2272      </xsl:v ariable> CR LF   2318      </xsl:v ariable> CR LF
2273   CR LF   2319   CR LF
2274       <!--  Acce s
i m
a ge  i nfo  --> CR LF
  2320       <!--  I s  a thu m bn a
i l?  --> CR LF
2275       <!--                       --> CR LF   2321       <!--                    
--> CR LF
2276       <xsl:varia ble name=" Var I m ageI n fo " select=" wwim a g ing :Ge t Inf o
($Var Im a
g eP at h )" /> CR LF
  2322       <xsl:varia ble name=" Var Thu m b n ail " select=" ($V a rScal ing Ra t i o  &gt; 0.0)  and  ($Var Sc a lin g R at io &lt; 1. 0 )" /> CR LF
2277   CR LF   2323   CR LF
2278      <!-- Em it image - -> CR LF   2324      <!-- Em it image - -> CR LF
2279      <!--             - -> CR LF   2325      <!--             - -> CR LF
2280      <xsl:ca ll-templat e name="Fr ame-Markup -All"> CR LF   2326      <xsl:ca ll-templat e name="Fr ame-Markup -All"> CR LF
2281       <xsl:w ith-param  name="Para mFrame" se lect="$Par amFrame" / > CR LF   2327       <xsl:w ith-param  name="Para mFrame" se lect="$Par amFrame" / > CR LF
2282       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   2328       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
2283       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   2329       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
2284       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   2330       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
2285       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   2331       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
2286       <xsl:w ith-param  name="Para mSplitsFra me" select ="$ParamSp litsFrame"  /> CR LF   2332       <xsl:w ith-param  name="Para mSplitsFra me" select ="$ParamSp litsFrame"  /> CR LF
2287       <xsl:w ith-param  name="Para mContextRu le" select ="$VarCont extRule" / > CR LF   2333       <xsl:w ith-param  name="Para mContextRu le" select ="$VarCont extRule" / > CR LF
2288       <xsl:w ith-param  name="Para mImageInfo " select=" $VarImageI nfo" /> CR LF   2334       <xsl:w ith-param  name="Para mImageInfo " select=" $VarImageI nfo" /> CR LF
2289        <xsl:with- param name ="ParamThu mbnail" se lect="$ P ar am Thumbnail"  /> CR LF   2335        <xsl:with- param name ="ParamThu mbnail" se lect="$ V ar
Thumbnail"  /> CR LF
    2336       <xsl:w ith-param  name="Para mScalingRa tio" selec t="$VarSca lingRatio"  /> CR LF
2290      </xsl:c all-templa te> CR LF   2337      </xsl:c all-templa te> CR LF
2291     </xsl:if > CR LF   2338     </xsl:if > CR LF
2292    </xsl:tem plate> CR LF   2339    </xsl:tem plate> CR LF
2293   CR LF   2340   CR LF
2294   CR LF   2341   CR LF
2295    <xsl:temp late name= "Frame-Mar kup-All"> CR LF   2342    <xsl:temp late name= "Frame-Mar kup-All"> CR LF
2296     <xsl:par am name="P aramFrame"  /> CR LF   2343     <xsl:par am name="P aramFrame"  /> CR LF
2297     <xsl:par am name="P aramSplits " /> CR LF   2344     <xsl:par am name="P aramSplits " /> CR LF
2298     <xsl:par am name="P aramCargo"  /> CR LF   2345     <xsl:par am name="P aramCargo"  /> CR LF
2299     <xsl:par am name="P aramLinks"  /> CR LF   2346     <xsl:par am name="P aramLinks"  /> CR LF
2300     <xsl:par am name="P aramSplit"  /> CR LF   2347     <xsl:par am name="P aramSplit"  /> CR LF
2301     <xsl:par am name="P aramSplits Frame" /> CR LF   2348     <xsl:par am name="P aramSplits Frame" /> CR LF
2302     <xsl:par am name="P aramContex tRule" /> CR LF   2349     <xsl:par am name="P aramContex tRule" /> CR LF
2303     <xsl:par am name="P aramImageI nfo" /> CR LF   2350     <xsl:par am name="P aramImageI nfo" /> CR LF
2304     <xsl:par am name="P aramThumbn ail" /> CR LF   2351     <xsl:par am name="P aramThumbn ail" /> CR LF
    2352     <xsl:par am name="P aramScalin gRatio" /> CR LF
2305   CR LF   2353   CR LF
2306     <!-- Acc ess frame  behavior - -> CR LF   2354     <!-- Acc ess frame  behavior - -> CR LF
2307     <!--                         - -> CR LF   2355     <!--                         - -> CR LF
2308     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF   2356     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF
2309      <xsl:va riable nam e="VarBeha viorFrame"  select="k ey('wwbeha viors-fram es-by-id',  $ParamFra me/@id)[1] " /> CR LF   2357      <xsl:va riable nam e="VarBeha viorFrame"  select="k ey('wwbeha viors-fram es-by-id',  $ParamFra me/@id)[1] " /> CR LF
2310   CR LF   2358   CR LF
2311      <!-- Wi dth/Height  --> CR LF   2359      <!-- Wi dth/Height  --> CR LF
2312      <!--                --> CR LF   2360      <!--                --> CR LF
2313      <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   2361      <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
2314      <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   2362      <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
2315   CR LF   2363   CR LF
2316      <xsl:va riable nam e="VarWidt h"> CR LF   2364      <xsl:va riable nam e="VarWidt h"> CR LF
2317       <xsl:v ariable na me="VarEmi tWidth"> CR LF   2365       <xsl:v ariable na me="VarEmi tWidth"> CR LF
2318        <xsl: variable n ame="VarWi dthPropert yHint" sel ect="$Para mContextRu le/wwproje ct:Propert ies/wwproj ect:Proper ty[@Name =  'width'][ 1]" /> CR LF   2366        <xsl: variable n ame="VarWi dthPropert yHint" sel ect="$Para mContextRu le/wwproje ct:Propert ies/wwproj ect:Proper ty[@Name =  'width'][ 1]" /> CR LF
2319         CR LF   2367         CR LF
2320        <xsl: choose> CR LF   2368        <xsl: choose> CR LF
2321         <xsl :when test ="count($V arWidthPro pertyHint)  = 1 and ( $VarWidthP ropertyHin t/@Source  = 'DoNotEm it')"> CR LF   2369         <xsl :when test ="count($V arWidthPro pertyHint)  = 1 and ( $VarWidthP ropertyHin t/@Source  = 'DoNotEm it')"> CR LF
2322          <xs l:value-of  select="f alse()" /> CR LF   2370          <xs l:value-of  select="f alse()" /> CR LF
2323         </xs l:when> CR LF   2371         </xs l:when> CR LF
2324         <xsl :otherwise > CR LF   2372         <xsl :otherwise > CR LF
2325          <xs l:value-of  select="t rue()" /> CR LF   2373          <xs l:value-of  select="t rue()" /> CR LF
2326         </xs l:otherwis e> CR LF   2374         </xs l:otherwis e> CR LF
2327        </xsl :choose> CR LF   2375        </xsl :choose> CR LF
2328       </xsl: variable> CR LF   2376       </xsl: variable> CR LF
2329        CR LF   2377        CR LF
2330       <xsl:i f test="$V arEmitWidt h = 'true' "> CR LF   2378       <xsl:i f test="$V arEmitWidt h = 'true' "> CR LF
2331        <xsl: choose> CR LF   2379        <xsl: choose> CR LF
2332         <xsl :when test ="$ParamTh umbnail"> CR LF   2380         <xsl :when test ="$ParamTh umbnail"> CR LF
2333           <xsl:value -of select =" numb e r ($ParamIma geInfo/@wi dth
)" /> CR LF
  2381           <xsl:value -of select =" c e iling ($ParamIma geInfo/@wi dth  * $ParamS calingRati o )" /> CR LF
2334         </xs l:when> CR LF   2382         </xs l:when> CR LF
2335   CR LF   2383   CR LF
2336         <xsl :when test ="$ParamSp litsFrame/ @byref = ' true'"> CR LF   2384         <xsl :when test ="$ParamSp litsFrame/ @byref = ' true'"> CR LF
2337          <xs l:choose> CR LF   2385          <xs l:choose> CR LF
2338           <x sl:when te st="($VarB yReference GraphicsUs eDocumentD imensions)  or (numbe r($ParamIm ageInfo/@w idth) = 0) "> CR LF   2386           <x sl:when te st="($VarB yReference GraphicsUs eDocumentD imensions)  or (numbe r($ParamIm ageInfo/@w idth) = 0) "> CR LF
2339            < xsl:variab le name="V arByRefere nceFrame"  select="$P aramFrame/ /wwdoc:Fac et[@type =  'by-refer ence'][1]/ ../.." /> CR LF   2387            < xsl:variab le name="V arByRefere nceFrame"  select="$P aramFrame/ /wwdoc:Fac et[@type =  'by-refer ence'][1]/ ../.." /> CR LF
2340   CR LF   2388   CR LF
2341            < xsl:value- of select= "floor(wwu nits:Conve rt(wwunits :NumericPr efix($VarB yReference Frame/wwdo c:Attribut e[@name =  'width']/@ value), 'p t', 'px')) " /> CR LF   2389            < xsl:value- of select= "floor(wwu nits:Conve rt(wwunits :NumericPr efix($VarB yReference Frame/wwdo c:Attribut e[@name =  'width']/@ value), 'p t', 'px')) " /> CR LF
2342           </ xsl:when> CR LF   2390           </ xsl:when> CR LF
2343   CR LF   2391   CR LF
2344           <x sl:otherwi se> CR LF   2392           <x sl:otherwi se> CR LF
2345            < xsl:value- of select= "number($P aramImageI nfo/@width )" /> CR LF   2393            < xsl:value- of select= "number($P aramImageI nfo/@width )" /> CR LF
2346           </ xsl:otherw ise> CR LF   2394           </ xsl:otherw ise> CR LF
2347          </x sl:choose> CR LF   2395          </x sl:choose> CR LF
2348         </xs l:when> CR LF   2396         </xs l:when> CR LF
2349   CR LF   2397   CR LF
2350         <xsl :otherwise > CR LF   2398         <xsl :otherwise > CR LF
2351          <xs l:value-of  select="n umber($Par amImageInf o/@width)"  /> CR LF   2399          <xs l:value-of  select="n umber($Par amImageInf o/@width)"  /> CR LF
2352         </xs l:otherwis e> CR LF   2400         </xs l:otherwis e> CR LF
2353        </xsl :choose> CR LF   2401        </xsl :choose> CR LF
2354       </xsl: if> CR LF   2402       </xsl: if> CR LF
2355      </xsl:v ariable> CR LF   2403      </xsl:v ariable> CR LF
2356   CR LF   2404   CR LF
2357      <xsl:va riable nam e="VarHeig ht"> CR LF   2405      <xsl:va riable nam e="VarHeig ht"> CR LF
2358       <xsl:v ariable na me="VarEmi tHeight"> CR LF   2406       <xsl:v ariable na me="VarEmi tHeight"> CR LF
2359        <xsl: variable n ame="VarHe ightProper tyHint" se lect="$Par amContextR ule/wwproj ect:Proper ties/wwpro ject:Prope rty[@Name  = 'height' ][1]" /> CR LF   2407        <xsl: variable n ame="VarHe ightProper tyHint" se lect="$Par amContextR ule/wwproj ect:Proper ties/wwpro ject:Prope rty[@Name  = 'height' ][1]" /> CR LF
2360         CR LF   2408         CR LF
2361        <xsl: choose> CR LF   2409        <xsl: choose> CR LF
2362         <xsl :when test ="count($V arHeightPr opertyHint ) = 1 and  ($VarHeigh tPropertyH int/@Sourc e = 'DoNot Emit')"> CR LF   2410         <xsl :when test ="count($V arHeightPr opertyHint ) = 1 and  ($VarHeigh tPropertyH int/@Sourc e = 'DoNot Emit')"> CR LF
2363          <xs l:value-of  select="f alse()" /> CR LF   2411          <xs l:value-of  select="f alse()" /> CR LF
2364         </xs l:when> CR LF   2412         </xs l:when> CR LF
2365         <xsl :otherwise > CR LF   2413         <xsl :otherwise > CR LF
2366          <xs l:value-of  select="t rue()" /> CR LF   2414          <xs l:value-of  select="t rue()" /> CR LF
2367         </xs l:otherwis e> CR LF   2415         </xs l:otherwis e> CR LF
2368        </xsl :choose> CR LF   2416        </xsl :choose> CR LF
2369       </xsl: variable> CR LF   2417       </xsl: variable> CR LF
2370        CR LF   2418        CR LF
2371       <xsl:i f test="$V arEmitHeig ht = 'true '"> CR LF   2419       <xsl:i f test="$V arEmitHeig ht = 'true '"> CR LF
2372        <xsl: choose> CR LF   2420        <xsl: choose> CR LF
2373         <xsl :when test ="$ParamTh umbnail"> CR LF   2421         <xsl :when test ="$ParamTh umbnail"> CR LF
2374           <xsl:value -of select ="number($ ParamImage Info/@heig ht
)" /> CR LF
  2422           <xsl:value -of select ="number($ ParamImage Info/@heig ht  * $ParamS calingRati o )" /> CR LF
2375         </xs l:when> CR LF   2423         </xs l:when> CR LF
2376   CR LF   2424   CR LF
2377         <xsl :when test ="$ParamSp litsFrame/ @byref = ' true'"> CR LF   2425         <xsl :when test ="$ParamSp litsFrame/ @byref = ' true'"> CR LF
2378          <xs l:choose> CR LF   2426          <xs l:choose> CR LF
2379           <x sl:when te st="($VarB yReference GraphicsUs eDocumentD imensions)  or (numbe r($ParamIm ageInfo/@h eight) = 0 )"> CR LF   2427           <x sl:when te st="($VarB yReference GraphicsUs eDocumentD imensions)  or (numbe r($ParamIm ageInfo/@h eight) = 0 )"> CR LF
2380            < xsl:variab le name="V arByRefere nceFrame"  select="$P aramFrame/ /wwdoc:Fac et[@type =  'by-refer ence'][1]/ ../.." /> CR LF   2428            < xsl:variab le name="V arByRefere nceFrame"  select="$P aramFrame/ /wwdoc:Fac et[@type =  'by-refer ence'][1]/ ../.." /> CR LF
2381   CR LF   2429   CR LF
2382            < xsl:value- of select= "floor(wwu nits:Conve rt(wwunits :NumericPr efix($VarB yReference Frame/wwdo c:Attribut e[@name =  'height']/ @value), ' pt', 'px') )" /> CR LF   2430            < xsl:value- of select= "floor(wwu nits:Conve rt(wwunits :NumericPr efix($VarB yReference Frame/wwdo c:Attribut e[@name =  'height']/ @value), ' pt', 'px') )" /> CR LF
2383           </ xsl:when> CR LF   2431           </ xsl:when> CR LF
2384   CR LF   2432   CR LF
2385           <x sl:otherwi se> CR LF   2433           <x sl:otherwi se> CR LF
2386            < xsl:value- of select= "number($P aramImageI nfo/@heigh t)" /> CR LF   2434            < xsl:value- of select= "number($P aramImageI nfo/@heigh t)" /> CR LF
2387           </ xsl:otherw ise> CR LF   2435           </ xsl:otherw ise> CR LF
2388          </x sl:choose> CR LF   2436          </x sl:choose> CR LF
2389         </xs l:when> CR LF   2437         </xs l:when> CR LF
2390   CR LF   2438   CR LF
2391         <xsl :otherwise > CR LF   2439         <xsl :otherwise > CR LF
2392          <xs l:value-of  select="n umber($Par amImageInf o/@height) " /> CR LF   2440          <xs l:value-of  select="n umber($Par amImageInf o/@height) " /> CR LF
2393         </xs l:otherwis e> CR LF   2441         </xs l:otherwis e> CR LF
2394        </xsl :choose> CR LF   2442        </xsl :choose> CR LF
2395       </xsl: if> CR LF   2443       </xsl: if> CR LF
2396      </xsl:v ariable> CR LF   2444      </xsl:v ariable> CR LF
2397   CR LF   2445   CR LF
2398      <!-- Al t Text --> CR LF   2446      <!-- Al t Text --> CR LF
2399      <!--           --> CR LF   2447      <!--           --> CR LF
2400      <xsl:va riable nam e="VarAltT ext"> CR LF   2448      <xsl:va riable nam e="VarAltT ext"> CR LF
2401       <xsl:c all-templa te name="I mages-AltT ext"> CR LF   2449       <xsl:c all-templa te name="I mages-AltT ext"> CR LF
2402        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF   2450        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF
2403        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF   2451        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF
2404       </xsl: call-templ ate> CR LF   2452       </xsl: call-templ ate> CR LF
2405      </xsl:v ariable> CR LF   2453      </xsl:v ariable> CR LF
2406       CR LF   2454       CR LF
2407      <!-- Ho rizontal a lignment - -> CR LF   2455      <!-- Ho rizontal a lignment - -> CR LF
2408      <!--                        - -> CR LF   2456      <!--                        - -> CR LF
2409      <xsl:va riable nam e="VarAlig nment"> CR LF   2457      <xsl:va riable nam e="VarAlig nment"> CR LF
2410       <xsl:v ariable na me="VarAli gnProperty " select=" $ParamCont extRule/ww project:Pr operties/w wproject:P roperty[@N ame = 'flo at'][1]" / > CR LF   2458       <xsl:v ariable na me="VarAli gnProperty " select=" $ParamCont extRule/ww project:Pr operties/w wproject:P roperty[@N ame = 'flo at'][1]" / > CR LF
2411   CR LF   2459   CR LF
2412       <xsl:i f test="co unt($VarAl ignPropert y) = 1"> CR LF   2460       <xsl:i f test="co unt($VarAl ignPropert y) = 1"> CR LF
2413        <xsl: value-of s elect="$Va rAlignProp erty/@Valu e" /> CR LF   2461        <xsl: value-of s elect="$Va rAlignProp erty/@Valu e" /> CR LF
2414       </xsl: if> CR LF   2462       </xsl: if> CR LF
2415      </xsl:v ariable> CR LF   2463      </xsl:v ariable> CR LF
2416       CR LF   2464       CR LF
2417      <!-- Ty pe of rend ering --> CR LF   2465      <!-- Ty pe of rend ering --> CR LF
2418      <!--                     --> CR LF   2466      <!--                     --> CR LF
2419      <xsl:va riable nam e="VarType "> CR LF   2467      <xsl:va riable nam e="VarType "> CR LF
2420       <xsl:v ariable na me="VarTyp eProperty"  select="$ ParamConte xtRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'disp lay'][1]"  /> CR LF   2468       <xsl:i f test="$P aramThumbn ail = stri ng(true()) "> CR LF
2421   CR LF    
2422       <xsl:c hoose> CR LF    
2423        <xsl: when test= "(count($V arTypeProp erty) = 1)  and ($Var TypeProper ty/@Value  = 'block') "> CR LF    
2424         <xsl :value-of  select="'f rame'" /> CR LF    
2425        </xsl :when> CR LF    
2426        <xsl: otherwise> CR LF    
2427         <xsl :value-of  select="'t humb'" /> CR LF   2469         <xsl :value-of  select="'t humb'" /> CR LF
2428         </xsl: otherw i se > CR LF   2470        </xsl:
i f > CR LF
2429       </xsl: choose> CR LF    
2430      </xsl:v ariable> CR LF   2471      </xsl:v ariable> CR LF
2431   CR LF   2472       CR LF
2432      <!-- Gr aphic --> CR LF   2473      <!-- Me diaWiki im age link - -> CR LF
2433       <!--          
--> CR LF
  2474       <!--                          --> CR LF
2434      <xsl:te xt>[[</xsl :text> CR LF   2475      <xsl:va riable nam e="VarImag eLinkPath" > CR LF
2435      <xsl:ca ll-templat e name="Me diaWiki-Im ageRootedL ink"> CR LF   2476        <xsl: call-templ ate name=" MediaWiki- ImageRoote dLink"> CR LF
2436       <xsl:w ith-param  name="Para mLinkPath"  select="$ ParamImage Info/@path " /> CR LF   2477         <xsl :with-para m name="Pa ramLinkPat h" select= "$ParamIma geInfo/@pa th" /> CR LF
2437       <xsl:w ith-param  name="Para mTargetOut putDirecto ryPath" se lect="$Par amSplit/@t arget-outp ut-directo ry-path" / > CR LF   2478         <xsl :with-para m name="Pa ramTargetO utputDirec toryPath"  select="$P aramSplit/ @target-ou tput-direc tory-path"  /> CR LF
2438      </xsl:c all-templa te> CR LF   2479        </xsl :call-temp late> CR LF
    2480      </xsl:v ariable> CR LF
    2481   CR LF
    2482      <!-- Gr aphic --> CR LF
    2483      <!--          --> CR LF
    2484      <xsl:te xt>[[</xsl :text> CR LF
    2485      <xsl:va lue-of sel ect="$VarI mageLinkPa th" /> CR LF
2439       CR LF   2486       CR LF
2440      <!-- Ty pe --> CR LF   2487      <!-- Ty pe --> CR LF
2441      <!--       --> CR LF   2488      <!--       --> CR LF
    2489      <xsl:if  test="str ing-length ($VarType)  &gt; 0"> CR LF
2442      <xsl:te xt>|</xsl: text> CR LF   2490       <xsl:t ext>|</xsl :text> CR LF
2443      <xsl:va lue-of sel ect="$VarT ype" /> CR LF   2491       <xsl:v alue-of se lect="$Var Type" /> CR LF
    2492      </xsl:i f> CR LF
2444       CR LF   2493       CR LF
2445      <!-- Lo cation --> CR LF   2494      <!-- Lo cation --> CR LF
2446      <!--            -- > CR LF   2495      <!--            -- > CR LF
2447      <xsl:if  test="str ing-length ($VarAlign ment) &gt;  0"> CR LF   2496      <xsl:if  test="str ing-length ($VarAlign ment) &gt;  0"> CR LF
2448       <xsl:t ext>|</xsl :text> CR LF   2497       <xsl:t ext>|</xsl :text> CR LF
2449       <xsl:v alue-of se lect="$Var Alignment"  /> CR LF   2498       <xsl:v alue-of se lect="$Var Alignment"  /> CR LF
2450      </xsl:i f> CR LF   2499      </xsl:i f> CR LF
2451       CR LF   2500       CR LF
2452      <!-- Si ze --> CR LF   2501      <!-- Si ze --> CR LF
2453      <!--       --> CR LF   2502      <!--       --> CR LF
2454      <xsl:if  test="$Va rType != ' frame'"> CR LF   2503      <xsl:if  test="$Va rType != ' frame'"> CR LF
2455       <xsl:i f test="$V arWidth &g t; 0"> CR LF   2504       <xsl:i f test="$V arWidth &g t; 0"> CR LF
2456        <xsl: text>|</xs l:text> CR LF   2505        <xsl: text>|</xs l:text> CR LF
2457        <xsl: value-of s elect="$Va rWidth" /> CR LF   2506        <xsl: value-of s elect="$Va rWidth" /> CR LF
2458       </xsl: if> CR LF   2507       </xsl: if> CR LF
2459        CR LF   2508        CR LF
2460       <xsl:i f test="($ VarHeight  &gt; 0) an d ($VarWid th &gt; 0) "> CR LF   2509       <xsl:i f test="($ VarHeight  &gt; 0) an d ($VarWid th &gt; 0) "> CR LF
2461        <xsl: text>x</xs l:text> CR LF   2510        <xsl: text>x</xs l:text> CR LF
2462        <xsl: value-of s elect="$Va rHeight" / > CR LF   2511        <xsl: value-of s elect="$Va rHeight" / > CR LF
2463       </xsl: if> CR LF   2512       </xsl: if> CR LF
2464        CR LF   2513        CR LF
2465       <xsl:i f test="$V arWidth &g t; 0"> CR LF   2514       <xsl:i f test="$V arWidth &g t; 0"> CR LF
2466        <xsl: text>px</x sl:text> CR LF   2515        <xsl: text>px</x sl:text> CR LF
2467       </xsl: if> CR LF   2516       </xsl: if> CR LF
2468      </xsl:i f> CR LF   2517      </xsl:i f> CR LF
2469       CR LF   2518       CR LF
2470      <!-- Al t text --> CR LF   2519      <!-- Al t text --> CR LF
2471      <!--           --> CR LF   2520      <!--           --> CR LF
2472      <xsl:if  test="str ing-length ($VarAltTe xt) &gt; 0 "> CR LF   2521      <xsl:if  test="str ing-length ($VarAltTe xt) &gt; 0 "> CR LF
2473       <xsl:t ext>|</xsl :text> CR LF   2522       <xsl:t ext>|</xsl :text> CR LF
2474       <xsl:v alue-of se lect="$Var AltText" / > CR LF   2523       <xsl:v alue-of se lect="$Var AltText" / > CR LF
2475      </xsl:i f> CR LF   2524      </xsl:i f> CR LF
2476      <xsl:te xt>]]</xsl :text> CR LF   2525      <xsl:te xt>]]</xsl :text> CR LF
2477   CR LF   2526   CR LF
2478      <xsl:va riable nam e="VarNote s" select= "$ParamFra me//wwdoc: Note" /> CR LF   2527      <xsl:va riable nam e="VarNote s" select= "$ParamFra me//wwdoc: Note" /> CR LF
2479      <xsl:ca ll-templat e name="Co ntent-Note s"> CR LF   2528      <xsl:ca ll-templat e name="Co ntent-Note s"> CR LF
2480       <xsl:w ith-param  name="Para mNotes" se lect="$Var Notes" /> CR LF   2529       <xsl:w ith-param  name="Para mNotes" se lect="$Var Notes" /> CR LF
2481       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   2530       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
2482       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   2531       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
2483       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   2532       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
2484       <xsl:w ith-param  name="Para mTOCData"  select="'' " /> CR LF   2533       <xsl:w ith-param  name="Para mTOCData"  select="'' " /> CR LF
2485       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   2534       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
2486      </xsl:c all-templa te> CR LF   2535      </xsl:c all-templa te> CR LF
2487     </xsl:fo r-each> CR LF   2536     </xsl:fo r-each> CR LF
2488    </xsl:tem plate> CR LF   2537    </xsl:tem plate> CR LF
2489   </xsl:styl esheet> CR LF   2538   </xsl:styl esheet> CR LF