40. Araxis Merge File Comparison Report

Produced by Araxis Merge on Sat May 2 08:30:19 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.

40.1 Files compared

# Location File Last Modified
1 C:\Documents and Settings\allums\Desktop\2008.4\Formats\XML+XSL\Transforms content.xsl Mon Jan 19 18:02:52 2009 UTC
2 C:\Documents and Settings\allums\Desktop\2009.1\Formats\XML+XSL\Transforms content.xsl Sat May 2 06:55:54 2009 UTC

40.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 12 6328
Changed 10 20
Inserted 1 1
Removed 0 0

40.3 Comparison options

Whitespace Differences in whitespace are significant
Character case Differences in character case are significant
Line endings Differences in line endings (CR and LF characters) are ignored
CR/LF characters Not shown in the comparison detail

40.4 Active regular expressions

Expression Description
\$(Author|Date|Header|Id|Locker|Name|RCSfile|Revision|Source|State):[^$]*\$ CVS comments

40.5 Comparison detail

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