58. Araxis Merge File Comparison Report

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

58.1 Files compared

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

58.2 Comparison summary

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

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

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

58.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="urn :WebWorks- XMLXSL-Out put-Schema " CR LF   2   <xsl:style sheet vers ion="1.0"  xmlns="urn :WebWorks- XMLXSL-Out put-Schema " CR LF
3                                    xmlns:wwxm lxsl="urn: WebWorks-X MLXSL-Outp ut-Schema" CR LF   3                                    xmlns:wwxm lxsl="urn: WebWorks-X MLXSL-Outp ut-Schema" CR LF
4                                    xmlns:wp=" urn:WebWor ks-XMLXSL- Container- Schema" CR LF   4                                    xmlns:wp=" urn:WebWor ks-XMLXSL- Container- Schema" CR LF
5                                    xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform" CR LF   5                                    xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform" CR LF
6                                    xmlns:msxs l="urn:sch emas-micro soft-com:x slt" CR LF   6                                    xmlns:msxs l="urn:sch emas-micro soft-com:x slt" CR LF
7                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode" CR LF   7                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode" CR LF
8                                    xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema" CR LF   8                                    xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema" CR LF
9                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema" CR LF   9                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema" CR LF
10                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a" CR LF   10                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a" CR LF
11                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema" CR LF   11                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema" CR LF
12                                    xmlns:wwto c="urn:Web Works-Engi ne-TOC-Sch ema" CR LF   12                                    xmlns:wwto c="urn:Web Works-Engi ne-TOC-Sch ema" CR LF
13                                    xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema" CR LF   13                                    xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema" CR LF
14                                    xmlns:wwno tes="urn:W ebWorks-Fo otnote-Sch ema" CR LF   14                                    xmlns:wwno tes="urn:W ebWorks-Fo otnote-Sch ema" CR LF
15                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject" CR LF   15                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject" CR LF
16                                    xmlns:wwpa ge="urn:We bWorks-Pag e-Template -Schema" CR LF   16                                    xmlns:wwpa ge="urn:We bWorks-Pag e-Template -Schema" CR LF
17                                    xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma" CR LF   17                                    xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma" CR LF
18                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress" CR LF   18                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress" CR LF
19                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log" CR LF   19                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log" CR LF
20                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem" CR LF   20                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem" CR LF
21                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI" CR LF   21                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI" CR LF
22                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities" CR LF   22                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities" CR LF
23                                    xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units" CR LF   23                                    xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units" CR LF
24                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s" CR LF   24                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s" CR LF
25                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct" CR LF   25                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct" CR LF
26                                    xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng" CR LF   26                                    xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng" CR LF
27                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent" CR LF   27                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent" CR LF
28                                    exclude-re sult-prefi xes="xsl m sxsl wwmod e wwlinks  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                                    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
29   > CR LF   29   > CR LF
30    <xsl:key  name="wwsp lits-files -by-groupi d-type" ma tch="wwspl its:File"  use="conca t(@groupID , ':', @ty pe)" /> CR LF   30    <xsl:key  name="wwsp lits-files -by-groupi d-type" ma tch="wwspl its:File"  use="conca t(@groupID , ':', @ty pe)" /> CR LF
31    <xsl:key  name="wwsp lits-frame s-by-id" m atch="wwsp lits:Frame " use="@id " /> CR LF   31    <xsl:key  name="wwsp lits-frame s-by-id" m atch="wwsp lits:Frame " use="@id " /> CR LF
32    <xsl:key  name="wwto c-entry-by -id" match ="wwtoc:En try" use=" @id" /> CR LF   32    <xsl:key  name="wwto c-entry-by -id" match ="wwtoc:En try" use=" @id" /> CR LF
33    <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-id" matc h="wwbehav iors:Parag raph" use= "@id" /> CR LF
34    <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-pa ragraphs-b y-relatedt opic" matc h="wwbehav iors:Parag raph" use= "@relatedt opic" /> CR LF
35    <xsl:key  name="wwbe haviors-fr ames-by-id " match="w wbehaviors :Frame" us e="@id" /> CR LF   35    <xsl:key  name="wwbe haviors-fr ames-by-id " match="w wbehaviors :Frame" us e="@id" /> CR LF
36    <xsl:key  name="wwbe haviors-ta bles-by-id " match="w wbehaviors :Table" us e="@id" /> CR LF   36    <xsl:key  name="wwbe haviors-ta bles-by-id " match="w wbehaviors :Table" us e="@id" /> CR LF
    37    <xsl:key  name="wwbe haviors-ma rkers-by-i d" match=" wwbehavior s:Marker"  use="@id"  /> CR LF
37    <xsl:key  name="wwdo c-paragrap hs-by-id"  match="wwd oc:Paragra ph" use="@ id" /> CR LF   38    <xsl:key  name="wwdo c-paragrap hs-by-id"  match="wwd oc:Paragra ph" use="@ id" /> CR LF
38    <xsl:key  name="wwno tes-notes- by-id" mat ch="wwnote s:Note" us e="@id" /> CR LF   39    <xsl:key  name="wwno tes-notes- by-id" mat ch="wwnote s:Note" us e="@id" /> CR LF
39    <xsl:key  name="wwfi les-files- by-path" m atch="wwfi les:File"  use="@path " /> CR LF   40    <xsl:key  name="wwfi les-files- by-path" m atch="wwfi les:File"  use="@path " /> CR LF
40    <xsl:key  name="wwpr oject-prop erty-by-na me" match= "wwproject :Property"  use="@Nam e"/> CR LF   41    <xsl:key  name="wwpr oject-prop erty-by-na me" match= "wwproject :Property"  use="@Nam e"/> CR LF
41   CR LF   42   CR LF
42   CR LF   43   CR LF
43    <xsl:temp late name= "Breadcrum bs"> CR LF   44    <xsl:temp late name= "Breadcrum bs"> CR LF
44     <xsl:par am name="P aramPageRu le" /> CR LF   45     <xsl:par am name="P aramPageRu le" /> CR LF
45     <xsl:par am name="P aramSplit"  /> CR LF   46     <xsl:par am name="P aramSplit"  /> CR LF
46     <xsl:par am name="P aramBreadc rumbTOCEnt ry" /> CR LF   47     <xsl:par am name="P aramBreadc rumbTOCEnt ry" /> CR LF
47   CR LF   48   CR LF
48     <xsl:for -each sele ct="$Param Breadcrumb TOCEntry/. ./ancestor -or-self:: wwtoc:Entr y"> CR LF   49     <xsl:for -each sele ct="$Param Breadcrumb TOCEntry/. ./ancestor -or-self:: wwtoc:Entr y"> CR LF
49      <xsl:va riable nam e="VarTOCE ntry" sele ct="." /> CR LF   50      <xsl:va riable nam e="VarTOCE ntry" sele ct="." /> CR LF
50   CR LF   51   CR LF
51      <!-- Em it entry - -> CR LF   52      <!-- Em it entry - -> CR LF
52      <!--             - -> CR LF   53      <!--             - -> CR LF
53      <xsl:ch oose> CR LF   54      <xsl:ch oose> CR LF
54       <xsl:w hen test=" string-len gth($VarTO CEntry/@pa th) &gt; 0 "> CR LF   55       <xsl:w hen test=" string-len gth($VarTO CEntry/@pa th) &gt; 0 "> CR LF
55        <!--  Entry with  link --> CR LF   56        <!--  Entry with  link --> CR LF
56        <!--                   --> CR LF   57        <!--                   --> CR LF
57        <xsl: variable n ame="VarRe lativePath " select=" wwuri:GetR elativeTo( $VarTOCEnt ry/@path,  $ParamSpli t/@path)"  /> CR LF   58        <xsl: variable n ame="VarRe lativePath " select=" wwuri:GetR elativeTo( $VarTOCEnt ry/@path,  $ParamSpli t/@path)"  /> CR LF
58   CR LF   59   CR LF
59        <wp:G otoLink wp :class="We bWorks_Bre adcrumb_Li nk" wp:hre f="{$VarRe lativePath }#{$ParamB readcrumbT OCEntry/@l inkid}"> CR LF   60        <wp:G otoLink wp :class="We bWorks_Bre adcrumb_Li nk" wp:hre f="{$VarRe lativePath }#{$ParamB readcrumbT OCEntry/@l inkid}"> CR LF
60         <xsl :call-temp late name= "Breadcrum bEntry"> CR LF   61         <xsl :call-temp late name= "Breadcrum bEntry"> CR LF
61          <xs l:with-par am name="P aramTOCEnt ry" select ="$VarTOCE ntry" /> CR LF   62          <xs l:with-par am name="P aramTOCEnt ry" select ="$VarTOCE ntry" /> CR LF
62         </xs l:call-tem plate> CR LF   63         </xs l:call-tem plate> CR LF
63        </wp: GotoLink> CR LF   64        </wp: GotoLink> CR LF
64       </xsl: when> CR LF   65       </xsl: when> CR LF
65   CR LF   66   CR LF
66       <xsl:o therwise> CR LF   67       <xsl:o therwise> CR LF
67        <!--  Entry with out link - -> CR LF   68        <!--  Entry with out link - -> CR LF
68        <!--                      - -> CR LF   69        <!--                      - -> CR LF
69        <xsl: call-templ ate name=" Breadcrumb Entry"> CR LF   70        <xsl: call-templ ate name=" Breadcrumb Entry"> CR LF
70         <xsl :with-para m name="Pa ramTOCEntr y" select= "$VarTOCEn try" /> CR LF   71         <xsl :with-para m name="Pa ramTOCEntr y" select= "$VarTOCEn try" /> CR LF
71        </xsl :call-temp late> CR LF   72        </xsl :call-temp late> CR LF
72       </xsl: otherwise> CR LF   73       </xsl: otherwise> CR LF
73      </xsl:c hoose> CR LF   74      </xsl:c hoose> CR LF
74   CR LF   75   CR LF
75      <!-- Em it separat or --> CR LF   76      <!-- Em it separat or --> CR LF
76      <!--                  --> CR LF   77      <!--                  --> CR LF
77      <xsl:va riable nam e="VarBrea dcrumbsSep arator" se lect="$Par amPageRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' breadcrumb s-separato r']/@Value " /> CR LF   78      <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
78      <xsl:ch oose> CR LF   79      <xsl:ch oose> CR LF
79       <xsl:w hen test=" string-len gth($VarBr eadcrumbsS eparator)  &gt; 0"> CR LF   80       <xsl:w hen test=" string-len gth($VarBr eadcrumbsS eparator)  &gt; 0"> CR LF
80        <xsl: value-of s elect="$Va rBreadcrum bsSeparato r" /> CR LF   81        <xsl: value-of s elect="$Va rBreadcrum bsSeparato r" /> CR LF
81       </xsl: when> CR LF   82       </xsl: when> CR LF
82   CR LF   83   CR LF
83       <xsl:o therwise> CR LF   84       <xsl:o therwise> CR LF
84        <xsl: text> : </ xsl:text> CR LF   85        <xsl: text> : </ xsl:text> CR LF
85       </xsl: otherwise> CR LF   86       </xsl: otherwise> CR LF
86      </xsl:c hoose> CR LF   87      </xsl:c hoose> CR LF
87     </xsl:fo r-each> CR LF   88     </xsl:fo r-each> CR LF
88   CR LF   89   CR LF
89     <!-- Emi t entry -- > CR LF   90     <!-- Emi t entry -- > CR LF
90     <!--             -- > CR LF   91     <!--             -- > CR LF
91     <xsl:cal l-template  name="Bre adcrumbEnt ry"> CR LF   92     <xsl:cal l-template  name="Bre adcrumbEnt ry"> CR LF
92      <xsl:wi th-param n ame="Param TOCEntry"  select="$P aramBreadc rumbTOCEnt ry" /> CR LF   93      <xsl:wi th-param n ame="Param TOCEntry"  select="$P aramBreadc rumbTOCEnt ry" /> CR LF
93     </xsl:ca ll-templat e> CR LF   94     </xsl:ca ll-templat e> CR LF
94    </xsl:tem plate> CR LF   95    </xsl:tem plate> CR LF
95   CR LF   96   CR LF
96   CR LF   97   CR LF
97    <xsl:temp late name= "Breadcrum bEntry"> CR LF   98    <xsl:temp late name= "Breadcrum bEntry"> CR LF
98     <xsl:par am name="P aramTOCEnt ry" /> CR LF   99     <xsl:par am name="P aramTOCEnt ry" /> CR LF
99   CR LF   100   CR LF
100     <xsl:for -each sele ct="$Param TOCEntry/w wdoc:Parag raph/wwdoc :Number/ww doc:Text |  $ParamTOC Entry/wwdo c:Paragrap h/wwdoc:Te xtRun/wwdo c:Text"> CR LF   101     <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
101      <xsl:va riable nam e="VarText " select=" ." /> CR LF   102      <xsl:va riable nam e="VarText " select=" ." /> CR LF
102   CR LF   103   CR LF
103      <xsl:va lue-of sel ect="$VarT ext/@value " /> CR LF   104      <xsl:va lue-of sel ect="$VarT ext/@value " /> CR LF
104     </xsl:fo r-each> CR LF   105     </xsl:fo r-each> CR LF
105    </xsl:tem plate> CR LF   106    </xsl:tem plate> CR LF
106   CR LF   107   CR LF
107   CR LF   108   CR LF
108    <xsl:temp late name= "Content-C ontent"> CR LF   109    <xsl:temp late name= "Content-C ontent"> CR LF
109     <xsl:par am name="P aramConten t" /> CR LF   110     <xsl:par am name="P aramConten t" /> CR LF
110     <xsl:par am name="P aramSplits " /> CR LF   111     <xsl:par am name="P aramSplits " /> CR LF
111     <xsl:par am name="P aramCargo"  /> CR LF   112     <xsl:par am name="P aramCargo"  /> CR LF
112     <xsl:par am name="P aramLinks"  /> CR LF   113     <xsl:par am name="P aramLinks"  /> CR LF
113     <xsl:par am name="P aramTOCDat a" /> CR LF   114     <xsl:par am name="P aramTOCDat a" /> CR LF
114     <xsl:par am name="P aramSplit"  /> CR LF   115     <xsl:par am name="P aramSplit"  /> CR LF
115     <xsl:par am name="P aramRelati veRoot" /> CR LF   116     <xsl:par am name="P aramRelati veRoot" /> CR LF
116   CR LF   117   CR LF
117     <!-- Con tent --> CR LF   118     <!-- Con tent --> CR LF
118     <!--          --> CR LF   119     <!--          --> CR LF
119     <xsl:app ly-templat es select= "$ParamCon tent" mode ="wwmode:c ontent"> CR LF   120     <xsl:app ly-templat es select= "$ParamCon tent" mode ="wwmode:c ontent"> CR LF
120      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   121      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
121      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF   122      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF
122      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   123      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
123      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> CR LF   124      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> CR LF
124      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   125      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
125      <xsl:wi th-param n ame="Param RelativeRo ot" select ="$ParamRe lativeRoot " /> CR LF   126      <xsl:wi th-param n ame="Param RelativeRo ot" select ="$ParamRe lativeRoot " /> CR LF
126     </xsl:ap ply-templa tes> CR LF   127     </xsl:ap ply-templa tes> CR LF
127   CR LF   128   CR LF
128     <!-- Rel ated Topic s --> CR LF   129     <!-- Rel ated Topic s --> CR LF
129     <!--                  --> CR LF   130     <!--                  --> CR LF
130     <xsl:cal l-template  name="Rel atedTopics "> CR LF   131     <xsl:cal l-template  name="Rel atedTopics "> CR LF
131      <xsl:wi th-param n ame="Param Content" s elect="$Pa ramContent " /> CR LF   132      <xsl:wi th-param n ame="Param Content" s elect="$Pa ramContent " /> CR LF
132      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   133      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
133      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF   134      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF
134      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   135      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
135      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   136      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
136      <xsl:wi th-param n ame="Param RelativeRo ot" select ="$ParamRe lativeRoot " /> CR LF   137      <xsl:wi th-param n ame="Param RelativeRo ot" select ="$ParamRe lativeRoot " /> CR LF
137     </xsl:ca ll-templat e> CR LF   138     </xsl:ca ll-templat e> CR LF
138    </xsl:tem plate> CR LF   139    </xsl:tem plate> CR LF
139   CR LF   140   CR LF
140   CR LF   141   CR LF
141    <xsl:temp late name= "RelatedTo pics"> CR LF   142    <xsl:temp late name= "RelatedTo pics"> CR LF
142     <xsl:par am name="P aramConten t" /> CR LF   143     <xsl:par am name="P aramConten t" /> CR LF
143     <xsl:par am name="P aramSplits " /> CR LF   144     <xsl:par am name="P aramSplits " /> CR LF
144     <xsl:par am name="P aramCargo"  /> CR LF   145     <xsl:par am name="P aramCargo"  /> CR LF
145     <xsl:par am name="P aramLinks"  /> CR LF   146     <xsl:par am name="P aramLinks"  /> CR LF
146     <xsl:par am name="P aramSplit"  /> CR LF   147     <xsl:par am name="P aramSplit"  /> CR LF
147     <xsl:par am name="P aramRelati veRoot" /> CR LF   148     <xsl:par am name="P aramRelati veRoot" /> CR LF
148   CR LF   149   CR LF
149     <xsl:var iable name ="VarRelat edTopicPar agraphsAsX ML"> CR LF   150     <xsl:var iable name ="VarRelat edTopicPar agraphsAsX ML"> CR LF
150      <xsl:ca ll-templat e name="Re latedTopic Paragraphs "> CR LF   151      <xsl:ca ll-templat e name="Re latedTopic Paragraphs "> CR LF
151       <xsl:w ith-param  name="Para mContent"  select="$P aramConten t" /> CR LF   152       <xsl:w ith-param  name="Para mContent"  select="$P aramConten t" /> CR LF
152       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   153       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
153       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   154       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
154      </xsl:c all-templa te> CR LF   155      </xsl:c all-templa te> CR LF
155     </xsl:va riable> CR LF   156     </xsl:va riable> CR LF
156     <xsl:var iable name ="VarRelat edTopicPar agraphs" s elect="msx sl:node-se t($VarRela tedTopicPa ragraphsAs XML)/wwdoc :Paragraph " /> CR LF   157     <xsl:var iable name ="VarRelat edTopicPar agraphs" s elect="msx sl:node-se t($VarRela tedTopicPa ragraphsAs XML)/wwdoc :Paragraph " /> CR LF
157   CR LF   158   CR LF
158     <xsl:if  test="coun t($VarRela tedTopicPa ragraphs)  &gt; 0"> CR LF   159     <xsl:if  test="coun t($VarRela tedTopicPa ragraphs)  &gt; 0"> CR LF
159      <wp:hr  /> CR LF   160      <wp:hr  /> CR LF
160      <wp:dl> CR LF   161      <wp:dl> CR LF
161       <wp:dt > CR LF   162       <wp:dt > CR LF
162        <xsl: value-of s elect="$Gl obalLocale /wwlocale: Locale/wwl ocale:Stri ngs/wwloca le:String[ @name = 'R elatedTopi cs']/@valu e" /> CR LF   163        <xsl: value-of s elect="$Gl obalLocale /wwlocale: Locale/wwl ocale:Stri ngs/wwloca le:String[ @name = 'R elatedTopi cs']/@valu e" /> CR LF
163       </wp:d t> CR LF   164       </wp:d t> CR LF
164   CR LF   165   CR LF
165       <xsl:f or-each se lect="$Var RelatedTop icParagrap hs"> CR LF   166       <xsl:f or-each se lect="$Var RelatedTop icParagrap hs"> CR LF
166        <xsl: variable n ame="VarRe latedTopic Paragraph"  select=". " /> CR LF   167        <xsl: variable n ame="VarRe latedTopic Paragraph"  select=". " /> CR LF
167   CR LF   168   CR LF
168        <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   169        <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
169        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="$Para mCargo/wwb ehaviors:B ehaviors[1 ]" /> CR LF   170        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="$Para mCargo/wwb ehaviors:B ehaviors[1 ]" /> CR LF
170   CR LF   171   CR LF
171        <wp:d d> CR LF   172        <wp:d d> CR LF
172         <xsl :call-temp late name= "Paragraph "> CR LF   173         <xsl :call-temp late name= "Paragraph "> CR LF
173          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   174          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
174          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF   175          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF
175          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF   176          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF
176          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   177          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
177          <xs l:with-par am name="P aramRelati veRoot" se lect="$Par amRelative Root" /> CR LF   178          <xs l:with-par am name="P aramRelati veRoot" se lect="$Par amRelative Root" /> CR LF
178          <xs l:with-par am name="P aramParagr aph" selec t="$VarRel atedTopicP aragraph"  /> CR LF   179          <xs l:with-par am name="P aramParagr aph" selec t="$VarRel atedTopicP aragraph"  /> CR LF
179          <xs l:with-par am name="P aramStyleN ame" selec t="$VarRel atedTopicP aragraph/@ stylename"  /> CR LF   180          <xs l:with-par am name="P aramStyleN ame" selec t="$VarRel atedTopicP aragraph/@ stylename"  /> CR LF
180          <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> CR LF   181          <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> CR LF
181          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> CR LF   182          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> CR LF
182         </xs l:call-tem plate> CR LF   183         </xs l:call-tem plate> CR LF
183        </wp: dd> CR LF   184        </wp: dd> CR LF
184       </xsl: for-each> CR LF   185       </xsl: for-each> CR LF
185      </wp:dl > CR LF   186      </wp:dl > CR LF
186     </xsl:if > CR LF   187     </xsl:if > CR LF
187    </xsl:tem plate> CR LF   188    </xsl:tem plate> CR LF
188   CR LF   189   CR LF
189   CR LF   190   CR LF
190    <xsl:temp late name= "RelatedTo picParagra phs"> CR LF   191    <xsl:temp late name= "RelatedTo picParagra phs"> CR LF
191     <xsl:par am name="P aramConten t" /> CR LF   192     <xsl:par am name="P aramConten t" /> CR LF
192     <xsl:par am name="P aramCargo"  /> CR LF   193     <xsl:par am name="P aramCargo"  /> CR LF
193     <xsl:par am name="P aramSplit"  /> CR LF   194     <xsl:par am name="P aramSplit"  /> CR LF
194   CR LF   195   CR LF
195     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF   196     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF
196      <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   197      <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
197   CR LF   198   CR LF
198      <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   199      <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
199       <xsl:v ariable na me="VarBeh aviorParag raph" sele ct="." /> CR LF   200       <xsl:v ariable na me="VarBeh aviorParag raph" sele ct="." /> CR LF
200   CR LF   201   CR LF
201       <xsl:f or-each se lect="$Par amContent[ 1]"> CR LF   202       <xsl:f or-each se lect="$Par amContent[ 1]"> CR LF
202        <xsl: for-each s elect="key ('wwdoc-pa ragraphs-b y-id', $Va rBehaviorP aragraph/@ id)[1]"> CR LF   203        <xsl: for-each s elect="key ('wwdoc-pa ragraphs-b y-id', $Va rBehaviorP aragraph/@ id)[1]"> CR LF
203         <xsl :variable  name="VarP aragraph"  select="."  /> CR LF   204         <xsl :variable  name="VarP aragraph"  select="."  /> CR LF
204   CR LF   205   CR LF
205         <!--  Paragraph  has link?  --> CR LF   206         <!--  Paragraph  has link?  --> CR LF
206         <!--                        --> CR LF   207         <!--                        --> CR LF
207         <xsl :variable  name="VarC hildLinks"  select="$ VarParagra ph//wwdoc: Link[count ($VarParag raph | anc estor::wwd oc:Paragra ph[1]) = 1 ]" /> CR LF   208         <xsl :variable  name="VarC hildLinks"  select="$ VarParagra ph//wwdoc: Link[count ($VarParag raph | anc estor::wwd oc:Paragra ph[1]) = 1 ]" /> CR LF
208         <xsl :variable  name="VarC hildLinksC ount" sele ct="count( $VarChildL inks)" /> CR LF   209         <xsl :variable  name="VarC hildLinksC ount" sele ct="count( $VarChildL inks)" /> CR LF
209         <xsl :if test=" $VarChildL inksCount  &gt; 0"> CR LF   210         <xsl :if test=" $VarChildL inksCount  &gt; 0"> CR LF
210          <!- - Emit par agraph --> CR LF   211          <!- - Emit par agraph --> CR LF
211          <!- -                 --> CR LF   212          <!- -                 --> CR LF
212          <ww doc:Paragr aph> CR LF   213          <ww doc:Paragr aph> CR LF
213           <x sl:copy-of  select="$ VarParagra ph/@*" /> CR LF   214           <x sl:copy-of  select="$ VarParagra ph/@*" /> CR LF
214   CR LF   215   CR LF
215           <! -- Insure  link is de fined --> CR LF   216           <! -- Insure  link is de fined --> CR LF
216           <! --                          --> CR LF   217           <! --                          --> CR LF
217           <x sl:if test ="count($V arParagrap h/wwdoc:Li nk) = 0"> CR LF   218           <x sl:if test ="count($V arParagrap h/wwdoc:Li nk) = 0"> CR LF
218            < xsl:copy-o f select=" $VarChildL inks[1]" / > CR LF   219            < xsl:copy-o f select=" $VarChildL inks[1]" / > CR LF
219           </ xsl:if> CR LF   220           </ xsl:if> CR LF
220   CR LF   221   CR LF
221           <x sl:copy-of  select="$ VarParagra ph/*" /> CR LF   222           <x sl:copy-of  select="$ VarParagra ph/*" /> CR LF
222          </w wdoc:Parag raph> CR LF   223          </w wdoc:Parag raph> CR LF
223         </xs l:if> CR LF   224         </xs l:if> CR LF
224        </xsl :for-each> CR LF   225        </xsl :for-each> CR LF
225       </xsl: for-each> CR LF   226       </xsl: for-each> CR LF
226      </xsl:f or-each> CR LF   227      </xsl:f or-each> CR LF
227     </xsl:fo r-each> CR LF   228     </xsl:fo r-each> CR LF
228    </xsl:tem plate> CR LF   229    </xsl:tem plate> CR LF
229   CR LF   230   CR LF
230   CR LF   231   CR LF
231    <xsl:temp late name= "Content-N otes"> CR LF   232    <xsl:temp late name= "Content-N otes"> CR LF
232     <xsl:par am name="P aramNotes"  /> CR LF   233     <xsl:par am name="P aramNotes"  /> CR LF
233     <xsl:par am name="P aramSplits " /> CR LF   234     <xsl:par am name="P aramSplits " /> CR LF
234     <xsl:par am name="P aramCargo"  /> CR LF   235     <xsl:par am name="P aramCargo"  /> CR LF
235     <xsl:par am name="P aramLinks"  /> CR LF   236     <xsl:par am name="P aramLinks"  /> CR LF
236     <xsl:par am name="P aramTOCDat a" /> CR LF   237     <xsl:par am name="P aramTOCDat a" /> CR LF
237     <xsl:par am name="P aramSplit"  /> CR LF   238     <xsl:par am name="P aramSplit"  /> CR LF
238     <xsl:par am name="P aramRelati veRoot" /> CR LF   239     <xsl:par am name="P aramRelati veRoot" /> CR LF
239   CR LF   240   CR LF
240     <xsl:if  test="coun t($ParamNo tes[1]) =  1"> CR LF   241     <xsl:if  test="coun t($ParamNo tes[1]) =  1"> CR LF
241      <xsl:fo r-each sel ect="$Para mNotes"> CR LF   242      <xsl:fo r-each sel ect="$Para mNotes"> CR LF
242       <xsl:v ariable na me="VarNot e" select= "." /> CR LF   243       <xsl:v ariable na me="VarNot e" select= "." /> CR LF
243   CR LF   244   CR LF
244       <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   245       <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
245   CR LF   246   CR LF
246       <xsl:i f test="st ring-lengt h($VarNote Number) &g t; 0"> CR LF   247       <xsl:i f test="st ring-lengt h($VarNote Number) &g t; 0"> CR LF
247        <wp:w p wp:type= "para" wp: id="{$VarN ote/@id}"  wp:style=" font-size:  smaller;  float: lef t; padding -right: 10 px;"> CR LF   248        <wp:w p wp:type= "para" wp: id="{$VarN ote/@id}"  wp:style=" font-size:  smaller;  float: lef t; padding -right: 10 px;"> CR LF
248         <wp: GotoLink> CR LF   249         <wp: GotoLink> CR LF
249          <xs l:attribut e name="wp :href"> CR LF   250          <xs l:attribut e name="wp :href"> CR LF
250           <x sl:text>#w wfootnote_ inline_</x sl:text> CR LF   251           <x sl:text>#w wfootnote_ inline_</x sl:text> CR LF
251           <x sl:value-o f select=" $VarNote/@ id" /> CR LF   252           <x sl:value-o f select=" $VarNote/@ id" /> CR LF
252          </x sl:attribu te> CR LF   253          </x sl:attribu te> CR LF
253   CR LF   254   CR LF
254          <xs l:value-of  select="$ VarNoteNum ber"/> CR LF   255          <xs l:value-of  select="$ VarNoteNum ber"/> CR LF
255         </wp :GotoLink> CR LF   256         </wp :GotoLink> CR LF
256        </wp: wp> CR LF   257        </wp: wp> CR LF
257   CR LF   258   CR LF
258        <xsl: apply-temp lates sele ct="$VarNo te/*" mode ="wwmode:c ontent"> CR LF   259        <xsl: apply-temp lates sele ct="$VarNo te/*" mode ="wwmode:c ontent"> CR LF
259         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   260         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
260         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   261         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
261         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   262         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
262         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF   263         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF
263         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   264         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
264         <xsl :with-para m name="Pa ramRelativ eRoot" sel ect="$Para mRelativeR oot" /> CR LF   265         <xsl :with-para m name="Pa ramRelativ eRoot" sel ect="$Para mRelativeR oot" /> CR LF
265        </xsl :apply-tem plates> CR LF   266        </xsl :apply-tem plates> CR LF
266       </xsl: if> CR LF   267       </xsl: if> CR LF
267      </xsl:f or-each> CR LF   268      </xsl:f or-each> CR LF
268     </xsl:if > CR LF   269     </xsl:if > CR LF
269    </xsl:tem plate> CR LF   270    </xsl:tem plate> CR LF
270   CR LF   271   CR LF
271   CR LF   272   CR LF
272    <xsl:temp late name= "Content-B ullet"> CR LF   273    <xsl:temp late name= "Content-B ullet"> CR LF
273     <xsl:par am name="P aramSplits " /> CR LF   274     <xsl:par am name="P aramSplits " /> CR LF
274     <xsl:par am name="P aramSplit"  /> CR LF   275     <xsl:par am name="P aramSplit"  /> CR LF
275     <xsl:par am name="P aramParagr aph" /> CR LF   276     <xsl:par am name="P aramParagr aph" /> CR LF
276     <xsl:par am name="P aramCharac ter" /> CR LF   277     <xsl:par am name="P aramCharac ter" /> CR LF
277     <xsl:par am name="P aramImage"  /> CR LF   278     <xsl:par am name="P aramImage"  /> CR LF
278     <xsl:par am name="P aramSepara tor" /> CR LF   279     <xsl:par am name="P aramSepara tor" /> CR LF
279     <xsl:par am name="P aramStyle"  /> CR LF   280     <xsl:par am name="P aramStyle"  /> CR LF
280   CR LF   281   CR LF
281     <xsl:cho ose> CR LF   282     <xsl:cho ose> CR LF
282      <xsl:wh en test="s tring-leng th($ParamS tyle) &gt;  0"> CR LF   283      <xsl:wh en test="s tring-leng th($ParamS tyle) &gt;  0"> CR LF
283   CR LF   284   CR LF
284       <!-- G et rule -- > CR LF   285       <!-- G et rule -- > CR LF
285       <!--           -- > CR LF   286       <!--           -- > CR LF
286       <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Character' , $ParamSt yle)" /> CR LF   287       <xsl:v ariable na me="VarRul e" select= "wwprojext :GetRule(' Character' , $ParamSt yle)" /> CR LF
287   CR LF   288   CR LF
288       <!-- R esolve pro ject prope rties --> CR LF   289       <!-- R esolve pro ject prope rties --> CR LF
289       <!--                               --> CR LF   290       <!--                               --> CR LF
290       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> CR LF   291       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML"> CR LF
291        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > CR LF   292        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" > CR LF
292         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramParagr aph" /> CR LF   293         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramParagr aph" /> CR LF
293         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRul e/wwprojec t:Properti es/wwproje ct:Propert y" /> CR LF   294         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRul e/wwprojec t:Properti es/wwproje ct:Propert y" /> CR LF
294         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yle" /> CR LF   295         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yle" /> CR LF
295         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> CR LF   296         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Charact er'" /> CR LF
296         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mParagraph /wwdoc:Num ber[1]/wwd oc:Style"  /> CR LF   297         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mParagraph /wwdoc:Num ber[1]/wwd oc:Style"  /> CR LF
297        </xsl :call-temp late> CR LF   298        </xsl :call-temp late> CR LF
298       </xsl: variable> CR LF   299       </xsl: variable> CR LF
299       <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   300       <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
300   CR LF   301   CR LF
301       <!-- C SS propert ies --> CR LF   302       <!-- C SS propert ies --> CR LF
302       <!--                  --> CR LF   303       <!--                  --> CR LF
303       <xsl:v ariable na me="VarCSS Properties AsXML"> CR LF   304       <xsl:v ariable na me="VarCSS Properties AsXML"> CR LF
304        <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> CR LF   305        <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> CR LF
305         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> CR LF   306         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedConte xtProperti es" /> CR LF
306         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" /> CR LF   307         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" /> CR LF
307         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   308         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> 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="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > CR LF   311       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > CR LF
311   CR LF   312   CR LF
312       <!-- S tyle attri bute --> CR LF   313       <!-- S tyle attri bute --> CR LF
313       <!--                   --> CR LF   314       <!--                   --> CR LF
314       <xsl:v ariable na me="VarSty leAttribut e"> CR LF   315       <xsl:v ariable na me="VarSty leAttribut e"> CR LF
315        <xsl: call-templ ate name=" CSS-Inline Properties "> CR LF   316        <xsl: call-templ ate name=" CSS-Inline Properties "> CR LF
316         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> CR LF   317         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> CR LF
317        </xsl :call-temp late> CR LF   318        </xsl :call-temp late> CR LF
318       </xsl: variable> CR LF   319       </xsl: variable> CR LF
319   CR LF   320   CR LF
320       <wp:wp  wp:type=" container" > CR LF   321       <wp:wp  wp:type=" container" > CR LF
321        <!--  Style attr ibute --> CR LF   322        <!--  Style attr ibute --> CR LF
322        <!--                   --> CR LF   323        <!--                   --> CR LF
323        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" > CR LF   324        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" > CR LF
324         <xsl :attribute  name="wp: style"> CR LF   325         <xsl :attribute  name="wp: style"> CR LF
325          <xs l:value-of  select="$ VarStyleAt tribute" / > CR LF   326          <xs l:value-of  select="$ VarStyleAt tribute" / > CR LF
326         </xs l:attribut e> CR LF   327         </xs l:attribut e> CR LF
327        </xsl :if> CR LF   328        </xsl :if> CR LF
328   CR LF   329   CR LF
329        <xsl: if test="s tring-leng th($ParamI mage) &gt;  0"> CR LF   330        <xsl: if test="s tring-leng th($ParamI mage) &gt;  0"> CR LF
330         <!--  Get absol ute path f or imaging  info --> CR LF   331         <!--  Get absol ute path f or imaging  info --> CR LF
331         <!--                                        --> CR LF   332         <!--                                        --> CR LF
332         <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   333         <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
333         <xsl :variable  name="VarI mageInfo"  select="ww imaging:Ge tInfo($Var ImageFileS ystemPath) " /> CR LF   334         <xsl :variable  name="VarI mageInfo"  select="ww imaging:Ge tInfo($Var ImageFileS ystemPath) " /> CR LF
334   CR LF   335   CR LF
335         <xsl :variable  name="VarI magePath"> CR LF   336         <xsl :variable  name="VarI magePath"> CR LF
336          <xs l:call-tem plate name ="URI-Reso lveProject FileURI"> CR LF   337          <xs l:call-tem plate name ="URI-Reso lveProject FileURI"> CR LF
337           <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamSpli t/@path" / > CR LF   338           <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamSpli t/@path" / > CR LF
338           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   339           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
339           <x sl:with-pa ram name=" ParamURI"  select="$P aramImage"  /> CR LF   340           <x sl:with-pa ram name=" ParamURI"  select="$P aramImage"  /> CR LF
340          </x sl:call-te mplate> CR LF   341          </x sl:call-te mplate> CR LF
341         </xs l:variable > CR LF   342         </xs l:variable > CR LF
342   CR LF   343   CR LF
343         <!--  Image --> CR LF   344         <!--  Image --> CR LF
344         <!--        --> CR LF   345         <!--        --> CR LF
345         <wp: Image wp:s rc="{$VarI magePath}"  wp:alt="* " wp:id="{ concat('bu llet-', $P aramParagr aph/@id)}"  wp:border ="0" wp:wi dth="{$Var ImageInfo/ @width}" w p:height=" {$VarImage Info/@heig ht}" /> CR LF   346         <wp: Image wp:s rc="{$VarI magePath}"  wp:alt="* " wp:id="{ concat('bu llet-', $P aramParagr aph/@id)}"  wp:border ="0" wp:wi dth="{$Var ImageInfo/ @width}" w p:height=" {$VarImage Info/@heig ht}" /> CR LF
346        </xsl :if> CR LF   347        </xsl :if> CR LF
347   CR LF   348   CR LF
348        <!--  Characters  --> CR LF   349        <!--  Characters  --> CR LF
349        <!--              --> CR LF   350        <!--              --> CR LF
350        <xsl: value-of s elect="$Pa ramCharact er" /> CR LF   351        <xsl: value-of s elect="$Pa ramCharact er" /> CR LF
351   CR LF   352   CR LF
352        <!--  Separator  --> CR LF   353        <!--  Separator  --> CR LF
353        <!--             --> CR LF   354        <!--             --> CR LF
354        <xsl: value-of s elect="$Pa ramSeparat or" /> CR LF   355        <xsl: value-of s elect="$Pa ramSeparat or" /> CR LF
355       </wp:w p> CR LF   356       </wp:w p> CR LF
356      </xsl:w hen> CR LF   357      </xsl:w hen> CR LF
357   CR LF   358   CR LF
358      <xsl:ot herwise> CR LF   359      <xsl:ot herwise> CR LF
359       <xsl:i f test="st ring-lengt h($ParamIm age) &gt;  0"> CR LF   360       <xsl:i f test="st ring-lengt h($ParamIm age) &gt;  0"> CR LF
360        <!--  Get absolu te path fo r imaging  info --> CR LF   361        <!--  Get absolu te path fo r imaging  info --> CR LF
361        <!--                                        --> CR LF   362        <!--                                        --> CR LF
362        <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   363        <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
363        <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Get Info($VarI mageFileSy stemPath)"  /> CR LF   364        <xsl: variable n ame="VarIm ageInfo" s elect="wwi maging:Get Info($VarI mageFileSy stemPath)"  /> CR LF
364   CR LF   365   CR LF
365        <xsl: variable n ame="VarIm agePath"> CR LF   366        <xsl: variable n ame="VarIm agePath"> CR LF
366         <xsl :call-temp late name= "URI-Resol veProjectF ileURI"> CR LF   367         <xsl :call-temp late name= "URI-Resol veProjectF ileURI"> CR LF
367          <xs l:with-par am name="P aramFromAb soluteURI"  select="$ ParamSplit /@path" /> CR LF   368          <xs l:with-par am name="P aramFromAb soluteURI"  select="$ ParamSplit /@path" /> CR LF
368          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   369          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
369          <xs l:with-par am name="P aramURI" s elect="$Pa ramImage"  /> CR LF   370          <xs l:with-par am name="P aramURI" s elect="$Pa ramImage"  /> CR LF
370         </xs l:call-tem plate> CR LF   371         </xs l:call-tem plate> CR LF
371        </xsl :variable> CR LF   372        </xsl :variable> CR LF
372   CR LF   373   CR LF
373        <!--  Image --> CR LF   374        <!--  Image --> CR LF
374        <!--        --> CR LF   375        <!--        --> CR LF
375        <wp:I mage wp:sr c="{$VarIm agePath}"  wp:alt="*"  wp:id="{c oncat('bul let-', $Pa ramParagra ph/@id)}"  wp:border= "0" wp:wid th="{$VarI mageInfo/@ width}" wp :height="{ $VarImageI nfo/@heigh t}" /> CR LF   376        <wp:I mage wp:sr c="{$VarIm agePath}"  wp:alt="*"  wp:id="{c oncat('bul let-', $Pa ramParagra ph/@id)}"  wp:border= "0" wp:wid th="{$VarI mageInfo/@ width}" wp :height="{ $VarImageI nfo/@heigh t}" /> CR LF
376       </xsl: if> CR LF   377       </xsl: if> CR LF
377   CR LF   378   CR LF
378       <!-- C haracters  --> CR LF   379       <!-- C haracters  --> CR LF
379       <!--              --> CR LF   380       <!--              --> CR LF
380       <xsl:v alue-of se lect="$Par amCharacte r" /> CR LF   381       <xsl:v alue-of se lect="$Par amCharacte r" /> CR LF
381   CR LF   382   CR LF
382       <!-- S eparator - -> CR LF   383       <!-- S eparator - -> CR LF
383       <!--            - -> CR LF   384       <!--            - -> CR LF
384       <xsl:v alue-of se lect="$Par amSeparato r" /> CR LF   385       <xsl:v alue-of se lect="$Par amSeparato r" /> CR LF
385      </xsl:o therwise> CR LF   386      </xsl:o therwise> CR LF
386     </xsl:ch oose> CR LF   387     </xsl:ch oose> CR LF
387    </xsl:tem plate> CR LF   388    </xsl:tem plate> CR LF
388   CR LF   389   CR LF
389   CR LF   390   CR LF
390    <xsl:temp late name= "Notes-Num ber"> CR LF   391    <xsl:temp late name= "Notes-Num ber"> CR LF
391     <xsl:par am name="P aramNotes"  /> CR LF   392     <xsl:par am name="P aramNotes"  /> CR LF
392   CR LF   393   CR LF
393     <wwnotes :NoteNumbe ring versi on="1.0"> CR LF   394     <wwnotes :NoteNumbe ring versi on="1.0"> CR LF
394      <xsl:fo r-each sel ect="$Para mNotes"> CR LF   395      <xsl:fo r-each sel ect="$Para mNotes"> CR LF
395       <xsl:v ariable na me="VarNot e" select= "." /> CR LF   396       <xsl:v ariable na me="VarNot e" select= "." /> CR LF
396   CR LF   397   CR LF
397       <wwnot es:Note id ="{$VarNot e/@id}" nu mber="{pos ition()}"  /> CR LF   398       <wwnot es:Note id ="{$VarNot e/@id}" nu mber="{pos ition()}"  /> CR LF
398      </xsl:f or-each> CR LF   399      </xsl:f or-each> CR LF
399     </wwnote s:NoteNumb ering> CR LF   400     </wwnote s:NoteNumb ering> CR LF
400    </xsl:tem plate> CR LF   401    </xsl:tem plate> CR LF
401   CR LF   402   CR LF
402   CR LF   403   CR LF
403    <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:content" > CR LF   404    <xsl:temp late match ="wwdoc:Pa ragraph" m ode="wwmod e:content" > CR LF
404     <xsl:par am name="P aramSplits " /> CR LF   405     <xsl:par am name="P aramSplits " /> CR LF
405     <xsl:par am name="P aramCargo"  /> CR LF   406     <xsl:par am name="P aramCargo"  /> CR LF
406     <xsl:par am name="P aramLinks"  /> CR LF   407     <xsl:par am name="P aramLinks"  /> CR LF
407     <xsl:par am name="P aramTOCDat a" /> CR LF   408     <xsl:par am name="P aramTOCDat a" /> CR LF
408     <xsl:par am name="P aramSplit"  /> CR LF   409     <xsl:par am name="P aramSplit"  /> CR LF
409     <xsl:par am name="P aramRelati veRoot" /> CR LF   410     <xsl:par am name="P aramRelati veRoot" /> CR LF
410   CR LF   411   CR LF
411     <xsl:var iable name ="VarParag raph" sele ct="." /> CR LF   412     <xsl:var iable name ="VarParag raph" sele ct="." /> CR LF
412   CR LF   413   CR LF
413     <!-- Abo rted? --> CR LF   414     <!-- Abo rted? --> CR LF
414     <!--           --> CR LF   415     <!--           --> CR LF
415     <xsl:if  test="not( wwprogress :Abort())" > CR LF   416     <xsl:if  test="not( wwprogress :Abort())" > CR LF
416      <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   417      <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
417      <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   418      <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
418      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF   419      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF
419      <xsl:if  test="$Va rGenerateO utput"> CR LF   420      <xsl:if  test="$Va rGenerateO utput"> CR LF
420       <!-- R elated Top ic Only or  Popup Onl y? --> CR LF   421       <!-- R elated Top ic Only or  Popup Onl y? --> CR LF
421       <!--                                       --> CR LF   422       <!--                                       --> CR LF
422       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF   423       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF
423        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="key(' wwbehavior s-paragrap hs-by-id',  $VarParag raph/@id)[ 1]" /> CR LF   424        <xsl: variable n ame="VarPa ragraphBeh avior" sel ect="key(' wwbehavior s-paragrap hs-by-id',  $VarParag raph/@id)[ 1]" /> CR LF
424        <xsl: variable n ame="VarIn PopupPage"  select="c ount($Para mCargo/wwb ehaviors:P opupPage)  &gt; 0" /> CR LF   425        <xsl: variable n ame="VarIn PopupPage"  select="c ount($Para mCargo/wwb ehaviors:P opupPage)  &gt; 0" /> CR LF
425        <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   426        <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
426        <xsl: variable n ame="VarRe latedTopic Only" sele ct="$VarPa ragraphBeh avior/@rel atedtopic  = 'define- no-output' " /> CR LF   427        <xsl: variable n ame="VarRe latedTopic Only" sele ct="$VarPa ragraphBeh avior/@rel atedtopic  = 'define- no-output' " /> CR LF
427   CR LF   428   CR LF
428        <xsl: if test="$ VarInPopup Page or (n ot($VarPop upOnly) an d not($Var RelatedTop icOnly))"> CR LF   429        <xsl: if test="$ VarInPopup Page or (n ot($VarPop upOnly) an d not($Var RelatedTop icOnly))"> CR LF
429         <!--  Paragraph  --> CR LF   430         <!--  Paragraph  --> CR LF
430         <!--             --> CR LF   431         <!--             --> CR LF
431         <xsl :call-temp late name= "Paragraph "> CR LF   432         <xsl :call-temp late name= "Paragraph "> CR LF
432          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   433          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
433          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF   434          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF
434          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF   435          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF
435          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   436          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
436          <xs l:with-par am name="P aramRelati veRoot" se lect="$Par amRelative Root" /> CR LF   437          <xs l:with-par am name="P aramRelati veRoot" se lect="$Par amRelative Root" /> CR LF
437          <xs l:with-par am name="P aramParagr aph" selec t="$VarPar agraph" /> CR LF   438          <xs l:with-par am name="P aramParagr aph" selec t="$VarPar agraph" /> CR LF
438          <xs l:with-par am name="P aramStyleN ame" selec t="$VarPar agraph/@st ylename" / > CR LF   439          <xs l:with-par am name="P aramStyleN ame" selec t="$VarPar agraph/@st ylename" / > CR LF
439          <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> CR LF   440          <xs l:with-par am name="P aramOverri deRule" se lect="$Var OverrideRu le" /> CR LF
440          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> CR LF   441          <xs l:with-par am name="P aramParagr aphBehavio r" select= "$VarParag raphBehavi or" /> CR LF
441         </xs l:call-tem plate> CR LF   442         </xs l:call-tem plate> CR LF
442   CR LF   443   CR LF
443         <!--  MiniTOC - -> CR LF   444         <!--  MiniTOC - -> CR LF
444         <!--          - -> CR LF   445         <!--          - -> CR LF
445         <xsl :if test=" not($VarIn PopupPage) "> CR LF   446         <xsl :if test=" not($VarIn PopupPage) "> CR LF
446          <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   447          <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
447          <xs l:variable  name="Var MiniTOCSub LevelsNume ricPrefix"  select="w wunits:Num ericPrefix ($VarMiniT OCSubLevel s)" /> CR LF   448          <xs l:variable  name="Var MiniTOCSub LevelsNume ricPrefix"  select="w wunits:Num ericPrefix ($VarMiniT OCSubLevel s)" /> CR LF
448          <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   449          <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
449          <xs l:if test= "($VarMini TOCSubLeve lsGreaterT hanZero) o r ($VarMin iTOCSubLev els = 'all ')"> CR LF   450          <xs l:if test= "($VarMini TOCSubLeve lsGreaterT hanZero) o r ($VarMin iTOCSubLev els = 'all ')"> CR LF
450           <x sl:for-eac h select=" $ParamTOCD ata[1]"> CR LF   451           <x sl:for-eac h select=" $ParamTOCD ata[1]"> CR LF
451            < xsl:variab le name="V arTOCEntry " select=" key('wwtoc -entry-by- id', $VarP aragraph/@ id)[@docum entID = $P aramSplit/ @documentI D]" /> CR LF   452            < xsl:variab le name="V arTOCEntry " select=" key('wwtoc -entry-by- id', $VarP aragraph/@ id)[@docum entID = $P aramSplit/ @documentI D]" /> CR LF
452            < xsl:for-ea ch select= "$VarTOCEn try[1]"> CR LF   453            < xsl:for-ea ch select= "$VarTOCEn try[1]"> CR LF
453              <xsl:call- template n ame="MiniT OC"> CR LF   454              <xsl:call- template n ame="MiniT OC"> CR LF
454               <xsl:with -param nam e="ParamSp lit" selec t="$ParamS plit" /> CR LF   455               <xsl:with -param nam e="ParamSp lit" selec t="$ParamS plit" /> CR LF
455               <xsl:with -param nam e="ParamTO CEntry" se lect="$Var TOCEntry[1 ]" /> CR LF   456               <xsl:with -param nam e="ParamTO CEntry" se lect="$Var TOCEntry[1 ]" /> CR LF
456               <xsl:with -param nam e="ParamEm itTOCEntry " select=" false()" / > CR LF   457               <xsl:with -param nam e="ParamEm itTOCEntry " select=" false()" / > CR LF
457               <xsl:with -param nam e="ParamMi niTOCSubLe vels" sele ct="$VarMi niTOCSubLe vels" /> CR LF   458               <xsl:with -param nam e="ParamMi niTOCSubLe vels" sele ct="$VarMi niTOCSubLe vels" /> CR LF
458               <xsl:with -param nam e="ParamLe vel" selec t="1" /> CR LF   459               <xsl:with -param nam e="ParamLe vel" selec t="1" /> CR LF
459              </xsl:call -template> CR LF   460              </xsl:call -template> CR LF
460            < /xsl:for-e ach> CR LF   461            < /xsl:for-e ach> CR LF
461           </ xsl:for-ea ch> CR LF   462           </ xsl:for-ea ch> CR LF
462          </x sl:if> CR LF   463          </x sl:if> CR LF
463         </xs l:if> CR LF   464         </xs l:if> CR LF
464        </xsl :if> CR LF   465        </xsl :if> CR LF
465       </xsl: for-each> CR LF   466       </xsl: for-each> CR LF
466      </xsl:i f> CR LF   467      </xsl:i f> CR LF
467     </xsl:if > CR LF   468     </xsl:if > CR LF
468    </xsl:tem plate> CR LF   469    </xsl:tem plate> CR LF
469   CR LF   470   CR LF
470   CR LF   471   CR LF
471    <xsl:temp late name= "MiniTOC"> CR LF   472    <xsl:temp late name= "MiniTOC"> CR LF
472     <xsl:par am name="P aramSplit"  /> CR LF   473     <xsl:par am name="P aramSplit"  /> CR LF
473     <xsl:par am name="P aramTOCEnt ry" /> CR LF   474     <xsl:par am name="P aramTOCEnt ry" /> CR LF
474     <xsl:par am name="P aramEmitTO CEntry" /> CR LF   475     <xsl:par am name="P aramEmitTO CEntry" /> CR LF
475     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF   476     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF
476     <xsl:par am name="P aramLevel"  /> CR LF   477     <xsl:par am name="P aramLevel"  /> CR LF
477   CR LF   478   CR LF
478     <xsl:if  test="($Pa ramEmitTOC Entry = tr ue()) or ( count($Par amTOCEntry /wwtoc:Ent ry[1]) = 1 )"> CR LF   479     <xsl:if  test="($Pa ramEmitTOC Entry = tr ue()) or ( count($Par amTOCEntry /wwtoc:Ent ry[1]) = 1 )"> CR LF
479      <wp:wp  wp:type="m initoc-con tainer"> CR LF   480      <wp:wp  wp:type="m initoc-con tainer"> CR LF
480       <!-- E mit top-le vel entry?  --> CR LF   481       <!-- E mit top-le vel entry?  --> CR LF
481       <!--                          --> CR LF   482       <!--                          --> CR LF
482       <xsl:c hoose> CR LF   483       <xsl:c hoose> CR LF
483        <xsl: when test= "$ParamEmi tTOCEntry  = true()"> CR LF   484        <xsl: when test= "$ParamEmi tTOCEntry  = true()"> CR LF
484         <wp: wp wp:type ="minitoc- para" wp:l evel="{$Pa ramLevel}" > CR LF   485         <wp: wp wp:type ="minitoc- para" wp:l evel="{$Pa ramLevel}" > CR LF
485          <!- - Paragrap h --> CR LF   486          <!- - Paragrap h --> CR LF
486          <!- -            --> CR LF   487          <!- -            --> CR LF
487          <xs l:call-tem plate name ="MiniTOCP aragraph"> CR LF   488          <xs l:call-tem plate name ="MiniTOCP aragraph"> CR LF
488           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param TOCEntry/w wdoc:Parag raph" /> CR LF   489           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param TOCEntry/w wdoc:Parag raph" /> CR LF
489          </x sl:call-te mplate> CR LF   490          </x sl:call-te mplate> CR LF
490         </wp :wp> CR LF   491         </wp :wp> CR LF
491   CR LF   492   CR LF
492         <!--  Children  --> CR LF   493         <!--  Children  --> CR LF
493         <!--            --> CR LF   494         <!--            --> CR LF
494         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF   495         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF
495          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> CR LF   496          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> CR LF
496          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> CR LF   497          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> CR LF
497          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF   498          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF
498          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" /> CR LF   499          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" /> CR LF
499         </xs l:call-tem plate> CR LF   500         </xs l:call-tem plate> CR LF
500        </xsl :when> CR LF   501        </xsl :when> CR LF
501   CR LF   502   CR LF
502        <xsl: otherwise> CR LF   503        <xsl: otherwise> CR LF
503         <!--  Children  --> CR LF   504         <!--  Children  --> CR LF
504         <!--            --> CR LF   505         <!--            --> CR LF
505         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF   506         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF
506          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> CR LF   507          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramSplit/@ path" /> CR LF
507          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> CR LF   508          <xs l:with-par am name="P aramParent " select=" $ParamTOCE ntry" /> CR LF
508          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF   509          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF
509          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" /> CR LF   510          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" /> CR LF
510         </xs l:call-tem plate> CR LF   511         </xs l:call-tem plate> CR LF
511        </xsl :otherwise > CR LF   512        </xsl :otherwise > CR LF
512       </xsl: choose> CR LF   513       </xsl: choose> CR LF
513      </wp:wp > CR LF   514      </wp:wp > CR LF
514     </xsl:if > CR LF   515     </xsl:if > CR LF
515    </xsl:tem plate> CR LF   516    </xsl:tem plate> CR LF
516   CR LF   517   CR LF
517   CR LF   518   CR LF
518    <xsl:temp late name= "MiniTOCEn tries"> CR LF   519    <xsl:temp late name= "MiniTOCEn tries"> CR LF
519     <xsl:par am name="P aramRefere ncePath" / > CR LF   520     <xsl:par am name="P aramRefere ncePath" / > CR LF
520     <xsl:par am name="P aramParent " /> CR LF   521     <xsl:par am name="P aramParent " /> CR LF
521     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF   522     <xsl:par am name="P aramMiniTO CSubLevels " /> CR LF
522     <xsl:par am name="P aramLevel"  /> CR LF   523     <xsl:par am name="P aramLevel"  /> CR LF
523   CR LF   524   CR LF
524     <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry"  /> CR LF   525     <xsl:var iable name ="VarSubEn tries" sel ect="$Para mParent/ww toc:Entry"  /> CR LF
525   CR LF   526   CR LF
526     <xsl:for -each sele ct="$VarSu bEntries[1 ]"> CR LF   527     <xsl:for -each sele ct="$VarSu bEntries[1 ]"> CR LF
527   CR LF   528   CR LF
528      <xsl:fo r-each sel ect="$VarS ubEntries" > CR LF   529      <xsl:fo r-each sel ect="$VarS ubEntries" > CR LF
529       <xsl:v ariable na me="VarEnt ry" select ="." /> CR LF   530       <xsl:v ariable na me="VarEnt ry" select ="." /> CR LF
530   CR LF   531   CR LF
531       <wp:wp  wp:type=" minitoc-pa ra" wp:lev el="{$Para mLevel}"> CR LF   532       <wp:wp  wp:type=" minitoc-pa ra" wp:lev el="{$Para mLevel}"> CR LF
532        <xsl: choose> CR LF   533        <xsl: choose> CR LF
533         <xsl :when test ="string-l ength($Var Entry/@pat h) &gt; 0" > CR LF   534         <xsl :when test ="string-l ength($Var Entry/@pat h) &gt; 0" > CR LF
534          <!- - Get link  --> CR LF   535          <!- - Get link  --> CR LF
535          <!- -           --> CR LF   536          <!- -           --> CR LF
536          <xs l:variable  name="Var RelativeLi nkPath" se lect="wwur i:GetRelat iveTo($Var Entry/@pat h, $ParamR eferencePa th)" /> CR LF   537          <xs l:variable  name="Var RelativeLi nkPath" se lect="wwur i:GetRelat iveTo($Var Entry/@pat h, $ParamR eferencePa th)" /> CR LF
537   CR LF   538   CR LF
538          <wp :GotoLink  wp:href="{ $VarRelati veLinkPath }#{$VarEnt ry/@linkid }"> CR LF   539          <wp :GotoLink  wp:href="{ $VarRelati veLinkPath }#{$VarEnt ry/@linkid }"> CR LF
539           <x sl:call-te mplate nam e="MiniTOC Paragraph" > CR LF   540           <x sl:call-te mplate nam e="MiniTOC Paragraph" > CR LF
540            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarE ntry/wwdoc :Paragraph " /> CR LF   541            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarE ntry/wwdoc :Paragraph " /> CR LF
541           </ xsl:call-t emplate> CR LF   542           </ xsl:call-t emplate> CR LF
542          </w p:GotoLink > CR LF   543          </w p:GotoLink > CR LF
543         </xs l:when> CR LF   544         </xs l:when> CR LF
544   CR LF   545   CR LF
545         <xsl :otherwise > CR LF   546         <xsl :otherwise > CR LF
546          <xs l:call-tem plate name ="MiniTOCP aragraph"> CR LF   547          <xs l:call-tem plate name ="MiniTOCP aragraph"> CR LF
547           <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph"  /> CR LF   548           <x sl:with-pa ram name=" ParamParag raph" sele ct="$VarEn try/wwdoc: Paragraph"  /> CR LF
548          </x sl:call-te mplate> CR LF   549          </x sl:call-te mplate> CR LF
549         </xs l:otherwis e> CR LF   550         </xs l:otherwis e> CR LF
550        </xsl :choose> CR LF   551        </xsl :choose> CR LF
551       </wp:w p> CR LF   552       </wp:w p> CR LF
552   CR LF   553   CR LF
553       <!-- R ecurse --> CR LF   554       <!-- R ecurse --> CR LF
554       <!--          --> CR LF   555       <!--          --> CR LF
555       <xsl:c hoose> CR LF   556       <xsl:c hoose> CR LF
556        <xsl: when test= "$ParamMin iTOCSubLev els = 'all '"> CR LF   557        <xsl: when test= "$ParamMin iTOCSubLev els = 'all '"> CR LF
557         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF   558         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF
558          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF   559          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF
559          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF   560          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF
560          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF   561          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls" /> CR LF
561          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" /> CR LF   562          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" /> CR LF
562         </xs l:call-tem plate> CR LF   563         </xs l:call-tem plate> CR LF
563        </xsl :when> CR LF   564        </xsl :when> CR LF
564   CR LF   565   CR LF
565        <xsl: when test= "($ParamMi niTOCSubLe vels - 1)  &gt; 0"> CR LF   566        <xsl: when test= "($ParamMi niTOCSubLe vels - 1)  &gt; 0"> CR LF
566         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF   567         <xsl :call-temp late name= "MiniTOCEn tries"> CR LF
567          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF   568          <xs l:with-par am name="P aramRefere ncePath" s elect="$Pa ramReferen cePath" /> CR LF
568          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF   569          <xs l:with-par am name="P aramParent " select=" $VarEntry"  /> CR LF
569          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls - 1" /> CR LF   570          <xs l:with-par am name="P aramMiniTO CSubLevels " select=" $ParamMini TOCSubLeve ls - 1" /> CR LF
570          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" /> CR LF   571          <xs l:with-par am name="P aramLevel"  select="$ ParamLevel  + 1" /> CR LF
571         </xs l:call-tem plate> CR LF   572         </xs l:call-tem plate> CR LF
572        </xsl :when> CR LF   573        </xsl :when> CR LF
573       </xsl: choose> CR LF   574       </xsl: choose> CR LF
574      </xsl:f or-each> CR LF   575      </xsl:f or-each> CR LF
575   CR LF   576   CR LF
576     </xsl:fo r-each> CR LF   577     </xsl:fo r-each> CR LF
577    </xsl:tem plate> CR LF   578    </xsl:tem plate> CR LF
578   CR LF   579   CR LF
579   CR LF   580   CR LF
580    <xsl:temp late name= "MiniTOCPa ragraph"> CR LF   581    <xsl:temp late name= "MiniTOCPa ragraph"> CR LF
581     <xsl:par am name="P aramParagr aph" /> CR LF   582     <xsl:par am name="P aramParagr aph" /> CR LF
582   CR LF   583   CR LF
583     <xsl:for -each sele ct="$Param Paragraph/ wwdoc:Numb er/wwdoc:T ext | $Par amParagrap h/wwdoc:Te xtRun/wwdo c:Text"> CR LF   584     <xsl:for -each sele ct="$Param Paragraph/ wwdoc:Numb er/wwdoc:T ext | $Par amParagrap h/wwdoc:Te xtRun/wwdo c:Text"> CR LF
584      <xsl:va lue-of sel ect="@valu e" /> CR LF   585      <xsl:va lue-of sel ect="@valu e" /> CR LF
585     </xsl:fo r-each> CR LF   586     </xsl:fo r-each> CR LF
586    </xsl:tem plate> CR LF   587    </xsl:tem plate> CR LF
587   CR LF   588   CR LF
588   CR LF   589   CR LF
589    <xsl:temp late name= "Paragraph "> CR LF   590    <xsl:temp late name= "Paragraph "> CR LF
590     <xsl:par am name="P aramSplits " /> CR LF   591     <xsl:par am name="P aramSplits " /> CR LF
591     <xsl:par am name="P aramCargo"  /> CR LF   592     <xsl:par am name="P aramCargo"  /> CR LF
592     <xsl:par am name="P aramLinks"  /> CR LF   593     <xsl:par am name="P aramLinks"  /> CR LF
593     <xsl:par am name="P aramSplit"  /> CR LF   594     <xsl:par am name="P aramSplit"  /> CR LF
594     <xsl:par am name="P aramRelati veRoot" /> CR LF   595     <xsl:par am name="P aramRelati veRoot" /> CR LF
595     <xsl:par am name="P aramParagr aph" /> CR LF   596     <xsl:par am name="P aramParagr aph" /> CR LF
596     <xsl:par am name="P aramStyleN ame" /> CR LF   597     <xsl:par am name="P aramStyleN ame" /> CR LF
597     <xsl:par am name="P aramOverri deRule" /> CR LF   598     <xsl:par am name="P aramOverri deRule" /> CR LF
598     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF   599     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF
599   CR LF   600   CR LF
600     <!-- Pre serve empt y? --> CR LF   601     <!-- Pre serve empt y? --> CR LF
601     <!--                   --> CR LF   602     <!--                   --> CR LF
602     <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   603     <xsl:var iable name ="VarPrese rveEmptyOp tion" sele ct="$Param OverrideRu le/wwproje ct:Options /wwproject :Option[@N ame = 'pre serve-empt y']/@Value " /> CR LF
603     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF   604     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF
604   CR LF   605   CR LF
605     <!-- Non -empty tex t runs --> CR LF   606     <!-- Non -empty tex t runs --> CR LF
606     <!--                       --> CR LF   607     <!--                       --> CR LF
607      <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
  608      <xsl:varia ble name=" VarTextRun s" select= "$ParamPar agraph/wwd oc:TextRun [count(chi ld::wwdoc: Text[1] |  child::wwd oc:Frame[1 ] | child: :wwdoc:Not e[1] | chi ld::wwdoc: LineBreak[ 1]  | child:: wwdoc:Mark er[1] ) &gt; 0]"  /> CR LF
608   CR LF   609   CR LF
609     <!-- Pro cess this  paragraph  at all? -- > CR LF   610     <!-- Pro cess this  paragraph  at all? -- > CR LF
610     <!--                                   -- > CR LF   611     <!--                                   -- > CR LF
611     <xsl:if  test="($Va rPreserveE mpty) or ( count($Var TextRuns[1 ]) = 1)"> CR LF   612     <xsl:if  test="($Va rPreserveE mpty) or ( count($Var TextRuns[1 ]) = 1)"> CR LF
612      <!-- Pa ss-through ? --> CR LF   613      <!-- Pa ss-through ? --> CR LF
613      <!--                 --> CR LF   614      <!--                 --> CR LF
614      <xsl:va riable nam e="VarPass Through"> CR LF   615      <xsl:va riable nam e="VarPass Through"> CR LF
    616       <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
    617   CR LF
    618       <xsl:c hoose> CR LF
    619        <xsl: when test= "$VarPassT hroughOpti on = 'true '"> CR LF
    620         <xsl :value-of  select="tr ue()" /> CR LF
    621        </xsl :when> CR LF
    622   CR LF
    623        <xsl: otherwise> CR LF
615       <xsl:c all-templa te name="C onditions- PassThroug h"> CR LF   624         <xsl :call-temp late name= "Condition s-PassThro ugh"> CR LF
616        <xsl: with-param  name="Par amConditio ns" select ="$ParamPa ragraph/ww doc:Condit ions" /> CR LF   625          <xs l:with-par am name="P aramCondit ions" sele ct="$Param Paragraph/ wwdoc:Cond itions" /> CR LF
617       </xsl: call-templ ate> CR LF   626         </xs l:call-tem plate> CR LF
    627        </xsl :otherwise > CR LF
    628       </xsl: choose> CR LF
618      </xsl:v ariable> CR LF   629      </xsl:v ariable> CR LF
619   CR LF   630   CR LF
620      <xsl:ch oose> CR LF   631      <xsl:ch oose> CR LF
621       <!-- P ass-throug h --> CR LF   632       <!-- P ass-throug h --> CR LF
622       <!--                --> CR LF   633       <!--                --> CR LF
623       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF   634       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF
624        <xsl: call-templ ate name=" Paragraph- PassThroug h"> CR LF   635        <xsl: call-templ ate name=" Paragraph- PassThroug h"> CR LF
625         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF   636         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF
626        </xsl :call-temp late> CR LF   637        </xsl :call-temp late> CR LF
627       </xsl: when> CR LF   638       </xsl: when> CR LF
628   CR LF   639   CR LF
629       <xsl:o therwise> CR LF   640       <xsl:o therwise> CR LF
630        <xsl: call-templ ate name=" Paragraph- Normal"> CR LF   641        <xsl: call-templ ate name=" Paragraph- Normal"> CR LF
631         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   642         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
632         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   643         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
633         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   644         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
634         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   645         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
635         <xsl :with-para m name="Pa ramRelativ eRoot" sel ect="$Para mRelativeR oot" /> CR LF   646         <xsl :with-para m name="Pa ramRelativ eRoot" sel ect="$Para mRelativeR oot" /> CR LF
636         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF   647         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF
637         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yleName" / > CR LF   648         <xsl :with-para m name="Pa ramStyleNa me" select ="$ParamSt yleName" / > CR LF
638         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$Para mOverrideR ule" /> CR LF   649         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$Para mOverrideR ule" /> CR LF
639         <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" /> CR LF   650         <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" /> CR LF
640        </xsl :call-temp late> CR LF   651        </xsl :call-temp late> CR LF
641       </xsl: otherwise> CR LF   652       </xsl: otherwise> CR LF
642      </xsl:c hoose> CR LF   653      </xsl:c hoose> CR LF
643     </xsl:if > CR LF   654     </xsl:if > CR LF
644    </xsl:tem plate> CR LF   655    </xsl:tem plate> CR LF
645   CR LF   656   CR LF
646   CR LF   657   CR LF
647    <xsl:temp late name= "Paragraph -PassThrou gh"> CR LF   658    <xsl:temp late name= "Paragraph -PassThrou gh"> CR LF
648     <xsl:par am name="P aramParagr aph" /> CR LF   659     <xsl:par am name="P aramParagr aph" /> CR LF
649   CR LF   660   CR LF
650     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF   661     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF
651      <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Tex tRun/wwdoc :Text"> CR LF   662      <xsl:fo r-each sel ect="$Para mParagraph /wwdoc:Tex tRun/wwdoc :Text"> CR LF
652       <xsl:v ariable na me="VarTex t" select= "." /> CR LF   663       <xsl:v ariable na me="VarTex t" select= "." /> CR LF
653   CR LF   664   CR LF
654       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF   665       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF
655      </xsl:f or-each> CR LF   666      </xsl:f or-each> CR LF
656     </wwexsl doc:Text> CR LF   667     </wwexsl doc:Text> CR LF
657    </xsl:tem plate> CR LF   668    </xsl:tem plate> CR LF
658   CR LF   669   CR LF
659   CR LF   670   CR LF
660    <xsl:temp late name= "Paragraph -Normal"> CR LF   671    <xsl:temp late name= "Paragraph -Normal"> CR LF
661     <xsl:par am name="P aramSplits " /> CR LF   672     <xsl:par am name="P aramSplits " /> CR LF
662     <xsl:par am name="P aramCargo"  /> CR LF   673     <xsl:par am name="P aramCargo"  /> CR LF
663     <xsl:par am name="P aramLinks"  /> CR LF   674     <xsl:par am name="P aramLinks"  /> CR LF
664     <xsl:par am name="P aramSplit"  /> CR LF   675     <xsl:par am name="P aramSplit"  /> CR LF
665     <xsl:par am name="P aramRelati veRoot" /> CR LF   676     <xsl:par am name="P aramRelati veRoot" /> CR LF
666     <xsl:par am name="P aramParagr aph" /> CR LF   677     <xsl:par am name="P aramParagr aph" /> CR LF
667     <xsl:par am name="P aramStyleN ame" /> CR LF   678     <xsl:par am name="P aramStyleN ame" /> CR LF
668     <xsl:par am name="P aramOverri deRule" /> CR LF   679     <xsl:par am name="P aramOverri deRule" /> CR LF
669     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF   680     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF
670   CR LF   681   CR LF
671     <!-- Res olve proje ct propert ies --> CR LF   682     <!-- Res olve proje ct propert ies --> CR LF
672     <!--                               --> CR LF   683     <!--                               --> CR LF
673     <xsl:var iable name ="VarResol vedPropert iesAsXML"> CR LF   684     <xsl:var iable name ="VarResol vedPropert iesAsXML"> CR LF
674      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> CR LF   685      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> CR LF
675       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF   686       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF
676       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> CR LF   687       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> CR LF
677      </xsl:c all-templa te> CR LF   688      </xsl:c all-templa te> CR LF
678     </xsl:va riable> CR LF   689     </xsl:va riable> CR LF
679     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> CR LF   690     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> CR LF
680   CR LF   691   CR LF
681     <!-- CSS  propertie s --> CR LF   692     <!-- CSS  propertie s --> CR LF
682     <!--                  --> CR LF   693     <!--                  --> CR LF
683     <xsl:var iable name ="VarCSSPr opertiesAs XML"> CR LF   694     <xsl:var iable name ="VarCSSPr opertiesAs XML"> CR LF
684      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF   695      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF
685       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" /> CR LF   696       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" /> CR LF
686       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF   697       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF
687       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   698       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
688      </xsl:c all-templa te> CR LF   699      </xsl:c all-templa te> CR LF
689     </xsl:va riable> CR LF   700     </xsl:va riable> CR LF
690     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> CR LF   701     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> CR LF
691   CR LF   702   CR LF
692     <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   703     <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Paragrap h', $Param Paragraph/ @stylename , $ParamSp lit/@docum entID, $Pa ramParagra ph/@id)" / > CR LF
693   CR LF   704   CR LF
694     <!-- Res olve proje ct propert ies --> CR LF   705     <!-- Res olve proje ct propert ies --> CR LF
695     <!--                               --> CR LF   706     <!--                               --> CR LF
696     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF   707     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF
697      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF   708      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF
698       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amParagrap h" /> CR LF   709       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amParagrap h" /> CR LF
699       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF   710       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF
700       <xsl:w ith-param  name="Para mStyleName " select=" $ParamPara graph/@sty lename" /> CR LF   711       <xsl:w ith-param  name="Para mStyleName " select=" $ParamPara graph/@sty lename" /> CR LF
701       <xsl:w ith-param  name="Para mStyleType " select=" 'Paragraph '" /> CR LF   712       <xsl:w ith-param  name="Para mStyleType " select=" 'Paragraph '" /> CR LF
702       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> CR LF   713       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamP aragraph/w wdoc:Style " /> CR LF
703      </xsl:c all-templa te> CR LF   714      </xsl:c all-templa te> CR LF
704     </xsl:va riable> CR LF   715     </xsl:va riable> CR LF
705     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF   716     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF
706   CR LF   717   CR LF
707     <!-- CSS  propertie s --> CR LF   718     <!-- CSS  propertie s --> CR LF
708     <!--                  --> CR LF   719     <!--                  --> CR LF
709     <xsl:var iable name ="VarCSSCo ntextPrope rtiesAsXML "> CR LF   720     <xsl:var iable name ="VarCSSCo ntextPrope rtiesAsXML "> CR LF
710      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF   721      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF
711       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedContext Properties " /> CR LF   722       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedContext Properties " /> CR LF
712       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF   723       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF
713       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   724       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
714      </xsl:c all-templa te> CR LF   725      </xsl:c all-templa te> CR LF
715     </xsl:va riable> CR LF   726     </xsl:va riable> CR LF
716     <xsl:var iable name ="VarCSSCo ntextPrope rties" sel ect="msxsl :node-set( $VarCSSCon textProper tiesAsXML) /wwproject :Property"  /> CR LF   727     <xsl:var iable name ="VarCSSCo ntextPrope rties" sel ect="msxsl :node-set( $VarCSSCon textProper tiesAsXML) /wwproject :Property"  /> CR LF
717   CR LF   728   CR LF
718     <!-- Use  numbering ? --> CR LF   729     <!-- Use  numbering ? --> CR LF
719     <!--                  --> CR LF   730     <!--                  --> CR LF
720     <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   731     <xsl:var iable name ="VarUseNu mberingOpt ion" selec t="$VarCon textRule/w wproject:O ptions/wwp roject:Opt ion[@Name  = 'use-num bering']/@ Value" /> CR LF
721     <xsl:var iable name ="VarUseNu mbering" s elect="(st ring-lengt h($VarUseN umberingOp tion) = 0)  or ($VarU seNumberin gOption =  'true')" / > CR LF   732     <xsl:var iable name ="VarUseNu mbering" s elect="(st ring-lengt h($VarUseN umberingOp tion) = 0)  or ($VarU seNumberin gOption =  'true')" / > CR LF
722   CR LF   733   CR LF
723     <!-- Tex t Indent - -> CR LF   734     <!-- Tex t Indent - -> CR LF
724     <!--              - -> CR LF   735     <!--              - -> CR LF
725     <xsl:var iable name ="VarTextI ndent"> CR LF   736     <xsl:var iable name ="VarTextI ndent"> CR LF
726      <xsl:if  test="$Va rUseNumber ing"> CR LF   737      <xsl:if  test="$Va rUseNumber ing"> CR LF
727       <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarC SSProperti es[@Name =  'text-ind ent']/@Val ue" /> CR LF   738       <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarC SSProperti es[@Name =  'text-ind ent']/@Val ue" /> CR LF
728       <xsl:c hoose> CR LF   739       <xsl:c hoose> CR LF
729        <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0"> CR LF   740        <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0"> CR LF
730         <xsl :value-of  select="$V arOverride TextIndent " /> CR LF   741         <xsl :value-of  select="$V arOverride TextIndent " /> CR LF
731        </xsl :when> CR LF   742        </xsl :when> CR LF
732   CR LF   743   CR LF
733        <xsl: otherwise> CR LF   744        <xsl: otherwise> CR LF
734         <!--  Text inde nt defined ? --> CR LF   745         <!--  Text inde nt defined ? --> CR LF
735         <!--                         --> CR LF   746         <!--                         --> CR LF
736         <xsl :variable  name="VarC ontextText Indent" se lect="$Var CSSContext Properties [@Name = ' text-inden t']/@Value " /> CR LF   747         <xsl :variable  name="VarC ontextText Indent" se lect="$Var CSSContext Properties [@Name = ' text-inden t']/@Value " /> CR LF
737         <xsl :if test=" string-len gth($VarCo ntextTextI ndent) &gt ; 0"> CR LF   748         <xsl :if test=" string-len gth($VarCo ntextTextI ndent) &gt ; 0"> CR LF
738          <xs l:value-of  select="$ VarContext TextIndent " /> CR LF   749          <xs l:value-of  select="$ VarContext TextIndent " /> CR LF
739         </xs l:if> CR LF   750         </xs l:if> CR LF
740        </xsl :otherwise > CR LF   751        </xsl :otherwise > CR LF
741       </xsl: choose> CR LF   752       </xsl: choose> CR LF
742      </xsl:i f> CR LF   753      </xsl:i f> CR LF
743     </xsl:va riable> CR LF   754     </xsl:va riable> CR LF
744   CR LF   755   CR LF
745     <xsl:var iable name ="VarTextI ndentNumer icPrefix"  select="ww units:Nume ricPrefix( $VarTextIn dent)" /> CR LF   756     <xsl:var iable name ="VarTextI ndentNumer icPrefix"  select="ww units:Nume ricPrefix( $VarTextIn dent)" /> CR LF
746     <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   757     <xsl:var iable name ="VarTextI ndentLessT hanZero" s elect="(st ring-lengt h($VarText IndentNume ricPrefix)  &gt; 0) a nd (number ($VarTextI ndentNumer icPrefix)  &lt; 0)" / > CR LF
747   CR LF   758   CR LF
748     <!-- Use  bullet fr om UI? --> CR LF   759     <!-- Use  bullet fr om UI? --> CR LF
749     <!--                       --> CR LF   760     <!--                       --> CR LF
750     <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   761     <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
751     <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   762     <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
752     <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   763     <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
753     <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   764     <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
754     <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   765     <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
755   CR LF   766   CR LF
756     <!-- Is  numbered p aragraph - -> CR LF   767     <!-- Is  numbered p aragraph - -> CR LF
757     <!--                         - -> CR LF   768     <!--                         - -> CR LF
758     <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   769     <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
759   CR LF   770   CR LF
760     <!-- Tag  --> CR LF   771     <!-- Tag  --> CR LF
761     <!--      --> CR LF   772     <!--      --> CR LF
762     <xsl:var iable name ="VarTagPr operty" se lect="$Var ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'elem ent-name'] /@Value" / > CR LF   773     <xsl:var iable name ="VarTagPr operty" se lect="$Var ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'elem ent-name'] /@Value" / > CR LF
763     <xsl:var iable name ="VarTag"> CR LF   774     <xsl:var iable name ="VarTag"> CR LF
764      <xsl:ch oose> CR LF   775      <xsl:ch oose> CR LF
765       <xsl:w hen test=" string-len gth($VarTa gProperty)  &gt; 0"> CR LF   776       <xsl:w hen test=" string-len gth($VarTa gProperty)  &gt; 0"> CR LF
766        <xsl: value-of s elect="wws tring:CSSC lassName($ VarTagProp erty)"/> CR LF   777        <xsl: value-of s elect="wws tring:CSSC lassName($ VarTagProp erty)"/> CR LF
767       </xsl: when> CR LF   778       </xsl: when> CR LF
768   CR LF   779   CR LF
769       <xsl:o therwise> CR LF   780       <xsl:o therwise> CR LF
770        <xsl: choose> CR LF   781        <xsl: choose> CR LF
771         <xsl :when test ="string-l ength($Par amStyleNam e) &gt; 0" > CR LF   782         <xsl :when test ="string-l ength($Par amStyleNam e) &gt; 0" > CR LF
772          <xs l:value-of  select="w wstring:CS SClassName ($ParamSty leName)" / > CR LF   783          <xs l:value-of  select="w wstring:CS SClassName ($ParamSty leName)" / > CR LF
773         </xs l:when> CR LF   784         </xs l:when> CR LF
774         <xsl :otherwise > CR LF   785         <xsl :otherwise > CR LF
775          <xs l:value-of  select="' wp:wp'" /> CR LF   786          <xs l:value-of  select="' wp:wp'" /> CR LF
776         </xs l:otherwis e> CR LF   787         </xs l:otherwis e> CR LF
777        </xsl :choose> CR LF   788        </xsl :choose> CR LF
778       </xsl: otherwise> CR LF   789       </xsl: otherwise> CR LF
779      </xsl:c hoose> CR LF   790      </xsl:c hoose> CR LF
780     </xsl:va riable> CR LF   791     </xsl:va riable> CR LF
781   CR LF   792   CR LF
782     <!-- Use  character  styles? - -> CR LF   793     <!-- Use  character  styles? - -> CR LF
783     <!--                         - -> CR LF   794     <!--                         - -> CR LF
784     <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   795     <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
785     <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   796     <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
786   CR LF   797   CR LF
787     <!-- Pre serve empt y? --> CR LF   798     <!-- Pre serve empt y? --> CR LF
788     <!--                   --> CR LF   799     <!--                   --> CR LF
789     <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   800     <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
790     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF   801     <xsl:var iable name ="VarPrese rveEmpty"  select="(s tring-leng th($VarPre serveEmpty Option) =  0) or ($Va rPreserveE mptyOption  = 'true') " /> CR LF
791   CR LF   802   CR LF
792     <!-- Beg in paragra ph emit -- > CR LF   803     <!-- Beg in paragra ph emit -- > CR LF
793     <!--                        -- > CR LF   804     <!--                        -- > CR LF
794     <xsl:ele ment name= "{$VarTag} " namespac e="urn:Web Works-XMLX SL-Output- Schema"> CR LF   805     <xsl:ele ment name= "{$VarTag} " namespac e="urn:Web Works-XMLX SL-Output- Schema"> CR LF
795   CR LF   806   CR LF
796      <xsl:at tribute na me="wp:id" > CR LF   807      <xsl:at tribute na me="wp:id" > CR LF
797       <xsl:v alue-of se lect="$Par amParagrap h/@id" /> CR LF   808       <xsl:v alue-of se lect="$Par amParagrap h/@id" /> CR LF
798      </xsl:a ttribute> CR LF   809      </xsl:a ttribute> CR LF
799   CR LF   810   CR LF
800      <xsl:at tribute na me="wp:typ e"> CR LF   811      <xsl:at tribute na me="wp:typ e"> CR LF
801       <xsl:v alue-of se lect="'par a'" /> CR LF   812       <xsl:v alue-of se lect="'par a'" /> CR LF
802      </xsl:a ttribute> CR LF   813      </xsl:a ttribute> CR LF
803      <!-- Cl ass attrib ute --> CR LF   814      <!-- Cl ass attrib ute --> CR LF
804      <!--                   --> CR LF   815      <!--                   --> CR LF
805      <xsl:at tribute na me="wp:cla ss"> CR LF   816      <xsl:at tribute na me="wp:cla ss"> CR LF
806       <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" /> CR LF   817       <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" /> CR LF
807       <xsl:i f test="$V arIsNumber edParagrap h = true() "> CR LF   818       <xsl:i f test="$V arIsNumber edParagrap h = true() "> CR LF
808        <xsl: value-of s elect="'_o uter'" /> CR LF   819        <xsl: value-of s elect="'_o uter'" /> CR LF
809       </xsl: if> CR LF   820       </xsl: if> CR LF
810      </xsl:a ttribute> CR LF   821      </xsl:a ttribute> CR LF
811   CR LF   822   CR LF
812      <!-- St yle attrib ute --> CR LF   823      <!-- St yle attrib ute --> CR LF
813      <!--                   --> CR LF   824      <!--                   --> CR LF
814      <xsl:ch oose> CR LF   825      <xsl:ch oose> CR LF
815       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> CR LF   826       <xsl:w hen test=" $VarIsNumb eredParagr aph = true ()"> CR LF
816        <xsl: variable n ame="VarSt yleAttribu teOuter"> CR LF   827        <xsl: variable n ame="VarSt yleAttribu teOuter"> CR LF
817         <xsl :call-temp late name= "CSS-Inlin ePropertie sOuter"> CR LF   828         <xsl :call-temp late name= "CSS-Inlin ePropertie sOuter"> CR LF
818          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" /> CR LF   829          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" /> CR LF
819          <xs l:with-par am name="P aramContex tPropertie s" select= "$VarCSSCo ntextPrope rties" /> CR LF   830          <xs l:with-par am name="P aramContex tPropertie s" select= "$VarCSSCo ntextPrope rties" /> CR LF
820         </xs l:call-tem plate> CR LF   831         </xs l:call-tem plate> CR LF
821        </xsl :variable> CR LF   832        </xsl :variable> CR LF
822   CR LF   833   CR LF
823        <xsl: if test="s tring-leng th($VarSty leAttribut eOuter) &g t; 0"> CR LF   834        <xsl: if test="s tring-leng th($VarSty leAttribut eOuter) &g t; 0"> CR LF
824         <xsl :attribute  name="wp: style"> CR LF   835         <xsl :attribute  name="wp: style"> CR LF
825          <xs l:value-of  select="$ VarStyleAt tributeOut er" /> CR LF   836          <xs l:value-of  select="$ VarStyleAt tributeOut er" /> CR LF
826         </xs l:attribut e> CR LF   837         </xs l:attribut e> CR LF
827        </xsl :if> CR LF   838        </xsl :if> CR LF
828       </xsl: when> CR LF   839       </xsl: when> CR LF
829   CR LF   840   CR LF
830       <xsl:o therwise> CR LF   841       <xsl:o therwise> CR LF
831        <xsl: variable n ame="VarSt yleAttribu te"> CR LF   842        <xsl: variable n ame="VarSt yleAttribu te"> CR LF
832         <xsl :call-temp late name= "CSS-Inlin ePropertie s"> CR LF   843         <xsl :call-temp late name= "CSS-Inlin ePropertie s"> CR LF
833          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" /> CR LF   844          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" /> CR LF
834         </xs l:call-tem plate> CR LF   845         </xs l:call-tem plate> CR LF
835        </xsl :variable> CR LF   846        </xsl :variable> CR LF
836   CR LF   847   CR LF
837        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" > CR LF   848        <xsl: if test="s tring-leng th($VarSty leAttribut e) &gt; 0" > CR LF
838         <xsl :attribute  name="wp: style"> CR LF   849         <xsl :attribute  name="wp: style"> CR LF
839          <xs l:value-of  select="$ VarStyleAt tribute" / > CR LF   850          <xs l:value-of  select="$ VarStyleAt tribute" / > CR LF
840         </xs l:attribut e> CR LF   851         </xs l:attribut e> CR LF
841        </xsl :if> CR LF   852        </xsl :if> CR LF
842       </xsl: otherwise> CR LF   853       </xsl: otherwise> CR LF
843      </xsl:c hoose> CR LF   854      </xsl:c hoose> CR LF
844   CR LF   855   CR LF
845      <!-- Dr opdown --> CR LF   856      <!-- Dr opdown --> CR LF
846      <!--           --> CR LF   857      <!--           --> CR LF
847      <xsl:if  test="($P aramParagr aphBehavio r/@dropdow n = 'start -open') or  ($ParamPa ragraphBeh avior/@dro pdown = 's tart-close d')"> CR LF   858      <xsl:if  test="($P aramParagr aphBehavio r/@dropdow n = 'start -open') or  ($ParamPa ragraphBeh avior/@dro pdown = 's tart-close d')"> CR LF
848       <xsl:a ttribute n ame="wp:on click"> CR LF   859       <xsl:a ttribute n ame="wp:on click"> CR LF
849        <xsl: value-of s elect="con cat('WebWo rks_Toggle DIV(WebWor ksRootPath , &quot;ww dd', $Para mParagraph /@id, '&qu ot;);')" / > CR LF   860        <xsl: value-of s elect="con cat('WebWo rks_Toggle DIV(WebWor ksRootPath , &quot;ww dd', $Para mParagraph /@id, '&qu ot;);')" / > CR LF
850       </xsl: attribute> CR LF   861       </xsl: attribute> CR LF
851      </xsl:i f> CR LF   862      </xsl:i f> CR LF
852   CR LF   863   CR LF
853      <!-- Us e numberin g? --> CR LF   864      <!-- Us e numberin g? --> CR LF
854      <!--                  --> CR LF   865      <!--                  --> CR LF
855      <xsl:ch oose> CR LF   866      <xsl:ch oose> CR LF
856       <!-- U se Number  --> CR LF   867       <!-- U se Number  --> CR LF
857       <!--              --> CR LF   868       <!--              --> CR LF
858       <xsl:w hen test=" $VarUseNum bering"> CR LF   869       <xsl:w hen test=" $VarUseNum bering"> CR LF
859        <xsl: choose> CR LF   870        <xsl: choose> CR LF
860         <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) "> CR LF   871         <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) "> CR LF
861          <xs l:choose> CR LF   872          <xs l:choose> CR LF
862           <x sl:when te st="$VarTe xtIndentLe ssThanZero "> CR LF   873           <x sl:when te st="$VarTe xtIndentLe ssThanZero "> CR LF
863   CR LF   874   CR LF
864            < wp:table b order="0"  cellspacin g="0" cell padding="0 " summary= ""> CR LF   875            < wp:table b order="0"  cellspacin g="0" cell padding="0 " summary= ""> CR LF
865              <wp:tr sty le="vertic al-align:  baseline;" > CR LF   876              <wp:tr sty le="vertic al-align:  baseline;" > CR LF
866               <wp:td> CR LF   877               <wp:td> CR LF
867                <!-- Emi t number w ith inner  class and  specific n umber styl e attribut e --> CR LF   878                <!-- Emi t number w ith inner  class and  specific n umber styl e attribut e --> CR LF
868                <!--                                                                         --> CR LF   879                <!--                                                                         --> CR LF
869                <wp:wp> CR LF   880                <wp:wp> CR LF
870                 <xsl:at tribute na me="wp:typ e"> CR LF   881                 <xsl:at tribute na me="wp:typ e"> CR LF
871                  <xsl:v alue-of se lect="'par a'" /> CR LF   882                  <xsl:v alue-of se lect="'par a'" /> CR LF
872                 </xsl:a ttribute> CR LF   883                 </xsl:a ttribute> CR LF
873   CR LF   884   CR LF
874                 <xsl:at tribute na me="wp:cla ss"> CR LF   885                 <xsl:at tribute na me="wp:cla ss"> CR LF
875                  <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" /> CR LF   886                  <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" /> CR LF
876                  <xsl:t ext>_inner </xsl:text > CR LF   887                  <xsl:t ext>_inner </xsl:text > CR LF
877                 </xsl:a ttribute> CR LF   888                 </xsl:a ttribute> CR LF
878   CR LF   889   CR LF
879                 <xsl:va riable nam e="VarText IndentNumb erAsUnits"  select="w wunits:Num ericPrefix ($VarTextI ndent)" /> CR LF   890                 <xsl:va riable nam e="VarText IndentNumb erAsUnits"  select="w wunits:Num ericPrefix ($VarTextI ndent)" /> CR LF
880                 <xsl:va riable nam e="VarText IndentUnit s" select= "wwunits:U nitsSuffix ($VarTextI ndent)" /> CR LF   891                 <xsl:va riable nam e="VarText IndentUnit s" select= "wwunits:U nitsSuffix ($VarTextI ndent)" /> CR LF
881   CR LF   892   CR LF
882                 <xsl:at tribute na me="wp:sty le"> CR LF   893                 <xsl:at tribute na me="wp:sty le"> CR LF
883                  <xsl:v alue-of se lect="conc at('width:  ', 0 - $V arTextInde ntNumberAs Units, $Va rTextInden tUnits, ';  white-spa ce: nowrap ;')" /> CR LF   894                  <xsl:v alue-of se lect="conc at('width:  ', 0 - $V arTextInde ntNumberAs Units, $Va rTextInden tUnits, ';  white-spa ce: nowrap ;')" /> CR LF
884                  <xsl:c all-templa te name="C SS-InlineP ropertiesI nnerNumber "> CR LF   895                  <xsl:c all-templa te name="C SS-InlineP ropertiesI nnerNumber "> CR LF
885                   <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties"  /> CR LF   896                   <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties"  /> CR LF
886                  </xsl: call-templ ate> CR LF   897                  </xsl: call-templ ate> CR LF
887                 </xsl:a ttribute> CR LF   898                 </xsl:a ttribute> CR LF
888   CR LF   899   CR LF
889                 <xsl:ca ll-templat e name="Nu mber"> CR LF   900                 <xsl:ca ll-templat e name="Nu mber"> CR LF
890                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   901                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
891                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   902                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
892                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   903                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
893                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   904                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
894                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" /> CR LF   905                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" /> CR LF
895                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" /> CR LF   906                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" /> CR LF
896                  <xsl:w ith-param  name="Para mIgnoreDoc umentNumbe r" select= "$VarIgnor eDocumentN umber" /> CR LF   907                  <xsl:w ith-param  name="Para mIgnoreDoc umentNumbe r" select= "$VarIgnor eDocumentN umber" /> CR LF
897                  <xsl:w ith-param  name="Para mCharacter " select=" $VarBullet Character"  /> CR LF   908                  <xsl:w ith-param  name="Para mCharacter " select=" $VarBullet Character"  /> CR LF
898                  <xsl:w ith-param  name="Para mImage" se lect="$Var BulletImag e" /> CR LF   909                  <xsl:w ith-param  name="Para mImage" se lect="$Var BulletImag e" /> CR LF
899                  <xsl:w ith-param  name="Para mSeparator " select=" $VarBullet Separator"  /> CR LF   910                  <xsl:w ith-param  name="Para mSeparator " select=" $VarBullet Separator"  /> CR LF
900                  <xsl:w ith-param  name="Para mStyle" se lect="$Var BulletStyl e" /> CR LF   911                  <xsl:w ith-param  name="Para mStyle" se lect="$Var BulletStyl e" /> CR LF
901                 </xsl:c all-templa te> CR LF   912                 </xsl:c all-templa te> CR LF
902                </wp:wp> CR LF   913                </wp:wp> CR LF
903               </wp:td> CR LF   914               </wp:td> CR LF
904   CR LF   915   CR LF
905               <!-- Forc e second c ell to hon or first c ell width  --> CR LF   916               <!-- Forc e second c ell to hon or first c ell width  --> CR LF
906               <!--                                                  --> CR LF   917               <!--                                                  --> CR LF
907               <wp:td wi dth="100%" > CR LF   918               <wp:td wi dth="100%" > CR LF
908                <xsl:var iable name ="VarStyle AttributeI nnerConten t"> CR LF   919                <xsl:var iable name ="VarStyle AttributeI nnerConten t"> CR LF
909                 <xsl:ca ll-templat e name="CS S-InlinePr opertiesIn nerContent "> CR LF   920                 <xsl:ca ll-templat e name="CS S-InlinePr opertiesIn nerContent "> CR LF
910                  <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties"  /> CR LF   921                  <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties"  /> CR LF
911                 </xsl:c all-templa te> CR LF   922                 </xsl:c all-templa te> CR LF
912                </xsl:va riable> CR LF   923                </xsl:va riable> CR LF
913   CR LF   924   CR LF
914                <!-- Emi t content  --> CR LF   925                <!-- Emi t content  --> CR LF
915                <!--                --> CR LF   926                <!--                --> CR LF
916                <wp:wp> CR LF   927                <wp:wp> CR LF
917                 <xsl:at tribute na me="wp:typ e"> CR LF   928                 <xsl:at tribute na me="wp:typ e"> CR LF
918                  <xsl:v alue-of se lect="'par a'" /> CR LF   929                  <xsl:v alue-of se lect="'par a'" /> CR LF
919                 </xsl:a ttribute> CR LF   930                 </xsl:a ttribute> CR LF
920   CR LF   931   CR LF
921                 <xsl:at tribute na me="wp:cla ss"> CR LF   932                 <xsl:at tribute na me="wp:cla ss"> CR LF
922                  <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" /> CR LF   933                  <xsl:v alue-of se lect="wwst ring:CSSCl assName($P aramStyleN ame)" /> CR LF
923                  <xsl:t ext>_inner </xsl:text > CR LF   934                  <xsl:t ext>_inner </xsl:text > CR LF
924                 </xsl:a ttribute> CR LF   935                 </xsl:a ttribute> CR LF
925                 <xsl:if  test="str ing-length ($VarStyle AttributeI nnerConten t) &gt; 0" > CR LF   936                 <xsl:if  test="str ing-length ($VarStyle AttributeI nnerConten t) &gt; 0" > CR LF
926                  <xsl:a ttribute n ame="wp:st yle"> CR LF   937                  <xsl:a ttribute n ame="wp:st yle"> CR LF
927                   <xsl: value-of s elect="$Va rStyleAttr ibuteInner Content" / > CR LF   938                   <xsl: value-of s elect="$Va rStyleAttr ibuteInner Content" / > CR LF
928                  </xsl: attribute> CR LF   939                  </xsl: attribute> CR LF
929                 </xsl:i f> CR LF   940                 </xsl:i f> CR LF
930   CR LF   941   CR LF
931                 <!-- Te xt Runs -- > CR LF   942                 <!-- Te xt Runs -- > CR LF
932                 <!--            -- > CR LF   943                 <!--            -- > CR LF
933                 <xsl:ca ll-templat e name="Pa ragraphTex tRuns"> CR LF   944                 <xsl:ca ll-templat e name="Pa ragraphTex tRuns"> CR LF
934                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   945                  <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
935                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   946                  <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
936                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   947                  <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
937                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   948                  <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
938                  <xsl:w ith-param  name="Para mPreserveE mpty" sele ct="$VarPr eserveEmpt y" /> CR LF   949                  <xsl:w ith-param  name="Para mPreserveE mpty" sele ct="$VarPr eserveEmpt y" /> CR LF
939                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" /> CR LF   950                  <xsl:w ith-param  name="Para mUseCharac terStyles"  select="$ VarUseChar acterStyle s" /> CR LF
940                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" /> CR LF   951                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" /> CR LF
941                 </xsl:c all-templa te> CR LF   952                 </xsl:c all-templa te> CR LF
942   CR LF   953   CR LF
943                 <!-- Dr opdown Arr ow --> CR LF   954                 <!-- Dr opdown Arr ow --> CR LF
944                 <!--                  --> CR LF   955                 <!--                  --> CR LF
945                 <xsl:ca ll-templat e name="Dr opDownArro w"> CR LF   956                 <xsl:ca ll-templat e name="Dr opDownArro w"> CR LF
946                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" /> CR LF   957                  <xsl:w ith-param  name="Para mParagraph " select=" $ParamPara graph" /> CR LF
947                  <xsl:w ith-param  name="Para mParagraph Behavior"  select="$P aramParagr aphBehavio r" /> CR LF   958                  <xsl:w ith-param  name="Para mParagraph Behavior"  select="$P aramParagr aphBehavio r" /> CR LF
948                  <xsl:w ith-param  name="Para mRelativeR oot" selec t="$ParamR elativeRoo t" /> CR LF   959                  <xsl:w ith-param  name="Para mRelativeR oot" selec t="$ParamR elativeRoo t" /> CR LF
949                 </xsl:c all-templa te> CR LF   960                 </xsl:c all-templa te> CR LF
950                </wp:wp> CR LF   961                </wp:wp> CR LF
951               </wp:td> CR LF   962               </wp:td> CR LF
952              </wp:tr> CR LF   963              </wp:tr> CR LF
953            < /wp:table> CR LF   964            < /wp:table> CR LF
954           </ xsl:when> CR LF   965           </ xsl:when> CR LF
955   CR LF   966   CR LF
956           <x sl:otherwi se> CR LF   967           <x sl:otherwi se> CR LF
957            < xsl:call-t emplate na me="Number "> CR LF   968            < xsl:call-t emplate na me="Number "> CR LF
958              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF   969              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF
959              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF   970              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF
960              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF   971              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF
961              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF   972              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF
962              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF   973              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF
963              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > CR LF   974              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > CR LF
964              <xsl:with- param name ="ParamIgn oreDocumen tNumber" s elect="$Va rIgnoreDoc umentNumbe r" /> CR LF   975              <xsl:with- param name ="ParamIgn oreDocumen tNumber" s elect="$Va rIgnoreDoc umentNumbe r" /> CR LF
965              <xsl:with- param name ="ParamCha racter" se lect="$Var BulletChar acter" /> CR LF   976              <xsl:with- param name ="ParamCha racter" se lect="$Var BulletChar acter" /> CR LF
966              <xsl:with- param name ="ParamIma ge" select ="$VarBull etImage" / > CR LF   977              <xsl:with- param name ="ParamIma ge" select ="$VarBull etImage" / > CR LF
967              <xsl:with- param name ="ParamSep arator" se lect="$Var BulletSepa rator" /> CR LF   978              <xsl:with- param name ="ParamSep arator" se lect="$Var BulletSepa rator" /> CR LF
968              <xsl:with- param name ="ParamSty le" select ="$VarBull etStyle" / > CR LF   979              <xsl:with- param name ="ParamSty le" select ="$VarBull etStyle" / > CR LF
969            < /xsl:call- template> CR LF   980            < /xsl:call- template> CR LF
970   CR LF   981   CR LF
971            < !-- Text R uns --> CR LF   982            < !-- Text R uns --> CR LF
972            < !--            --> CR LF   983            < !--            --> CR LF
973            < xsl:call-t emplate na me="Paragr aphTextRun s"> CR LF   984            < xsl:call-t emplate na me="Paragr aphTextRun s"> CR LF
974              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF   985              <xsl:with- param name ="ParamSpl its" selec t="$ParamS plits" /> CR LF
975              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF   986              <xsl:with- param name ="ParamCar go" select ="$ParamCa rgo" /> CR LF
976              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF   987              <xsl:with- param name ="ParamLin ks" select ="$ParamLi nks" /> CR LF
977              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF   988              <xsl:with- param name ="ParamSpl it" select ="$ParamSp lit" /> CR LF
978              <xsl:with- param name ="ParamPre serveEmpty " select=" $VarPreser veEmpty" / > CR LF   989              <xsl:with- param name ="ParamPre serveEmpty " select=" $VarPreser veEmpty" / > CR LF
979              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > CR LF   990              <xsl:with- param name ="ParamUse CharacterS tyles" sel ect="$VarU seCharacte rStyles" / > CR LF
980              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF   991              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF
981            < /xsl:call- template> CR LF   992            < /xsl:call- template> CR LF
982   CR LF   993   CR LF
983            < !-- Dropdo wn Arrow - -> CR LF   994            < !-- Dropdo wn Arrow - -> CR LF
984            < !--                 - -> CR LF   995            < !--                 - -> CR LF
985            < xsl:call-t emplate na me="DropDo wnArrow"> CR LF   996            < xsl:call-t emplate na me="DropDo wnArrow"> CR LF
986              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF   997              <xsl:with- param name ="ParamPar agraph" se lect="$Par amParagrap h" /> CR LF
987              <xsl:with- param name ="ParamPar agraphBeha vior" sele ct="$Param ParagraphB ehavior" / > CR LF   998              <xsl:with- param name ="ParamPar agraphBeha vior" sele ct="$Param ParagraphB ehavior" / > CR LF
988              <xsl:with- param name ="ParamRel ativeRoot"  select="$ ParamRelat iveRoot" / > CR LF   999              <xsl:with- param name ="ParamRel ativeRoot"  select="$ ParamRelat iveRoot" / > CR LF
989            < /xsl:call- template> CR LF   1000            < /xsl:call- template> CR LF
990           </ xsl:otherw ise> CR LF   1001           </ xsl:otherw ise> CR LF
991          </x sl:choose> CR LF   1002          </x sl:choose> CR LF
992         </xs l:when> CR LF   1003         </xs l:when> CR LF
993   CR LF   1004   CR LF
994         <xsl :otherwise > CR LF   1005         <xsl :otherwise > CR LF
995          <!- - Text Run s --> CR LF   1006          <!- - Text Run s --> CR LF
996          <!- -            --> CR LF   1007          <!- -            --> CR LF
997          <xs l:call-tem plate name ="Paragrap hTextRuns" > CR LF   1008          <xs l:call-tem plate name ="Paragrap hTextRuns" > CR LF
998           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   1009           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
999           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF   1010           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF
1000           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   1011           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
1001           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   1012           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
1002           <x sl:with-pa ram name=" ParamPrese rveEmpty"  select="$V arPreserve Empty" /> CR LF   1013           <x sl:with-pa ram name=" ParamPrese rveEmpty"  select="$V arPreserve Empty" /> CR LF
1003           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$VarUse CharacterS tyles" /> CR LF   1014           <x sl:with-pa ram name=" ParamUseCh aracterSty les" selec t="$VarUse CharacterS tyles" /> CR LF
1004           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param Paragraph"  /> CR LF   1015           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param Paragraph"  /> CR LF
1005          </x sl:call-te mplate> CR LF   1016          </x sl:call-te mplate> CR LF
1006   CR LF   1017   CR LF
1007          <!- - Dropdown  Arrow --> CR LF   1018          <!- - Dropdown  Arrow --> CR LF
1008          <!- -                 --> CR LF   1019          <!- -                 --> CR LF
1009          <xs l:call-tem plate name ="DropDown Arrow"> CR LF   1020          <xs l:call-tem plate name ="DropDown Arrow"> CR LF
1010           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param Paragraph"  /> CR LF   1021           <x sl:with-pa ram name=" ParamParag raph" sele ct="$Param Paragraph"  /> CR LF
1011           <x sl:with-pa ram name=" ParamParag raphBehavi or" select ="$ParamPa ragraphBeh avior" /> CR LF   1022           <x sl:with-pa ram name=" ParamParag raphBehavi or" select ="$ParamPa ragraphBeh avior" /> CR LF
1012           <x sl:with-pa ram name=" ParamRelat iveRoot" s elect="$Pa ramRelativ eRoot" /> CR LF   1023           <x sl:with-pa ram name=" ParamRelat iveRoot" s elect="$Pa ramRelativ eRoot" /> CR LF
1013          </x sl:call-te mplate> CR LF   1024          </x sl:call-te mplate> CR LF
1014         </xs l:otherwis e> CR LF   1025         </xs l:otherwis e> CR LF
1015        </xsl :choose> CR LF   1026        </xsl :choose> CR LF
1016       </xsl: when> CR LF   1027       </xsl: when> CR LF
1017   CR LF   1028   CR LF
1018       <!-- S kip Number  --> CR LF   1029       <!-- S kip Number  --> CR LF
1019       <!--               --> CR LF   1030       <!--               --> CR LF
1020       <xsl:o therwise> CR LF   1031       <xsl:o therwise> CR LF
1021        <!--  Text Runs  --> CR LF   1032        <!--  Text Runs  --> CR LF
1022        <!--             --> CR LF   1033        <!--             --> CR LF
1023        <xsl: call-templ ate name=" ParagraphT extRuns"> CR LF   1034        <xsl: call-templ ate name=" ParagraphT extRuns"> CR LF
1024         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1035         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1025         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1036         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1026         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1037         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1027         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1038         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1028         <xsl :with-para m name="Pa ramPreserv eEmpty" se lect="$Var PreserveEm pty" /> CR LF   1039         <xsl :with-para m name="Pa ramPreserv eEmpty" se lect="$Var PreserveEm pty" /> CR LF
1029         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$VarUseCh aracterSty les" /> CR LF   1040         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$VarUseCh aracterSty les" /> CR LF
1030         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF   1041         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF
1031        </xsl :call-temp late> CR LF   1042        </xsl :call-temp late> CR LF
1032   CR LF   1043   CR LF
1033        <!--  Dropdown A rrow --> CR LF   1044        <!--  Dropdown A rrow --> CR LF
1034        <!--                  --> CR LF   1045        <!--                  --> CR LF
1035        <xsl: call-templ ate name=" DropDownAr row"> CR LF   1046        <xsl: call-templ ate name=" DropDownAr row"> CR LF
1036         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF   1047         <xsl :with-para m name="Pa ramParagra ph" select ="$ParamPa ragraph" / > CR LF
1037         <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" /> CR LF   1048         <xsl :with-para m name="Pa ramParagra phBehavior " select=" $ParamPara graphBehav ior" /> CR LF
1038         <xsl :with-para m name="Pa ramRelativ eRoot" sel ect="$Para mRelativeR oot" /> CR LF   1049         <xsl :with-para m name="Pa ramRelativ eRoot" sel ect="$Para mRelativeR oot" /> CR LF
1039        </xsl :call-temp late> CR LF   1050        </xsl :call-temp late> CR LF
1040       </xsl: otherwise> CR LF   1051       </xsl: otherwise> CR LF
1041      </xsl:c hoose> CR LF   1052      </xsl:c hoose> CR LF
1042   CR LF   1053   CR LF
1043     <!-- End  paragraph  emit --> CR LF   1054     <!-- End  paragraph  emit --> CR LF
1044     <!--                      --> CR LF   1055     <!--                      --> CR LF
1045     </xsl:el ement> CR LF   1056     </xsl:el ement> CR LF
1046   CR LF   1057   CR LF
1047     <!-- Dro pdown Star t --> CR LF   1058     <!-- Dro pdown Star t --> CR LF
1048     <!--                  --> CR LF   1059     <!--                  --> CR LF
1049     <xsl:if  test="($Pa ramParagra phBehavior /@dropdown  = 'start- open') or  ($ParamPar agraphBeha vior/@drop down = 'st art-closed ')"> CR LF   1060     <xsl:if  test="($Pa ramParagra phBehavior /@dropdown  = 'start- open') or  ($ParamPar agraphBeha vior/@drop down = 'st art-closed ')"> CR LF
1050      <xsl:co mment> CR LF   1061      <xsl:co mment> CR LF
1051       DropDo wn Start O pen CR LF   1062       DropDo wn Start O pen CR LF
1052      </xsl:c omment> CR LF   1063      </xsl:c omment> CR LF
1053      <xsl:va riable nam e="VarDivS tyle"> CR LF   1064      <xsl:va riable nam e="VarDivS tyle"> CR LF
1054       <xsl:c hoose> CR LF   1065       <xsl:c hoose> CR LF
1055        <xsl: when test= "$ParamPar agraphBeha vior/@drop down = 'st art-open'" > CR LF   1066        <xsl: when test= "$ParamPar agraphBeha vior/@drop down = 'st art-open'" > CR LF
1056         <xsl :value-of  select="'v isibility:  visible;  display: b lock;'" /> CR LF   1067         <xsl :value-of  select="'v isibility:  visible;  display: b lock;'" /> CR LF
1057        </xsl :when> CR LF   1068        </xsl :when> CR LF
1058        <xsl: otherwise> CR LF   1069        <xsl: otherwise> CR LF
1059         <xsl :value-of  select="'v isibility:  hidden; d isplay: no ne;'" /> CR LF   1070         <xsl :value-of  select="'v isibility:  hidden; d isplay: no ne;'" /> CR LF
1060        </xsl :otherwise > CR LF   1071        </xsl :otherwise > CR LF
1061       </xsl: choose> CR LF   1072       </xsl: choose> CR LF
1062      </xsl:v ariable> CR LF   1073      </xsl:v ariable> CR LF
1063      <wwexsl doc:Text d isable-out put-escapi ng="yes">& lt;wp:wp w p:type=&qu ot;para&qu ot; wp:id= &quot;</ww exsldoc:Te xt> CR LF   1074      <wwexsl doc:Text d isable-out put-escapi ng="yes">& lt;wp:wp w p:type=&qu ot;para&qu ot; wp:id= &quot;</ww exsldoc:Te xt> CR LF
1064      <xsl:va lue-of sel ect="conca t('wwdd',  $ParamPara graph/@id) " /> CR LF   1075      <xsl:va lue-of sel ect="conca t('wwdd',  $ParamPara graph/@id) " /> CR LF
1065      <wwexsl doc:Text d isable-out put-escapi ng="yes">& quot; wp:s tyle=&quot ;</wwexsld oc:Text> CR LF   1076      <wwexsl doc:Text d isable-out put-escapi ng="yes">& quot; wp:s tyle=&quot ;</wwexsld oc:Text> CR LF
1066      <xsl:va lue-of sel ect="$VarD ivStyle"/> CR LF   1077      <xsl:va lue-of sel ect="$VarD ivStyle"/> CR LF
1067      <wwexsl doc:Text d isable-out put-escapi ng="yes">& quot;&gt;< /wwexsldoc :Text> CR LF   1078      <wwexsl doc:Text d isable-out put-escapi ng="yes">& quot;&gt;< /wwexsldoc :Text> CR LF
1068      <xsl:co mment> CR LF   1079      <xsl:co mment> CR LF
1069       DropDo wn Start C lose CR LF   1080       DropDo wn Start C lose CR LF
1070      </xsl:c omment> CR LF   1081      </xsl:c omment> CR LF
1071     </xsl:if > CR LF   1082     </xsl:if > CR LF
1072   CR LF   1083   CR LF
1073     <!-- Dro pdown End  --> CR LF   1084     <!-- Dro pdown End  --> CR LF
1074     <!--                --> CR LF   1085     <!--                --> CR LF
1075     <xsl:if  test="$Par amParagrap hBehavior/ @dropdown  = 'end'"> CR LF   1086     <xsl:if  test="$Par amParagrap hBehavior/ @dropdown  = 'end'"> CR LF
1076      <xsl:co mment> CR LF   1087      <xsl:co mment> CR LF
1077       DropDo wn End Ope n CR LF   1088       DropDo wn End Ope n CR LF
1078      </xsl:c omment> CR LF   1089      </xsl:c omment> CR LF
1079      <wwexsl doc:Text d isable-out put-escapi ng="yes">& lt;/wp:wp& gt;</wwexs ldoc:Text> CR LF   1090      <wwexsl doc:Text d isable-out put-escapi ng="yes">& lt;/wp:wp& gt;</wwexs ldoc:Text> CR LF
1080      <xsl:co mment> CR LF   1091      <xsl:co mment> CR LF
1081       DropDo wn End Clo se CR LF   1092       DropDo wn End Clo se CR LF
1082      </xsl:c omment> CR LF   1093      </xsl:c omment> CR LF
1083     </xsl:if > CR LF   1094     </xsl:if > CR LF
1084    </xsl:tem plate> CR LF   1095    </xsl:tem plate> CR LF
1085   CR LF   1096   CR LF
1086   CR LF   1097   CR LF
1087    <xsl:temp late name= "DropDownA rrow"> CR LF   1098    <xsl:temp late name= "DropDownA rrow"> CR LF
1088     <xsl:par am name="P aramParagr aph" /> CR LF   1099     <xsl:par am name="P aramParagr aph" /> CR LF
1089     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF   1100     <xsl:par am name="P aramParagr aphBehavio r" /> CR LF
1090     <xsl:par am name="P aramRelati veRoot" /> CR LF   1101     <xsl:par am name="P aramRelati veRoot" /> CR LF
1091   CR LF   1102   CR LF
1092     <!-- Dro pdown Arro w --> CR LF   1103     <!-- Dro pdown Arro w --> CR LF
1093     <!--                  --> CR LF   1104     <!--                  --> CR LF
1094     <xsl:if  test="($Pa ramParagra phBehavior /@dropdown  = 'start- open') or  ($ParamPar agraphBeha vior/@drop down = 'st art-closed ')"> CR LF   1105     <xsl:if  test="($Pa ramParagra phBehavior /@dropdown  = 'start- open') or  ($ParamPar agraphBeha vior/@drop down = 'st art-closed ')"> CR LF
1095      <xsl:te xt> </xsl: text> CR LF   1106      <xsl:te xt> </xsl: text> CR LF
1096      <xsl:va riable nam e="VarHREF "> CR LF   1107      <xsl:va riable nam e="VarHREF "> CR LF
1097       <xsl:v alue-of se lect="'jav ascript: W ebWorks_To ggleDIV('" /> CR LF   1108       <xsl:v alue-of se lect="'jav ascript: W ebWorks_To ggleDIV('" /> CR LF
1098       <xsl:t ext>'</xsl :text> CR LF   1109       <xsl:t ext>'</xsl :text> CR LF
1099       <xsl:v alue-of se lect="conc at('wwdd',  $ParamPar agraph/@id )" /> CR LF   1110       <xsl:v alue-of se lect="conc at('wwdd',  $ParamPar agraph/@id )" /> CR LF
1100       <xsl:t ext>'</xsl :text> CR LF   1111       <xsl:t ext>'</xsl :text> CR LF
1101       <xsl:v alue-of se lect="');' " /> CR LF   1112       <xsl:v alue-of se lect="');' " /> CR LF
1102      </xsl:v ariable> CR LF   1113      </xsl:v ariable> CR LF
1103      <wp:Got oLink wp:h ref="{$Var HREF}"> CR LF   1114      <wp:Got oLink wp:h ref="{$Var HREF}"> CR LF
1104       <xsl:v ariable na me="VarDro pDownImage Src"> CR LF   1115       <xsl:v ariable na me="VarDro pDownImage Src"> CR LF
1105        <xsl: choose> CR LF   1116        <xsl: choose> CR LF
1106         <xsl :when test ="$ParamPa ragraphBeh avior/@dro pdown = 's tart-open' "> CR LF   1117         <xsl :when test ="$ParamPa ragraphBeh avior/@dro pdown = 's tart-open' "> CR LF
1107          <xs l:value-of  select="c oncat($Par amRelative Root, 'ima ges/expand ed.gif')"  /> CR LF   1118          <xs l:value-of  select="c oncat($Par amRelative Root, 'ima ges/expand ed.gif')"  /> CR LF
1108         </xs l:when> CR LF   1119         </xs l:when> CR LF
1109         <xsl :otherwise > CR LF   1120         <xsl :otherwise > CR LF
1110          <xs l:value-of  select="c oncat($Par amRelative Root, 'ima ges/collap se.gif')"  /> CR LF   1121          <xs l:value-of  select="c oncat($Par amRelative Root, 'ima ges/collap se.gif')"  /> CR LF
1111         </xs l:otherwis e> CR LF   1122         </xs l:otherwis e> CR LF
1112        </xsl :choose> CR LF   1123        </xsl :choose> CR LF
1113       </xsl: variable> CR LF   1124       </xsl: variable> CR LF
1114        <wp:w p wp:type= "image" wp :width="8"  wp:height ="6"> CR LF   1125        <wp:w p wp:type= "image" wp :width="8"  wp:height ="6"> CR LF
1115         <xsl :attribute  name="wp: id"> CR LF   1126         <xsl :attribute  name="wp: id"> CR LF
1116          <xs l:value-of  select="c oncat('wwd d', $Param Paragraph/ @id, '_arr ow')" /> CR LF   1127          <xs l:value-of  select="c oncat('wwd d', $Param Paragraph/ @id, '_arr ow')" /> CR LF
1117         </xs l:attribut e> CR LF   1128         </xs l:attribut e> CR LF
1118         <xsl :attribute  name="wp: src"> CR LF   1129         <xsl :attribute  name="wp: src"> CR LF
1119          <xs l:value-of  select="$ VarDropDow nImageSrc"  /> CR LF   1130          <xs l:value-of  select="$ VarDropDow nImageSrc"  /> CR LF
1120         </xs l:attribut e> CR LF   1131         </xs l:attribut e> CR LF
1121         <xsl :attribute  name="wp: border"> CR LF   1132         <xsl :attribute  name="wp: border"> CR LF
1122          <xs l:value-of  select="' 0'" /> CR LF   1133          <xs l:value-of  select="' 0'" /> CR LF
1123         </xs l:attribut e> CR LF   1134         </xs l:attribut e> CR LF
1124        </wp: wp> CR LF   1135        </wp: wp> CR LF
1125      </wp:Go toLink> CR LF   1136      </wp:Go toLink> CR LF
1126     </xsl:if > CR LF   1137     </xsl:if > CR LF
1127    </xsl:tem plate> CR LF   1138    </xsl:tem plate> CR LF
1128   CR LF   1139   CR LF
1129   CR LF   1140   CR LF
1130    <xsl:temp late name= "Number"> CR LF   1141    <xsl:temp late name= "Number"> CR LF
1131     <xsl:par am name="P aramSplits " /> CR LF   1142     <xsl:par am name="P aramSplits " /> CR LF
1132     <xsl:par am name="P aramCargo"  /> CR LF   1143     <xsl:par am name="P aramCargo"  /> CR LF
1133     <xsl:par am name="P aramLinks"  /> CR LF   1144     <xsl:par am name="P aramLinks"  /> CR LF
1134     <xsl:par am name="P aramSplit"  /> CR LF   1145     <xsl:par am name="P aramSplit"  /> CR LF
1135     <xsl:par am name="P aramParagr aph" /> CR LF   1146     <xsl:par am name="P aramParagr aph" /> CR LF
1136     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1147     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1137     <xsl:par am name="P aramIgnore DocumentNu mber" /> CR LF   1148     <xsl:par am name="P aramIgnore DocumentNu mber" /> CR LF
1138     <xsl:par am name="P aramCharac ter" /> CR LF   1149     <xsl:par am name="P aramCharac ter" /> CR LF
1139     <xsl:par am name="P aramImage"  /> CR LF   1150     <xsl:par am name="P aramImage"  /> CR LF
1140     <xsl:par am name="P aramSepara tor" /> CR LF   1151     <xsl:par am name="P aramSepara tor" /> CR LF
1141     <xsl:par am name="P aramStyle"  /> CR LF   1152     <xsl:par am name="P aramStyle"  /> CR LF
1142   CR LF   1153   CR LF
1143     <xsl:cho ose> CR LF   1154     <xsl:cho ose> CR LF
1144      <xsl:wh en test="$ ParamIgnor eDocumentN umber"> CR LF   1155      <xsl:wh en test="$ ParamIgnor eDocumentN umber"> CR LF
1145       <xsl:c all-templa te name="C ontent-Bul let"> CR LF   1156       <xsl:c all-templa te name="C ontent-Bul let"> CR LF
1146        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1157        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1147        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1158        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1148        <xsl: with-param  name="Par amParagrap h" select= "$ParamPar agraph" /> CR LF   1159        <xsl: with-param  name="Par amParagrap h" select= "$ParamPar agraph" /> CR LF
1149        <xsl: with-param  name="Par amCharacte r" select= "$ParamCha racter" /> CR LF   1160        <xsl: with-param  name="Par amCharacte r" select= "$ParamCha racter" /> CR LF
1150        <xsl: with-param  name="Par amImage" s elect="$Pa ramImage"  /> CR LF   1161        <xsl: with-param  name="Par amImage" s elect="$Pa ramImage"  /> CR LF
1151        <xsl: with-param  name="Par amSeparato r" select= "$ParamSep arator" /> CR LF   1162        <xsl: with-param  name="Par amSeparato r" select= "$ParamSep arator" /> CR LF
1152        <xsl: with-param  name="Par amStyle" s elect="$Pa ramStyle"  /> CR LF   1163        <xsl: with-param  name="Par amStyle" s elect="$Pa ramStyle"  /> CR LF
1153       </xsl: call-templ ate> CR LF   1164       </xsl: call-templ ate> CR LF
1154      </xsl:w hen> CR LF   1165      </xsl:w hen> CR LF
1155   CR LF   1166   CR LF
1156      <xsl:ot herwise> CR LF   1167      <xsl:ot herwise> CR LF
1157       <xsl:v ariable na me="VarBul letPropert iesAsXML"> CR LF   1168       <xsl:v ariable na me="VarBul letPropert iesAsXML"> CR LF
1158        <wwpr oject:Bull etProperti es> CR LF   1169        <wwpr oject:Bull etProperti es> CR LF
1159         <wwp roject:Pro perty Name ="bullet-s tyle" Valu e="{$Param Style}" /> CR LF   1170         <wwp roject:Pro perty Name ="bullet-s tyle" Valu e="{$Param Style}" /> CR LF
1160        </wwp roject:Bul letPropert ies> CR LF   1171        </wwp roject:Bul letPropert ies> CR LF
1161       </xsl: variable> CR LF   1172       </xsl: variable> CR LF
1162       <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)" /> CR LF   1173       <xsl:v ariable na me="VarBul letPropert ies" selec t="msxsl:n ode-set($V arBulletPr opertiesAs XML)" /> CR LF
1163   CR LF   1174   CR LF
1164       <xsl:v ariable na me="VarCar go" select ="$ParamCa rgo/*[loca l-name() ! = 'BulletP roperties' ]/.. | $Va rBulletPro perties" / > CR LF   1175       <xsl:v ariable na me="VarCar go" select ="$ParamCa rgo/*[loca l-name() ! = 'BulletP roperties' ]/.. | $Va rBulletPro perties" / > CR LF
1165   CR LF   1176   CR LF
1166       <xsl:c all-templa te name="T extRun"> CR LF   1177       <xsl:c all-templa te name="T extRun"> CR LF
1167        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1178        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1168        <xsl: with-param  name="Par amCargo" s elect="$Va rCargo" /> CR LF   1179        <xsl: with-param  name="Par amCargo" s elect="$Va rCargo" /> CR LF
1169        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   1180        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
1170        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1181        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1171        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraph/@ id" /> CR LF   1182        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraph/@ id" /> CR LF
1172        <xsl: with-param  name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" /> CR LF   1183        <xsl: with-param  name="Par amUseChara cterStyles " select=" $ParamUseC haracterSt yles" /> CR LF
1173        <xsl: with-param  name="Par amTextRun"  select="$ ParamParag raph/wwdoc :Number[1] " /> CR LF   1184        <xsl: with-param  name="Par amTextRun"  select="$ ParamParag raph/wwdoc :Number[1] " /> CR LF
1174        <xsl: with-param  name="Par amPosition " select=" 0" /> CR LF   1185        <xsl: with-param  name="Par amPosition " select=" 0" /> CR LF
1175       </xsl: call-templ ate> CR LF   1186       </xsl: call-templ ate> CR LF
1176      </xsl:o therwise> CR LF   1187      </xsl:o therwise> CR LF
1177     </xsl:ch oose> CR LF   1188     </xsl:ch oose> CR LF
1178    </xsl:tem plate> CR LF   1189    </xsl:tem plate> CR LF
1179   CR LF   1190   CR LF
1180   CR LF   1191   CR LF
1181    <xsl:temp late name= "Paragraph TextRuns"> CR LF   1192    <xsl:temp late name= "Paragraph TextRuns"> CR LF
1182     <xsl:par am name="P aramSplits " /> CR LF   1193     <xsl:par am name="P aramSplits " /> CR LF
1183     <xsl:par am name="P aramCargo"  /> CR LF   1194     <xsl:par am name="P aramCargo"  /> CR LF
1184     <xsl:par am name="P aramLinks"  /> CR LF   1195     <xsl:par am name="P aramLinks"  /> CR LF
1185     <xsl:par am name="P aramSplit"  /> CR LF   1196     <xsl:par am name="P aramSplit"  /> CR LF
1186     <xsl:par am name="P aramPreser veEmpty" / > CR LF   1197     <xsl:par am name="P aramPreser veEmpty" / > CR LF
1187     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1198     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1188     <xsl:par am name="P aramParagr aph" /> CR LF   1199     <xsl:par am name="P aramParagr aph" /> CR LF
1189   CR LF   1200   CR LF
1190     <!-- Non -empty tex t runs --> CR LF   1201     <!-- Non -empty tex t runs --> CR LF
1191     <!--                       --> CR LF   1202     <!--                       --> CR LF
1192      <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
  1203      <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
1193   CR LF   1204   CR LF
1194     <!-- Che ck for emp ty paragra phs --> CR LF   1205     <!-- Che ck for emp ty paragra phs --> CR LF
1195     <!--                               --> CR LF   1206     <!--                               --> CR LF
1196     <xsl:cho ose> CR LF   1207     <xsl:cho ose> CR LF
1197      <xsl:wh en test="c ount($VarT extRuns[1] ) = 1"> CR LF   1208      <xsl:wh en test="c ount($VarT extRuns[1] ) = 1"> CR LF
1198       <!-- P aragraph h as content  --> CR LF   1209       <!-- P aragraph h as content  --> CR LF
1199       <!--                          --> CR LF   1210       <!--                          --> CR LF
1200       <xsl:f or-each se lect="$Var TextRuns"> CR LF   1211       <xsl:f or-each se lect="$Var TextRuns"> CR LF
1201        <xsl: variable n ame="VarTe xtRun" sel ect="." /> CR LF   1212        <xsl: variable n ame="VarTe xtRun" sel ect="." /> CR LF
1202   CR LF   1213   CR LF
1203        <xsl: call-templ ate name=" TextRun"> CR LF   1214        <xsl: call-templ ate name=" TextRun"> CR LF
1204         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1215         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1205         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1216         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1206         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1217         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1207         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1218         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1208         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param Paragraph/ @id" /> CR LF   1219         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param Paragraph/ @id" /> CR LF
1209         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF   1220         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF
1210         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> CR LF   1221         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> CR LF
1211         <xsl :with-para m name="Pa ramPositio n" select= "position( )" /> CR LF   1222         <xsl :with-para m name="Pa ramPositio n" select= "position( )" /> CR LF
1212        </xsl :call-temp late> CR LF   1223        </xsl :call-temp late> CR LF
1213       </xsl: for-each> CR LF   1224       </xsl: for-each> CR LF
1214      </xsl:w hen> CR LF   1225      </xsl:w hen> CR LF
1215   CR LF   1226   CR LF
1216      <xsl:ot herwise> CR LF   1227      <xsl:ot herwise> CR LF
1217       <!-- E mpty parag raph! --> CR LF   1228       <!-- E mpty parag raph! --> CR LF
1218       <!--                    --> CR LF   1229       <!--                    --> CR LF
1219       <xsl:i f test="$P aramPreser veEmpty"> CR LF   1230       <xsl:i f test="$P aramPreser veEmpty"> CR LF
1220        <wp:w p wp:type= "container " wp:id="{ $ParamPara graph/@id} "> CR LF   1231        <wp:w p wp:type= "container " wp:id="{ $ParamPara graph/@id} "> CR LF
1221          &#1 60; CR LF   1232          &#1 60; CR LF
1222        </wp: wp> CR LF   1233        </wp: wp> CR LF
1223       </xsl: if> CR LF   1234       </xsl: if> CR LF
1224      </xsl:o therwise> CR LF   1235      </xsl:o therwise> CR LF
1225     </xsl:ch oose> CR LF   1236     </xsl:ch oose> CR LF
1226    </xsl:tem plate> CR LF   1237    </xsl:tem plate> CR LF
1227   CR LF   1238   CR LF
1228   CR LF   1239   CR LF
1229    <xsl:temp late name= "LinkInfo" > CR LF   1240    <xsl:temp late name= "LinkInfo" > CR LF
1230     <xsl:par am name="P aramSplits " /> CR LF   1241     <xsl:par am name="P aramSplits " /> CR LF
1231     <xsl:par am name="P aramLinks"  /> CR LF   1242     <xsl:par am name="P aramLinks"  /> CR LF
1232     <xsl:par am name="P aramSplit"  /> CR LF   1243     <xsl:par am name="P aramSplit"  /> CR LF
1233     <xsl:par am name="P aramDocume ntLink" /> CR LF   1244     <xsl:par am name="P aramDocume ntLink" /> CR LF
1234   CR LF   1245   CR LF
1235     <xsl:ele ment name= "LinkInfo"  namespace ="urn:WebW orks-Engin e-Links-Sc hema"> CR LF   1246     <xsl:ele ment name= "LinkInfo"  namespace ="urn:WebW orks-Engin e-Links-Sc hema"> CR LF
1236      <xsl:if  test="cou nt($ParamD ocumentLin k) &gt; 0" > CR LF   1247      <xsl:if  test="cou nt($ParamD ocumentLin k) &gt; 0" > CR LF
1237       <!-- R esolve lin k --> CR LF   1248       <!-- R esolve lin k --> CR LF
1238       <!--                --> CR LF   1249       <!--                --> CR LF
1239       <xsl:v ariable na me="VarRes olvedLinkI nfoAsXML"> CR LF   1250       <xsl:v ariable na me="VarRes olvedLinkI nfoAsXML"> CR LF
1240        <xsl: call-templ ate name=" Links-Reso lve"> CR LF   1251        <xsl: call-templ ate name=" Links-Reso lve"> CR LF
1241         <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para meterAllow Baggage" / > CR LF   1252         <xsl :with-para m name="Pa ramAllowBa ggage" sel ect="$Para meterAllow Baggage" / > CR LF
1242         <xsl :with-para m name="Pa ramAllowGr oupToGroup " select=" $Parameter AllowGroup ToGroup" / > CR LF   1253         <xsl :with-para m name="Pa ramAllowGr oupToGroup " select=" $Parameter AllowGroup ToGroup" / > CR LF
1243         <xsl :with-para m name="Pa ramAllowUR L" select= "$Paramete rAllowURL"  /> CR LF   1254         <xsl :with-para m name="Pa ramAllowUR L" select= "$Paramete rAllowURL"  /> CR LF
1244         <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$Parame terBaggage SplitFileT ype" /> CR LF   1255         <xsl :with-para m name="Pa ramBaggage SplitFileT ype" selec t="$Parame terBaggage SplitFileT ype" /> CR LF
1245         <xsl :with-para m name="Pa ramProject " select=" $GlobalPro ject" /> CR LF   1256         <xsl :with-para m name="Pa ramProject " select=" $GlobalPro ject" /> CR LF
1246         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1257         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1247         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1258         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1248         <xsl :with-para m name="Pa ramSplitGr oupID" sel ect="$Para mSplit/@gr oupID" /> CR LF   1259         <xsl :with-para m name="Pa ramSplitGr oupID" sel ect="$Para mSplit/@gr oupID" /> CR LF
1249         <xsl :with-para m name="Pa ramSplitDo cumentID"  select="$P aramSplit/ @documentI D" /> CR LF   1260         <xsl :with-para m name="Pa ramSplitDo cumentID"  select="$P aramSplit/ @documentI D" /> CR LF
1250         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" /> CR LF   1261         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mDocumentL ink" /> CR LF
1251        </xsl :call-temp late> CR LF   1262        </xsl :call-temp late> CR LF
1252       </xsl: variable> CR LF   1263       </xsl: variable> CR LF
1253       <xsl:v ariable na me="VarRes olvedLinkI nfo" selec t="msxsl:n ode-set($V arResolved LinkInfoAs XML)/wwlin ks:Resolve dLink" /> CR LF   1264       <xsl:v ariable na me="VarRes olvedLinkI nfo" selec t="msxsl:n ode-set($V arResolved LinkInfoAs XML)/wwlin ks:Resolve dLink" /> CR LF
1254   CR LF   1265   CR LF
1255       <!-- @ title --> CR LF   1266       <!-- @ title --> CR LF
1256       <!--         --> CR LF   1267       <!--         --> CR LF
1257       <xsl:i f test="st ring-lengt h($VarReso lvedLinkIn fo/@title)  &gt; 0"> CR LF   1268       <xsl:i f test="st ring-lengt h($VarReso lvedLinkIn fo/@title)  &gt; 0"> CR LF
1258        <xsl: attribute  name="titl e"> CR LF   1269        <xsl: attribute  name="titl e"> CR LF
1259         <xsl :value-of  select="$V arResolved LinkInfo/@ title" /> CR LF   1270         <xsl :value-of  select="$V arResolved LinkInfo/@ title" /> CR LF
1260        </xsl :attribute > CR LF   1271        </xsl :attribute > CR LF
1261       </xsl: if> CR LF   1272       </xsl: if> CR LF
1262   CR LF   1273   CR LF
1263       <xsl:c hoose> CR LF   1274       <xsl:c hoose> CR LF
1264        <!--  Baggage -- > CR LF   1275        <!--  Baggage -- > CR LF
1265        <!--          -- > CR LF   1276        <!--          -- > CR LF
1266        <xsl: when test= "$VarResol vedLinkInf o/@type =  'baggage'" > CR LF   1277        <xsl: when test= "$VarResol vedLinkInf o/@type =  'baggage'" > CR LF
1267         <xsl :variable  name="VarR elativePat h" select= "wwuri:Get RelativeTo ($VarResol vedLinkInf o/@path, $ ParamSplit /@path)" / > CR LF   1278         <xsl :variable  name="VarR elativePat h" select= "wwuri:Get RelativeTo ($VarResol vedLinkInf o/@path, $ ParamSplit /@path)" / > CR LF
1268   CR LF   1279   CR LF
1269         <xsl :attribute  name="hre f"> CR LF   1280         <xsl :attribute  name="hre f"> CR LF
1270          <xs l:value-of  select="$ VarRelativ ePath" /> CR LF   1281          <xs l:value-of  select="$ VarRelativ ePath" /> CR LF
1271         </xs l:attribut e> CR LF   1282         </xs l:attribut e> CR LF
1272   CR LF   1283   CR LF
1273         <xsl :variable  name="VarT arget" sel ect="wwpro jext:GetFo rmatSettin g('baggage -file-targ et', 'exte rnal_windo w')" /> CR LF   1284         <xsl :variable  name="VarT arget" sel ect="wwpro jext:GetFo rmatSettin g('baggage -file-targ et', 'exte rnal_windo w')" /> CR LF
1274   CR LF   1285   CR LF
1275         <xsl :if test=" (string-le ngth($VarT arget) &gt ; 0) and ( $VarTarget  != 'none' )"> CR LF   1286         <xsl :if test=" (string-le ngth($VarT arget) &gt ; 0) and ( $VarTarget  != 'none' )"> CR LF
1276          <xs l:attribut e name="ta rget"> CR LF   1287          <xs l:attribut e name="ta rget"> CR LF
1277           <x sl:value-o f select=" $VarTarget " /> CR LF   1288           <x sl:value-o f select=" $VarTarget " /> CR LF
1278          </x sl:attribu te> CR LF   1289          </x sl:attribu te> CR LF
1279         </xs l:if> CR LF   1290         </xs l:if> CR LF
1280        </xsl :when> CR LF   1291        </xsl :when> CR LF
1281   CR LF   1292   CR LF
1282        <!--  Document - -> CR LF   1293        <!--  Document - -> CR LF
1283        <!--           - -> CR LF   1294        <!--           - -> CR LF
1284        <xsl: when test= "($VarReso lvedLinkIn fo/@type =  'document ') or ($Va rResolvedL inkInfo/@t ype = 'gro up') or ($ VarResolve dLinkInfo/ @type = 'p roject')"> CR LF   1295        <xsl: when test= "($VarReso lvedLinkIn fo/@type =  'document ') or ($Va rResolvedL inkInfo/@t ype = 'gro up') or ($ VarResolve dLinkInfo/ @type = 'p roject')"> CR LF
1285         <xsl :attribute  name="hre f"> CR LF   1296         <xsl :attribute  name="hre f"> CR LF
1286          <xs l:variable  name="Var RelativePa th" select ="wwuri:Ge tRelativeT o($VarReso lvedLinkIn fo/@path,  $ParamSpli t/@path)"  /> CR LF   1297          <xs l:variable  name="Var RelativePa th" select ="wwuri:Ge tRelativeT o($VarReso lvedLinkIn fo/@path,  $ParamSpli t/@path)"  /> CR LF
1287   CR LF   1298   CR LF
1288          <xs l:value-of  select="$ VarRelativ ePath" /> CR LF   1299          <xs l:value-of  select="$ VarRelativ ePath" /> CR LF
1289          <xs l:if test= "string-le ngth($Para mDocumentL ink/@ancho r) &gt; 0" > CR LF   1300          <xs l:if test= "string-le ngth($Para mDocumentL ink/@ancho r) &gt; 0" > CR LF
1290           <x sl:text>#< /xsl:text> CR LF   1301           <x sl:text>#< /xsl:text> CR LF
1291           <x sl:value-o f select=" $VarResolv edLinkInfo /@linkid"  /> CR LF   1302           <x sl:value-o f select=" $VarResolv edLinkInfo /@linkid"  /> CR LF
1292          </x sl:if> CR LF   1303          </x sl:if> CR LF
1293         </xs l:attribut e> CR LF   1304         </xs l:attribut e> CR LF
1294        </xsl :when> CR LF   1305        </xsl :when> CR LF
1295   CR LF   1306   CR LF
1296        <!--  URL --> CR LF   1307        <!--  URL --> CR LF
1297        <!--      --> CR LF   1308        <!--      --> CR LF
1298        <xsl: when test= "$VarResol vedLinkInf o/@type =  'url'"> CR LF   1309        <xsl: when test= "$VarResol vedLinkInf o/@type =  'url'"> CR LF
1299         <xsl :attribute  name="hre f"> CR LF   1310         <xsl :attribute  name="hre f"> CR LF
1300          <xs l:value-of  select="$ VarResolve dLinkInfo/ @url" /> CR LF   1311          <xs l:value-of  select="$ VarResolve dLinkInfo/ @url" /> CR LF
1301         </xs l:attribut e> CR LF   1312         </xs l:attribut e> CR LF
1302   CR LF   1313   CR LF
1303         <!--  External  URL Target  --> CR LF   1314         <!--  External  URL Target  --> CR LF
1304         <!--                        --> CR LF   1315         <!--                        --> CR LF
1305         <xsl :if test=" not(wwuri: IsFile($Va rResolvedL inkInfo/@u rl))"> CR LF   1316         <xsl :if test=" not(wwuri: IsFile($Va rResolvedL inkInfo/@u rl))"> CR LF
1306          <xs l:variable  name="Var Target" se lect="wwpr ojext:GetF ormatSetti ng('extern al-url-tar get', 'ext ernal_wind ow')" /> CR LF   1317          <xs l:variable  name="Var Target" se lect="wwpr ojext:GetF ormatSetti ng('extern al-url-tar get', 'ext ernal_wind ow')" /> CR LF
1307   CR LF   1318   CR LF
1308          <xs l:if test= "(string-l ength($Var Target) &g t; 0) and  ($VarTarge t != 'none ')"> CR LF   1319          <xs l:if test= "(string-l ength($Var Target) &g t; 0) and  ($VarTarge t != 'none ')"> CR LF
1309           <x sl:attribu te name="t arget"> CR LF   1320           <x sl:attribu te name="t arget"> CR LF
1310            < xsl:value- of select= "$VarTarge t" /> CR LF   1321            < xsl:value- of select= "$VarTarge t" /> CR LF
1311           </ xsl:attrib ute> CR LF   1322           </ xsl:attrib ute> CR LF
1312          </x sl:if> CR LF   1323          </x sl:if> CR LF
1313         </xs l:if> CR LF   1324         </xs l:if> CR LF
1314        </xsl :when> CR LF   1325        </xsl :when> CR LF
1315       </xsl: choose> CR LF   1326       </xsl: choose> CR LF
1316      </xsl:i f> CR LF   1327      </xsl:i f> CR LF
1317     </xsl:el ement> CR LF   1328     </xsl:el ement> CR LF
1318    </xsl:tem plate> CR LF   1329    </xsl:tem plate> CR LF
1319   CR LF   1330   CR LF
1320   CR LF   1331   CR LF
1321    <xsl:temp late name= "TextRun"> CR LF   1332    <xsl:temp late name= "TextRun"> CR LF
1322     <xsl:par am name="P aramSplits " /> CR LF   1333     <xsl:par am name="P aramSplits " /> CR LF
1323     <xsl:par am name="P aramCargo"  /> CR LF   1334     <xsl:par am name="P aramCargo"  /> CR LF
1324     <xsl:par am name="P aramLinks"  /> CR LF   1335     <xsl:par am name="P aramLinks"  /> CR LF
1325     <xsl:par am name="P aramSplit"  /> CR LF   1336     <xsl:par am name="P aramSplit"  /> CR LF
1326     <xsl:par am name="P aramParagr aphID" /> CR LF   1337     <xsl:par am name="P aramParagr aphID" /> CR LF
1327     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1338     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1328     <xsl:par am name="P aramTextRu n" /> CR LF   1339     <xsl:par am name="P aramTextRu n" /> CR LF
1329     <xsl:par am name="P aramPositi on" /> CR LF   1340     <xsl:par am name="P aramPositi on" /> CR LF
1330   CR LF   1341   CR LF
1331     <!-- Get  rule --> CR LF   1342     <!-- Get  rule --> CR LF
1332     <!--           --> CR LF   1343     <!--           --> CR LF
1333     <xsl:var iable name ="VarRule"  select="w wprojext:G etRule('Ch aracter',  $ParamText Run/@style name)" /> CR LF   1344     <xsl:var iable name ="VarRule"  select="w wprojext:G etRule('Ch aracter',  $ParamText Run/@style name)" /> CR LF
1334   CR LF   1345   CR LF
1335     <!-- Gen erate outp ut? --> CR LF   1346     <!-- Gen erate outp ut? --> CR LF
1336     <!---                   --> CR LF   1347     <!---                   --> CR LF
1337     <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   1348     <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
1338     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF   1349     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF
1339     <xsl:if  test="$Var GenerateOu tput"> CR LF   1350     <xsl:if  test="$Var GenerateOu tput"> CR LF
1340      <!-- Pa ss-through ? --> CR LF   1351      <!-- Pa ss-through ? --> CR LF
1341      <!--                 --> CR LF   1352      <!--                 --> CR LF
1342      <xsl:va riable nam e="VarPass Through"> CR LF   1353      <xsl:va riable nam e="VarPass Through"> CR LF
    1354       <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
    1355   CR LF
    1356       <xsl:c hoose> CR LF
    1357        <xsl: when test= "$VarPassT hroughOpti on = 'true '"> CR LF
    1358         <xsl :value-of  select="tr ue()" /> CR LF
    1359        </xsl :when> CR LF
    1360   CR LF
    1361        <xsl: otherwise> CR LF
1343       <xsl:c all-templa te name="C onditions- PassThroug h"> CR LF   1362         <xsl :call-temp late name= "Condition s-PassThro ugh"> CR LF
1344        <xsl: with-param  name="Par amConditio ns" select ="$ParamTe xtRun/wwdo c:Conditio ns" /> CR LF   1363          <xs l:with-par am name="P aramCondit ions" sele ct="$Param TextRun/ww doc:Condit ions" /> CR LF
1345       </xsl: call-templ ate> CR LF   1364         </xs l:call-tem plate> CR LF
    1365        </xsl :otherwise > CR LF
    1366       </xsl: choose> CR LF
1346      </xsl:v ariable> CR LF   1367      </xsl:v ariable> CR LF
1347   CR LF   1368   CR LF
1348      <xsl:ch oose> CR LF   1369      <xsl:ch oose> CR LF
1349       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF   1370       <xsl:w hen test=" $VarPassTh rough = 't rue'"> CR LF
1350        <xsl: call-templ ate name=" TextRun-Pa ssThrough" > CR LF   1371        <xsl: call-templ ate name=" TextRun-Pa ssThrough" > CR LF
1351         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF   1372         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF
1352        </xsl :call-temp late> CR LF   1373        </xsl :call-temp late> CR LF
1353       </xsl: when> CR LF   1374       </xsl: when> CR LF
1354   CR LF   1375   CR LF
1355       <xsl:o therwise> CR LF   1376       <xsl:o therwise> CR LF
1356        <xsl: call-templ ate name=" TextRun-No rmal"> CR LF   1377        <xsl: call-templ ate name=" TextRun-No rmal"> CR LF
1357         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1378         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1358         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1379         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1359         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1380         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1360         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1381         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1361         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF   1382         <xsl :with-para m name="Pa ramParagra phID" sele ct="$Param ParagraphI D" /> CR LF
1362         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF   1383         <xsl :with-para m name="Pa ramUseChar acterStyle s" select= "$ParamUse CharacterS tyles" /> CR LF
1363         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF   1384         <xsl :with-para m name="Pa ramTextRun " select=" $ParamText Run" /> CR LF
1364         <xsl :with-para m name="Pa ramPositio n" select= "$ParamPos ition" /> CR LF   1385         <xsl :with-para m name="Pa ramPositio n" select= "$ParamPos ition" /> CR LF
1365        </xsl :call-temp late> CR LF   1386        </xsl :call-temp late> CR LF
1366       </xsl: otherwise> CR LF   1387       </xsl: otherwise> CR LF
1367      </xsl:c hoose> CR LF   1388      </xsl:c hoose> CR LF
1368     </xsl:if > CR LF   1389     </xsl:if > CR LF
1369    </xsl:tem plate> CR LF   1390    </xsl:tem plate> CR LF
1370   CR LF   1391   CR LF
1371   CR LF   1392   CR LF
1372    <xsl:temp late name= "TextRun-P assThrough "> CR LF   1393    <xsl:temp late name= "TextRun-P assThrough "> CR LF
1373     <xsl:par am name="P aramTextRu n" /> CR LF   1394     <xsl:par am name="P aramTextRu n" /> CR LF
1374   CR LF   1395   CR LF
1375     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF   1396     <wwexsld oc:Text di sable-outp ut-escapin g="yes"> CR LF
1376      <xsl:fo r-each sel ect="$Para mTextRun/w wdoc:Text" > CR LF   1397      <xsl:fo r-each sel ect="$Para mTextRun/w wdoc:Text" > CR LF
1377       <xsl:v ariable na me="VarTex t" select= "." /> CR LF   1398       <xsl:v ariable na me="VarTex t" select= "." /> CR LF
1378   CR LF   1399   CR LF
1379       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF   1400       <xsl:v alue-of se lect="$Var Text/@valu e" /> CR LF
1380      </xsl:f or-each> CR LF   1401      </xsl:f or-each> CR LF
1381     </wwexsl doc:Text> CR LF   1402     </wwexsl doc:Text> CR LF
1382    </xsl:tem plate> CR LF   1403    </xsl:tem plate> CR LF
1383   CR LF   1404   CR LF
1384   CR LF   1405   CR LF
1385    <xsl:temp late name= "TextRun-N ormal"> CR LF   1406    <xsl:temp late name= "TextRun-N ormal"> CR LF
1386     <xsl:par am name="P aramSplits " /> CR LF   1407     <xsl:par am name="P aramSplits " /> CR LF
1387     <xsl:par am name="P aramCargo"  /> CR LF   1408     <xsl:par am name="P aramCargo"  /> CR LF
1388     <xsl:par am name="P aramLinks"  /> CR LF   1409     <xsl:par am name="P aramLinks"  /> CR LF
1389     <xsl:par am name="P aramSplit"  /> CR LF   1410     <xsl:par am name="P aramSplit"  /> CR LF
1390     <xsl:par am name="P aramParagr aphID" /> CR LF   1411     <xsl:par am name="P aramParagr aphID" /> CR LF
1391     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF   1412     <xsl:par am name="P aramUseCha racterStyl es" /> CR LF
1392     <xsl:par am name="P aramTextRu n" /> CR LF   1413     <xsl:par am name="P aramTextRu n" /> CR LF
1393     <xsl:par am name="P aramPositi on" /> CR LF   1414     <xsl:par am name="P aramPositi on" /> CR LF
1394   CR LF   1415   CR LF
1395     <xsl:cho ose> CR LF   1416     <xsl:cho ose> CR LF
1396      <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   1417      <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
1397       <!-- G et overrid e rule --> CR LF   1418       <!-- G et overrid e rule --> CR LF
1398       <!--                     --> CR LF   1419       <!--                     --> CR LF
1399       <xsl:v ariable na me="VarOve rrideRule"  select="w wprojext:G etOverride Rule('Char acter', $P aramTextRu n/@stylena me, $Param Split/@doc umentID, $ ParamTextR un/@id)" / > CR LF   1420       <xsl:v ariable na me="VarOve rrideRule"  select="w wprojext:G etOverride Rule('Char acter', $P aramTextRu n/@stylena me, $Param Split/@doc umentID, $ ParamTextR un/@id)" / > CR LF
1400   CR LF   1421   CR LF
1401       <!-- R esolve pro ject prope rties --> CR LF   1422       <!-- R esolve pro ject prope rties --> CR LF
1402       <!--                               --> CR LF   1423       <!--                               --> CR LF
1403       <xsl:v ariable na me="VarRes olvedPrope rtiesAsXML "> CR LF   1424       <xsl:v ariable na me="VarRes olvedPrope rtiesAsXML "> CR LF
1404        <xsl: call-templ ate name=" Properties -ResolveOv errideRule "> CR LF   1425        <xsl: call-templ ate name=" Properties -ResolveOv errideRule "> CR LF
1405         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF   1426         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF
1406         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mTextRun/w wdoc:Style " /> CR LF   1427         <xsl :with-para m name="Pa ramContext Style" sel ect="$Para mTextRun/w wdoc:Style " /> CR LF
1407        </xsl :call-temp late> CR LF   1428        </xsl :call-temp late> CR LF
1408       </xsl: variable> CR LF   1429       </xsl: variable> CR LF
1409       <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / > CR LF   1430       <xsl:v ariable na me="VarRes olvedPrope rties" sel ect="msxsl :node-set( $VarResolv edProperti esAsXML)/w wproject:P roperty" / > CR LF
1410   CR LF   1431   CR LF
1411       <!-- C SS propert ies --> CR LF   1432       <!-- C SS propert ies --> CR LF
1412       <!--                  --> CR LF   1433       <!--                  --> CR LF
1413       <xsl:v ariable na me="VarCSS Properties AsXML"> CR LF   1434       <xsl:v ariable na me="VarCSS Properties AsXML"> CR LF
1414        <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> CR LF   1435        <xsl: call-templ ate name=" CSS-Transl ateProject Properties "> CR LF
1415         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties" /> CR LF   1436         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarRes olvedPrope rties" /> CR LF
1416         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" /> CR LF   1437         <xsl :with-para m name="Pa ramFromAbs oluteURI"  select="$P aramSplit/ @path" /> CR LF
1417         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1438         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1418        </xsl :call-temp late> CR LF   1439        </xsl :call-temp late> CR LF
1419       </xsl: variable> CR LF   1440       </xsl: variable> CR LF
1420       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > CR LF   1441       <xsl:v ariable na me="VarCSS Properties " select=" msxsl:node -set($VarC SSProperti esAsXML)/w wproject:P roperty" / > CR LF
1421   CR LF   1442   CR LF
1422       <!-- T ag --> CR LF   1443       <!-- T ag --> CR LF
1423       <!--      --> CR LF   1444       <!--      --> CR LF
1424       <xsl:v ariable na me="VarTag "> CR LF   1445       <xsl:v ariable na me="VarTag "> CR LF
1425        <xsl: choose> CR LF   1446        <xsl: choose> CR LF
1426         <xsl :when test ="string-l ength($Par amTextRun/ @stylename ) &gt; 0"> CR LF   1447         <xsl :when test ="string-l ength($Par amTextRun/ @stylename ) &gt; 0"> CR LF
1427          <xs l:value-of  select="w wstring:CS SClassName ($ParamTex tRun/@styl ename)" /> CR LF   1448          <xs l:value-of  select="w wstring:CS SClassName ($ParamTex tRun/@styl ename)" /> CR LF
1428         </xs l:when> CR LF   1449         </xs l:when> CR LF
1429   CR LF   1450   CR LF
1430         <xsl :otherwise > CR LF   1451         <xsl :otherwise > CR LF
1431          <xs l:value-of  select="' wp'" /> CR LF   1452          <xs l:value-of  select="' wp'" /> CR LF
1432         </xs l:otherwis e> CR LF   1453         </xs l:otherwis e> CR LF
1433        </xsl :choose> CR LF   1454        </xsl :choose> CR LF
1434       </xsl: variable> CR LF   1455       </xsl: variable> CR LF
1435   CR LF   1456   CR LF
1436       <!-- C lass attri bute --> CR LF   1457       <!-- C lass attri bute --> CR LF
1437       <!--                   --> CR LF   1458       <!--                   --> CR LF
1438       <xsl:v ariable na me="VarCla ssAttribut e"> CR LF   1459       <xsl:v ariable na me="VarCla ssAttribut e"> CR LF
1439        <xsl: choose> CR LF   1460        <xsl: choose> CR LF
1440         <xsl :when test ="string-l ength($Par amCargo/ww project:Bu lletProper ties/wwpro ject:Prope rty[@Name  = 'bullet- style']/@V alue) &gt;  0"> CR LF   1461         <xsl :when test ="string-l ength($Par amCargo/ww project:Bu lletProper ties/wwpro ject:Prope rty[@Name  = 'bullet- style']/@V alue) &gt;  0"> CR LF
1441          <xs l:value-of  select="w wstring:CS SClassName ($ParamCar go/wwproje ct:BulletP roperties/ wwproject: Property[@ Name = 'bu llet-style ']/@Value) " /> CR LF   1462          <xs l:value-of  select="w wstring:CS SClassName ($ParamCar go/wwproje ct:BulletP roperties/ wwproject: Property[@ Name = 'bu llet-style ']/@Value) " /> CR LF
1442         </xs l:when> CR LF   1463         </xs l:when> CR LF
1443         <xsl :otherwise > CR LF   1464         <xsl :otherwise > CR LF
1444          <xs l:value-of  select="w wstring:CS SClassName ($ParamTex tRun/@styl ename)" /> CR LF   1465          <xs l:value-of  select="w wstring:CS SClassName ($ParamTex tRun/@styl ename)" /> CR LF
1445         </xs l:otherwis e> CR LF   1466         </xs l:otherwis e> CR LF
1446        </xsl :choose> CR LF   1467        </xsl :choose> CR LF
1447       </xsl: variable> CR LF   1468       </xsl: variable> CR LF
1448   CR LF   1469   CR LF
1449       <!-- S tyle attri bute --> CR LF   1470       <!-- S tyle attri bute --> CR LF
1450       <!--                   --> CR LF   1471       <!--                   --> CR LF
1451       <xsl:v ariable na me="VarSty leAttribut e"> CR LF   1472       <xsl:v ariable na me="VarSty leAttribut e"> CR LF
1452        <xsl: call-templ ate name=" CSS-Inline Properties "> CR LF   1473        <xsl: call-templ ate name=" CSS-Inline Properties "> CR LF
1453         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> CR LF   1474         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCSS Properties " /> CR LF
1454        </xsl :call-temp late> CR LF   1475        </xsl :call-temp late> CR LF
1455       </xsl: variable> CR LF   1476       </xsl: variable> CR LF
1456   CR LF   1477   CR LF
1457       <xsl:c hoose> CR LF   1478       <xsl:c hoose> CR LF
1458        <xsl: when test= "(string-l ength($Var ClassAttri bute) &gt;  0) or (st ring-lengt h($VarStyl eAttribute ) &gt; 0)" > CR LF   1479        <xsl: when test= "(string-l ength($Var ClassAttri bute) &gt;  0) or (st ring-lengt h($VarStyl eAttribute ) &gt; 0)" > CR LF
1459         <!--  Character  Style --> CR LF   1480         <!--  Character  Style --> CR LF
1460         <!--                   --> CR LF   1481         <!--                   --> CR LF
1461         <xsl :element n ame="{$Var Tag}" name space="{$G lobalDefau ltNamespac e}"> CR LF   1482         <xsl :element n ame="{$Var Tag}" name space="{$G lobalDefau ltNamespac e}"> CR LF
1462          <xs l:attribut e name="wp :type"> CR LF   1483          <xs l:attribut e name="wp :type"> CR LF
1463           <x sl:value-o f select=" 'container '" /> CR LF   1484           <x sl:value-o f select=" 'container '" /> CR LF
1464          </x sl:attribu te> CR LF   1485          </x sl:attribu te> CR LF
1465   CR LF   1486   CR LF
1466          <xs l:if test= "string-le ngth($VarC lassAttrib ute) &gt;  0"> CR LF   1487          <xs l:if test= "string-le ngth($VarC lassAttrib ute) &gt;  0"> CR LF
1467           <x sl:attribu te name="w p:class"> CR LF   1488           <x sl:attribu te name="w p:class"> CR LF
1468            < xsl:value- of select= "$VarClass Attribute"  /> CR LF   1489            < xsl:value- of select= "$VarClass 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          <xs l:if test= "string-le ngth($VarS tyleAttrib ute) &gt;  0"> CR LF   1492          <xs l:if test= "string-le ngth($VarS tyleAttrib ute) &gt;  0"> CR LF
1472           <x sl:attribu te name="w p:style"> CR LF   1493           <x sl:attribu te name="w p:style"> CR LF
1473            < xsl:value- of select= "$VarStyle Attribute"  /> CR LF   1494            < xsl:value- of select= "$VarStyle Attribute"  /> CR LF
1474           </ xsl:attrib ute> CR LF   1495           </ xsl:attrib ute> CR LF
1475          </x sl:if> CR LF   1496          </x sl:if> CR LF
1476   CR LF   1497   CR LF
1477          <xs l:call-tem plate name ="TextRunC hildren"> CR LF   1498          <xs l:call-tem plate name ="TextRunC hildren"> CR LF
1478           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   1499           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
1479           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF   1500           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF
1480           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   1501           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
1481           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   1502           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
1482           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> CR LF   1503           <x sl:with-pa ram name=" ParamParag raphID" se lect="$Par amParagrap hID" /> CR LF
1483           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> CR LF   1504           <x sl:with-pa ram name=" ParamTextR un" select ="$ParamTe xtRun" /> CR LF
1484           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > CR LF   1505           <x sl:with-pa ram name=" ParamPosit ion" selec t="$ParamP osition" / > CR LF
1485          </x sl:call-te mplate> CR LF   1506          </x sl:call-te mplate> CR LF
1486         </xs l:element> CR LF   1507         </xs l:element> CR LF
1487        </xsl :when> CR LF   1508        </xsl :when> CR LF
1488   CR LF   1509   CR LF
1489        <xsl: otherwise> CR LF   1510        <xsl: otherwise> CR LF
1490         <!--  No style  --> CR LF   1511         <!--  No style  --> CR LF
1491         <!--            --> CR LF   1512         <!--            --> CR LF
1492         <xsl :call-temp late name= "TextRunCh ildren"> CR LF   1513         <xsl :call-temp late name= "TextRunCh ildren"> CR LF
1493          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   1514          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
1494          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF   1515          <xs l:with-par am name="P aramCargo"  select="$ ParamCargo " /> CR LF
1495          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF   1516          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF
1496          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   1517          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
1497          <xs l:with-par am name="P aramParagr aphID" sel ect="$Para mParagraph ID" /> CR LF   1518          <xs l:with-par am name="P aramParagr aphID" sel ect="$Para mParagraph ID" /> CR LF
1498          <xs l:with-par am name="P aramTextRu n" select= "$ParamTex tRun" /> CR LF   1519          <xs l:with-par am name="P aramTextRu n" select= "$ParamTex tRun" /> CR LF
1499          <xs l:with-par am name="P aramPositi on" select ="$ParamPo sition" /> CR LF   1520          <xs l:with-par am name="P aramPositi on" select ="$ParamPo sition" /> CR LF
1500         </xs l:call-tem plate> CR LF   1521         </xs l:call-tem plate> CR LF
1501        </xsl :otherwise > CR LF   1522        </xsl :otherwise > CR LF
1502       </xsl: choose> CR LF   1523       </xsl: choose> CR LF
1503      </xsl:w hen> CR LF   1524      </xsl:w hen> CR LF
1504   CR LF   1525   CR LF
1505      <xsl:ot herwise> CR LF   1526      <xsl:ot herwise> CR LF
1506       <!-- N o style -- > CR LF   1527       <!-- N o style -- > CR LF
1507       <!--           -- > CR LF   1528       <!--           -- > CR LF
1508       <xsl:c all-templa te name="T extRunChil dren"> CR LF   1529       <xsl:c all-templa te name="T extRunChil dren"> CR LF
1509        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1530        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1510        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF   1531        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF
1511        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   1532        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
1512        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1533        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1513        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraphID " /> CR LF   1534        <xsl: with-param  name="Par amParagrap hID" selec t="$ParamP aragraphID " /> CR LF
1514        <xsl: with-param  name="Par amTextRun"  select="$ ParamTextR un" /> CR LF   1535        <xsl: with-param  name="Par amTextRun"  select="$ ParamTextR un" /> CR LF
1515        <xsl: with-param  name="Par amPosition " select=" $ParamPosi tion" /> CR LF   1536        <xsl: with-param  name="Par amPosition " select=" $ParamPosi tion" /> CR LF
1516       </xsl: call-templ ate> CR LF   1537       </xsl: call-templ ate> CR LF
1517      </xsl:o therwise> CR LF   1538      </xsl:o therwise> CR LF
1518     </xsl:ch oose> CR LF   1539     </xsl:ch oose> CR LF
1519    </xsl:tem plate> CR LF   1540    </xsl:tem plate> CR LF
1520   CR LF   1541   CR LF
1521   CR LF   1542   CR LF
1522    <xsl:temp late name= "TextRunCh ildren"> CR LF   1543    <xsl:temp late name= "TextRunCh ildren"> CR LF
1523     <xsl:par am name="P aramSplits " /> CR LF   1544     <xsl:par am name="P aramSplits " /> CR LF
1524     <xsl:par am name="P aramCargo"  /> CR LF   1545     <xsl:par am name="P aramCargo"  /> CR LF
1525     <xsl:par am name="P aramLinks"  /> CR LF   1546     <xsl:par am name="P aramLinks"  /> CR LF
1526     <xsl:par am name="P aramSplit"  /> CR LF   1547     <xsl:par am name="P aramSplit"  /> CR LF
1527     <xsl:par am name="P aramParagr aphID" /> CR LF   1548     <xsl:par am name="P aramParagr aphID" /> CR LF
1528     <xsl:par am name="P aramTextRu n" /> CR LF   1549     <xsl:par am name="P aramTextRu n" /> CR LF
1529     <xsl:par am name="P aramPositi on" /> CR LF   1550     <xsl:par am name="P aramPositi on" /> CR LF
1530   CR LF   1551   CR LF
1531     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF   1552     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF
1532     <!--                                                   --> CR LF   1553     <!--                                                   --> CR LF
1533     <wwexsld oc:NoBreak  /> CR LF   1554     <wwexsld oc:NoBreak  /> CR LF
1534   CR LF   1555   CR LF
1535     <!-- Lin k? --> CR LF   1556     <!-- Lin k? --> CR LF
1536     <!--        --> CR LF   1557     <!--        --> CR LF
1537     <xsl:var iable name ="VarLinkI nfoAsXML"> CR LF   1558     <xsl:var iable name ="VarLinkI nfoAsXML"> CR LF
1538      <xsl:ca ll-templat e name="Li nkInfo"> CR LF   1559      <xsl:ca ll-templat e name="Li nkInfo"> CR LF
1539       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   1560       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
1540       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   1561       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
1541       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   1562       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
1542       <xsl:w ith-param  name="Para mDocumentL ink" selec t="$ParamT extRun/wwd oc:Link" / > CR LF   1563       <xsl:w ith-param  name="Para mDocumentL ink" selec t="$ParamT extRun/wwd oc:Link" / > CR LF
1543      </xsl:c all-templa te> CR LF   1564      </xsl:c all-templa te> CR LF
1544     </xsl:va riable> CR LF   1565     </xsl:va riable> CR LF
1545     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> CR LF   1566     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> CR LF
1546   CR LF   1567   CR LF
1547     <!-- Han dle links  and first  textrun an chor --> CR LF   1568     <!-- Han dle links  and first  textrun an chor --> CR LF
1548     <!--                                           --> CR LF   1569     <!--                                           --> CR LF
1549     <xsl:cho ose> CR LF   1570     <xsl:cho ose> CR LF
1550      <xsl:wh en test="s tring-leng th($VarLin kInfo/@hre f) &gt; 0" > CR LF   1571      <xsl:wh en test="s tring-leng th($VarLin kInfo/@hre f) &gt; 0" > CR LF
1551       <wp:Go toLink wp: href="{$Va rLinkInfo/ @href}"> CR LF   1572       <wp:Go toLink wp: href="{$Va rLinkInfo/ @href}"> CR LF
1552        <xsl: if test="s tring-leng th($VarLin kInfo/@tit le) &gt; 0 "> CR LF   1573        <xsl: if test="s tring-leng th($VarLin kInfo/@tit le) &gt; 0 "> CR LF
1553         <xsl :attribute  name="wp: title"> CR LF   1574         <xsl :attribute  name="wp: title"> CR LF
1554          <xs l:value-of  select="$ VarLinkInf o/@title"  /> CR LF   1575          <xs l:value-of  select="$ VarLinkInf o/@title"  /> CR LF
1555         </xs l:attribut e> CR LF   1576         </xs l:attribut e> CR LF
1556        </xsl :if> CR LF   1577        </xsl :if> CR LF
1557        <xsl: if test="s tring-leng th($VarLin kInfo/@tar get) &gt;  0"> CR LF   1578        <xsl: if test="s tring-leng th($VarLin kInfo/@tar get) &gt;  0"> CR LF
1558         <xsl :attribute  name="wp: target"> CR LF   1579         <xsl :attribute  name="wp: target"> CR LF
1559          <xs l:value-of  select="$ VarLinkInf o/@target"  /> CR LF   1580          <xs l:value-of  select="$ VarLinkInf o/@target"  /> CR LF
1560         </xs l:attribut e> CR LF   1581         </xs l:attribut e> CR LF
1561        </xsl :if> CR LF   1582        </xsl :if> CR LF
1562   CR LF   1583   CR LF
1563        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n"> CR LF   1584        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n"> CR LF
1564         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1585         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1565         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1586         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1566         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1587         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1567         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1588         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1568        </xsl :apply-tem plates> CR LF   1589        </xsl :apply-tem plates> CR LF
1569       </wp:G otoLink> CR LF   1590       </wp:G otoLink> CR LF
1570      </xsl:w hen> CR LF   1591      </xsl:w hen> CR LF
1571   CR LF   1592   CR LF
1572      <xsl:wh en test="$ ParamPosit ion = 1"> CR LF   1593      <xsl:wh en test="$ ParamPosit ion = 1"> CR LF
1573        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n"> CR LF   1594        <xsl: apply-temp lates sele ct="$Param TextRun/*"  mode="wwm ode:textru n"> CR LF
1574         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1595         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1575         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1596         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1576         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1597         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1577         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1598         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1578        </xsl :apply-tem plates> CR LF   1599        </xsl :apply-tem plates> CR LF
1579      </xsl:w hen> CR LF   1600      </xsl:w hen> CR LF
1580   CR LF   1601   CR LF
1581      <xsl:ot herwise> CR LF   1602      <xsl:ot herwise> CR LF
1582       <xsl:a pply-templ ates selec t="$ParamT extRun/*"  mode="wwmo de:textrun "> CR LF   1603       <xsl:a pply-templ ates selec t="$ParamT extRun/*"  mode="wwmo de:textrun "> CR LF
1583        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   1604        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
1584        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF   1605        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF
1585        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   1606        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
1586        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   1607        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
1587       </xsl: apply-temp lates> CR LF   1608       </xsl: apply-temp lates> CR LF
1588      </xsl:o therwise> CR LF   1609      </xsl:o therwise> CR LF
1589     </xsl:ch oose> CR LF   1610     </xsl:ch oose> CR LF
1590   CR LF   1611   CR LF
1591     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF   1612     <!-- For ce anchor  on same li ne as cont aining spa n --> CR LF
1592     <!--                                                   --> CR LF   1613     <!--                                                   --> CR LF
1593     <wwexsld oc:NoBreak  /> CR LF   1614     <wwexsld oc:NoBreak  /> CR LF
1594    </xsl:tem plate> CR LF   1615    </xsl:tem plate> CR LF
1595   CR LF   1616   CR LF
1596   CR LF   1617   CR LF
1597    <xsl:temp late match ="wwdoc:No te" mode=" wwmode:tex trun"> CR LF   1618    <xsl:temp late match ="wwdoc:No te" mode=" wwmode:tex trun"> CR LF
1598     <xsl:par am name="P aramSplits " /> CR LF   1619     <xsl:par am name="P aramSplits " /> CR LF
1599     <xsl:par am name="P aramCargo"  /> CR LF   1620     <xsl:par am name="P aramCargo"  /> CR LF
1600     <xsl:par am name="P aramLinks"  /> CR LF   1621     <xsl:par am name="P aramLinks"  /> CR LF
1601     <xsl:par am name="P aramSplit"  /> CR LF   1622     <xsl:par am name="P aramSplit"  /> CR LF
1602   CR LF   1623   CR LF
1603     <xsl:var iable name ="VarConte xt" select ="." /> CR LF   1624     <xsl:var iable name ="VarConte xt" select ="." /> CR LF
1604   CR LF   1625   CR LF
1605     <!-- Imp lement not es --> CR LF   1626     <!-- Imp lement not es --> CR LF
1606     <!--                   --> CR LF   1627     <!--                   --> CR LF
1607     <xsl:for -each sele ct="$Param Cargo/wwno tes:NoteNu mbering[1] "> CR LF   1628     <xsl:for -each sele ct="$Param Cargo/wwno tes:NoteNu mbering[1] "> CR LF
1608      <xsl:va riable nam e="VarNote Number" se lect="key( 'wwnotes-n otes-by-id ', $VarCon text/@id)/ @number" / > CR LF   1629      <xsl:va riable nam e="VarNote Number" se lect="key( 'wwnotes-n otes-by-id ', $VarCon text/@id)/ @number" / > CR LF
1609   CR LF   1630   CR LF
1610      <wp:sup  wp:style= "font-size :smaller"> CR LF   1631      <wp:sup  wp:style= "font-size :smaller"> CR LF
1611       <wp:Go toLink> CR LF   1632       <wp:Go toLink> CR LF
1612        <xsl: attribute  name="wp:n ame"> CR LF   1633        <xsl: attribute  name="wp:n ame"> CR LF
1613         <xsl :text>wwfo otnote_inl ine_</xsl: text> CR LF   1634         <xsl :text>wwfo otnote_inl ine_</xsl: text> CR LF
1614         <xsl :value-of  select="$V arContext/ @id" /> CR LF   1635         <xsl :value-of  select="$V arContext/ @id" /> CR LF
1615        </xsl :attribute > CR LF   1636        </xsl :attribute > CR LF
1616        <xsl: attribute  name="wp:h ref"> CR LF   1637        <xsl: attribute  name="wp:h ref"> CR LF
1617         <xsl :text>#</x sl:text> CR LF   1638         <xsl :text>#</x sl:text> CR LF
1618         <xsl :value-of  select="$V arContext/ @id" /> CR LF   1639         <xsl :value-of  select="$V arContext/ @id" /> CR LF
1619        </xsl :attribute > CR LF   1640        </xsl :attribute > CR LF
1620   CR LF   1641   CR LF
1621        <xsl: value-of s elect="$Va rNoteNumbe r" /> CR LF   1642        <xsl: value-of s elect="$Va rNoteNumbe r" /> CR LF
1622       </wp:G otoLink> CR LF   1643       </wp:G otoLink> CR LF
1623      </wp:su p> CR LF   1644      </wp:su p> CR LF
1624     </xsl:fo r-each> CR LF   1645     </xsl:fo r-each> CR LF
1625    </xsl:tem plate> CR LF   1646    </xsl:tem plate> CR LF
1626   CR LF   1647   CR LF
1627   CR LF   1648   CR LF
1628    <xsl:temp late match ="wwdoc:Li neBreak" m ode="wwmod e:textrun" > CR LF   1649    <xsl:temp late match ="wwdoc:Li neBreak" m ode="wwmod e:textrun" > CR LF
1629     <xsl:par am name="P aramSplits " /> CR LF   1650     <xsl:par am name="P aramSplits " /> CR LF
1630     <xsl:par am name="P aramCargo"  /> CR LF   1651     <xsl:par am name="P aramCargo"  /> CR LF
1631     <xsl:par am name="P aramLinks"  /> CR LF   1652     <xsl:par am name="P aramLinks"  /> CR LF
1632     <xsl:par am name="P aramSplit"  /> CR LF   1653     <xsl:par am name="P aramSplit"  /> CR LF
1633   CR LF   1654   CR LF
1634     <wp:br / > CR LF   1655     <wp:br / > CR LF
1635    </xsl:tem plate> CR LF   1656    </xsl:tem plate> CR LF
1636   CR LF   1657   CR LF
1637   CR LF   1658   CR LF
1638    <xsl:temp late match ="wwdoc:In dexMarker"  mode="wwm ode:textru n"> CR LF   1659    <xsl:temp late match ="wwdoc:In dexMarker"  mode="wwm ode:textru n"> CR LF
1639     <xsl:par am name="P aramSplits " /> CR LF   1660     <xsl:par am name="P aramSplits " /> CR LF
1640     <xsl:par am name="P aramCargo"  /> CR LF   1661     <xsl:par am name="P aramCargo"  /> CR LF
1641     <xsl:par am name="P aramLinks"  /> CR LF   1662     <xsl:par am name="P aramLinks"  /> CR LF
1642     <xsl:par am name="P aramSplit"  /> CR LF   1663     <xsl:par am name="P aramSplit"  /> CR LF
1643   CR LF   1664   CR LF
1644     <!-- Ign ore index  markers -- > CR LF   1665     <!-- Ign ore index  markers -- > CR LF
1645     <!--                        -- > CR LF   1666     <!--                        -- > CR LF
1646    </xsl:tem plate> CR LF   1667    </xsl:tem plate> CR LF
1647   CR LF   1668   CR LF
1648   CR LF   1669   CR LF
1649    <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:t extrun"> CR LF   1670    <xsl:temp late match ="wwdoc:Ma rker" mode ="wwmode:t extrun"> CR LF
1650     <xsl:par am name="P aramSplits " /> CR LF   1671     <xsl:par am name="P aramSplits " /> CR LF
1651     <xsl:par am name="P aramCargo"  /> CR LF   1672     <xsl:par am name="P aramCargo"  /> CR LF
1652     <xsl:par am name="P aramLinks"  /> CR LF   1673     <xsl:par am name="P aramLinks"  /> CR LF
1653     <xsl:par am name="P aramSplit"  /> CR LF   1674     <xsl:par am name="P aramSplit"  /> CR LF
1654   CR LF   1675   CR LF
1655      <!--  Igno r e  marker s  --> CR LF   1676     <xsl:var iable name ="VarMarke r" select= "." /> CR LF
1656      <!--                 
--> CR LF
  1677   CR LF
    1678      <!--  Pass-th r ough  marker ?  --> CR LF
    1679      <!--                         --> CR LF
    1680     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF
    1681      <xsl:va riable nam e="VarMark erBehavior " select=" key('wwbeh aviors-mar kers-by-id ', $VarMar ker/@id)[1 ]" /> CR LF
    1682   CR LF
    1683      <xsl:if  test="$Va rMarkerBeh avior/@beh avior = 'p ass-throug h'"> CR LF
    1684       <!-- P ass-throug h --> CR LF
    1685       <!--                --> CR LF
    1686       <xsl:f or-each se lect="$Var Marker/wwd oc:TextRun "> CR LF
    1687        <xsl: variable n ame="VarTe xtRun" sel ect="." /> CR LF
    1688   CR LF
    1689        <xsl: call-templ ate name=" TextRun-Pa ssThrough" > CR LF
    1690         <xsl :with-para m name="Pa ramTextRun " select=" $VarTextRu n" /> CR LF
    1691        </xsl :call-temp late> CR LF
    1692       </xsl: for-each> CR LF
    1693      </xsl:i f> CR LF
    1694     </xsl:fo r-each> CR LF
1657    </xsl:tem plate> CR LF   1695    </xsl:tem plate> CR LF
1658   CR LF   1696   CR LF
1659   CR LF   1697   CR LF
1660    <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex trun"> CR LF   1698    <xsl:temp late match ="wwdoc:Te xt" mode=" wwmode:tex trun"> CR LF
1661     <xsl:par am name="P aramSplits " /> CR LF   1699     <xsl:par am name="P aramSplits " /> CR LF
1662     <xsl:par am name="P aramCargo"  /> CR LF   1700     <xsl:par am name="P aramCargo"  /> CR LF
1663     <xsl:par am name="P aramLinks"  /> CR LF   1701     <xsl:par am name="P aramLinks"  /> CR LF
1664     <xsl:par am name="P aramSplit"  /> CR LF   1702     <xsl:par am name="P aramSplit"  /> CR LF
1665   CR LF   1703   CR LF
1666     <xsl:val ue-of sele ct="@value " /> CR LF   1704     <xsl:val ue-of sele ct="@value " /> CR LF
1667    </xsl:tem plate> CR LF   1705    </xsl:tem plate> CR LF
1668   CR LF   1706   CR LF
1669   CR LF   1707   CR LF
1670    <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:co ntent"> CR LF   1708    <xsl:temp late match ="wwdoc:Ta ble" mode= "wwmode:co ntent"> CR LF
1671     <xsl:par am name="P aramSplits " /> CR LF   1709     <xsl:par am name="P aramSplits " /> CR LF
1672     <xsl:par am name="P aramCargo"  /> CR LF   1710     <xsl:par am name="P aramCargo"  /> CR LF
1673     <xsl:par am name="P aramLinks"  /> CR LF   1711     <xsl:par am name="P aramLinks"  /> CR LF
1674     <xsl:par am name="P aramTOCDat a" /> CR LF   1712     <xsl:par am name="P aramTOCDat a" /> CR LF
1675     <xsl:par am name="P aramSplit"  /> CR LF   1713     <xsl:par am name="P aramSplit"  /> CR LF
1676   CR LF   1714   CR LF
1677     <xsl:var iable name ="VarTable " select=" ." /> CR LF   1715     <xsl:var iable name ="VarTable " select=" ." /> CR LF
1678   CR LF   1716   CR LF
1679     <!-- Abo rted? --> CR LF   1717     <!-- Abo rted? --> CR LF
1680     <!--           --> CR LF   1718     <!--           --> CR LF
1681     <xsl:if  test="not( wwprogress :Abort())" > CR LF   1719     <xsl:if  test="not( wwprogress :Abort())" > CR LF
1682      <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   1720      <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
1683      <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   1721      <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
1684      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF   1722      <xsl:va riable nam e="VarGene rateOutput " select=" (string-le ngth($VarG enerateOut putOption)  = 0) or ( $VarGenera teOutputOp tion != 'f alse')" /> CR LF
1685      <xsl:if  test="$Va rGenerateO utput"> CR LF   1723      <xsl:if  test="$Va rGenerateO utput"> CR LF
1686   CR LF   1724   CR LF
1687       <!-- G et behavio r --> CR LF   1725       <!-- G et behavio r --> CR LF
1688       <!--                --> CR LF   1726       <!--                --> CR LF
1689       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF   1727       <xsl:f or-each se lect="$Par amCargo/ww behaviors: Behaviors[ 1]"> CR LF
1690        <xsl: variable n ame="VarTa bleBehavio r" select= "key('wwbe haviors-ta bles-by-id ', $VarTab le/@id)[1] " /> CR LF   1728        <xsl: variable n ame="VarTa bleBehavio r" select= "key('wwbe haviors-ta bles-by-id ', $VarTab le/@id)[1] " /> CR LF
1691   CR LF   1729   CR LF
1692        <!--  Table --> CR LF   1730        <!--  Table --> CR LF
1693        <!--        --> CR LF   1731        <!--        --> CR LF
1694        <xsl: call-templ ate name=" Table"> CR LF   1732        <xsl: call-templ ate name=" Table"> CR LF
1695         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1733         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1696         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1734         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1697         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1735         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1698         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF   1736         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF
1699         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1737         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1700         <xsl :with-para m name="Pa ramTable"  select="$V arTable" / > CR LF   1738         <xsl :with-para m name="Pa ramTable"  select="$V arTable" / > CR LF
1701         <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" /> CR LF   1739         <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" /> CR LF
1702         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$VarO verrideRul e" /> CR LF   1740         <xsl :with-para m name="Pa ramOverrid eRule" sel ect="$VarO verrideRul e" /> CR LF
1703         <xsl :with-para m name="Pa ramTableBe havior" se lect="$Var TableBehav ior" /> CR LF   1741         <xsl :with-para m name="Pa ramTableBe havior" se lect="$Var TableBehav ior" /> CR LF
1704        </xsl :call-temp late> CR LF   1742        </xsl :call-temp late> CR LF
1705       </xsl: for-each> CR LF   1743       </xsl: for-each> CR LF
1706      </xsl:i f> CR LF   1744      </xsl:i f> CR LF
1707     </xsl:if > CR LF   1745     </xsl:if > CR LF
1708    </xsl:tem plate> CR LF   1746    </xsl:tem plate> CR LF
1709   CR LF   1747   CR LF
1710   CR LF   1748   CR LF
1711    <xsl:temp late name= "Table-Att ribute-In- Pixels"> CR LF   1749    <xsl:temp late name= "Table-Att ribute-In- Pixels"> CR LF
1712     <xsl:par am name="P aramValue"  /> CR LF   1750     <xsl:par am name="P aramValue"  /> CR LF
1713   CR LF   1751   CR LF
1714     <xsl:cho ose> CR LF   1752     <xsl:cho ose> CR LF
1715      <xsl:wh en test="s tring-leng th($ParamV alue) &gt;  0"> CR LF   1753      <xsl:wh en test="s tring-leng th($ParamV alue) &gt;  0"> CR LF
1716       <!-- N ormalize v alue for H TML attrib ute--> CR LF   1754       <!-- N ormalize v alue for H TML attrib ute--> CR LF
1717       <!--                                       --> CR LF   1755       <!--                                       --> CR LF
1718       <xsl:v ariable na me="VarVal ueToEmit"> CR LF   1756       <xsl:v ariable na me="VarVal ueToEmit"> CR LF
1719        <xsl: variable n ame="VarUn itsSuffix"  select="w wunits:Uni tsSuffix($ ParamValue )" /> CR LF   1757        <xsl: variable n ame="VarUn itsSuffix"  select="w wunits:Uni tsSuffix($ ParamValue )" /> CR LF
1720   CR LF   1758   CR LF
1721        <xsl: choose> CR LF   1759        <xsl: choose> CR LF
1722         <xsl :when test ="string-l ength($Var UnitsSuffi x) &gt; 0" > CR LF   1760         <xsl :when test ="string-l ength($Var UnitsSuffi x) &gt; 0" > CR LF
1723          <xs l:variable  name="Var NumPrefix"  select="w wunits:Num ericPrefix ($ParamVal ue)" /> CR LF   1761          <xs l:variable  name="Var NumPrefix"  select="w wunits:Num ericPrefix ($ParamVal ue)" /> CR LF
1724   CR LF   1762   CR LF
1725          <xs l:value-of  select="w wunits:Con vert($VarN umPrefix,  $VarUnitsS uffix, 'px ')" /> CR LF   1763          <xs l:value-of  select="w wunits:Con vert($VarN umPrefix,  $VarUnitsS uffix, 'px ')" /> CR LF
1726         </xs l:when> CR LF   1764         </xs l:when> CR LF
1727   CR LF   1765   CR LF
1728         <xsl :otherwise > CR LF   1766         <xsl :otherwise > CR LF
1729          <xs l:value-of  select="$ ParamValue " /> CR LF   1767          <xs l:value-of  select="$ ParamValue " /> CR LF
1730         </xs l:otherwis e> CR LF   1768         </xs l:otherwis e> CR LF
1731        </xsl :choose> CR LF   1769        </xsl :choose> CR LF
1732       </xsl: variable> CR LF   1770       </xsl: variable> CR LF
1733   CR LF   1771   CR LF
1734       <xsl:v alue-of se lect="$Var ValueToEmi t" /> CR LF   1772       <xsl:v alue-of se lect="$Var ValueToEmi t" /> CR LF
1735      </xsl:w hen> CR LF   1773      </xsl:w hen> CR LF
1736   CR LF   1774   CR LF
1737      <xsl:ot herwise> CR LF   1775      <xsl:ot herwise> CR LF
1738       <xsl:v alue-of se lect="''"  /> CR LF   1776       <xsl:v alue-of se lect="''"  /> CR LF
1739      </xsl:o therwise> CR LF   1777      </xsl:o therwise> CR LF
1740     </xsl:ch oose> CR LF   1778     </xsl:ch oose> CR LF
1741    </xsl:tem plate> CR LF   1779    </xsl:tem plate> CR LF
1742   CR LF   1780   CR LF
1743   CR LF   1781   CR LF
1744    <xsl:temp late name= "Table"> CR LF   1782    <xsl:temp late name= "Table"> CR LF
1745     <xsl:par am name="P aramSplits " /> CR LF   1783     <xsl:par am name="P aramSplits " /> CR LF
1746     <xsl:par am name="P aramCargo"  /> CR LF   1784     <xsl:par am name="P aramCargo"  /> CR LF
1747     <xsl:par am name="P aramLinks"  /> CR LF   1785     <xsl:par am name="P aramLinks"  /> CR LF
1748     <xsl:par am name="P aramTOCDat a" /> CR LF   1786     <xsl:par am name="P aramTOCDat a" /> CR LF
1749     <xsl:par am name="P aramSplit"  /> CR LF   1787     <xsl:par am name="P aramSplit"  /> CR LF
1750     <xsl:par am name="P aramTable"  /> CR LF   1788     <xsl:par am name="P aramTable"  /> CR LF
1751     <xsl:par am name="P aramStyleN ame" /> CR LF   1789     <xsl:par am name="P aramStyleN ame" /> CR LF
1752     <xsl:par am name="P aramOverri deRule" /> CR LF   1790     <xsl:par am name="P aramOverri deRule" /> CR LF
1753     <xsl:par am name="P aramTableB ehavior" / > CR LF   1791     <xsl:par am name="P aramTableB ehavior" / > CR LF
1754   CR LF   1792   CR LF
1755     <!-- Not es --> CR LF   1793     <!-- Not es --> CR LF
1756     <!--        --> CR LF   1794     <!--        --> CR LF
1757     <xsl:var iable name ="VarNotes " select=" $ParamTabl e//wwdoc:N ote[not(an cestor::ww doc:Frame) ]" /> CR LF   1795     <xsl:var iable name ="VarNotes " select=" $ParamTabl e//wwdoc:N ote[not(an cestor::ww doc:Frame) ]" /> CR LF
1758   CR LF   1796   CR LF
1759     <!-- Not e numberin g --> CR LF   1797     <!-- Not e numberin g --> CR LF
1760     <!--                  --> CR LF   1798     <!--                  --> CR LF
1761     <xsl:var iable name ="VarNoteN umberingAs XML"> CR LF   1799     <xsl:var iable name ="VarNoteN umberingAs XML"> CR LF
1762      <xsl:ca ll-templat e name="No tes-Number "> CR LF   1800      <xsl:ca ll-templat e name="No tes-Number "> CR LF
1763       <xsl:w ith-param  name="Para mNotes" se lect="$Var Notes" /> CR LF   1801       <xsl:w ith-param  name="Para mNotes" se lect="$Var Notes" /> CR LF
1764      </xsl:c all-templa te> CR LF   1802      </xsl:c all-templa te> CR LF
1765     </xsl:va riable> CR LF   1803     </xsl:va riable> CR LF
1766     <xsl:var iable name ="VarNoteN umbering"  select="ms xsl:node-s et($VarNot eNumbering AsXML)" /> CR LF   1804     <xsl:var iable name ="VarNoteN umbering"  select="ms xsl:node-s et($VarNot eNumbering AsXML)" /> CR LF
1767   CR LF   1805   CR LF
1768     <!-- Car go for rec ursion --> CR LF   1806     <!-- Car go for rec ursion --> CR LF
1769     <!--                       --> CR LF   1807     <!--                       --> CR LF
1770     <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() !=  'NoteNumbe ring']/..  | $VarNote Numbering"  /> CR LF   1808     <xsl:var iable name ="VarCargo " select=" $ParamCarg o/*[local- name() !=  'NoteNumbe ring']/..  | $VarNote Numbering"  /> CR LF
1771   CR LF   1809   CR LF
1772     <!-- Res olve proje ct propert ies --> CR LF   1810     <!-- Res olve proje ct propert ies --> CR LF
1773     <!--                               --> CR LF   1811     <!--                               --> CR LF
1774     <xsl:var iable name ="VarResol vedPropert iesAsXML"> CR LF   1812     <xsl:var iable name ="VarResol vedPropert iesAsXML"> CR LF
1775      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> CR LF   1813      <xsl:ca ll-templat e name="Pr operties-R esolveOver rideRule"> CR LF
1776       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF   1814       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamOve rrideRule/ wwproject: Properties /wwproject :Property"  /> CR LF
1777       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> CR LF   1815       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> CR LF
1778      </xsl:c all-templa te> CR LF   1816      </xsl:c all-templa te> CR LF
1779     </xsl:va riable> CR LF   1817     </xsl:va riable> CR LF
1780     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> CR LF   1818     <xsl:var iable name ="VarResol vedPropert ies" selec t="msxsl:n ode-set($V arResolved Properties AsXML)/wwp roject:Pro perty" /> CR LF
1781   CR LF   1819   CR LF
1782     <!-- CSS  propertie s --> CR LF   1820     <!-- CSS  propertie s --> CR LF
1783     <!--                  --> CR LF   1821     <!--                  --> CR LF
1784     <xsl:var iable name ="VarCSSPr opertiesAs XML"> CR LF   1822     <xsl:var iable name ="VarCSSPr opertiesAs XML"> CR LF
1785      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF   1823      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties"> CR LF
1786       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" /> CR LF   1824       <xsl:w ith-param  name="Para mPropertie s" select= "$VarResol vedPropert ies" /> CR LF
1787       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF   1825       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amSplit/@p ath" /> CR LF
1788       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   1826       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> 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 ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> CR LF   1829     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" /> CR LF
1792   CR LF   1830   CR LF
1793     <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   1831     <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
1794   CR LF   1832   CR LF
1795     <!-- Res olve proje ct propert ies --> CR LF   1833     <!-- Res olve proje ct propert ies --> CR LF
1796     <!--                               --> CR LF   1834     <!--                               --> CR LF
1797     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF   1835     <xsl:var iable name ="VarResol vedContext Properties AsXML"> CR LF
1798      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF   1836      <xsl:ca ll-templat e name="Pr operties-R esolveCont extRule"> CR LF
1799       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amTable" / > CR LF   1837       <xsl:w ith-param  name="Para mDocumentC ontext" se lect="$Par amTable" / > CR LF
1800       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF   1838       <xsl:w ith-param  name="Para mPropertie s" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty" /> CR LF
1801       <xsl:w ith-param  name="Para mStyleName " select=" $ParamTabl e/@stylena me" /> CR LF   1839       <xsl:w ith-param  name="Para mStyleName " select=" $ParamTabl e/@stylena me" /> CR LF
1802       <xsl:w ith-param  name="Para mStyleType " select=" 'Table'" / > CR LF   1840       <xsl:w ith-param  name="Para mStyleType " select=" 'Table'" / > CR LF
1803       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> CR LF   1841       <xsl:w ith-param  name="Para mContextSt yle" selec t="$ParamT able/wwdoc :Style" /> CR LF
1804      </xsl:c all-templa te> CR LF   1842      </xsl:c all-templa te> CR LF
1805     </xsl:va riable> CR LF   1843     </xsl:va riable> CR LF
1806     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF   1844     <xsl:var iable name ="VarResol vedContext Properties " select=" msxsl:node -set($VarR esolvedCon textProper tiesAsXML) /wwproject :Property"  /> CR LF
1807   CR LF   1845   CR LF
1808     <!-- Tab le class - -> CR LF   1846     <!-- Tab le class - -> CR LF
1809     <!--              - -> CR LF   1847     <!--              - -> CR LF
1810     <xsl:var iable name ="VarClass Attribute" > CR LF   1848     <xsl:var iable name ="VarClass Attribute" > CR LF
1811      <xsl:va lue-of sel ect="wwstr ing:CSSCla ssName($Pa ramStyleNa me)" /> CR LF   1849      <xsl:va lue-of sel ect="wwstr ing:CSSCla ssName($Pa ramStyleNa me)" /> CR LF
1812     </xsl:va riable> CR LF   1850     </xsl:va riable> CR LF
1813   CR LF   1851   CR LF
1814     <!-- Sty le attribu te --> CR LF   1852     <!-- Sty le attribu te --> CR LF
1815     <!--                   --> CR LF   1853     <!--                   --> CR LF
1816     <xsl:var iable name ="VarStyle Attribute" > CR LF   1854     <xsl:var iable name ="VarStyle Attribute" > CR LF
1817      <xsl:ca ll-templat e name="CS S-InlinePr operties"> CR LF   1855      <xsl:ca ll-templat e name="CS S-InlinePr operties"> CR LF
1818       <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties[( @Name != ' vertical-a lign')]" / > CR LF   1856       <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties[( @Name != ' vertical-a lign')]" / > 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   CR LF   1859   CR LF
1822     <!-- Bor der --> CR LF   1860     <!-- Bor der --> CR LF
1823     <!--         --> CR LF   1861     <!--         --> CR LF
1824     <xsl:var iable name ="VarTable Border"> CR LF   1862     <xsl:var iable name ="VarTable Border"> CR LF
1825      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF   1863      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF
1826       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'borde r']/@Value " /> CR LF   1864       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'borde r']/@Value " /> CR LF
1827      </xsl:c all-templa te> CR LF   1865      </xsl:c all-templa te> CR LF
1828     </xsl:va riable> CR LF   1866     </xsl:va riable> CR LF
1829   CR LF   1867   CR LF
1830     <!-- Cel l padding  --> CR LF   1868     <!-- Cel l padding  --> CR LF
1831     <!--                --> CR LF   1869     <!--                --> CR LF
1832     <xsl:var iable name ="VarTable CellPaddin g"> CR LF   1870     <xsl:var iable name ="VarTable CellPaddin g"> CR LF
1833      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF   1871      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF
1834       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- padding']/ @Value" /> CR LF   1872       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- padding']/ @Value" /> CR LF
1835      </xsl:c all-templa te> CR LF   1873      </xsl:c all-templa te> CR LF
1836     </xsl:va riable> CR LF   1874     </xsl:va riable> CR LF
1837   CR LF   1875   CR LF
1838     <!-- Cel l spacing  --> CR LF   1876     <!-- Cel l spacing  --> CR LF
1839     <!--                --> CR LF   1877     <!--                --> CR LF
1840     <xsl:var iable name ="VarTable CellSpacin g"> CR LF   1878     <xsl:var iable name ="VarTable CellSpacin g"> CR LF
1841      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF   1879      <xsl:ca ll-templat e name="Ta ble-Attrib ute-In-Pix els"> CR LF
1842       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- spacing']/ @Value" /> CR LF   1880       <xsl:w ith-param  name="Para mValue" se lect="$Var ResolvedCo ntextPrope rties[@Nam e = 'cell- spacing']/ @Value" /> CR LF
1843      </xsl:c all-templa te> CR LF   1881      </xsl:c all-templa te> CR LF
1844     </xsl:va riable> CR LF   1882     </xsl:va riable> CR LF
1845   CR LF   1883   CR LF
1846     <!-- Tab le vertica l alignmen t --> CR LF   1884     <!-- Tab le vertica l alignmen t --> CR LF
1847     <!--                             --> CR LF   1885     <!--                             --> CR LF
1848     <xsl:var iable name ="VarTable VerticalAl ignment"> CR LF   1886     <xsl:var iable name ="VarTable VerticalAl ignment"> CR LF
1849      <xsl:va riable nam e="VarTabl eVerticalA lignmentHi nt" select ="$VarReso lvedContex tPropertie s[@Name =  'vertical- align']/@V alue" /> CR LF   1887      <xsl:va riable nam e="VarTabl eVerticalA lignmentHi nt" select ="$VarReso lvedContex tPropertie s[@Name =  'vertical- align']/@V alue" /> CR LF
1850      <xsl:ch oose> CR LF   1888      <xsl:ch oose> CR LF
1851       <xsl:w hen test=" string-len gth($VarTa bleVertica lAlignment Hint) &gt;  0"> CR LF   1889       <xsl:w hen test=" string-len gth($VarTa bleVertica lAlignment Hint) &gt;  0"> CR LF
1852        <xsl: value-of s elect="$Va rTableVert icalAlignm entHint" / > CR LF   1890        <xsl: value-of s elect="$Va rTableVert icalAlignm entHint" / > CR LF
1853       </xsl: when> CR LF   1891       </xsl: when> CR LF
1854       <xsl:o therwise> CR LF   1892       <xsl:o therwise> CR LF
1855        <xsl: value-of s elect="''"  /> CR LF   1893        <xsl: value-of s elect="''"  /> CR LF
1856       </xsl: otherwise> CR LF   1894       </xsl: otherwise> CR LF
1857      </xsl:c hoose> CR LF   1895      </xsl:c hoose> CR LF
1858     </xsl:va riable> CR LF   1896     </xsl:va riable> CR LF
1859   CR LF   1897   CR LF
1860     <!-- Tab le summary  --> CR LF   1898     <!-- Tab le summary  --> CR LF
1861     <!--                 --> CR LF   1899     <!--                 --> CR LF
1862     <xsl:var iable name ="VarTable Summary"> CR LF   1900     <xsl:var iable name ="VarTable Summary"> CR LF
1863      <xsl:ca ll-templat e name="Ta bles-Summa ry"> CR LF   1901      <xsl:ca ll-templat e name="Ta bles-Summa ry"> CR LF
1864       <xsl:w ith-param  name="Para mTableBeha vior" sele ct="$Param TableBehav ior" /> CR LF   1902       <xsl:w ith-param  name="Para mTableBeha vior" sele ct="$Param TableBehav ior" /> CR LF
1865      </xsl:c all-templa te> CR LF   1903      </xsl:c all-templa te> CR LF
1866     </xsl:va riable> CR LF   1904     </xsl:va riable> CR LF
1867   CR LF   1905   CR LF
1868     <!-- Cap tion Side  --> CR LF   1906     <!-- Cap tion Side  --> CR LF
1869     <!--                --> CR LF   1907     <!--                --> CR LF
1870     <xsl:var iable name ="VarCapti onSide"> CR LF   1908     <xsl:var iable name ="VarCapti onSide"> CR LF
1871      <xsl:va lue-of sel ect="$VarR esolvedCon textProper ties[@Name  = 'captio n-side']/@ Value" /> CR LF   1909      <xsl:va lue-of sel ect="$VarR esolvedCon textProper ties[@Name  = 'captio n-side']/@ Value" /> CR LF
1872     </xsl:va riable> CR LF   1910     </xsl:va riable> CR LF
1873   CR LF   1911   CR LF
1874     <!-- Det ermine tab le cell wi dths --> CR LF   1912     <!-- Det ermine tab le cell wi dths --> CR LF
1875     <!--                                --> CR LF   1913     <!--                                --> CR LF
1876     <xsl:var iable name ="VarTable CellWidths AsXML"> CR LF   1914     <xsl:var iable name ="VarTable CellWidths AsXML"> CR LF
1877      <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   1915      <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
1878      <xsl:va riable nam e="VarEmit TableWidth s" select= "$VarEmitT ableWidths Option = ' true'" /> CR LF   1916      <xsl:va riable nam e="VarEmit TableWidth s" select= "$VarEmitT ableWidths Option = ' true'" /> CR LF
1879   CR LF   1917   CR LF
1880      <xsl:if  test="$Va rEmitTable Widths"> CR LF   1918      <xsl:if  test="$Va rEmitTable Widths"> CR LF
1881       <xsl:c all-templa te name="T able-CellW idths"> CR LF   1919       <xsl:c all-templa te name="T able-CellW idths"> CR LF
1882        <xsl: with-param  name="Par amTable" s elect="$Pa ramTable"  /> CR LF   1920        <xsl: with-param  name="Par amTable" s elect="$Pa ramTable"  /> CR LF
1883       </xsl: call-templ ate> CR LF   1921       </xsl: call-templ ate> CR LF
1884      </xsl:i f> CR LF   1922      </xsl:i f> CR LF
1885     </xsl:va riable> CR LF   1923     </xsl:va riable> CR LF
1886     <xsl:var iable name ="VarTable CellWidths " select=" msxsl:node -set($VarT ableCellWi dthsAsXML) /*" /> CR LF   1924     <xsl:var iable name ="VarTable CellWidths " select=" msxsl:node -set($VarT ableCellWi dthsAsXML) /*" /> CR LF
1887   CR LF   1925   CR LF
1888     <!-- Emi t <table>  element wi th class,  id, style,  and summa ry attrs.  --> CR LF   1926     <!-- Emi t <table>  element wi th class,  id, style,  and summa ry attrs.  --> CR LF
1889     <!--                                                                       --> CR LF   1927     <!--                                                                       --> CR LF
1890     <wwxmlxs l:Table wp :type="tab le" wp:cla ss="{$VarC lassAttrib ute}"> CR LF   1928     <wwxmlxs l:Table wp :type="tab le" wp:cla ss="{$VarC lassAttrib ute}"> CR LF
1891   CR LF   1929   CR LF
1892      <!-- st yle attrib ute --> CR LF   1930      <!-- st yle attrib ute --> CR LF
1893      <!--                   --> CR LF   1931      <!--                   --> CR LF
1894      <xsl:if  test="str ing-length ($VarStyle Attribute)  &gt; 0"> CR LF   1932      <xsl:if  test="str ing-length ($VarStyle Attribute)  &gt; 0"> CR LF
1895       <xsl:a ttribute n ame="wp:st yle"> CR LF   1933       <xsl:a ttribute n ame="wp:st yle"> CR LF
1896        <xsl: value-of s elect="$Va rStyleAttr ibute" /> CR LF   1934        <xsl: value-of s elect="$Va rStyleAttr ibute" /> CR LF
1897       </xsl: attribute> CR LF   1935       </xsl: attribute> CR LF
1898      </xsl:i f> CR LF   1936      </xsl:i f> CR LF
1899   CR LF   1937   CR LF
1900      <!-- bo rder attri bute --> CR LF   1938      <!-- bo rder attri bute --> CR LF
1901      <!--                    --> CR LF   1939      <!--                    --> CR LF
1902      <xsl:if  test="str ing-length ($VarTable Border) &g t; 0"> CR LF   1940      <xsl:if  test="str ing-length ($VarTable Border) &g t; 0"> CR LF
1903       <xsl:a ttribute n ame="wp:bo rder"> CR LF   1941       <xsl:a ttribute n ame="wp:bo rder"> CR LF
1904        <xsl: value-of s elect="$Va rTableBord er" /> CR LF   1942        <xsl: value-of s elect="$Va rTableBord er" /> CR LF
1905       </xsl: attribute> CR LF   1943       </xsl: attribute> CR LF
1906      </xsl:i f> CR LF   1944      </xsl:i f> CR LF
1907   CR LF   1945   CR LF
1908      <!-- ce llpadding  attribute  --> CR LF   1946      <!-- ce llpadding  attribute  --> CR LF
1909      <!--                          --> CR LF   1947      <!--                          --> CR LF
1910      <xsl:if  test="str ing-length ($VarTable CellPaddin g) &gt; 0" > CR LF   1948      <xsl:if  test="str ing-length ($VarTable CellPaddin g) &gt; 0" > CR LF
1911       <xsl:a ttribute n ame="wp:ce llpadding" > CR LF   1949       <xsl:a ttribute n ame="wp:ce llpadding" > CR LF
1912        <xsl: value-of s elect="$Va rTableCell Padding" / > CR LF   1950        <xsl: value-of s elect="$Va rTableCell Padding" / > CR LF
1913       </xsl: attribute> CR LF   1951       </xsl: attribute> CR LF
1914      </xsl:i f> CR LF   1952      </xsl:i f> CR LF
1915   CR LF   1953   CR LF
1916      <!-- ce llspacing  attribute  --> CR LF   1954      <!-- ce llspacing  attribute  --> CR LF
1917      <!--                          --> CR LF   1955      <!--                          --> CR LF
1918      <xsl:if  test="str ing-length ($VarTable CellSpacin g) &gt; 0" > CR LF   1956      <xsl:if  test="str ing-length ($VarTable CellSpacin g) &gt; 0" > CR LF
1919       <xsl:a ttribute n ame="wp:ce llspacing" > CR LF   1957       <xsl:a ttribute n ame="wp:ce llspacing" > CR LF
1920        <xsl: value-of s elect="$Va rTableCell Spacing" / > CR LF   1958        <xsl: value-of s elect="$Va rTableCell Spacing" / > CR LF
1921       </xsl: attribute> CR LF   1959       </xsl: attribute> CR LF
1922      </xsl:i f> CR LF   1960      </xsl:i f> CR LF
1923   CR LF   1961   CR LF
1924      <!-- su mmary attr ibute --> CR LF   1962      <!-- su mmary attr ibute --> CR LF
1925      <!--                     --> CR LF   1963      <!--                     --> CR LF
1926      <xsl:if  test="str ing-length ($VarTable Summary) & gt; 0"> CR LF   1964      <xsl:if  test="str ing-length ($VarTable Summary) & gt; 0"> CR LF
1927       <xsl:a ttribute n ame="wp:su mmary"> CR LF   1965       <xsl:a ttribute n ame="wp:su mmary"> CR LF
1928        <xsl: value-of s elect="$Va rTableSumm ary" /> CR LF   1966        <xsl: value-of s elect="$Va rTableSumm ary" /> CR LF
1929       </xsl: attribute> CR LF   1967       </xsl: attribute> CR LF
1930      </xsl:i f> CR LF   1968      </xsl:i f> CR LF
1931   CR LF   1969   CR LF
1932      <!-- Ap ply captio n template s --> CR LF   1970      <!-- Ap ply captio n template s --> CR LF
1933      <!--                            --> CR LF   1971      <!--                            --> CR LF
1934      <xsl:fo r-each sel ect="$Para mTable/wwd oc:Caption [1]"> CR LF   1972      <xsl:fo r-each sel ect="$Para mTable/wwd oc:Caption [1]"> CR LF
1935       <wwxml xsl:TableT itle wp:ty pe="tablet itle"> CR LF   1973       <wwxml xsl:TableT itle wp:ty pe="tablet itle"> CR LF
1936   CR LF   1974   CR LF
1937        <xsl: if test="s tring-leng th($VarCap tionSide)  &gt; 0"> CR LF   1975        <xsl: if test="s tring-leng th($VarCap tionSide)  &gt; 0"> CR LF
1938         <xsl :attribute  name="wp: style"> CR LF   1976         <xsl :attribute  name="wp: style"> CR LF
1939          <xs l:value-of  select="c oncat('cap tion-side:  ', $VarCa ptionSide) " /> CR LF   1977          <xs l:value-of  select="c oncat('cap tion-side:  ', $VarCa ptionSide) " /> CR LF
1940         </xs l:attribut e> CR LF   1978         </xs l:attribut e> CR LF
1941        </xsl :if> CR LF   1979        </xsl :if> CR LF
1942   CR LF   1980   CR LF
1943        <xsl: apply-temp lates sele ct="./*" m ode="wwmod e:content" > CR LF   1981        <xsl: apply-temp lates sele ct="./*" m ode="wwmod e:content" > CR LF
1944         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   1982         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
1945         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   1983         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
1946         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   1984         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
1947         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF   1985         <xsl :with-para m name="Pa ramTOCData " select=" $ParamTOCD ata" /> CR LF
1948         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   1986         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
1949        </xsl :apply-tem plates> CR LF   1987        </xsl :apply-tem plates> CR LF
1950   CR LF   1988   CR LF
1951       </wwxm lxsl:Table Title> CR LF   1989       </wwxm lxsl:Table Title> CR LF
1952      </xsl:f or-each> CR LF   1990      </xsl:f or-each> CR LF
1953   CR LF   1991   CR LF
1954      <xsl:fo r-each sel ect="$Para mTable/wwd oc:TableHe ad|$ParamT able/wwdoc :TableBody |$ParamTab le/wwdoc:T ableFoot"> CR LF   1992      <xsl:fo r-each sel ect="$Para mTable/wwd oc:TableHe ad|$ParamT able/wwdoc :TableBody |$ParamTab le/wwdoc:T ableFoot"> CR LF
1955       <xsl:v ariable na me="VarSec tion" sele ct="." /> CR LF   1993       <xsl:v ariable na me="VarSec tion" sele ct="." /> CR LF
1956   CR LF   1994   CR LF
1957       <!-- S ection tag  --> CR LF   1995       <!-- S ection tag  --> CR LF
1958       <!--               --> CR LF   1996       <!--               --> CR LF
1959       <xsl:v ariable na me="VarSec tionTag"> CR LF   1997       <xsl:v ariable na me="VarSec tionTag"> CR LF
1960        <xsl: choose> CR LF   1998        <xsl: choose> CR LF
1961         <xsl :when test ="name($Va rSection)  = 'TableHe ad'"> CR LF   1999         <xsl :when test ="name($Va rSection)  = 'TableHe ad'"> CR LF
1962          <xs l:value-of  select="' TableHead' " /> CR LF   2000          <xs l:value-of  select="' TableHead' " /> CR LF
1963         </xs l:when> CR LF   2001         </xs l:when> CR LF
1964         <xsl :when test ="name($Va rSection)  = 'TableFo ot'"> CR LF   2002         <xsl :when test ="name($Va rSection)  = 'TableFo ot'"> CR LF
1965          <xs l:value-of  select="' TableFoot' " /> CR LF   2003          <xs l:value-of  select="' TableFoot' " /> CR LF
1966         </xs l:when> CR LF   2004         </xs l:when> CR LF
1967         <xsl :otherwise > CR LF   2005         <xsl :otherwise > CR LF
1968          <xs l:value-of  select="' TableBody' " /> CR LF   2006          <xs l:value-of  select="' TableBody' " /> CR LF
1969         </xs l:otherwis e> CR LF   2007         </xs l:otherwis e> CR LF
1970        </xsl :choose> CR LF   2008        </xsl :choose> CR LF
1971       </xsl: variable> CR LF   2009       </xsl: variable> CR LF
1972   CR LF   2010   CR LF
1973       <!-- w p:type att ribute --> CR LF   2011       <!-- w p:type att ribute --> CR LF
1974       <!--                     --> CR LF   2012       <!--                     --> CR LF
1975       <xsl:v ariable na me="VarWpT ypeAttribu te"> CR LF   2013       <xsl:v ariable na me="VarWpT ypeAttribu te"> CR LF
1976        <xsl: choose> CR LF   2014        <xsl: choose> CR LF
1977         <xsl :when test ="name($Va rSection)  = 'TableHe ad'"> CR LF   2015         <xsl :when test ="name($Va rSection)  = 'TableHe ad'"> CR LF
1978          <xs l:value-of  select="' tableheadi ng'" /> CR LF   2016          <xs l:value-of  select="' tableheadi ng'" /> CR LF
1979         </xs l:when> CR LF   2017         </xs l:when> CR LF
1980         <xsl :when test ="name($Va rSection)  = 'TableFo ot'"> CR LF   2018         <xsl :when test ="name($Va rSection)  = 'TableFo ot'"> CR LF
1981          <xs l:value-of  select="' tablefooti ng'" /> CR LF   2019          <xs l:value-of  select="' tablefooti ng'" /> CR LF
1982         </xs l:when> CR LF   2020         </xs l:when> CR LF
1983         <xsl :otherwise > CR LF   2021         <xsl :otherwise > CR LF
1984          <xs l:value-of  select="' tablebody' " /> CR LF   2022          <xs l:value-of  select="' tablebody' " /> CR LF
1985         </xs l:otherwis e> CR LF   2023         </xs l:otherwis e> CR LF
1986        </xsl :choose> CR LF   2024        </xsl :choose> CR LF
1987       </xsl: variable> CR LF   2025       </xsl: variable> CR LF
1988   CR LF   2026   CR LF
1989      <xsl:el ement name ="{$VarSec tionTag}"  namespace= "{$GlobalD efaultName space}"> CR LF   2027      <xsl:el ement name ="{$VarSec tionTag}"  namespace= "{$GlobalD efaultName space}"> CR LF
1990       <xsl:a ttribute n ame="wp:ty pe"> CR LF   2028       <xsl:a ttribute n ame="wp:ty pe"> CR LF
1991        <xsl: value-of s elect="$Va rWpTypeAtt ribute" /> CR LF   2029        <xsl: value-of s elect="$Va rWpTypeAtt ribute" /> CR LF
1992       </xsl: attribute> CR LF   2030       </xsl: attribute> CR LF
1993   CR LF   2031   CR LF
1994       <!-- R esolve sec tion prope rties --> CR LF   2032       <!-- R esolve sec tion prope rties --> CR LF
1995       <!--                               --> CR LF   2033       <!--                               --> CR LF
1996       <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML"> CR LF   2034       <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML"> CR LF
1997        <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule"> CR LF   2035        <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule"> CR LF
1998         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property"  /> CR LF   2036         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property"  /> CR LF
1999         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramTable"  /> CR LF   2037         <xsl :with-para m name="Pa ramDocumen tContext"  select="$P aramTable"  /> CR LF
2000         <xsl :with-para m name="Pa ramTable"  select="$P aramTable"  /> CR LF   2038         <xsl :with-para m name="Pa ramTable"  select="$P aramTable"  /> CR LF
2001         <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" /> CR LF   2039         <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" /> CR LF
2002        </xsl :call-temp late> CR LF   2040        </xsl :call-temp late> CR LF
2003       </xsl: variable> CR LF   2041       </xsl: variable> CR LF
2004       <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   2042       <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
2005   CR LF   2043   CR LF
2006       <!-- P rocess sec tion rows  --> CR LF   2044       <!-- P rocess sec tion rows  --> CR LF
2007       <!--                         --> CR LF   2045       <!--                         --> CR LF
2008       <xsl:f or-each se lect="$Var Section/ww doc:TableR ow"> CR LF   2046       <xsl:f or-each se lect="$Var Section/ww doc:TableR ow"> CR LF
2009        <xsl: variable n ame="VarTa bleRow" se lect="." / > CR LF   2047        <xsl: variable n ame="VarTa bleRow" se lect="." / > CR LF
2010        <xsl: variable n ame="VarRo wPosition"  select="p osition()"  /> CR LF   2048        <xsl: variable n ame="VarRo wPosition"  select="p osition()"  /> CR LF
2011   CR LF   2049   CR LF
2012        <wwxm lxsl:Table Row wp:typ e="tablero w_body"> CR LF   2050        <wwxm lxsl:Table Row wp:typ e="tablero w_body"> CR LF
2013   CR LF   2051   CR LF
2014         <!--  Handle ta ble level  vertical a lign at ro w level -- > CR LF   2052         <!--  Handle ta ble level  vertical a lign at ro w level -- > CR LF
2015         <!--                                                     -- > CR LF   2053         <!--                                                     -- > CR LF
2016         <xsl :if test=" string-len gth($VarTa bleVertica lAlignment ) &gt; 0"> CR LF   2054         <xsl :if test=" string-len gth($VarTa bleVertica lAlignment ) &gt; 0"> CR LF
2017          <xs l:attribut e name="st yle"> CR LF   2055          <xs l:attribut e name="st yle"> CR LF
2018           <x sl:value-o f select=" concat('ve rtical-ali gn: ', $Va rTableVert icalAlignm ent, ';')"  /> CR LF   2056           <x sl:value-o f select=" concat('ve rtical-ali gn: ', $Va rTableVert icalAlignm ent, ';')"  /> CR LF
2019          </x sl:attribu te> CR LF   2057          </x sl:attribu te> CR LF
2020         </xs l:if> CR LF   2058         </xs l:if> CR LF
2021   CR LF   2059   CR LF
2022         <xsl :for-each  select="$V arTableRow /wwdoc:Tab leCell"> CR LF   2060         <xsl :for-each  select="$V arTableRow /wwdoc:Tab leCell"> CR LF
2023          <xs l:variable  name="Var TableCell"  select=". " /> CR LF   2061          <xs l:variable  name="Var TableCell"  select=". " /> CR LF
2024          <xs l:variable  name="Var CellPositi on" select ="position ()" /> CR LF   2062          <xs l:variable  name="Var CellPositi on" select ="position ()" /> CR LF
2025   CR LF   2063   CR LF
2026          <!- - Resolve  cell prope rties --> CR LF   2064          <!- - Resolve  cell prope rties --> CR LF
2027          <!- -                           --> CR LF   2065          <!- -                           --> CR LF
2028          <xs l:variable  name="Var ResolvedCe llProperti esAsXML"> CR LF   2066          <xs l:variable  name="Var ResolvedCe llProperti esAsXML"> CR LF
2029           <x sl:call-te mplate nam e="Propert ies-Table- Cell-Resol veProperti es"> CR LF   2067           <x sl:call-te mplate nam e="Propert ies-Table- Cell-Resol veProperti es"> CR LF
2030            < xsl:with-p aram name= "ParamSect ionPropert ies" selec t="$VarRes olvedSecti onProperti es" /> CR LF   2068            < xsl:with-p aram name= "ParamSect ionPropert ies" selec t="$VarRes olvedSecti onProperti es" /> CR LF
2031            < xsl:with-p aram name= "ParamCell Style" sel ect="$VarT ableCell/w wdoc:Style " /> CR LF   2069            < xsl:with-p aram name= "ParamCell Style" sel ect="$VarT ableCell/w wdoc:Style " /> CR LF
2032            < xsl:with-p aram name= "ParamRowI ndex" sele ct="$VarRo wPosition"  /> CR LF   2070            < xsl:with-p aram name= "ParamRowI ndex" sele ct="$VarRo wPosition"  /> CR LF
2033            < xsl:with-p aram name= "ParamColu mnIndex" s elect="$Va rCellPosit ion" /> CR LF   2071            < xsl:with-p aram name= "ParamColu mnIndex" s elect="$Va rCellPosit ion" /> CR LF
2034           </ xsl:call-t emplate> CR LF   2072           </ xsl:call-t emplate> CR LF
2035   CR LF   2073   CR LF
2036           <! -- Width a ttribute - -> CR LF   2074           <! -- Width a ttribute - -> CR LF
2037           <! --                  - -> CR LF   2075           <! --                  - -> CR LF
2038           <x sl:for-eac h select=" $VarTableC ellWidths[ @id = $Var TableCell/ @id][1]"> CR LF   2076           <x sl:for-eac h select=" $VarTableC ellWidths[ @id = $Var TableCell/ @id][1]"> CR LF
2039            < xsl:variab le name="V arTableCel lWidth" se lect="." / > CR LF   2077            < xsl:variab le name="V arTableCel lWidth" se lect="." / > CR LF
2040   CR LF   2078   CR LF
2041            < wwproject: Property N ame="width " Value="{ $VarTableC ellWidth/@ width}" /> CR LF   2079            < wwproject: Property N ame="width " Value="{ $VarTableC ellWidth/@ width}" /> CR LF
2042           </ xsl:for-ea ch> CR LF   2080           </ xsl:for-ea ch> CR LF
2043          </x sl:variabl e> CR LF   2081          </x sl:variabl e> CR LF
2044          <xs l:variable  name="Var ResolvedCe llProperti es" select ="msxsl:no de-set($Va rResolvedC ellPropert iesAsXML)/ wwproject: Property"  /> CR LF   2082          <xs l:variable  name="Var ResolvedCe llProperti es" select ="msxsl:no de-set($Va rResolvedC ellPropert iesAsXML)/ wwproject: Property"  /> CR LF
2045   CR LF   2083   CR LF
2046          <!- - Valid CS S properti es --> CR LF   2084          <!- - Valid CS S properti es --> CR LF
2047          <!- -                        --> CR LF   2085          <!- -                        --> CR LF
2048          <xs l:variable  name="Var TableCellC SSProperti esAsXML"> CR LF   2086          <xs l:variable  name="Var TableCellC SSProperti esAsXML"> CR LF
2049           <x sl:call-te mplate nam e="CSS-Tra nslateProj ectPropert ies"> CR LF   2087           <x sl:call-te mplate nam e="CSS-Tra nslateProj ectPropert ies"> CR LF
2050            < xsl:with-p aram name= "ParamProp erties" se lect="$Var ResolvedCe llProperti es" /> CR LF   2088            < xsl:with-p aram name= "ParamProp erties" se lect="$Var ResolvedCe llProperti es" /> CR LF
2051            < xsl:with-p aram name= "ParamFrom AbsoluteUR I" select= "$ParamSpl it/@path"  /> CR LF   2089            < xsl:with-p aram name= "ParamFrom AbsoluteUR I" select= "$ParamSpl it/@path"  /> CR LF
2052            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF   2090            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF
2053           </ xsl:call-t emplate> CR LF   2091           </ xsl:call-t emplate> CR LF
2054          </x sl:variabl e> CR LF   2092          </x sl:variabl e> CR LF
2055          <xs l:variable  name="Var TableCellC SSProperti es" select ="msxsl:no de-set($Va rTableCell CSSPropert iesAsXML)/ wwproject: Property"  /> CR LF   2093          <xs l:variable  name="Var TableCellC SSProperti es" select ="msxsl:no de-set($Va rTableCell CSSPropert iesAsXML)/ wwproject: Property"  /> CR LF
2056   CR LF   2094   CR LF
2057          <!- - Calculat e row span  --> CR LF   2095          <!- - Calculat e row span  --> CR LF
2058          <!- -                      --> CR LF   2096          <!- -                      --> CR LF
2059          <xs l:variable  name="Var RowSpan"> CR LF   2097          <xs l:variable  name="Var RowSpan"> CR LF
2060           <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   2098           <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
2061           <x sl:choose> CR LF   2099           <x sl:choose> CR LF
2062            < xsl:when t est="strin g-length($ VarRowSpan Hint) &gt;  0"> CR LF   2100            < xsl:when t est="strin g-length($ VarRowSpan Hint) &gt;  0"> CR LF
2063              <xsl:value -of select ="$VarRowS panHint" / > CR LF   2101              <xsl:value -of select ="$VarRowS panHint" / > 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          <!- - Calculat e column s pan --> CR LF   2109          <!- - Calculat e column s pan --> CR LF
2072          <!- -                         --> CR LF   2110          <!- -                         --> CR LF
2073          <xs l:variable  name="Var ColumnSpan "> CR LF   2111          <xs l:variable  name="Var ColumnSpan "> CR LF
2074           <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   2112           <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
2075           <x sl:choose> CR LF   2113           <x sl:choose> CR LF
2076            < xsl:when t est="strin g-length($ VarColumnS panHint) & gt; 0"> CR LF   2114            < xsl:when t est="strin g-length($ VarColumnS panHint) & gt; 0"> CR LF
2077              <xsl:value -of select ="$VarColu mnSpanHint " /> CR LF   2115              <xsl:value -of select ="$VarColu mnSpanHint " /> CR LF
2078            < /xsl:when> CR LF   2116            < /xsl:when> CR LF
2079            < xsl:otherw ise> CR LF   2117            < xsl:otherw ise> CR LF
2080              <xsl:value -of select ="0" /> CR LF   2118              <xsl:value -of select ="0" /> CR LF
2081            < /xsl:other wise> CR LF   2119            < /xsl:other wise> CR LF
2082           </ xsl:choose > CR LF   2120           </ xsl:choose > CR LF
2083          </x sl:variabl e> CR LF   2121          </x sl:variabl e> CR LF
2084   CR LF   2122   CR LF
2085          <!- - Emit cel l --> CR LF   2123          <!- - Emit cel l --> CR LF
2086          <!- -            --> CR LF   2124          <!- -            --> CR LF
2087          <ww xmlxsl:Tab leCell wp: type="tabl ecell_body " wp:id="{ @id}"> CR LF   2125          <ww xmlxsl:Tab leCell wp: type="tabl ecell_body " wp:id="{ @id}"> CR LF
2088           <! -- Style a ttribute - -> CR LF   2126           <! -- Style a ttribute - -> CR LF
2089           <! --                  - -> CR LF   2127           <! --                  - -> CR LF
2090           <x sl:if test ="count($V arTableCel lCSSProper ties[1]) =  1"> CR LF   2128           <x sl:if test ="count($V arTableCel lCSSProper ties[1]) =  1"> CR LF
2091            < xsl:attrib ute name=" wp:style"> CR LF   2129            < xsl:attrib ute name=" wp:style"> CR LF
2092              <xsl:call- template n ame="CSS-I nlinePrope rties"> CR LF   2130              <xsl:call- template n ame="CSS-I nlinePrope rties"> CR LF
2093               <xsl:with -param nam e="ParamPr operties"  select="$V arTableCel lCSSProper ties" /> CR LF   2131               <xsl:with -param nam e="ParamPr operties"  select="$V arTableCel lCSSProper ties" /> CR LF
2094              </xsl:call -template> CR LF   2132              </xsl:call -template> 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           <! -- Row spa n attribut e --> CR LF   2136           <! -- Row spa n attribut e --> CR LF
2099           <! --                      --> CR LF   2137           <! --                      --> CR LF
2100           <x sl:if test ="number($ VarRowSpan ) &gt; 0"> CR LF   2138           <x sl:if test ="number($ VarRowSpan ) &gt; 0"> CR LF
2101            < xsl:attrib ute name=" rowspan"> CR LF   2139            < xsl:attrib ute name=" rowspan"> CR LF
2102              <xsl:value -of select ="$VarRowS pan" /> CR LF   2140              <xsl:value -of select ="$VarRowS pan" /> CR LF
2103            < /xsl:attri bute> CR LF   2141            < /xsl:attri bute> CR LF
2104           </ xsl:if> CR LF   2142           </ xsl:if> CR LF
2105   CR LF   2143   CR LF
2106           <! -- Column  span attri bute --> CR LF   2144           <! -- Column  span attri bute --> CR LF
2107           <! --                         --> CR LF   2145           <! --                         --> CR LF
2108           <x sl:if test ="number($ VarColumnS pan) &gt;  0"> CR LF   2146           <x sl:if test ="number($ VarColumnS pan) &gt;  0"> CR LF
2109            < xsl:attrib ute name=" wp:colspan "> CR LF   2147            < xsl:attrib ute name=" wp:colspan "> CR LF
2110              <xsl:value -of select ="$VarColu mnSpan" /> CR LF   2148              <xsl:value -of select ="$VarColu mnSpan" /> CR LF
2111            < /xsl:attri bute> CR LF   2149            < /xsl:attri bute> CR LF
2112           </ xsl:if> CR LF   2150           </ xsl:if> CR LF
2113   CR LF   2151   CR LF
2114           <! -- Recurse  --> CR LF   2152           <! -- Recurse  --> CR LF
2115           <! --          --> CR LF   2153           <! --          --> CR LF
2116           <x sl:apply-t emplates s elect="./* " mode="ww mode:conte nt"> CR LF   2154           <x sl:apply-t emplates s elect="./* " mode="ww mode:conte nt"> CR LF
2117            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF   2155            < xsl:with-p aram name= "ParamSpli ts" select ="$ParamSp lits" /> CR LF
2118            < xsl:with-p aram name= "ParamCarg o" select= "$VarCargo " /> CR LF   2156            < xsl:with-p aram name= "ParamCarg o" select= "$VarCargo " /> CR LF
2119            < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" /> CR LF   2157            < xsl:with-p aram name= "ParamLink s" select= "$ParamLin ks" /> CR LF
2120            < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" /> CR LF   2158            < xsl:with-p aram name= "ParamTOCD ata" selec t="$ParamT OCData" /> CR LF
2121            < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" /> CR LF   2159            < xsl:with-p aram name= "ParamSpli t" select= "$ParamSpl it" /> CR LF
2122           </ xsl:apply- templates> CR LF   2160           </ xsl:apply- templates> CR LF
2123          </w wxmlxsl:Ta bleCell> CR LF   2161          </w wxmlxsl:Ta bleCell> CR LF
2124         </xs l:for-each > CR LF   2162         </xs l:for-each > CR LF
2125   CR LF   2163   CR LF
2126        </wwx mlxsl:Tabl eRow> CR LF   2164        </wwx mlxsl:Tabl eRow> CR LF
2127        </xsl :for-each> CR LF   2165        </xsl :for-each> CR LF
2128       </xsl: element> CR LF   2166       </xsl: element> CR LF
2129      </xsl:f or-each> CR LF   2167      </xsl:f or-each> CR LF
2130   CR LF   2168   CR LF
2131     </wwxmlx sl:Table> CR LF   2169     </wwxmlx sl:Table> CR LF
2132   CR LF   2170   CR LF
2133     <!-- Tab le Footnot es --> CR LF   2171     <!-- Tab le Footnot es --> CR LF
2134     <!--                   --> CR LF   2172     <!--                   --> CR LF
2135     <xsl:cal l-template  name="Con tent-Notes "> CR LF   2173     <xsl:cal l-template  name="Con tent-Notes "> CR LF
2136      <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" /> CR LF   2174      <xsl:wi th-param n ame="Param Notes" sel ect="$VarN otes" /> CR LF
2137      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   2175      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
2138      <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" /> CR LF   2176      <xsl:wi th-param n ame="Param Cargo" sel ect="$VarC argo" /> CR LF
2139      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   2177      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
2140      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> CR LF   2178      <xsl:wi th-param n ame="Param TOCData" s elect="$Pa ramTOCData " /> CR LF
2141      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   2179      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
2142     </xsl:ca ll-templat e> CR LF   2180     </xsl:ca ll-templat e> CR LF
2143   CR LF   2181   CR LF
2144     <!-- Dro pdown End  --> CR LF   2182     <!-- Dro pdown End  --> CR LF
2145     <!--                --> CR LF   2183     <!--                --> CR LF
2146     <xsl:if  test="$Par amTableBeh avior/@dro pdown = 'e nd'"> CR LF   2184     <xsl:if  test="$Par amTableBeh avior/@dro pdown = 'e nd'"> CR LF
2147      <xsl:co mment> CR LF   2185      <xsl:co mment> CR LF
2148       DropDo wn End Ope n CR LF   2186       DropDo wn End Ope n CR LF
2149      </xsl:c omment> CR LF   2187      </xsl:c omment> CR LF
2150      <wwexsl doc:Text d isable-out put-escapi ng="yes">& lt;/wp:wp& gt;</wwexs ldoc:Text> CR LF   2188      <wwexsl doc:Text d isable-out put-escapi ng="yes">& lt;/wp:wp& gt;</wwexs ldoc:Text> CR LF
2151      <xsl:co mment> CR LF   2189      <xsl:co mment> CR LF
2152       DropDo wn End Clo se CR LF   2190       DropDo wn End Clo se CR LF
2153      </xsl:c omment> CR LF   2191      </xsl:c omment> CR LF
2154     </xsl:if > CR LF   2192     </xsl:if > CR LF
2155    </xsl:tem plate> CR LF   2193    </xsl:tem plate> CR LF
2156   CR LF   2194   CR LF
2157   CR LF   2195   CR LF
2158    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:co ntent"> CR LF   2196    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:co ntent"> CR LF
2159     <xsl:par am name="P aramSplits " /> CR LF   2197     <xsl:par am name="P aramSplits " /> CR LF
2160     <xsl:par am name="P aramCargo"  /> CR LF   2198     <xsl:par am name="P aramCargo"  /> CR LF
2161     <xsl:par am name="P aramLinks"  /> CR LF   2199     <xsl:par am name="P aramLinks"  /> CR LF
2162     <xsl:par am name="P aramTOCDat a" /> CR LF   2200     <xsl:par am name="P aramTOCDat a" /> CR LF
2163     <xsl:par am name="P aramSplit"  /> CR LF   2201     <xsl:par am name="P aramSplit"  /> CR LF
2164   CR LF   2202   CR LF
2165     <!-- Abo rted? --> CR LF   2203     <!-- Abo rted? --> CR LF
2166     <!--           --> CR LF   2204     <!--           --> CR LF
2167     <xsl:if  test="not( wwprogress :Abort())" > CR LF   2205     <xsl:if  test="not( wwprogress :Abort())" > CR LF
2168      <xsl:ca ll-templat e name="Fr ame"> CR LF   2206      <xsl:ca ll-templat e name="Fr ame"> CR LF
2169       <xsl:w ith-param  name="Para mFrame" se lect="." / > CR LF   2207       <xsl:w ith-param  name="Para mFrame" se lect="." / > CR LF
2170       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   2208       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
2171       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   2209       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
2172       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   2210       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
2173       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   2211       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
2174      </xsl:c all-templa te> CR LF   2212      </xsl:c all-templa te> CR LF
2175     </xsl:if > CR LF   2213     </xsl:if > CR LF
2176    </xsl:tem plate> CR LF   2214    </xsl:tem plate> CR LF
2177   CR LF   2215   CR LF
2178   CR LF   2216   CR LF
2179    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:te xtrun"> CR LF   2217    <xsl:temp late match ="wwdoc:Fr ame" mode= "wwmode:te xtrun"> CR LF
2180     <xsl:par am name="P aramSplits " /> CR LF   2218     <xsl:par am name="P aramSplits " /> CR LF
2181     <xsl:par am name="P aramCargo"  /> CR LF   2219     <xsl:par am name="P aramCargo"  /> CR LF
2182     <xsl:par am name="P aramLinks"  /> CR LF   2220     <xsl:par am name="P aramLinks"  /> CR LF
2183     <xsl:par am name="P aramSplit"  /> CR LF   2221     <xsl:par am name="P aramSplit"  /> CR LF
2184   CR LF   2222   CR LF
2185     <xsl:cal l-template  name="Fra me"> CR LF   2223     <xsl:cal l-template  name="Fra me"> CR LF
2186      <xsl:wi th-param n ame="Param Frame" sel ect="." /> CR LF   2224      <xsl:wi th-param n ame="Param Frame" sel ect="." /> CR LF
2187      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF   2225      <xsl:wi th-param n ame="Param Splits" se lect="$Par amSplits"  /> CR LF
2188      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF   2226      <xsl:wi th-param n ame="Param Cargo" sel ect="$Para mCargo" /> CR LF
2189      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF   2227      <xsl:wi th-param n ame="Param Links" sel ect="$Para mLinks" /> CR LF
2190      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF   2228      <xsl:wi th-param n ame="Param Split" sel ect="$Para mSplit" /> CR LF
2191     </xsl:ca ll-templat e> CR LF   2229     </xsl:ca ll-templat e> CR LF
2192    </xsl:tem plate> CR LF   2230    </xsl:tem plate> CR LF
2193   CR LF   2231   CR LF
2194   CR LF   2232   CR LF
2195    <xsl:temp late name= "Frame"> CR LF   2233    <xsl:temp late name= "Frame"> CR LF
2196     <xsl:par am name="P aramFrame"  /> CR LF   2234     <xsl:par am name="P aramFrame"  /> CR LF
2197     <xsl:par am name="P aramSplits " /> CR LF   2235     <xsl:par am name="P aramSplits " /> CR LF
2198     <xsl:par am name="P aramCargo"  /> CR LF   2236     <xsl:par am name="P aramCargo"  /> CR LF
2199     <xsl:par am name="P aramLinks"  /> CR LF   2237     <xsl:par am name="P aramLinks"  /> CR LF
2200     <xsl:par am name="P aramSplit"  /> CR LF   2238     <xsl:par am name="P aramSplit"  /> CR LF
2201   CR LF   2239   CR LF
2202     <!-- Get  splits fr ame --> CR LF   2240     <!-- Get  splits fr ame --> CR LF
2203     <!--                    --> CR LF   2241     <!--                    --> CR LF
2204     <xsl:for -each sele ct="$Param Splits[1]" > CR LF   2242     <xsl:for -each sele ct="$Param Splits[1]" > CR LF
2205      <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   2243      <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
2206   CR LF   2244   CR LF
2207      <!-- Fr ame known?  --> CR LF   2245      <!-- Fr ame known?  --> CR LF
2208      <!--                --> CR LF   2246      <!--                --> CR LF
2209      <xsl:if  test="cou nt($VarSpl itsFrame)  = 1"> CR LF   2247      <xsl:if  test="cou nt($VarSpl itsFrame)  = 1"> CR LF
2210       <!-- T humbnail?  --> CR LF   2248       <!-- T humbnail?  --> CR LF
2211       <!--              --> CR LF   2249       <!--              --> CR LF
2212       <xsl:f or-each se lect="$Glo balFiles[1 ]"> CR LF   2250       <xsl:f or-each se lect="$Glo balFiles[1 ]"> CR LF
2213        <xsl: variable n ame="VarSp litsThumbn ail" selec t="$VarSpl itsFrame/w wsplits:Th umbnail" / > CR LF   2251        <xsl: variable n ame="VarSp litsThumbn ail" selec t="$VarSpl itsFrame/w wsplits:Th umbnail" / > CR LF
2214        <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   2252        <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
2215   CR LF   2253   CR LF
2216        <!--  Emit image  --> CR LF   2254        <!--  Emit image  --> CR LF
2217        <!--              --> CR LF   2255        <!--              --> CR LF
2218        <xsl: choose> CR LF   2256        <xsl: choose> CR LF
2219         <!--  Thumbnail  --> CR LF   2257         <!--  Thumbnail  --> CR LF
2220         <!--             --> CR LF   2258         <!--             --> CR LF
2221         <xsl :when test ="$VarThum bnailDefin ed"> CR LF   2259         <xsl :when test ="$VarThum bnailDefin ed"> CR LF
2222          <!- - Emit mar kup --> CR LF   2260          <!- - Emit mar kup --> CR LF
2223          <!- -              --> CR LF   2261          <!- -              --> CR LF
2224          <xs l:call-tem plate name ="Frame-Ma rkup"> CR LF   2262          <xs l:call-tem plate name ="Frame-Ma rkup"> CR LF
2225           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF   2263           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF
2226           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   2264           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
2227           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF   2265           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF
2228           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   2266           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
2229           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   2267           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
2230           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> CR LF   2268           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> CR LF
2231           <x sl:with-pa ram name=" ParamThumb nail" sele ct="true() " /> CR LF   2269           <x sl:with-pa ram name=" ParamThumb nail" sele ct="true() " /> CR LF
2232          </x sl:call-te mplate> CR LF   2270          </x sl:call-te mplate> CR LF
2233         </xs l:when> CR LF   2271         </xs l:when> CR LF
2234   CR LF   2272   CR LF
2235         <!--  Fullsize  --> CR LF   2273         <!--  Fullsize  --> CR LF
2236         <!--            --> CR LF   2274         <!--            --> CR LF
2237         <xsl :otherwise > CR LF   2275         <xsl :otherwise > CR LF
2238          <!- - Note num bering --> CR LF   2276          <!- - Note num bering --> CR LF
2239          <!- -                 --> CR LF   2277          <!- -                 --> CR LF
2240          <xs l:variable  name="Var Notes" sel ect="$Para mFrame//ww doc:Note"  /> CR LF   2278          <xs l:variable  name="Var Notes" sel ect="$Para mFrame//ww doc:Note"  /> CR LF
2241          <xs l:variable  name="Var NoteNumber ingAsXML"> CR LF   2279          <xs l:variable  name="Var NoteNumber ingAsXML"> CR LF
2242           <x sl:call-te mplate nam e="Notes-N umber"> CR LF   2280           <x sl:call-te mplate nam e="Notes-N umber"> CR LF
2243            < xsl:with-p aram name= "ParamNote s" select= "$VarNotes " /> CR LF   2281            < xsl:with-p aram name= "ParamNote s" select= "$VarNotes " /> CR LF
2244           </ xsl:call-t emplate> CR LF   2282           </ xsl:call-t emplate> CR LF
2245          </x sl:variabl e> CR LF   2283          </x sl:variabl e> CR LF
2246          <xs l:variable  name="Var NoteNumber ing" selec t="msxsl:n ode-set($V arNoteNumb eringAsXML )" /> CR LF   2284          <xs l:variable  name="Var NoteNumber ing" selec t="msxsl:n ode-set($V arNoteNumb eringAsXML )" /> CR LF
2247   CR LF   2285   CR LF
2248          <!- - Frame ca rgo --> CR LF   2286          <!- - Frame ca rgo --> CR LF
2249          <!- -              --> CR LF   2287          <!- -              --> CR LF
2250          <xs l:variable  name="Var Cargo" sel ect="$Para mCargo/*[l ocal-name( ) != 'Note Numbering' ]/.. | $Va rNoteNumbe ring" /> CR LF   2288          <xs l:variable  name="Var Cargo" sel ect="$Para mCargo/*[l ocal-name( ) != 'Note Numbering' ]/.. | $Va rNoteNumbe ring" /> CR LF
2251   CR LF   2289   CR LF
2252          <!- - Emit mar kup --> CR LF   2290          <!- - Emit mar kup --> CR LF
2253          <!- -              --> CR LF   2291          <!- -              --> CR LF
2254          <xs l:call-tem plate name ="Frame-Ma rkup"> CR LF   2292          <xs l:call-tem plate name ="Frame-Ma rkup"> CR LF
2255           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF   2293           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF
2256           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   2294           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
2257           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  /> CR LF   2295           <x sl:with-pa ram name=" ParamCargo " select=" $VarCargo"  /> CR LF
2258           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   2296           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
2259           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   2297           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
2260           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> CR LF   2298           <x sl:with-pa ram name=" ParamSplit sFrame" se lect="$Var SplitsFram e" /> CR LF
2261           <x sl:with-pa ram name=" ParamThumb nail" sele ct="false( )" /> CR LF   2299           <x sl:with-pa ram name=" ParamThumb nail" sele ct="false( )" /> CR LF
2262          </x sl:call-te mplate> CR LF   2300          </x sl:call-te mplate> CR LF
2263         </xs l:otherwis e> CR LF   2301         </xs l:otherwis e> CR LF
2264        </xsl :choose> CR LF   2302        </xsl :choose> CR LF
2265       </xsl: for-each> CR LF   2303       </xsl: for-each> CR LF
2266      </xsl:i f> CR LF   2304      </xsl:i f> CR LF
2267     </xsl:fo r-each> CR LF   2305     </xsl:fo r-each> CR LF
2268    </xsl:tem plate> CR LF   2306    </xsl:tem plate> CR LF
2269   CR LF   2307   CR LF
2270   CR LF   2308   CR LF
2271    <xsl:temp late name= "Frame-Mar kup"> CR LF   2309    <xsl:temp late name= "Frame-Mar kup"> CR LF
2272     <xsl:par am name="P aramFrame"  /> CR LF   2310     <xsl:par am name="P aramFrame"  /> CR LF
2273     <xsl:par am name="P aramSplits " /> CR LF   2311     <xsl:par am name="P aramSplits " /> CR LF
2274     <xsl:par am name="P aramCargo"  /> CR LF   2312     <xsl:par am name="P aramCargo"  /> CR LF
2275     <xsl:par am name="P aramLinks"  /> CR LF   2313     <xsl:par am name="P aramLinks"  /> CR LF
2276     <xsl:par am name="P aramSplit"  /> CR LF   2314     <xsl:par am name="P aramSplit"  /> CR LF
2277     <xsl:par am name="P aramSplits Frame" /> CR LF   2315     <xsl:par am name="P aramSplits Frame" /> CR LF
2278     <xsl:par am name="P aramThumbn ail" /> CR LF   2316     <xsl:par am name="P aramThumbn ail" /> CR LF
2279   CR LF   2317   CR LF
2280     <!-- Con text Rule  --> CR LF   2318     <!-- Con text Rule  --> CR LF
2281     <!--                --> CR LF   2319     <!--                --> CR LF
2282     <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   2320     <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
2283   CR LF   2321   CR LF
2284     <!-- Gen erate? --> CR LF   2322     <!-- Gen erate? --> CR LF
2285     <!--            --> CR LF   2323     <!--            --> CR LF
2286     <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   2324     <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
2287     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF   2325     <xsl:var iable name ="VarGener ateOutput"  select="( string-len gth($VarGe nerateOutp utOption)  = 0) or ($ VarGenerat eOutputOpt ion != 'fa lse')" /> CR LF
2288     <xsl:if  test="$Var GenerateOu tput"> CR LF   2326     <xsl:if  test="$Var GenerateOu tput"> CR LF
2289      <!-- De termine im age path - -> CR LF   2327      <!-- De termine im age path - -> CR LF
2290      <!--                        - -> CR LF   2328      <!--                        - -> CR LF
2291      <xsl:va riable nam e="VarImag ePath"> CR LF   2329      <xsl:va riable nam e="VarImag ePath"> CR LF
2292       <xsl:c hoose> CR LF   2330       <xsl:c hoose> CR LF
2293        <xsl: when test= "$ParamThu mbnail"> CR LF   2331        <xsl: when test= "$ParamThu mbnail"> CR LF
2294         <xsl :value-of  select="$P aramSplits Frame/wwsp lits:Thumb nail/@path " /> CR LF   2332         <xsl :value-of  select="$P aramSplits Frame/wwsp lits:Thumb nail/@path " /> CR LF
2295        </xsl :when> CR LF   2333        </xsl :when> CR LF
2296   CR LF   2334   CR LF
2297        <xsl: otherwise> CR LF   2335        <xsl: otherwise> CR LF
2298         <xsl :value-of  select="$P aramSplits Frame/@pat h" /> CR LF   2336         <xsl :value-of  select="$P aramSplits Frame/@pat h" /> CR LF
2299        </xsl :otherwise > CR LF   2337        </xsl :otherwise > CR LF
2300       </xsl: choose> CR LF   2338       </xsl: choose> CR LF
2301      </xsl:v ariable> CR LF   2339      </xsl:v ariable> CR LF
2302   CR LF   2340   CR LF
2303      <!-- Ac cess image  info --> CR LF   2341      <!-- Ac cess image  info --> CR LF
2304      <!--                     --> CR LF   2342      <!--                     --> CR LF
2305      <xsl:va riable nam e="VarImag eInfo" sel ect="wwima ging:GetIn fo($VarIma gePath)" / > CR LF   2343      <xsl:va riable nam e="VarImag eInfo" sel ect="wwima ging:GetIn fo($VarIma gePath)" / > CR LF
2306   CR LF   2344   CR LF
2307      <!-- De termine ty pe --> CR LF   2345      <!-- De termine ty pe --> CR LF
2308      <!--                  --> CR LF   2346      <!--                  --> CR LF
2309      <xsl:va riable nam e="VarVect orImageAsT ext"> CR LF   2347      <xsl:va riable nam e="VarVect orImageAsT ext"> CR LF
2310       <xsl:c all-templa te name="I mages-Vect orImageFor mat"> CR LF   2348       <xsl:c all-templa te name="I mages-Vect orImageFor mat"> CR LF
2311        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" /> CR LF   2349        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" /> CR LF
2312       </xsl: call-templ ate> CR LF   2350       </xsl: call-templ ate> CR LF
2313      </xsl:v ariable> CR LF   2351      </xsl:v ariable> CR LF
2314      <xsl:va riable nam e="VarVect orImage" s elect="$Va rVectorIma geAsText =  string(tr ue())" /> CR LF   2352      <xsl:va riable nam e="VarVect orImage" s elect="$Va rVectorIma geAsText =  string(tr ue())" /> CR LF
2315      <xsl:va riable nam e="VarRast erImageAsT ext"> CR LF   2353      <xsl:va riable nam e="VarRast erImageAsT ext"> CR LF
2316       <xsl:c all-templa te name="I mages-Rast erImageFor mat"> CR LF   2354       <xsl:c all-templa te name="I mages-Rast erImageFor mat"> CR LF
2317        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" /> CR LF   2355        <xsl: with-param  name="Par amImageInf o" select= "$VarImage Info" /> CR LF
2318       </xsl: call-templ ate> CR LF   2356       </xsl: call-templ ate> CR LF
2319      </xsl:v ariable> CR LF   2357      </xsl:v ariable> CR LF
2320      <xsl:va riable nam e="VarRast erImage" s elect="$Va rRasterIma geAsText =  string(tr ue())" /> CR LF   2358      <xsl:va riable nam e="VarRast erImage" s elect="$Va rRasterIma geAsText =  string(tr ue())" /> CR LF
2321   CR LF   2359   CR LF
2322      <!-- Em it image - -> CR LF   2360      <!-- Em it image - -> CR LF
2323      <!--             - -> CR LF   2361      <!--             - -> CR LF
2324      <xsl:ch oose> CR LF   2362      <xsl:ch oose> CR LF
2325       <!-- V ector Imag e --> CR LF   2363       <!-- V ector Imag e --> CR LF
2326       <!--                --> CR LF   2364       <!--                --> CR LF
2327       <xsl:w hen test=" $VarVector Image"> CR LF   2365       <xsl:w hen test=" $VarVector Image"> CR LF
2328        <xsl: call-templ ate name=" Frame-Mark up-Vector" > CR LF   2366        <xsl: call-templ ate name=" Frame-Mark up-Vector" > CR LF
2329         <xsl :with-para m name="Pa ramFrame"  select="$P aramFrame"  /> CR LF   2367         <xsl :with-para m name="Pa ramFrame"  select="$P aramFrame"  /> CR LF
2330         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   2368         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
2331         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   2369         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
2332         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   2370         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
2333         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   2371         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
2334         <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" /> CR LF   2372         <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" /> CR LF
2335         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule"  /> CR LF   2373         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule"  /> CR LF
2336         <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" /> CR LF   2374         <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" /> CR LF
2337         <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / > CR LF   2375         <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / > CR LF
2338        </xsl :call-temp late> CR LF   2376        </xsl :call-temp late> CR LF
2339       </xsl: when> CR LF   2377       </xsl: when> CR LF
2340   CR LF   2378   CR LF
2341       <!-- R aster Imag e --> CR LF   2379       <!-- R aster Imag e --> CR LF
2342       <!--                --> CR LF   2380       <!--                --> CR LF
2343       <xsl:w hen test=" $VarRaster Image"> CR LF   2381       <xsl:w hen test=" $VarRaster Image"> CR LF
2344        <xsl: call-templ ate name=" Frame-Mark up-Raster" > CR LF   2382        <xsl: call-templ ate name=" Frame-Mark up-Raster" > CR LF
2345         <xsl :with-para m name="Pa ramFrame"  select="$P aramFrame"  /> CR LF   2383         <xsl :with-para m name="Pa ramFrame"  select="$P aramFrame"  /> CR LF
2346         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   2384         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
2347         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   2385         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
2348         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   2386         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
2349         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   2387         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
2350         <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" /> CR LF   2388         <xsl :with-para m name="Pa ramSplitsF rame" sele ct="$Param SplitsFram e" /> CR LF
2351         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule"  /> CR LF   2389         <xsl :with-para m name="Pa ramContext Rule" sele ct="$VarCo ntextRule"  /> CR LF
2352         <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" /> CR LF   2390         <xsl :with-para m name="Pa ramImageIn fo" select ="$VarImag eInfo" /> CR LF
2353         <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / > CR LF   2391         <xsl :with-para m name="Pa ramThumbna il" select ="$ParamTh umbnail" / > CR LF
2354        </xsl :call-temp late> CR LF   2392        </xsl :call-temp late> CR LF
2355       </xsl: when> CR LF   2393       </xsl: when> CR LF
2356      </xsl:c hoose> CR LF   2394      </xsl:c hoose> CR LF
2357     </xsl:if > CR LF   2395     </xsl:if > CR LF
2358    </xsl:tem plate> CR LF   2396    </xsl:tem plate> CR LF
2359   CR LF   2397   CR LF
2360   CR LF   2398   CR LF
2361    <xsl:temp late name= "Frame-Mar kup-Vector "> CR LF   2399    <xsl:temp late name= "Frame-Mar kup-Vector "> CR LF
2362     <xsl:par am name="P aramFrame"  /> CR LF   2400     <xsl:par am name="P aramFrame"  /> CR LF
2363     <xsl:par am name="P aramSplits " /> CR LF   2401     <xsl:par am name="P aramSplits " /> CR LF
2364     <xsl:par am name="P aramCargo"  /> CR LF   2402     <xsl:par am name="P aramCargo"  /> CR LF
2365     <xsl:par am name="P aramLinks"  /> CR LF   2403     <xsl:par am name="P aramLinks"  /> CR LF
2366     <xsl:par am name="P aramSplit"  /> CR LF   2404     <xsl:par am name="P aramSplit"  /> CR LF
2367     <xsl:par am name="P aramSplits Frame" /> CR LF   2405     <xsl:par am name="P aramSplits Frame" /> CR LF
2368     <xsl:par am name="P aramContex tRule" /> CR LF   2406     <xsl:par am name="P aramContex tRule" /> CR LF
2369     <xsl:par am name="P aramImageI nfo" /> CR LF   2407     <xsl:par am name="P aramImageI nfo" /> CR LF
2370     <xsl:par am name="P aramThumbn ail" /> CR LF   2408     <xsl:par am name="P aramThumbn ail" /> CR LF
2371   CR LF   2409   CR LF
2372     <xsl:cho ose> CR LF   2410     <xsl:cho ose> CR LF
2373      <!-- SV G --> CR LF   2411      <!-- SV G --> CR LF
2374      <!--      --> CR LF   2412      <!--      --> CR LF
2375      <xsl:wh en test="$ ParamImage Info/@form at = 'svg' "> CR LF   2413      <xsl:wh en test="$ ParamImage Info/@form at = 'svg' "> CR LF
2376       <xsl:c all-templa te name="F rame-Marku p-Vector-S VG"> CR LF   2414       <xsl:c all-templa te name="F rame-Marku p-Vector-S VG"> CR LF
2377        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF   2415        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF
2378        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   2416        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
2379        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF   2417        <xsl: with-param  name="Par amCargo" s elect="$Pa ramCargo"  /> CR LF
2380        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF   2418        <xsl: with-param  name="Par amLinks" s elect="$Pa ramLinks"  /> CR LF
2381        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF   2419        <xsl: with-param  name="Par amSplit" s elect="$Pa ramSplit"  /> CR LF
2382        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> CR LF   2420        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> CR LF
2383        <xsl: with-param  name="Par amContextR ule" selec t="$ParamC ontextRule " /> CR LF   2421        <xsl: with-param  name="Par amContextR ule" selec t="$ParamC ontextRule " /> CR LF
2384        <xsl: with-param  name="Par amImageInf o" select= "$ParamIma geInfo" /> CR LF   2422        <xsl: with-param  name="Par amImageInf o" select= "$ParamIma geInfo" /> CR LF
2385        <xsl: with-param  name="Par amThumbnai l" select= "$ParamThu mbnail" /> CR LF   2423        <xsl: with-param  name="Par amThumbnai l" select= "$ParamThu mbnail" /> CR LF
2386       </xsl: call-templ ate> CR LF   2424       </xsl: call-templ ate> CR LF
2387      </xsl:w hen> CR LF   2425      </xsl:w hen> CR LF
2388     </xsl:ch oose> CR LF   2426     </xsl:ch oose> CR LF
2389    </xsl:tem plate> CR LF   2427    </xsl:tem plate> CR LF
2390   CR LF   2428   CR LF
2391   CR LF   2429   CR LF
2392    <xsl:temp late name= "Frame-Mar kup-Vector -SVG"> CR LF   2430    <xsl:temp late name= "Frame-Mar kup-Vector -SVG"> CR LF
2393     <xsl:par am name="P aramFrame"  /> CR LF   2431     <xsl:par am name="P aramFrame"  /> CR LF
2394     <xsl:par am name="P aramSplits " /> CR LF   2432     <xsl:par am name="P aramSplits " /> CR LF
2395     <xsl:par am name="P aramCargo"  /> CR LF   2433     <xsl:par am name="P aramCargo"  /> CR LF
2396     <xsl:par am name="P aramLinks"  /> CR LF   2434     <xsl:par am name="P aramLinks"  /> CR LF
2397     <xsl:par am name="P aramSplit"  /> CR LF   2435     <xsl:par am name="P aramSplit"  /> CR LF
2398     <xsl:par am name="P aramSplits Frame" /> CR LF   2436     <xsl:par am name="P aramSplits Frame" /> CR LF
2399     <xsl:par am name="P aramContex tRule" /> CR LF   2437     <xsl:par am name="P aramContex tRule" /> CR LF
2400     <xsl:par am name="P aramImageI nfo" /> CR LF   2438     <xsl:par am name="P aramImageI nfo" /> CR LF
2401     <xsl:par am name="P aramThumbn ail" /> CR LF   2439     <xsl:par am name="P aramThumbn ail" /> CR LF
2402   CR LF   2440   CR LF
2403     <!-- Acc ess frame  behavior - -> CR LF   2441     <!-- Acc ess frame  behavior - -> CR LF
2404     <!--                         - -> CR LF   2442     <!--                         - -> CR LF
2405     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF   2443     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF
2406      <xsl:va riable nam e="VarBeha viorFrame"  select="k ey('wwbeha viors-fram es-by-id',  $ParamFra me/@id)[1] " /> CR LF   2444      <xsl:va riable nam e="VarBeha viorFrame"  select="k ey('wwbeha viors-fram es-by-id',  $ParamFra me/@id)[1] " /> CR LF
2407   CR LF   2445   CR LF
2408      <!-- Re solve proj ect proper ties --> CR LF   2446      <!-- Re solve proj ect proper ties --> CR LF
2409      <!--                               --> CR LF   2447      <!--                               --> CR LF
2410      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" > CR LF   2448      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" > CR LF
2411       <xsl:c all-templa te name="P roperties- ResolveCon textRule"> CR LF   2449       <xsl:c all-templa te name="P roperties- ResolveCon textRule"> CR LF
2412        <xsl: with-param  name="Par amDocument Context" s elect="$Pa ramFrame"  /> CR LF   2450        <xsl: with-param  name="Par amDocument Context" s elect="$Pa ramFrame"  /> CR LF
2413        <xsl: with-param  name="Par amProperti es" select ="$ParamCo ntextRule/ wwproject: Properties /wwproject :Property"  /> CR LF   2451        <xsl: with-param  name="Par amProperti es" select ="$ParamCo ntextRule/ wwproject: Properties /wwproject :Property"  /> CR LF
2414        <xsl: with-param  name="Par amStyleNam e" select= "$ParamFra me/@stylen ame" /> CR LF   2452        <xsl: with-param  name="Par amStyleNam e" select= "$ParamFra me/@stylen ame" /> CR LF
2415        <xsl: with-param  name="Par amStyleTyp e" select= "'Graphic' " /> CR LF   2453        <xsl: with-param  name="Par amStyleTyp e" select= "'Graphic' " /> CR LF
2416        <xsl: with-param  name="Par amContextS tyle" sele ct="$Param Frame" /> CR LF   2454        <xsl: with-param  name="Par amContextS tyle" sele ct="$Param Frame" /> CR LF
2417       </xsl: call-templ ate> CR LF   2455       </xsl: call-templ ate> CR LF
2418      </xsl:v ariable> CR LF   2456      </xsl:v ariable> CR LF
2419      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" /> CR LF   2457      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" /> CR LF
2420   CR LF   2458   CR LF
2421      <!-- CS S properti es --> CR LF   2459      <!-- CS S properti es --> CR LF
2422      <!--                  --> CR LF   2460      <!--                  --> CR LF
2423      <xsl:va riable nam e="VarCSSP ropertiesA sXML"> CR LF   2461      <xsl:va riable nam e="VarCSSP ropertiesA sXML"> CR LF
2424       <xsl:c all-templa te name="C SS-Transla teProjectP roperties" > CR LF   2462       <xsl:c all-templa te name="C SS-Transla teProjectP roperties" > CR LF
2425        <xsl: with-param  name="Par amProperti es" select ="$VarReso lvedProper ties[(@Nam e != 'widt h') and (@ Name != 'h eight')]"  /> CR LF   2463        <xsl: with-param  name="Par amProperti es" select ="$VarReso lvedProper ties[(@Nam e != 'widt h') and (@ Name != 'h eight')]"  /> CR LF
2426        <xsl: with-param  name="Par amFromAbso luteURI" s elect="$Pa ramSplit/@ path" /> CR LF   2464        <xsl: with-param  name="Par amFromAbso luteURI" s elect="$Pa ramSplit/@ path" /> CR LF
2427        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   2465        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
2428       </xsl: call-templ ate> CR LF   2466       </xsl: call-templ ate> CR LF
2429      </xsl:v ariable> CR LF   2467      </xsl:v ariable> CR LF
2430      <xsl:va riable nam e="VarCSSP roperties"  select="m sxsl:node- set($VarCS SPropertie sAsXML)/ww project:Pr operty" /> CR LF   2468      <xsl:va riable nam e="VarCSSP roperties"  select="m sxsl:node- set($VarCS SPropertie sAsXML)/ww project:Pr operty" /> CR LF
2431      <xsl:va riable nam e="VarInli neCSSPrope rties"> CR LF   2469      <xsl:va riable nam e="VarInli neCSSPrope rties"> CR LF
2432       <xsl:c all-templa te name="C SS-InlineP roperties" > CR LF   2470       <xsl:c all-templa te name="C SS-InlineP roperties" > CR LF
2433        <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties[ string-len gth(@Value ) &gt; 0]"  /> CR LF   2471        <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties[ string-len gth(@Value ) &gt; 0]"  /> CR LF
2434       </xsl: call-templ ate> CR LF   2472       </xsl: call-templ ate> CR LF
2435      </xsl:v ariable> CR LF   2473      </xsl:v ariable> CR LF
2436   CR LF   2474   CR LF
2437      <!-- Wi dth/Height  --> CR LF   2475      <!-- Wi dth/Height  --> CR LF
2438      <!--                --> CR LF   2476      <!--                --> CR LF
2439      <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   2477      <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
2440      <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   2478      <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
2441      <xsl:va riable nam e="VarWidt h"> CR LF   2479      <xsl:va riable nam e="VarWidt h"> CR LF
2442       <xsl:c hoose> CR LF   2480       <xsl:c hoose> CR LF
2443        <xsl: when test= "$ParamThu mbnail"> CR LF   2481        <xsl: when test= "$ParamThu mbnail"> CR LF
2444         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF   2482         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF
2445        </xsl :when> CR LF   2483        </xsl :when> CR LF
2446   CR LF   2484   CR LF
2447        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF   2485        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF
2448         <xsl :choose> CR LF   2486         <xsl :choose> CR LF
2449          <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions)  or (number ($ParamIma geInfo/@wi dth) = 0)" > CR LF   2487          <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions)  or (number ($ParamIma geInfo/@wi dth) = 0)" > CR LF
2450           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF   2488           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF
2451   CR LF   2489   CR LF
2452           <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' width']/@v alue), 'pt ', 'px'))"  /> CR LF   2490           <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' width']/@v alue), 'pt ', 'px'))"  /> CR LF
2453          </x sl:when> CR LF   2491          </x sl:when> CR LF
2454   CR LF   2492   CR LF
2455          <xs l:otherwis e> CR LF   2493          <xs l:otherwis e> CR LF
2456           <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " /> CR LF   2494           <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " /> CR LF
2457          </x sl:otherwi se> CR LF   2495          </x sl:otherwi se> CR LF
2458         </xs l:choose> CR LF   2496         </xs l:choose> CR LF
2459        </xsl :when> CR LF   2497        </xsl :when> CR LF
2460   CR LF   2498   CR LF
2461        <xsl: otherwise> CR LF   2499        <xsl: otherwise> CR LF
2462         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF   2500         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF
2463        </xsl :otherwise > CR LF   2501        </xsl :otherwise > CR LF
2464       </xsl: choose> CR LF   2502       </xsl: choose> CR LF
2465      </xsl:v ariable> CR LF   2503      </xsl:v ariable> CR LF
2466      <xsl:va riable nam e="VarHeig ht"> CR LF   2504      <xsl:va riable nam e="VarHeig ht"> CR LF
2467       <xsl:c hoose> CR LF   2505       <xsl:c hoose> CR LF
2468        <xsl: when test= "$ParamThu mbnail"> CR LF   2506        <xsl: when test= "$ParamThu mbnail"> CR LF
2469         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF   2507         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF
2470        </xsl :when> CR LF   2508        </xsl :when> CR LF
2471   CR LF   2509   CR LF
2472        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF   2510        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF
2473         <xsl :choose> CR LF   2511         <xsl :choose> CR LF
2474          <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions)  or (number ($ParamIma geInfo/@he ight) = 0) "> CR LF   2512          <xs l:when tes t="($VarBy ReferenceG raphicsUse DocumentDi mensions)  or (number ($ParamIma geInfo/@he ight) = 0) "> CR LF
2475           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF   2513           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF
2476   CR LF   2514   CR LF
2477           <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' height']/@ value), 'p t', 'px')) " /> CR LF   2515           <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' height']/@ value), 'p t', 'px')) " /> CR LF
2478          </x sl:when> CR LF   2516          </x sl:when> CR LF
2479   CR LF   2517   CR LF
2480          <xs l:otherwis e> CR LF   2518          <xs l:otherwis e> CR LF
2481           <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" /> CR LF   2519           <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" /> CR LF
2482          </x sl:otherwi se> CR LF   2520          </x sl:otherwi se> CR LF
2483         </xs l:choose> CR LF   2521         </xs l:choose> CR LF
2484        </xsl :when> CR LF   2522        </xsl :when> CR LF
2485   CR LF   2523   CR LF
2486        <xsl: otherwise> CR LF   2524        <xsl: otherwise> CR LF
2487         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF   2525         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF
2488        </xsl :otherwise > CR LF   2526        </xsl :otherwise > CR LF
2489       </xsl: choose> CR LF   2527       </xsl: choose> CR LF
2490      </xsl:v ariable> CR LF   2528      </xsl:v ariable> CR LF
2491   CR LF   2529   CR LF
2492      <!-- Sr c --> CR LF   2530      <!-- Sr c --> CR LF
2493      <!--      --> CR LF   2531      <!--      --> CR LF
2494      <xsl:va riable nam e="VarSrc"  select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " /> CR LF   2532      <xsl:va riable nam e="VarSrc"  select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " /> CR LF
2495   CR LF   2533   CR LF
2496      <!-- Al t Text --> CR LF   2534      <!-- Al t Text --> CR LF
2497      <!--           --> CR LF   2535      <!--           --> CR LF
2498      <xsl:va riable nam e="VarAltT ext"> CR LF   2536      <xsl:va riable nam e="VarAltT ext"> CR LF
2499       <xsl:c all-templa te name="I mages-AltT ext"> CR LF   2537       <xsl:c all-templa te name="I mages-AltT ext"> CR LF
2500        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF   2538        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF
2501        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF   2539        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF
2502       </xsl: call-templ ate> CR LF   2540       </xsl: call-templ ate> CR LF
2503      </xsl:v ariable> CR LF   2541      </xsl:v ariable> CR LF
2504   CR LF   2542   CR LF
2505      <!-- Lo ng Descrip tion --> CR LF   2543      <!-- Lo ng Descrip tion --> CR LF
2506      <!--                    --> CR LF   2544      <!--                    --> CR LF
2507      <xsl:va riable nam e="VarLong Descriptio n"> CR LF   2545      <xsl:va riable nam e="VarLong Descriptio n"> CR LF
2508       <xsl:c all-templa te name="I mages-Long Descriptio n"> CR LF   2546       <xsl:c all-templa te name="I mages-Long Descriptio n"> CR LF
2509        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> CR LF   2547        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> CR LF
2510        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF   2548        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF
2511       </xsl: call-templ ate> CR LF   2549       </xsl: call-templ ate> CR LF
2512      </xsl:v ariable> CR LF   2550      </xsl:v ariable> CR LF
2513   CR LF   2551   CR LF
2514      <!-- SV G object t ag info:                                               --> CR LF   2552      <!-- SV G object t ag info:                                               --> CR LF
2515      <!--    http://jol iclic.free .fr/html/o bject-tag/ en/object- svg.html   --> CR LF   2553      <!--    http://jol iclic.free .fr/html/o bject-tag/ en/object- svg.html   --> CR LF
2516      <!--    http://vol ity.org/wi ki/index.c gi?SVG_Sca ling                  --> CR LF   2554      <!--    http://vol ity.org/wi ki/index.c gi?SVG_Sca ling                  --> CR LF
2517      <!--                                                                      --> CR LF   2555      <!--                                                                      --> CR LF
2518   CR LF   2556   CR LF
2519      <!-- Gr aphic elem ent --> CR LF   2557      <!-- Gr aphic elem ent --> CR LF
2520      <!--                   --> CR LF   2558      <!--                   --> CR LF
2521      <wp:Ima ge> CR LF   2559      <wp:Ima ge> CR LF
2522       <!-- T ype attrib ute --> CR LF   2560       <!-- T ype attrib ute --> CR LF
2523       <!--                  --> CR LF   2561       <!--                  --> CR LF
2524       <xsl:a ttribute n ame="wp:ty pe"> CR LF   2562       <xsl:a ttribute n ame="wp:ty pe"> CR LF
2525        <xsl: text>image /svg+xml</ xsl:text> CR LF   2563        <xsl: text>image /svg+xml</ xsl:text> CR LF
2526       </xsl: attribute> CR LF   2564       </xsl: attribute> CR LF
2527   CR LF   2565   CR LF
2528       <!-- D ata attrib ute --> CR LF   2566       <!-- D ata attrib ute --> CR LF
2529       <!--                  --> CR LF   2567       <!--                  --> CR LF
2530       <xsl:a ttribute n ame="wp:da ta"> CR LF   2568       <xsl:a ttribute n ame="wp:da ta"> CR LF
2531        <xsl: value-of s elect="$Va rSrc" /> CR LF   2569        <xsl: value-of s elect="$Va rSrc" /> CR LF
2532       </xsl: attribute> CR LF   2570       </xsl: attribute> CR LF
2533   CR LF   2571   CR LF
2534       <!-- W idth attri bute --> CR LF   2572       <!-- W idth attri bute --> CR LF
2535       <!--                   --> CR LF   2573       <!--                   --> CR LF
2536       <xsl:i f test="$V arWidth &g t; 0"> CR LF   2574       <xsl:i f test="$V arWidth &g t; 0"> CR LF
2537        <xsl: attribute  name="wp:w idth"> CR LF   2575        <xsl: attribute  name="wp:w idth"> CR LF
2538         <xsl :value-of  select="$V arWidth"/> CR LF   2576         <xsl :value-of  select="$V arWidth"/> CR LF
2539        </xsl :attribute > CR LF   2577        </xsl :attribute > CR LF
2540       </xsl: if> CR LF   2578       </xsl: if> CR LF
2541   CR LF   2579   CR LF
2542       <!-- H eight attr ibute --> CR LF   2580       <!-- H eight attr ibute --> CR LF
2543       <!--                    --> CR LF   2581       <!--                    --> CR LF
2544       <xsl:i f test="$V arHeight & gt; 0"> CR LF   2582       <xsl:i f test="$V arHeight & gt; 0"> CR LF
2545        <xsl: attribute  name="wp:h eight"> CR LF   2583        <xsl: attribute  name="wp:h eight"> CR LF
2546         <xsl :value-of  select="$V arHeight"/ > CR LF   2584         <xsl :value-of  select="$V arHeight"/ > CR LF
2547        </xsl :attribute > CR LF   2585        </xsl :attribute > CR LF
2548       </xsl: if> CR LF   2586       </xsl: if> CR LF
2549   CR LF   2587   CR LF
2550       <!-- S tyle attri bute --> CR LF   2588       <!-- S tyle attri bute --> CR LF
2551       <!--                   --> CR LF   2589       <!--                   --> CR LF
2552       <xsl:i f test="st ring-lengt h($VarInli neCSSPrope rties) &gt ; 0"> CR LF   2590       <xsl:i f test="st ring-lengt h($VarInli neCSSPrope rties) &gt ; 0"> CR LF
2553        <xsl: attribute  name="wp:s tyle"> CR LF   2591        <xsl: attribute  name="wp:s tyle"> CR LF
2554         <xsl :value-of  select="$V arInlineCS SPropertie s" /> CR LF   2592         <xsl :value-of  select="$V arInlineCS SPropertie s" /> CR LF
2555        </xsl :attribute > CR LF   2593        </xsl :attribute > CR LF
2556       </xsl: if> CR LF   2594       </xsl: if> CR LF
2557   CR LF   2595   CR LF
2558       <!-- T itle attri bute --> CR LF   2596       <!-- T itle attri bute --> CR LF
2559       <!--                   --> CR LF   2597       <!--                   --> CR LF
2560       <xsl:c hoose> CR LF   2598       <xsl:c hoose> CR LF
2561        <xsl: when test= "string-le ngth($VarA ltText) &g t; 0"> CR LF   2599        <xsl: when test= "string-le ngth($VarA ltText) &g t; 0"> CR LF
2562         <xsl :attribute  name="wp: title"> CR LF   2600         <xsl :attribute  name="wp: title"> CR LF
2563          <xs l:value-of  select="$ VarAltText " /> CR LF   2601          <xs l:value-of  select="$ VarAltText " /> CR LF
2564         </xs l:attribut e> CR LF   2602         </xs l:attribut e> CR LF
2565        </xsl :when> CR LF   2603        </xsl :when> CR LF
2566   CR LF   2604   CR LF
2567        <xsl: when test= "string-le ngth($Para mSplitsFra me/@title)  &gt; 0"> CR LF   2605        <xsl: when test= "string-le ngth($Para mSplitsFra me/@title)  &gt; 0"> CR LF
2568         <xsl :attribute  name="wp: title"> CR LF   2606         <xsl :attribute  name="wp: title"> CR LF
2569          <xs l:value-of  select="$ ParamSplit sFrame/@ti tle" /> CR LF   2607          <xs l:value-of  select="$ ParamSplit sFrame/@ti tle" /> CR LF
2570         </xs l:attribut e> CR LF   2608         </xs l:attribut e> CR LF
2571        </xsl :when> CR LF   2609        </xsl :when> CR LF
2572       </xsl: choose> CR LF   2610       </xsl: choose> CR LF
2573      </wp:Im age> CR LF   2611      </wp:Im age> CR LF
2574   CR LF   2612   CR LF
2575      <!-- Ge nerate D L inks --> CR LF   2613      <!-- Ge nerate D L inks --> CR LF
2576      <!--                    --> CR LF   2614      <!--                    --> CR LF
2577      <xsl:va riable nam e="VarGene rateDLinks " select=" wwprojext: GetFormatS etting('ac cessibilit y-image-d- links', 'f alse')" /> CR LF   2615      <xsl:va riable nam e="VarGene rateDLinks " select=" wwprojext: GetFormatS etting('ac cessibilit y-image-d- links', 'f alse')" /> CR LF
2578      <xsl:if  test="$Va rGenerateD Links = 't rue'"> CR LF   2616      <xsl:if  test="$Va rGenerateD Links = 't rue'"> CR LF
2579       <xsl:i f test="st ring-lengt h($VarLong Descriptio n) &gt; 0" > CR LF   2617       <xsl:i f test="st ring-lengt h($VarLong Descriptio n) &gt; 0" > CR LF
2580        <xsl: text> </xs l:text> CR LF   2618        <xsl: text> </xs l:text> CR LF
2581        <wp:G otoLink hr ef="{$VarL ongDescrip tion}" tit le="{conca t('Descrip tion link  for ', wwf ilesystem: GetFileNam e($ParamSp litsFrame/ @path))}"> [D]</wp:Go toLink><wp :br /> CR LF   2619        <wp:G otoLink hr ef="{$VarL ongDescrip tion}" tit le="{conca t('Descrip tion link  for ', wwf ilesystem: GetFileNam e($ParamSp litsFrame/ @path))}"> [D]</wp:Go toLink><wp :br /> CR LF
2582       </xsl: if> CR LF   2620       </xsl: if> CR LF
2583      </xsl:i f> CR LF   2621      </xsl:i f> CR LF
2584   CR LF   2622   CR LF
2585      <!-- No tes --> CR LF   2623      <!-- No tes --> CR LF
2586      <!--        --> CR LF   2624      <!--        --> CR LF
2587      <xsl:ch oose> CR LF   2625      <xsl:ch oose> CR LF
2588       <!-- T humbnail - -> CR LF   2626       <!-- T humbnail - -> CR LF
2589       <!--            - -> CR LF   2627       <!--            - -> CR LF
2590       <xsl:w hen test=" $ParamThum bnail"> CR LF   2628       <xsl:w hen test=" $ParamThum bnail"> CR LF
2591        <!--  Nothing to  do --> CR LF   2629        <!--  Nothing to  do --> CR LF
2592        <!--                 --> CR LF   2630        <!--                 --> CR LF
2593       </xsl: when> CR LF   2631       </xsl: when> CR LF
2594   CR LF   2632   CR LF
2595       <!-- F ullsize -- > CR LF   2633       <!-- F ullsize -- > CR LF
2596       <!--           -- > CR LF   2634       <!--           -- > CR LF
2597       <xsl:o therwise> CR LF   2635       <xsl:o therwise> CR LF
2598        <!--  Frame Foot notes --> CR LF   2636        <!--  Frame Foot notes --> CR LF
2599        <!--                   --> CR LF   2637        <!--                   --> CR LF
2600        <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" /> CR LF   2638        <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" /> CR LF
2601        <xsl: call-templ ate name=" Content-No tes"> CR LF   2639        <xsl: call-templ ate name=" Content-No tes"> CR LF
2602         <xsl :with-para m name="Pa ramNotes"  select="$V arNotes" / > CR LF   2640         <xsl :with-para m name="Pa ramNotes"  select="$V arNotes" / > CR LF
2603         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   2641         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
2604         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   2642         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
2605         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   2643         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
2606         <xsl :with-para m name="Pa ramTOCData " select=" ''" /> CR LF   2644         <xsl :with-para m name="Pa ramTOCData " select=" ''" /> CR LF
2607         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   2645         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
2608        </xsl :call-temp late> CR LF   2646        </xsl :call-temp late> CR LF
2609       </xsl: otherwise> CR LF   2647       </xsl: otherwise> CR LF
2610      </xsl:c hoose> CR LF   2648      </xsl:c hoose> CR LF
2611     </xsl:fo r-each> CR LF   2649     </xsl:fo r-each> CR LF
2612    </xsl:tem plate> CR LF   2650    </xsl:tem plate> CR LF
2613   CR LF   2651   CR LF
2614   CR LF   2652   CR LF
2615    <xsl:temp late name= "Frame-Mar kup-Raster "> CR LF   2653    <xsl:temp late name= "Frame-Mar kup-Raster "> CR LF
2616     <xsl:par am name="P aramFrame"  /> CR LF   2654     <xsl:par am name="P aramFrame"  /> CR LF
2617     <xsl:par am name="P aramSplits " /> CR LF   2655     <xsl:par am name="P aramSplits " /> CR LF
2618     <xsl:par am name="P aramCargo"  /> CR LF   2656     <xsl:par am name="P aramCargo"  /> CR LF
2619     <xsl:par am name="P aramLinks"  /> CR LF   2657     <xsl:par am name="P aramLinks"  /> CR LF
2620     <xsl:par am name="P aramSplit"  /> CR LF   2658     <xsl:par am name="P aramSplit"  /> CR LF
2621     <xsl:par am name="P aramSplits Frame" /> CR LF   2659     <xsl:par am name="P aramSplits Frame" /> CR LF
2622     <xsl:par am name="P aramContex tRule" /> CR LF   2660     <xsl:par am name="P aramContex tRule" /> CR LF
2623     <xsl:par am name="P aramImageI nfo" /> CR LF   2661     <xsl:par am name="P aramImageI nfo" /> CR LF
2624     <xsl:par am name="P aramThumbn ail" /> CR LF   2662     <xsl:par am name="P aramThumbn ail" /> CR LF
2625   CR LF   2663   CR LF
2626     <!-- Acc ess frame  behavior - -> CR LF   2664     <!-- Acc ess frame  behavior - -> CR LF
2627     <!--                         - -> CR LF   2665     <!--                         - -> CR LF
2628     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF   2666     <xsl:for -each sele ct="$Param Cargo/wwbe haviors:Be haviors[1] "> CR LF
2629      <xsl:va riable nam e="VarBeha viorFrame"  select="k ey('wwbeha viors-fram es-by-id',  $ParamFra me/@id)[1] " /> CR LF   2667      <xsl:va riable nam e="VarBeha viorFrame"  select="k ey('wwbeha viors-fram es-by-id',  $ParamFra me/@id)[1] " /> CR LF
2630   CR LF   2668   CR LF
2631      <!-- Ov erride Rul e --> CR LF   2669      <!-- Ov erride Rul e --> CR LF
2632      <!--                 --> CR LF   2670      <!--                 --> CR LF
2633      <xsl:va riable nam e="VarOver rideRule"  select="ww projext:Ge tOverrideR ule('Graph ic', $Para mSplitsFra me/@stylen ame, $Para mSplitsFra me/@docume ntID, $Par amSplitsFr ame/@id)"  /> CR LF   2671      <xsl:va riable nam e="VarOver rideRule"  select="ww projext:Ge tOverrideR ule('Graph ic', $Para mSplitsFra me/@stylen ame, $Para mSplitsFra me/@docume ntID, $Par amSplitsFr ame/@id)"  /> CR LF
2634   CR LF   2672   CR LF
2635      <!-- Re solve proj ect proper ties --> CR LF   2673      <!-- Re solve proj ect proper ties --> CR LF
2636      <!--                               --> CR LF   2674      <!--                               --> CR LF
2637      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" > CR LF   2675      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" > CR LF
2638       <xsl:c all-templa te name="P roperties- ResolveOve rrideRule" > CR LF   2676       <xsl:c all-templa te name="P roperties- ResolveOve rrideRule" > CR LF
2639        <xsl: with-param  name="Par amProperti es" select ="$VarOver rideRule/w wproject:P roperties/ wwproject: Property"  /> CR LF   2677        <xsl: with-param  name="Par amProperti es" select ="$VarOver rideRule/w wproject:P roperties/ wwproject: Property"  /> CR LF
2640        <xsl: with-param  name="Par amContextS tyle" sele ct="$Param Frame" /> CR LF   2678        <xsl: with-param  name="Par amContextS tyle" sele ct="$Param Frame" /> CR LF
    2679        <xsl: with-param  name="Par amStyleTyp e" select= "'Graphic' " /> CR LF
2641       </xsl: call-templ ate> CR LF   2680       </xsl: call-templ ate> CR LF
2642      </xsl:v ariable> CR LF   2681      </xsl:v ariable> CR LF
2643      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" /> CR LF   2682      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" /> CR LF
2644   CR LF   2683   CR LF
2645      <!-- CS S properti es --> CR LF   2684      <!-- CS S properti es --> CR LF
2646      <!--                  --> CR LF   2685      <!--                  --> CR LF
2647      <xsl:va riable nam e="VarCSSP ropertiesA sXML"> CR LF   2686      <xsl:va riable nam e="VarCSSP ropertiesA sXML"> CR LF
2648       <xsl:c all-templa te name="C SS-Transla teProjectP roperties" > CR LF   2687       <xsl:c all-templa te name="C SS-Transla teProjectP roperties" > CR LF
2649        <xsl: with-param  name="Par amProperti es" select ="$VarReso lvedProper ties[(@Nam e != 'widt h') and (@ Name != 'h eight')]"  /> CR LF   2688        <xsl: with-param  name="Par amProperti es" select ="$VarReso lvedProper ties[(@Nam e != 'widt h') and (@ Name != 'h eight')]"  /> CR LF
2650        <xsl: with-param  name="Par amFromAbso luteURI" s elect="$Pa ramSplit/@ path" /> CR LF   2689        <xsl: with-param  name="Par amFromAbso luteURI" s elect="$Pa ramSplit/@ path" /> CR LF
2651        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF   2690        <xsl: with-param  name="Par amSplits"  select="$P aramSplits " /> CR LF
2652       </xsl: call-templ ate> CR LF   2691       </xsl: call-templ ate> CR LF
2653      </xsl:v ariable> CR LF   2692      </xsl:v ariable> CR LF
2654      <xsl:va riable nam e="VarCSSP roperties"  select="m sxsl:node- set($VarCS SPropertie sAsXML)/ww project:Pr operty" /> CR LF   2693      <xsl:va riable nam e="VarCSSP roperties"  select="m sxsl:node- set($VarCS SPropertie sAsXML)/ww project:Pr operty" /> CR LF
2655      <xsl:va riable nam e="VarInli neCSSPrope rties"> CR LF   2694      <xsl:va riable nam e="VarInli neCSSPrope rties"> CR LF
2656       <xsl:c all-templa te name="C SS-InlineP roperties" > CR LF   2695       <xsl:c all-templa te name="C SS-InlineP roperties" > CR LF
2657        <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties[ string-len gth(@Value ) &gt; 0]"  /> CR LF   2696        <xsl: with-param  name="Par amProperti es" select ="$VarCSSP roperties[ string-len gth(@Value ) &gt; 0]"  /> CR LF
2658       </xsl: call-templ ate> CR LF   2697       </xsl: call-templ ate> CR LF
2659      </xsl:v ariable> CR LF   2698      </xsl:v ariable> CR LF
2660   CR LF   2699   CR LF
2661      <!-- Wi dth/Height  --> CR LF   2700      <!-- Wi dth/Height  --> CR LF
2662      <!--                --> CR LF   2701      <!--                --> CR LF
2663      <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   2702      <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
2664      <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   2703      <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
2665      <xsl:va riable nam e="VarWidt h"> CR LF   2704      <xsl:va riable nam e="VarWidt h"> CR LF
2666       <xsl:c hoose> CR LF   2705       <xsl:c hoose> CR LF
2667        <xsl: when test= "$ParamThu mbnail"> CR LF   2706        <xsl: when test= "$ParamThu mbnail"> CR LF
2668         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF   2707         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF
2669        </xsl :when> CR LF   2708        </xsl :when> CR LF
2670   CR LF   2709   CR LF
2671        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF   2710        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF
2672         <xsl :choose> CR LF   2711         <xsl :choose> CR LF
2673          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> CR LF   2712          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> CR LF
2674           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF   2713           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF
2675   CR LF   2714   CR LF
2676           <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' width']/@v alue), 'pt ', 'px'))"  /> CR LF   2715           <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' width']/@v alue), 'pt ', 'px'))"  /> CR LF
2677          </x sl:when> CR LF   2716          </x sl:when> CR LF
2678   CR LF   2717   CR LF
2679          <xs l:otherwis e> CR LF   2718          <xs l:otherwis e> CR LF
2680           <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " /> CR LF   2719           <x sl:value-o f select=" number($Pa ramImageIn fo/@width) " /> CR LF
2681          </x sl:otherwi se> CR LF   2720          </x sl:otherwi se> CR LF
2682         </xs l:choose> CR LF   2721         </xs l:choose> CR LF
2683        </xsl :when> CR LF   2722        </xsl :when> CR LF
2684   CR LF   2723   CR LF
2685        <xsl: otherwise> CR LF   2724        <xsl: otherwise> CR LF
2686         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF   2725         <xsl :value-of  select="nu mber($Para mImageInfo /@width)"  /> CR LF
2687        </xsl :otherwise > CR LF   2726        </xsl :otherwise > CR LF
2688       </xsl: choose> CR LF   2727       </xsl: choose> CR LF
2689      </xsl:v ariable> CR LF   2728      </xsl:v ariable> CR LF
2690      <xsl:va riable nam e="VarHeig ht"> CR LF   2729      <xsl:va riable nam e="VarHeig ht"> CR LF
2691       <xsl:c hoose> CR LF   2730       <xsl:c hoose> CR LF
2692        <xsl: when test= "$ParamThu mbnail"> CR LF   2731        <xsl: when test= "$ParamThu mbnail"> CR LF
2693         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF   2732         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF
2694        </xsl :when> CR LF   2733        </xsl :when> CR LF
2695   CR LF   2734   CR LF
2696        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF   2735        <xsl: when test= "$ParamSpl itsFrame/@ byref = 't rue'"> CR LF
2697         <xsl :choose> CR LF   2736         <xsl :choose> CR LF
2698          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> CR LF   2737          <xs l:when tes t="$VarByR eferenceGr aphicsUseD ocumentDim ensions"> CR LF
2699           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF   2738           <x sl:variabl e name="Va rByReferen ceFrame" s elect="$Pa ramFrame// wwdoc:Face t[@type =  'by-refere nce'][1]/. ./.." /> CR LF
2700   CR LF   2739   CR LF
2701           <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' height']/@ value), 'p t', 'px')) " /> CR LF   2740           <x sl:value-o f select=" floor(wwun its:Conver t(wwunits: NumericPre fix($VarBy ReferenceF rame/wwdoc :Attribute [@name = ' height']/@ value), 'p t', 'px')) " /> CR LF
2702          </x sl:when> CR LF   2741          </x sl:when> CR LF
2703   CR LF   2742   CR LF
2704          <xs l:otherwis e> CR LF   2743          <xs l:otherwis e> CR LF
2705           <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" /> CR LF   2744           <x sl:value-o f select=" number($Pa ramImageIn fo/@height )" /> CR LF
2706          </x sl:otherwi se> CR LF   2745          </x sl:otherwi se> CR LF
2707         </xs l:choose> CR LF   2746         </xs l:choose> CR LF
2708        </xsl :when> CR LF   2747        </xsl :when> CR LF
2709   CR LF   2748   CR LF
2710        <xsl: otherwise> CR LF   2749        <xsl: otherwise> CR LF
2711         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF   2750         <xsl :value-of  select="nu mber($Para mImageInfo /@height)"  /> CR LF
2712        </xsl :otherwise > CR LF   2751        </xsl :otherwise > CR LF
2713       </xsl: choose> CR LF   2752       </xsl: choose> CR LF
2714      </xsl:v ariable> CR LF   2753      </xsl:v ariable> CR LF
2715   CR LF   2754   CR LF
2716      <!-- Sr c --> CR LF   2755      <!-- Sr c --> CR LF
2717      <!--      --> CR LF   2756      <!--      --> CR LF
2718      <xsl:va riable nam e="VarSrc"  select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " /> CR LF   2757      <xsl:va riable nam e="VarSrc"  select="w wuri:GetRe lativeTo($ ParamImage Info/@path , $ParamSp lit/@path) " /> CR LF
2719   CR LF   2758   CR LF
2720      <!-- De fine Use M ap --> CR LF   2759      <!-- De fine Use M ap --> CR LF
2721      <!--                  --> CR LF   2760      <!--                  --> CR LF
2722      <xsl:va riable nam e="VarUseM ap"> CR LF   2761      <xsl:va riable nam e="VarUseM ap"> CR LF
2723       <xsl:c hoose> CR LF   2762       <xsl:c hoose> CR LF
2724        <xsl: when test= "($ParamTh umbnail) o r (count($ ParamFrame //wwdoc:Li nk) &gt; 0 )"> CR LF   2763        <xsl: when test= "($ParamTh umbnail) o r (count($ ParamFrame //wwdoc:Li nk) &gt; 0 )"> CR LF
2725         <xsl :text>#</x sl:text> CR LF   2764         <xsl :text>#</x sl:text> CR LF
2726         <xsl :value-of  select="$P aramSplits Frame/@doc umentID" / > CR LF   2765         <xsl :value-of  select="$P aramSplits Frame/@doc umentID" / > CR LF
2727         <xsl :text>_</x sl:text> CR LF   2766         <xsl :text>_</x sl:text> CR LF
2728         <xsl :value-of  select="$P aramSplits Frame/@id"  /> CR LF   2767         <xsl :value-of  select="$P aramSplits Frame/@id"  /> CR LF
2729        </xsl :when> CR LF   2768        </xsl :when> CR LF
2730   CR LF   2769   CR LF
2731        <xsl: otherwise> CR LF   2770        <xsl: otherwise> CR LF
2732         <xsl :value-of  select="'' " /> CR LF   2771         <xsl :value-of  select="'' " /> CR LF
2733        </xsl :otherwise > CR LF   2772        </xsl :otherwise > CR LF
2734       </xsl: choose> CR LF   2773       </xsl: choose> CR LF
2735      </xsl:v ariable> CR LF   2774      </xsl:v ariable> CR LF
2736   CR LF   2775   CR LF
2737      <!-- Al t Text --> CR LF   2776      <!-- Al t Text --> CR LF
2738      <!--           --> CR LF   2777      <!--           --> CR LF
2739      <xsl:va riable nam e="VarAltT ext"> CR LF   2778      <xsl:va riable nam e="VarAltT ext"> CR LF
2740       <xsl:c all-templa te name="I mages-AltT ext"> CR LF   2779       <xsl:c all-templa te name="I mages-AltT ext"> CR LF
2741        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF   2780        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF
2742        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF   2781        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF
2743       </xsl: call-templ ate> CR LF   2782       </xsl: call-templ ate> CR LF
2744      </xsl:v ariable> CR LF   2783      </xsl:v ariable> CR LF
2745   CR LF   2784   CR LF
2746      <!-- Lo ng Descrip tion --> CR LF   2785      <!-- Lo ng Descrip tion --> CR LF
2747      <!--                    --> CR LF   2786      <!--                    --> CR LF
2748      <xsl:va riable nam e="VarLong Descriptio n"> CR LF   2787      <xsl:va riable nam e="VarLong Descriptio n"> CR LF
2749       <xsl:c all-templa te name="I mages-Long Descriptio n"> CR LF   2788       <xsl:c all-templa te name="I mages-Long Descriptio n"> CR LF
2750        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> CR LF   2789        <xsl: with-param  name="Par amSplitsFr ame" selec t="$ParamS plitsFrame " /> CR LF
2751        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF   2790        <xsl: with-param  name="Par amBehavior Frame" sel ect="$VarB ehaviorFra me" /> CR LF
2752       </xsl: call-templ ate> CR LF   2791       </xsl: call-templ ate> CR LF
2753      </xsl:v ariable> CR LF   2792      </xsl:v ariable> CR LF
2754   CR LF   2793   CR LF
2755      <!-- Ta g --> CR LF   2794      <!-- Ta g --> CR LF
2756      <!--      --> CR LF   2795      <!--      --> CR LF
2757      <xsl:va riable nam e="VarTagP roperty" s elect="$Pa ramContext Rule/wwpro ject:Optio ns/wwproje ct:Option[ @Name = 'e lement-nam e']/@Value " /> CR LF   2796      <xsl:va riable nam e="VarTagP roperty" s elect="$Pa ramContext Rule/wwpro ject:Optio ns/wwproje ct:Option[ @Name = 'e lement-nam e']/@Value " /> CR LF
2758      <xsl:va riable nam e="VarTag" > CR LF   2797      <xsl:va riable nam e="VarTag" > CR LF
2759       <xsl:c hoose> CR LF   2798       <xsl:c hoose> CR LF
2760        <xsl: when test= "(string-l ength($Var TagPropert y) &gt; 0)  and ($Var TagPropert y != 'none ')"> CR LF   2799        <xsl: when test= "(string-l ength($Var TagPropert y) &gt; 0)  and ($Var TagPropert y != 'none ')"> CR LF
2761         <xsl :value-of  select="$V arTagPrope rty" /> CR LF   2800         <xsl :value-of  select="$V arTagPrope rty" /> CR LF
2762        </xsl :when> CR LF   2801        </xsl :when> CR LF
2763   CR LF   2802   CR LF
2764        <xsl: otherwise> CR LF   2803        <xsl: otherwise> CR LF
2765         <xsl :value-of  select="'w p:Image'"  /> CR LF   2804         <xsl :value-of  select="'w p:Image'"  /> CR LF
2766        </xsl :otherwise > CR LF   2805        </xsl :otherwise > CR LF
2767       </xsl: choose> CR LF   2806       </xsl: choose> CR LF
2768      </xsl:v ariable> CR LF   2807      </xsl:v ariable> CR LF
2769   CR LF   2808   CR LF
2770      <!-- Gr aphic elem ent namesp ace --> CR LF   2809      <!-- Gr aphic elem ent namesp ace --> CR LF
2771      <!--                              --> CR LF   2810      <!--                              --> CR LF
2772      <xsl:va riable nam e="VarName space"> CR LF   2811      <xsl:va riable nam e="VarName space"> CR LF
2773       <xsl:c hoose> CR LF   2812       <xsl:c hoose> CR LF
2774        <xsl: when test= "$VarTag =  'wp:Image '"> CR LF   2813        <xsl: when test= "$VarTag =  'wp:Image '"> CR LF
2775         <xsl :value-of  select="'u rn:WebWork s-XMLXSL-C ontainer-S chema'" /> CR LF   2814         <xsl :value-of  select="'u rn:WebWork s-XMLXSL-C ontainer-S chema'" /> CR LF
2776        </xsl :when> CR LF   2815        </xsl :when> CR LF
2777   CR LF   2816   CR LF
2778        <xsl: otherwise> CR LF   2817        <xsl: otherwise> CR LF
2779         <xsl :value-of  select="$G lobalDefau ltNamespac e" /> CR LF   2818         <xsl :value-of  select="$G lobalDefau ltNamespac e" /> CR LF
2780        </xsl :otherwise > CR LF   2819        </xsl :otherwise > CR LF
2781       </xsl: choose> CR LF   2820       </xsl: choose> CR LF
2782      </xsl:v ariable> CR LF   2821      </xsl:v ariable> CR LF
2783   CR LF   2822   CR LF
2784      <!-- Gr aphic elem ent --> CR LF   2823      <!-- Gr aphic elem ent --> CR LF
2785      <!--                   --> CR LF   2824      <!--                   --> CR LF
2786      <xsl:el ement name ="{$VarTag }" namespa ce="{$VarN amespace}" > CR LF   2825      <xsl:el ement name ="{$VarTag }" namespa ce="{$VarN amespace}" > CR LF
2787       <!-- I D attribut e --> CR LF   2826       <!-- I D attribut e --> CR LF
2788       <!--                --> CR LF   2827       <!--                --> CR LF
2789       <xsl:a ttribute n ame="wp:id "> CR LF   2828       <xsl:a ttribute n ame="wp:id "> CR LF
2790        <xsl: value-of s elect="$Pa ramFrame/@ id" /> CR LF   2829        <xsl: value-of s elect="$Pa ramFrame/@ id" /> CR LF
2791       </xsl: attribute> CR LF   2830       </xsl: attribute> CR LF
2792   CR LF   2831   CR LF
2793       <!-- C lass attri bute --> CR LF   2832       <!-- C lass attri bute --> CR LF
2794       <!--                   --> CR LF   2833       <!--                   --> CR LF
2795       <xsl:a ttribute n ame="wp:cl ass"> CR LF   2834       <xsl:a ttribute n ame="wp:cl ass"> CR LF
2796        <xsl: value-of s elect="wws tring:CSSC lassName($ ParamFrame /@stylenam e)" /> CR LF   2835        <xsl: value-of s elect="wws tring:CSSC lassName($ ParamFrame /@stylenam e)" /> CR LF
2797       </xsl: attribute> CR LF   2836       </xsl: attribute> CR LF
2798   CR LF   2837   CR LF
2799       <!-- S rc attribu te --> CR LF   2838       <!-- S rc attribu te --> CR LF
2800       <!--                 --> CR LF   2839       <!--                 --> CR LF
2801       <xsl:a ttribute n ame="wp:sr c"> CR LF   2840       <xsl:a ttribute n ame="wp:sr c"> CR LF
2802        <xsl: value-of s elect="$Va rSrc" /> CR LF   2841        <xsl: value-of s elect="$Va rSrc" /> CR LF
2803       </xsl: attribute> CR LF   2842       </xsl: attribute> CR LF
2804   CR LF   2843   CR LF
2805       <!-- W idth attri bute --> CR LF   2844       <!-- W idth attri bute --> CR LF
2806       <!--                   --> CR LF   2845       <!--                   --> CR LF
2807       <xsl:i f test="$V arWidth &g t; 0"> CR LF   2846       <xsl:i f test="$V arWidth &g t; 0"> CR LF
2808        <xsl: attribute  name="wp:w idth"> CR LF   2847        <xsl: attribute  name="wp:w idth"> CR LF
2809         <xsl :value-of  select="$V arWidth"/> CR LF   2848         <xsl :value-of  select="$V arWidth"/> CR LF
2810        </xsl :attribute > CR LF   2849        </xsl :attribute > CR LF
2811       </xsl: if> CR LF   2850       </xsl: if> CR LF
2812   CR LF   2851   CR LF
2813       <!-- H eight attr ibute --> CR LF   2852       <!-- H eight attr ibute --> CR LF
2814       <!--                    --> CR LF   2853       <!--                    --> CR LF
2815       <xsl:i f test="$V arHeight & gt; 0"> CR LF   2854       <xsl:i f test="$V arHeight & gt; 0"> CR LF
2816        <xsl: attribute  name="wp:h eight"> CR LF   2855        <xsl: attribute  name="wp:h eight"> CR LF
2817         <xsl :value-of  select="$V arHeight"/ > CR LF   2856         <xsl :value-of  select="$V arHeight"/ > CR LF
2818        </xsl :attribute > CR LF   2857        </xsl :attribute > CR LF
2819       </xsl: if> CR LF   2858       </xsl: if> CR LF
2820   CR LF   2859   CR LF
2821       <!-- S tyle attri bute --> CR LF   2860       <!-- S tyle attri bute --> CR LF
2822       <!--                   --> CR LF   2861       <!--                   --> CR LF
2823       <xsl:i f test="st ring-lengt h($VarInli neCSSPrope rties) &gt ; 0"> CR LF   2862       <xsl:i f test="st ring-lengt h($VarInli neCSSPrope rties) &gt ; 0"> CR LF
2824        <xsl: attribute  name="wp:s tyle"> CR LF   2863        <xsl: attribute  name="wp:s tyle"> CR LF
2825         <xsl :value-of  select="$V arInlineCS SPropertie s" /> CR LF   2864         <xsl :value-of  select="$V arInlineCS SPropertie s" /> CR LF
2826        </xsl :attribute > CR LF   2865        </xsl :attribute > CR LF
2827       </xsl: if> CR LF   2866       </xsl: if> CR LF
2828   CR LF   2867   CR LF
2829       <!-- A lt attribu te --> CR LF   2868       <!-- A lt attribu te --> CR LF
2830       <!--                 --> CR LF   2869       <!--                 --> CR LF
2831       <xsl:a ttribute n ame="wp:al t"> CR LF   2870       <xsl:a ttribute n ame="wp:al t"> CR LF
2832        <xsl: value-of s elect="$Va rAltText"  /> CR LF   2871        <xsl: value-of s elect="$Va rAltText"  /> CR LF
2833       </xsl: attribute> CR LF   2872       </xsl: attribute> CR LF
2834   CR LF   2873   CR LF
2835       <!-- L ongdesc at tribute -- > CR LF   2874       <!-- L ongdesc at tribute -- > CR LF
2836       <!--                      -- > CR LF   2875       <!--                      -- > CR LF
2837       <xsl:i f test="st ring-lengt h($VarLong Descriptio n) &gt; 0" > CR LF   2876       <xsl:i f test="st ring-lengt h($VarLong Descriptio n) &gt; 0" > CR LF
2838        <xsl: attribute  name="wp:l ongdesc"> CR LF   2877        <xsl: attribute  name="wp:l ongdesc"> CR LF
2839         <xsl :value-of  select="$V arLongDesc ription" / > CR LF   2878         <xsl :value-of  select="$V arLongDesc ription" / > CR LF
2840        </xsl :attribute > CR LF   2879        </xsl :attribute > CR LF
2841       </xsl: if> CR LF   2880       </xsl: if> CR LF
2842   CR LF   2881   CR LF
2843       <!-- U semap attr ibute --> CR LF   2882       <!-- U semap attr ibute --> CR LF
2844       <!--                    --> CR LF   2883       <!--                    --> CR LF
2845       <xsl:i f test="st ring-lengt h($VarUseM ap) &gt; 0 "> CR LF   2884       <xsl:i f test="st ring-lengt h($VarUseM ap) &gt; 0 "> CR LF
2846        <xsl: attribute  name="wp:u semap"> CR LF   2885        <xsl: attribute  name="wp:u semap"> CR LF
2847         <xsl :value-of  select="$V arUseMap"  /> CR LF   2886         <xsl :value-of  select="$V arUseMap"  /> CR LF
2848        </xsl :attribute > CR LF   2887        </xsl :attribute > CR LF
2849        <xsl: attribute  name="bord er"> CR LF   2888        <xsl: attribute  name="bord er"> CR LF
2850         <xsl :value-of  select="'0 '" /> CR LF   2889         <xsl :value-of  select="'0 '" /> CR LF
2851        </xsl :attribute > CR LF   2890        </xsl :attribute > CR LF
2852       </xsl: if> CR LF   2891       </xsl: if> CR LF
2853      </xsl:e lement> CR LF   2892      </xsl:e lement> CR LF
2854   CR LF   2893   CR LF
2855      <!-- Ge nerate D L inks --> CR LF   2894      <!-- Ge nerate D L inks --> CR LF
2856      <!--                    --> CR LF   2895      <!--                    --> CR LF
2857      <xsl:va riable nam e="VarGene rateDLinks " select=" wwprojext: GetFormatS etting('ac cessibilit y-image-d- links', 'f alse')" /> CR LF   2896      <xsl:va riable nam e="VarGene rateDLinks " select=" wwprojext: GetFormatS etting('ac cessibilit y-image-d- links', 'f alse')" /> CR LF
2858      <xsl:if  test="$Va rGenerateD Links = 't rue'"> CR LF   2897      <xsl:if  test="$Va rGenerateD Links = 't rue'"> CR LF
2859       <xsl:i f test="st ring-lengt h($VarLong Descriptio n) &gt; 0" > CR LF   2898       <xsl:i f test="st ring-lengt h($VarLong Descriptio n) &gt; 0" > CR LF
2860        <xsl: text> </xs l:text> CR LF   2899        <xsl: text> </xs l:text> CR LF
2861        <wp:G otoLink hr ef="{$VarL ongDescrip tion}" tit le="{conca t('Descrip tion link  for ', wwf ilesystem: GetFileNam e($ParamSp litsFrame/ @path))}"> [D]</wp:Go toLink><wp :br /> CR LF   2900        <wp:G otoLink hr ef="{$VarL ongDescrip tion}" tit le="{conca t('Descrip tion link  for ', wwf ilesystem: GetFileNam e($ParamSp litsFrame/ @path))}"> [D]</wp:Go toLink><wp :br /> CR LF
2862       </xsl: if> CR LF   2901       </xsl: if> CR LF
2863      </xsl:i f> CR LF   2902      </xsl:i f> CR LF
2864   CR LF   2903   CR LF
2865      <!-- Im age map -- > CR LF   2904      <!-- Im age map -- > CR LF
2866      <!--            -- > CR LF   2905      <!--            -- > CR LF
2867      <xsl:if  test="str ing-length ($VarUseMa p) &gt; 0" > CR LF   2906      <xsl:if  test="str ing-length ($VarUseMa p) &gt; 0" > CR LF
2868       <wp:Ma p wp:name= "{concat($ ParamSplit sFrame/@do cumentID,  '_', $Para mSplitsFra me/@id)}"> CR LF   2907       <wp:Ma p wp:name= "{concat($ ParamSplit sFrame/@do cumentID,  '_', $Para mSplitsFra me/@id)}"> CR LF
2869        <xsl: choose> CR LF   2908        <xsl: choose> CR LF
2870         <!--  Thumbnail  --> CR LF   2909         <!--  Thumbnail  --> CR LF
2871         <!--             --> CR LF   2910         <!--             --> CR LF
2872         <xsl :when test ="$ParamTh umbnail"> CR LF   2911         <xsl :when test ="$ParamTh umbnail"> CR LF
2873          <wp :Area wp:c oords="{co ncat('0,0, ', $VarWid th, ',', $ VarHeight) }" wp:shap e="rect" w p:href="{w wuri:GetRe lativeTo($ ParamSplit sFrame/wws plits:Wrap per/@path,  $ParamSpl it/@path)} "> CR LF   2912          <wp :Area wp:c oords="{co ncat('0,0, ', $VarWid th, ',', $ VarHeight) }" wp:shap e="rect" w p:href="{w wuri:GetRe lativeTo($ ParamSplit sFrame/wws plits:Wrap per/@path,  $ParamSpl it/@path)} "> CR LF
2874           <x sl:attribu te name="w p:alt"> CR LF   2913           <x sl:attribu te name="w p:alt"> CR LF
2875            < xsl:value- of select= "$VarAltTe xt" /> CR LF   2914            < xsl:value- of select= "$VarAltTe xt" /> CR LF
2876           </ xsl:attrib ute> CR LF   2915           </ xsl:attrib ute> CR LF
2877          </w p:Area> CR LF   2916          </w p:Area> CR LF
2878         </xs l:when> CR LF   2917         </xs l:when> CR LF
2879   CR LF   2918   CR LF
2880         <!--  Fullsize  --> CR LF   2919         <!--  Fullsize  --> CR LF
2881         <!--            --> CR LF   2920         <!--            --> CR LF
2882         <xsl :otherwise > CR LF   2921         <xsl :otherwise > CR LF
2883          <xs l:variable  name="Var Horizontal ScalingAsT ext"> CR LF   2922          <xs l:variable  name="Var Horizontal ScalingAsT ext"> CR LF
2884           <x sl:choose> CR LF   2923           <x sl:choose> CR LF
2885            < xsl:when t est="$VarW idth &gt;  0"> CR LF   2924            < xsl:when t est="$VarW idth &gt;  0"> CR LF
2886              <xsl:varia ble name=" VarWidthAs Pixels" se lect="stri ng(floor(w wunits:Con vert(wwuni ts:Numeric Prefix($Pa ramFrame/w wdoc:Attri bute[@name  = 'width' ]/@value),  'pt', 'px ')))" /> CR LF   2925              <xsl:varia ble name=" VarWidthAs Pixels" se lect="stri ng(floor(w wunits:Con vert(wwuni ts:Numeric Prefix($Pa ramFrame/w wdoc:Attri bute[@name  = 'width' ]/@value),  'pt', 'px ')))" /> CR LF
2887              <xsl:value -of select ="number($ VarWidth)  div number ($VarWidth AsPixels)"  /> CR LF   2926              <xsl:value -of select ="number($ VarWidth)  div number ($VarWidth AsPixels)"  /> CR LF
2888            < /xsl:when> CR LF   2927            < /xsl:when> CR LF
2889   CR LF   2928   CR LF
2890            < xsl:otherw ise> CR LF   2929            < xsl:otherw ise> CR LF
2891              <xsl:value -of select ="1" /> CR LF   2930              <xsl:value -of select ="1" /> CR LF
2892            < /xsl:other wise> CR LF   2931            < /xsl:other wise> CR LF
2893           </ xsl:choose > CR LF   2932           </ xsl:choose > CR LF
2894          </x sl:variabl e> CR LF   2933          </x sl:variabl e> CR LF
2895   CR LF   2934   CR LF
2896          <xs l:variable  name="Var VerticalSc alingAsTex t"> CR LF   2935          <xs l:variable  name="Var VerticalSc alingAsTex t"> CR LF
2897           <x sl:choose> CR LF   2936           <x sl:choose> CR LF
2898            < xsl:when t est="$VarH eight &gt;  0"> CR LF   2937            < xsl:when t est="$VarH eight &gt;  0"> CR LF
2899              <xsl:varia ble name=" VarHeightA sPixels" s elect="str ing(floor( wwunits:Co nvert(wwun its:Numeri cPrefix($P aramFrame/ wwdoc:Attr ibute[@nam e = 'heigh t']/@value ), 'pt', ' px')))" /> CR LF   2938              <xsl:varia ble name=" VarHeightA sPixels" s elect="str ing(floor( wwunits:Co nvert(wwun its:Numeri cPrefix($P aramFrame/ wwdoc:Attr ibute[@nam e = 'heigh t']/@value ), 'pt', ' px')))" /> CR LF
2900              <xsl:value -of select ="number($ VarHeight)  div numbe r($VarHeig htAsPixels )" /> CR LF   2939              <xsl:value -of select ="number($ VarHeight)  div numbe r($VarHeig htAsPixels )" /> CR LF
2901            < /xsl:when> CR LF   2940            < /xsl:when> CR LF
2902   CR LF   2941   CR LF
2903            < xsl:otherw ise> CR LF   2942            < xsl:otherw ise> CR LF
2904              <xsl:value -of select ="1" /> CR LF   2943              <xsl:value -of select ="1" /> CR LF
2905            < /xsl:other wise> CR LF   2944            < /xsl:other wise> CR LF
2906           </ xsl:choose > CR LF   2945           </ xsl:choose > CR LF
2907          </x sl:variabl e> CR LF   2946          </x sl:variabl e> CR LF
2908   CR LF   2947   CR LF
2909          <xs l:call-tem plate name ="ImageMap "> CR LF   2948          <xs l:call-tem plate name ="ImageMap "> CR LF
2910           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF   2949           <x sl:with-pa ram name=" ParamFrame " select=" $ParamFram e" /> CR LF
2911           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF   2950           <x sl:with-pa ram name=" ParamSplit s" select= "$ParamSpl its" /> CR LF
2912           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF   2951           <x sl:with-pa ram name=" ParamCargo " select=" $ParamCarg o" /> CR LF
2913           <x sl:with-pa ram name=" ParamParen tBehavior"  select="$ VarBehavio rFrame" /> CR LF   2952           <x sl:with-pa ram name=" ParamParen tBehavior"  select="$ VarBehavio rFrame" /> CR LF
2914           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF   2953           <x sl:with-pa ram name=" ParamLinks " select=" $ParamLink s" /> CR LF
2915           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF   2954           <x sl:with-pa ram name=" ParamSplit " select=" $ParamSpli t" /> CR LF
2916           <x sl:with-pa ram name=" ParamHoriz ontalScali ng" select ="number($ VarHorizon talScaling AsText)" / > CR LF   2955           <x sl:with-pa ram name=" ParamHoriz ontalScali ng" select ="number($ VarHorizon talScaling AsText)" / > CR LF
2917           <x sl:with-pa ram name=" ParamVerti calScaling " select=" number($Va rVerticalS calingAsTe xt)" /> CR LF   2956           <x sl:with-pa ram name=" ParamVerti calScaling " select=" number($Va rVerticalS calingAsTe xt)" /> CR LF
2918          </x sl:call-te mplate> CR LF   2957          </x sl:call-te mplate> CR LF
2919         </xs l:otherwis e> CR LF   2958         </xs l:otherwis e> CR LF
2920        </xsl :choose> CR LF   2959        </xsl :choose> CR LF
2921       </wp:M ap> CR LF   2960       </wp:M ap> CR LF
2922      </xsl:i f> CR LF   2961      </xsl:i f> CR LF
2923   CR LF   2962   CR LF
2924      <!-- No tes --> CR LF   2963      <!-- No tes --> CR LF
2925      <!--        --> CR LF   2964      <!--        --> CR LF
2926      <xsl:ch oose> CR LF   2965      <xsl:ch oose> CR LF
2927       <!-- T humbnail - -> CR LF   2966       <!-- T humbnail - -> CR LF
2928       <!--            - -> CR LF   2967       <!--            - -> CR LF
2929       <xsl:w hen test=" $ParamThum bnail"> CR LF   2968       <xsl:w hen test=" $ParamThum bnail"> CR LF
2930        <!--  Nothing to  do --> CR LF   2969        <!--  Nothing to  do --> CR LF
2931        <!--                 --> CR LF   2970        <!--                 --> CR LF
2932       </xsl: when> CR LF   2971       </xsl: when> CR LF
2933   CR LF   2972   CR LF
2934       <!-- F ullsize -- > CR LF   2973       <!-- F ullsize -- > CR LF
2935       <!--           -- > CR LF   2974       <!--           -- > CR LF
2936       <xsl:o therwise> CR LF   2975       <xsl:o therwise> CR LF
2937        <!--  Frame Foot notes --> CR LF   2976        <!--  Frame Foot notes --> CR LF
2938        <!--                   --> CR LF   2977        <!--                   --> CR LF
2939        <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" /> CR LF   2978        <xsl: variable n ame="VarNo tes" selec t="$ParamF rame//wwdo c:Note" /> CR LF
2940        <xsl: call-templ ate name=" Content-No tes"> CR LF   2979        <xsl: call-templ ate name=" Content-No tes"> CR LF
2941         <xsl :with-para m name="Pa ramNotes"  select="$V arNotes" / > CR LF   2980         <xsl :with-para m name="Pa ramNotes"  select="$V arNotes" / > CR LF
2942         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   2981         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
2943         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF   2982         <xsl :with-para m name="Pa ramCargo"  select="$P aramCargo"  /> CR LF
2944         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   2983         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
2945         <xsl :with-para m name="Pa ramTOCData " select=" ''" /> CR LF   2984         <xsl :with-para m name="Pa ramTOCData " select=" ''" /> CR LF
2946         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   2985         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
2947        </xsl :call-temp late> CR LF   2986        </xsl :call-temp late> CR LF
2948       </xsl: otherwise> CR LF   2987       </xsl: otherwise> CR LF
2949      </xsl:c hoose> CR LF   2988      </xsl:c hoose> CR LF
2950     </xsl:fo r-each> CR LF   2989     </xsl:fo r-each> CR LF
2951    </xsl:tem plate> CR LF   2990    </xsl:tem plate> CR LF
2952   CR LF   2991   CR LF
2953   CR LF   2992   CR LF
2954    <xsl:temp late name= "ImageMap" > CR LF   2993    <xsl:temp late name= "ImageMap" > CR LF
2955     <xsl:par am name="P aramFrame"  /> CR LF   2994     <xsl:par am name="P aramFrame"  /> CR LF
2956     <xsl:par am name="P aramSplits " /> CR LF   2995     <xsl:par am name="P aramSplits " /> CR LF
2957     <xsl:par am name="P aramCargo"  /> CR LF   2996     <xsl:par am name="P aramCargo"  /> CR LF
2958     <xsl:par am name="P aramParent Behavior"  /> CR LF   2997     <xsl:par am name="P aramParent Behavior"  /> CR LF
2959     <xsl:par am name="P aramLinks"  /> CR LF   2998     <xsl:par am name="P aramLinks"  /> CR LF
2960     <xsl:par am name="P aramSplit"  /> CR LF   2999     <xsl:par am name="P aramSplit"  /> CR LF
2961     <xsl:par am name="P aramHorizo ntalScalin g" /> CR LF   3000     <xsl:par am name="P aramHorizo ntalScalin g" /> CR LF
2962     <xsl:par am name="P aramVertic alScaling"  /> CR LF   3001     <xsl:par am name="P aramVertic alScaling"  /> CR LF
2963   CR LF   3002   CR LF
2964     <!-- Pro cess child  frames fi rst --> CR LF   3003     <!-- Pro cess child  frames fi rst --> CR LF
2965     <!--                               --> CR LF   3004     <!--                               --> CR LF
2966     <xsl:for -each sele ct="$Param Frame/wwdo c:Content/ /wwdoc:Fra me[count($ ParamFrame  | ancesto r::wwdoc:F rame[1]) =  1]"> CR LF   3005     <xsl:for -each sele ct="$Param Frame/wwdo c:Content/ /wwdoc:Fra me[count($ ParamFrame  | ancesto r::wwdoc:F rame[1]) =  1]"> CR LF
2967      <xsl:ca ll-templat e name="Im ageMap"> CR LF   3006      <xsl:ca ll-templat e name="Im ageMap"> CR LF
2968       <xsl:w ith-param  name="Para mFrame" se lect="." / > CR LF   3007       <xsl:w ith-param  name="Para mFrame" se lect="." / > CR LF
2969       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF   3008       <xsl:w ith-param  name="Para mSplits" s elect="$Pa ramSplits"  /> CR LF
2970       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF   3009       <xsl:w ith-param  name="Para mCargo" se lect="$Par amCargo" / > CR LF
2971       <xsl:w ith-param  name="Para mParentBeh avior" sel ect="$Para mParentBeh avior" /> CR LF   3010       <xsl:w ith-param  name="Para mParentBeh avior" sel ect="$Para mParentBeh avior" /> CR LF
2972       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF   3011       <xsl:w ith-param  name="Para mLinks" se lect="$Par amLinks" / > CR LF
2973       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF   3012       <xsl:w ith-param  name="Para mSplit" se lect="$Par amSplit" / > CR LF
2974       <xsl:w ith-param  name="Para mHorizonta lScaling"  select="$P aramHorizo ntalScalin g" /> CR LF   3013       <xsl:w ith-param  name="Para mHorizonta lScaling"  select="$P aramHorizo ntalScalin g" /> CR LF
2975       <xsl:w ith-param  name="Para mVerticalS caling" se lect="$Par amVertical Scaling" / > CR LF   3014       <xsl:w ith-param  name="Para mVerticalS caling" se lect="$Par amVertical Scaling" / > CR LF
2976      </xsl:c all-templa te> CR LF   3015      </xsl:c all-templa te> CR LF
2977     </xsl:fo r-each> CR LF   3016     </xsl:fo r-each> CR LF
2978   CR LF   3017   CR LF
2979     <!-- Get  link --> CR LF   3018     <!-- Get  link --> CR LF
2980     <!--           --> CR LF   3019     <!--           --> CR LF
2981     <xsl:var iable name ="VarLinkI nfoAsXML"> CR LF   3020     <xsl:var iable name ="VarLinkI nfoAsXML"> CR LF
2982      <xsl:ch oose> CR LF   3021      <xsl:ch oose> CR LF
2983       <xsl:w hen test=" count($Par amFrame/ww doc:Link[1 ]) = 1"> CR LF   3022       <xsl:w hen test=" count($Par amFrame/ww doc:Link[1 ]) = 1"> CR LF
2984        <xsl: call-templ ate name=" LinkInfo"> CR LF   3023        <xsl: call-templ ate name=" LinkInfo"> CR LF
2985         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF   3024         <xsl :with-para m name="Pa ramSplits"  select="$ ParamSplit s" /> CR LF
2986         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF   3025         <xsl :with-para m name="Pa ramLinks"  select="$P aramLinks"  /> CR LF
2987         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF   3026         <xsl :with-para m name="Pa ramSplit"  select="$P aramSplit"  /> CR LF
2988         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mFrame/wwd oc:Link" / > CR LF   3027         <xsl :with-para m name="Pa ramDocumen tLink" sel ect="$Para mFrame/wwd oc:Link" / > CR LF
2989        </xsl :call-temp late> CR LF   3028        </xsl :call-temp late> CR LF
2990       </xsl: when> CR LF   3029       </xsl: when> CR LF
2991   CR LF   3030   CR LF
2992       <xsl:o therwise> CR LF   3031       <xsl:o therwise> CR LF
2993        <xsl: variable n ame="VarCh ildLinks"  select="$P aramFrame/ wwdoc:Cont ent//wwdoc :Link[coun t($ParamFr ame | ance stor::wwdo c:Frame[1] ) = 1]" /> CR LF   3032        <xsl: variable n ame="VarCh ildLinks"  select="$P aramFrame/ wwdoc:Cont ent//wwdoc :Link[coun t($ParamFr ame | ance stor::wwdo c:Frame[1] ) = 1]" /> CR LF
2994        <xsl: variable n ame="VarCh ildLinksCo unt" selec t="count($ VarChildLi nks)" /> CR LF   3033        <xsl: variable n ame="VarCh ildLinksCo unt" selec t="count($ VarChildLi nks)" /> CR LF
2995        <xsl: if test="$ VarChildLi nksCount & gt; 0"> CR LF   3034        <xsl: if test="$ VarChildLi nksCount & gt; 0"> CR LF
2996         <xsl :call-temp late name= "LinkInfo" > CR LF   3035         <xsl :call-temp late name= "LinkInfo" > CR LF
2997          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF   3036          <xs l:with-par am name="P aramSplits " select=" $ParamSpli ts" /> CR LF
2998          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF   3037          <xs l:with-par am name="P aramLinks"  select="$ ParamLinks " /> CR LF
2999          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF   3038          <xs l:with-par am name="P aramSplit"  select="$ ParamSplit " /> CR LF
3000          <xs l:with-par am name="P aramDocume ntLink" se lect="$Var ChildLinks [$VarChild LinksCount ]" /> CR LF   3039          <xs l:with-par am name="P aramDocume ntLink" se lect="$Var ChildLinks [$VarChild LinksCount ]" /> CR LF
3001         </xs l:call-tem plate> CR LF   3040         </xs l:call-tem plate> CR LF
3002        </xsl :if> CR LF   3041        </xsl :if> CR LF
3003       </xsl: otherwise> CR LF   3042       </xsl: otherwise> CR LF
3004      </xsl:c hoose> CR LF   3043      </xsl:c hoose> CR LF
3005     </xsl:va riable> CR LF   3044     </xsl:va riable> CR LF
3006     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> CR LF   3045     <xsl:var iable name ="VarLinkI nfo" selec t="msxsl:n ode-set($V arLinkInfo AsXML)/wwl inks:LinkI nfo" /> CR LF
3007   CR LF   3046   CR LF
3008     <xsl:if  test="stri ng-length( $VarLinkIn fo/@href)  &gt; 0"> CR LF   3047     <xsl:if  test="stri ng-length( $VarLinkIn fo/@href)  &gt; 0"> CR LF
3009      <!-- Ge t coords a ttribute - -> CR LF   3048      <!-- Ge t coords a ttribute - -> CR LF
3010      <!--                        - -> CR LF   3049      <!--                        - -> CR LF
3011      <xsl:va riable nam e="VarLeft AsPixels"> CR LF   3050      <xsl:va riable nam e="VarLeft AsPixels"> CR LF
3012       <xsl:v ariable na me="VarOri gLeftAsPix els" selec t="string( floor(wwun its:Conver t(wwunits: NumericPre fix($Param Frame/wwdo c:Attribut e[@name =  'left']/@v alue), 'pt ', 'px'))) " /> CR LF   3051       <xsl:v ariable na me="VarOri gLeftAsPix els" selec t="string( floor(wwun its:Conver t(wwunits: NumericPre fix($Param Frame/wwdo c:Attribut e[@name =  'left']/@v alue), 'pt ', 'px'))) " /> CR LF
3013       <xsl:c hoose> CR LF   3052       <xsl:c hoose> CR LF
3014        <xsl: when test= "$ParamHor izontalSca ling != 1" > CR LF   3053        <xsl: when test= "$ParamHor izontalSca ling != 1" > CR LF
3015         <xsl :value-of  select="nu mber($VarO rigLeftAsP ixels) * n umber($Par amHorizont alScaling) " /> CR LF   3054         <xsl :value-of  select="nu mber($VarO rigLeftAsP ixels) * n umber($Par amHorizont alScaling) " /> CR LF
3016        </xsl :when> CR LF   3055        </xsl :when> CR LF
3017        <xsl: otherwise> CR LF   3056        <xsl: otherwise> CR LF
3018         <xsl :value-of  select="$V arOrigLeft AsPixels"  /> CR LF   3057         <xsl :value-of  select="$V arOrigLeft AsPixels"  /> CR LF
3019        </xsl :otherwise > CR LF   3058        </xsl :otherwise > CR LF
3020       </xsl: choose> CR LF   3059       </xsl: choose> CR LF
3021      </xsl:v ariable> CR LF   3060      </xsl:v ariable> CR LF
3022   CR LF   3061   CR LF
3023      <xsl:va riable nam e="VarTopA sPixels"> CR LF   3062      <xsl:va riable nam e="VarTopA sPixels"> CR LF
3024       <xsl:v ariable na me="VarOri gTopAsPixe ls" select ="string(f loor(wwuni ts:Convert (wwunits:N umericPref ix($ParamF rame/wwdoc :Attribute [@name = ' top']/@val ue), 'pt',  'px')))"  /> CR LF   3063       <xsl:v ariable na me="VarOri gTopAsPixe ls" select ="string(f loor(wwuni ts:Convert (wwunits:N umericPref ix($ParamF rame/wwdoc :Attribute [@name = ' top']/@val ue), 'pt',  'px')))"  /> CR LF
3025       <xsl:c hoose> CR LF   3064       <xsl:c hoose> CR LF
3026        <xsl: when test= "$ParamVer ticalScali ng != 1"> CR LF   3065        <xsl: when test= "$ParamVer ticalScali ng != 1"> CR LF
3027         <xsl :value-of  select="nu mber($VarO rigTopAsPi xels) * nu mber($Para mVerticalS caling)" / > CR LF   3066         <xsl :value-of  select="nu mber($VarO rigTopAsPi xels) * nu mber($Para mVerticalS caling)" / > CR LF
3028        </xsl :when> CR LF   3067        </xsl :when> CR LF
3029        <xsl: otherwise> CR LF   3068        <xsl: otherwise> CR LF
3030         <xsl :value-of  select="$V arOrigTopA sPixels" / > CR LF   3069         <xsl :value-of  select="$V arOrigTopA sPixels" / > CR LF
3031        </xsl :otherwise > CR LF   3070        </xsl :otherwise > CR LF
3032       </xsl: choose> CR LF   3071       </xsl: choose> CR LF
3033      </xsl:v ariable> CR LF   3072      </xsl:v ariable> CR LF
3034   CR LF   3073   CR LF
3035      <xsl:va riable nam e="VarWidt hAsPixels" > CR LF   3074      <xsl:va riable nam e="VarWidt hAsPixels" > CR LF
3036       <xsl:v ariable na me="VarOri gWidthAsPi xels" sele ct="string (floor(wwu nits:Conve rt(wwunits :NumericPr efix($Para mFrame/wwd oc:Attribu te[@name =  'width']/ @value), ' pt', 'px') ))" /> CR LF   3075       <xsl:v ariable na me="VarOri gWidthAsPi xels" sele ct="string (floor(wwu nits:Conve rt(wwunits :NumericPr efix($Para mFrame/wwd oc:Attribu te[@name =  'width']/ @value), ' pt', 'px') ))" /> CR LF
3037       <xsl:c hoose> CR LF   3076       <xsl:c hoose> CR LF
3038        <xsl: when test= "$ParamHor izontalSca ling != 1" > CR LF   3077        <xsl: when test= "$ParamHor izontalSca ling != 1" > CR LF
3039         <xsl :value-of  select="nu mber($VarO rigWidthAs Pixels) *  number($Pa ramHorizon talScaling )" /> CR LF   3078         <xsl :value-of  select="nu mber($VarO rigWidthAs Pixels) *  number($Pa ramHorizon talScaling )" /> CR LF
3040        </xsl :when> CR LF   3079        </xsl :when> CR LF
3041        <xsl: otherwise> CR LF   3080        <xsl: otherwise> CR LF
3042         <xsl :value-of  select="$V arOrigWidt hAsPixels"  /> CR LF   3081         <xsl :value-of  select="$V arOrigWidt hAsPixels"  /> CR LF
3043        </xsl :otherwise > CR LF   3082        </xsl :otherwise > CR LF
3044       </xsl: choose> CR LF   3083       </xsl: choose> CR LF
3045      </xsl:v ariable> CR LF   3084      </xsl:v ariable> CR LF
3046   CR LF   3085   CR LF
3047      <xsl:va riable nam e="VarHeig htAsPixels "> CR LF   3086      <xsl:va riable nam e="VarHeig htAsPixels "> CR LF
3048       <xsl:v ariable na me="VarOri gHeightAsP ixels" sel ect="strin g(floor(ww units:Conv ert(wwunit s:NumericP refix($Par amFrame/ww doc:Attrib ute[@name  = 'height' ]/@value),  'pt', 'px ')))" /> CR LF   3087       <xsl:v ariable na me="VarOri gHeightAsP ixels" sel ect="strin g(floor(ww units:Conv ert(wwunit s:NumericP refix($Par amFrame/ww doc:Attrib ute[@name  = 'height' ]/@value),  'pt', 'px ')))" /> CR LF
3049       <xsl:c hoose> CR LF   3088       <xsl:c hoose> CR LF
3050        <xsl: when test= "$ParamVer ticalScali ng != 1"> CR LF   3089        <xsl: when test= "$ParamVer ticalScali ng != 1"> CR LF
3051         <xsl :value-of  select="nu mber($VarO rigHeightA sPixels) *  number($P aramVertic alScaling) " /> CR LF   3090         <xsl :value-of  select="nu mber($VarO rigHeightA sPixels) *  number($P aramVertic alScaling) " /> CR LF
3052        </xsl :when> CR LF   3091        </xsl :when> CR LF
3053        <xsl: otherwise> CR LF   3092        <xsl: otherwise> CR LF
3054         <xsl :value-of  select="$V arOrigHeig htAsPixels " /> CR LF   3093         <xsl :value-of  select="$V arOrigHeig htAsPixels " /> CR LF
3055        </xsl :otherwise > CR LF   3094        </xsl :otherwise > CR LF
3056       </xsl: choose> CR LF   3095       </xsl: choose> CR LF
3057      </xsl:v ariable> CR LF   3096      </xsl:v ariable> CR LF
3058   CR LF   3097   CR LF
3059      <!-- co ords --> CR LF   3098      <!-- co ords --> CR LF
3060      <!--         --> CR LF   3099      <!--         --> CR LF
3061      <xsl:va riable nam e="VarCoor dsString"> CR LF   3100      <xsl:va riable nam e="VarCoor dsString"> CR LF
3062       <xsl:c hoose> CR LF   3101       <xsl:c hoose> CR LF
3063        <xsl: when test= "string-le ngth($VarL eftAsPixel s) &gt; 0" > CR LF   3102        <xsl: when test= "string-le ngth($VarL eftAsPixel s) &gt; 0" > CR LF
3064         <xsl :value-of  select="$V arLeftAsPi xels" /> CR LF   3103         <xsl :value-of  select="$V arLeftAsPi xels" /> CR LF
3065        </xsl :when> CR LF   3104        </xsl :when> CR LF
3066        <xsl: otherwise> CR LF   3105        <xsl: otherwise> CR LF
3067         <xsl :value-of  select="'0 '" /> CR LF   3106         <xsl :value-of  select="'0 '" /> CR LF
3068        </xsl :otherwise > CR LF   3107        </xsl :otherwise > CR LF
3069       </xsl: choose> CR LF   3108       </xsl: choose> CR LF
3070   CR LF   3109   CR LF
3071       <xsl:v alue-of se lect="','" /> CR LF   3110       <xsl:v alue-of se lect="','" /> CR LF
3072   CR LF   3111   CR LF
3073       <xsl:c hoose> CR LF   3112       <xsl:c hoose> CR LF
3074        <xsl: when test= "string-le ngth($VarT opAsPixels ) &gt; 0"> CR LF   3113        <xsl: when test= "string-le ngth($VarT opAsPixels ) &gt; 0"> CR LF
3075         <xsl :value-of  select="$V arTopAsPix els" /> CR LF   3114         <xsl :value-of  select="$V arTopAsPix els" /> CR LF
3076        </xsl :when> CR LF   3115        </xsl :when> CR LF
3077        <xsl: otherwise> CR LF   3116        <xsl: otherwise> CR LF
3078         <xsl :value-of  select="'0 '" /> CR LF   3117         <xsl :value-of  select="'0 '" /> CR LF
3079        </xsl :otherwise > CR LF   3118        </xsl :otherwise > CR LF
3080       </xsl: choose> CR LF   3119       </xsl: choose> CR LF
3081   CR LF   3120   CR LF
3082       <xsl:v alue-of se lect="','" /> CR LF   3121       <xsl:v alue-of se lect="','" /> CR LF
3083   CR LF   3122   CR LF
3084       <xsl:c hoose> CR LF   3123       <xsl:c hoose> CR LF
3085        <xsl: when test= "string-le ngth($VarW idthAsPixe ls) &gt; 0 "> CR LF   3124        <xsl: when test= "string-le ngth($VarW idthAsPixe ls) &gt; 0 "> CR LF
3086         <xsl :value-of  select="st ring(numbe r($VarWidt hAsPixels)  + number( $VarLeftAs Pixels))"  /> CR LF   3125         <xsl :value-of  select="st ring(numbe r($VarWidt hAsPixels)  + number( $VarLeftAs Pixels))"  /> CR LF
3087        </xsl :when> CR LF   3126        </xsl :when> CR LF
3088        <xsl: otherwise> CR LF   3127        <xsl: otherwise> CR LF
3089         <xsl :value-of  select="'0 '" /> CR LF   3128         <xsl :value-of  select="'0 '" /> CR LF
3090        </xsl :otherwise > CR LF   3129        </xsl :otherwise > CR LF
3091       </xsl: choose> CR LF   3130       </xsl: choose> CR LF
3092   CR LF   3131   CR LF
3093       <xsl:v alue-of se lect="','" /> CR LF   3132       <xsl:v alue-of se lect="','" /> CR LF
3094   CR LF   3133   CR LF
3095       <xsl:c hoose> CR LF   3134       <xsl:c hoose> CR LF
3096        <xsl: when test= "string-le ngth($VarH eightAsPix els) &gt;  0"> CR LF   3135        <xsl: when test= "string-le ngth($VarH eightAsPix els) &gt;  0"> CR LF
3097         <xsl :value-of  select="st ring(numbe r($VarHeig htAsPixels ) + number ($VarTopAs Pixels))"  /> CR LF   3136         <xsl :value-of  select="st ring(numbe r($VarHeig htAsPixels ) + number ($VarTopAs Pixels))"  /> CR LF
3098        </xsl :when> CR LF   3137        </xsl :when> CR LF
3099        <xsl: otherwise> CR LF   3138        <xsl: otherwise> CR LF
3100         <xsl :value-of  select="'0 '" /> CR LF   3139         <xsl :value-of  select="'0 '" /> CR LF
3101        </xsl :otherwise > CR LF   3140        </xsl :otherwise > CR LF
3102       </xsl: choose> CR LF   3141       </xsl: choose> CR LF
3103      </xsl:v ariable> CR LF   3142      </xsl:v ariable> CR LF
3104   CR LF   3143   CR LF
3105      <!-- al t --> CR LF   3144      <!-- al t --> CR LF
3106      <!--      --> CR LF   3145      <!--      --> CR LF
3107      <xsl:va riable nam e="VarAltT ext"> CR LF   3146      <xsl:va riable nam e="VarAltT ext"> CR LF
3108       <xsl:c all-templa te name="I mages-Imag eAreaAltTe xt"> CR LF   3147       <xsl:c all-templa te name="I mages-Imag eAreaAltTe xt"> CR LF
3109        <xsl: with-param  name="Par amParentBe havior" se lect="$Par amParentBe havior" /> CR LF   3148        <xsl: with-param  name="Par amParentBe havior" se lect="$Par amParentBe havior" /> CR LF
3110        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF   3149        <xsl: with-param  name="Par amFrame" s elect="$Pa ramFrame"  /> CR LF
3111       </xsl: call-templ ate> CR LF   3150       </xsl: call-templ ate> CR LF
3112      </xsl:v ariable> CR LF   3151      </xsl:v ariable> CR LF
3113   CR LF   3152   CR LF
3114      <!-- ar ea --> CR LF   3153      <!-- ar ea --> CR LF
3115      <!--       --> CR LF   3154      <!--       --> CR LF
3116      <wp:Are a wp:href= "{$VarLink Info/@href }" wp:coor ds="{$VarC oordsStrin g}" wp:sha pe="rect"> CR LF   3155      <wp:Are a wp:href= "{$VarLink Info/@href }" wp:coor ds="{$VarC oordsStrin g}" wp:sha pe="rect"> CR LF
3117       <!-- t arget --> CR LF   3156       <!-- t arget --> CR LF
3118       <!--         --> CR LF   3157       <!--         --> CR LF
3119       <xsl:i f test="st ring-lengt h($VarLink Info/@targ et) &gt; 0 "> CR LF   3158       <xsl:i f test="st ring-lengt h($VarLink Info/@targ et) &gt; 0 "> CR LF
3120        <xsl: attribute  name="wp:t arget"> CR LF   3159        <xsl: attribute  name="wp:t arget"> CR LF
3121         <xsl :value-of  select="$V arLinkInfo /@target"  /> CR LF   3160         <xsl :value-of  select="$V arLinkInfo /@target"  /> CR LF
3122        </xsl :attribute > CR LF   3161        </xsl :attribute > CR LF
3123       </xsl: if> CR LF   3162       </xsl: if> CR LF
3124   CR LF   3163   CR LF
3125       <!-- a lt --> CR LF   3164       <!-- a lt --> CR LF
3126       <!--      --> CR LF   3165       <!--      --> CR LF
3127       <xsl:i f test="st ring-lengt h($VarAltT ext) &gt;  0"> CR LF   3166       <xsl:i f test="st ring-lengt h($VarAltT ext) &gt;  0"> CR LF
3128        <xsl: attribute  name="wp:a lt"> CR LF   3167        <xsl: attribute  name="wp:a lt"> CR LF
3129         <xsl :value-of  select="$V arAltText"  /> CR LF   3168         <xsl :value-of  select="$V arAltText"  /> CR LF
3130        </xsl :attribute > CR LF   3169        </xsl :attribute > CR LF
3131       </xsl: if> CR LF   3170       </xsl: if> CR LF
3132      </wp:Ar ea> CR LF   3171      </wp:Ar ea> CR LF
3133     </xsl:if > CR LF   3172     </xsl:if > CR LF
3134    </xsl:tem plate> CR LF   3173    </xsl:tem plate> CR LF
3135   </xsl:styl esheet> CR LF   3174   </xsl:styl esheet> CR LF