32. Araxis Merge File Comparison Report

Produced by Araxis Merge on Thu Oct 16 22:29:57 2008 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.

32.1 Files compared

# Location File Last Modified
1 C:\Documents and Settings\lauren\Desktop\ww-version-snapshots\ww-version-snapshots\2008.2\WebWorks\ePublisher Pro\Formats\Shared\preview overrides.xsl Mon Dec 18 20:13:26 2006 UTC
2 C:\Documents and Settings\lauren\Desktop\ww-version-snapshots\ww-version-snapshots\2008.3\WebWorks\ePublisher Pro\Formats\Shared\preview overrides.xsl Mon Oct 13 05:52:00 2008 UTC

32.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 3 1820
Changed 0 0
Inserted 0 0
Removed 2 2

32.3 Comparison options

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

32.4 Active regular expressions

No regular expressions were active.

32.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="htt p://www.w3 .org/1999/ xhtml"   2   <xsl:style sheet vers ion="1.0"  xmlns="htt p://www.w3 .org/1999/ xhtml"
3                                    xmlns:html ="http://w ww.w3.org/ 1999/xhtml "   3                                    xmlns:html ="http://w ww.w3.org/ 1999/xhtml "
4                                    xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform"   4                                    xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform"
5                                    xmlns:msxs l="urn:sch emas-micro soft-com:x slt"   5                                    xmlns:msxs l="urn:sch emas-micro soft-com:x slt"
6                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode"   6                                    xmlns:wwmo de="urn:We bWorks-Eng ine-Mode"
7                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema"   7                                    xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema"
8                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a"   8                                    xmlns:wwdo c="urn:Web Works-Docu ment-Schem a"
9                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema"   9                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema"
10                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject"   10                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject"
11                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress"   11                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress"
12                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log"   12                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log"
13                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem"   13                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem"
14                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI"   14                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI"
15                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities"   15                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities"
16                                    xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units"   16                                    xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units"
17                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s"   17                                    xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s"
18                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct"   18                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct"
19                                    xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng"   19                                    xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng"
20                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent"   20                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent"
21                                    exclude-re sult-prefi xes="xsl m sxsl wwmod e wwfiles  wwdoc wwsp lits wwpro ject wwpro gress wwlo g wwfilesy stem wwuri  wwstring  wwunits ww filesext w wprojext w wimaging w wexsldoc"   21                                    exclude-re sult-prefi xes="xsl m sxsl wwmod e wwfiles  wwdoc wwsp lits wwpro ject wwpro gress wwlo g wwfilesy stem wwuri  wwstring  wwunits ww filesext w wprojext w wimaging w wexsldoc"
22    >   22    >
23    <xsl:para m name="Gl obalInput"  />   23    <xsl:para m name="Gl obalInput"  />
24    <xsl:para m name="Gl obalPipeli neName" />   24    <xsl:para m name="Gl obalPipeli neName" />
25    <xsl:para m name="Gl obalProjec t" />   25    <xsl:para m name="Gl obalProjec t" />
26    <xsl:para m name="Gl obalFiles"  />   26    <xsl:para m name="Gl obalFiles"  />
27     27  
28     28  
29    <xsl:name space-alia s styleshe et-prefix= "html" res ult-prefix ="#default " />   29    <xsl:name space-alia s styleshe et-prefix= "html" res ult-prefix ="#default " />
30    <xsl:stri p-space el ements="*"  />   30    <xsl:stri p-space el ements="*"  />
31     31  
32     32  
33    <xsl:incl ude href=" wwtransfor m:common/p roject/pro perties.xs l" />   33    <xsl:incl ude href=" wwtransfor m:common/p roject/pro perties.xs l" />
34    <xsl:incl ude href=" wwtransfor m:common/t ables/tabl es.xsl" />   34    <xsl:incl ude href=" wwtransfor m:common/t ables/tabl es.xsl" />
35    <xsl:incl ude href=" wwtransfor m:html/css _propertie s.xsl" />   35    <xsl:incl ude href=" wwtransfor m:html/css _propertie s.xsl" />
36    <xsl:incl ude href=" wwtransfor m:uri/uri. xsl" />   36    <xsl:incl ude href=" wwtransfor m:uri/uri. xsl" />
37     37  
38     38  
39    <xsl:key  name="wwfi les-files- by-type" m atch="wwfi les:File"  use="@type " />   39    <xsl:key  name="wwfi les-files- by-type" m atch="wwfi les:File"  use="@type " />
40     40  
41     41  
42    <xsl:vari able name= "GlobalAct ionChecksu m">   42    <xsl:vari able name= "GlobalAct ionChecksu m">
43     <xsl:var iable name ="VarTrans formChecks ums">   43     <xsl:var iable name ="VarTrans formChecks ums">
44      <xsl:va lue-of sel ect="conca t(wwuri:As FilePath(' wwtransfor m:self'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: self')))"  />   44      <xsl:va lue-of sel ect="conca t(wwuri:As FilePath(' wwtransfor m:self'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: self')))"  />
45     45  
46      <!-- Ex cluded to  match prev iew engine  -->   46      <!-- Ex cluded to  match prev iew engine  -->
47      <!--                                      -->   47      <!--                                      -->
48      <xsl:if  test="fal se()">   48      <xsl:if  test="fal se()">
49       <xsl:v alue-of se lect="conc at(',', ww uri:AsFile Path('wwtr ansform:co mmon/proje ct/propert ies.xsl'),  ':', wwfi lesystem:G etChecksum (wwuri:AsF ilePath('w wtransform :common/pr oject/prop erties.xsl ')))" />   49       <xsl:v alue-of se lect="conc at(',', ww uri:AsFile Path('wwtr ansform:co mmon/proje ct/propert ies.xsl'),  ':', wwfi lesystem:G etChecksum (wwuri:AsF ilePath('w wtransform :common/pr oject/prop erties.xsl ')))" />
50       <xsl:v alue-of se lect="conc at(',', ww uri:AsFile Path('wwtr ansform:co mmon/table s/tables.x sl'), ':',  wwfilesys tem:GetChe cksum(wwur i:AsFilePa th('wwtran sform:comm on/tables/ tables.xsl ')))" />   50       <xsl:v alue-of se lect="conc at(',', ww uri:AsFile Path('wwtr ansform:co mmon/table s/tables.x sl'), ':',  wwfilesys tem:GetChe cksum(wwur i:AsFilePa th('wwtran sform:comm on/tables/ tables.xsl ')))" />
51       <xsl:v alue-of se lect="conc at(',', ww uri:AsFile Path('wwtr ansform:ht ml/css_pro perties.xs l'), ':',  wwfilesyst em:GetChec ksum(wwuri :AsFilePat h('wwtrans form:html/ css_proper ties.xsl') ))" />   51       <xsl:v alue-of se lect="conc at(',', ww uri:AsFile Path('wwtr ansform:ht ml/css_pro perties.xs l'), ':',  wwfilesyst em:GetChec ksum(wwuri :AsFilePat h('wwtrans form:html/ css_proper ties.xsl') ))" />
52       <xsl:v alue-of se lect="conc at(',', ww uri:AsFile Path('wwtr ansform:ur i/uri.xsl' ), ':', ww filesystem :GetChecks um(wwuri:A sFilePath( 'wwtransfo rm:uri/uri .xsl')))"  />   52       <xsl:v alue-of se lect="conc at(',', ww uri:AsFile Path('wwtr ansform:ur i/uri.xsl' ), ':', ww filesystem :GetChecks um(wwuri:A sFilePath( 'wwtransfo rm:uri/uri .xsl')))"  />
53      </xsl:i f>   53      </xsl:i f>
54     </xsl:va riable>   54     </xsl:va riable>
55     <xsl:val ue-of sele ct="wwstri ng:MD5Chec ksum($VarT ransformCh ecksums)"  />   55     <xsl:val ue-of sele ct="wwstri ng:MD5Chec ksum($VarT ransformCh ecksums)"  />
56    </xsl:var iable>   56    </xsl:var iable>
57     57  
58     58  
59    <!-- Get  project fi les as spl its -->   59    <!-- Get  project fi les as spl its -->
60    <!--                                -->   60    <!--                                -->
61    <xsl:vari able name= "GlobalPro jectFilesA sSplitsAsX ML">   61    <xsl:vari able name= "GlobalPro jectFilesA sSplitsAsX ML">
62     <xsl:var iable name ="VarProje ctFiles" s elect="wwf ilesystem: GetFiles(w wprojext:G etProjectF ilesDirect oryPath()) " />   62     <xsl:var iable name ="VarProje ctFiles" s elect="wwf ilesystem: GetFiles(w wprojext:G etProjectF ilesDirect oryPath()) " />
63     63  
64     <wwsplit s:Splits>   64     <wwsplit s:Splits>
65      <xsl:fo r-each sel ect="$VarP rojectFile s/wwfiles: Files/wwfi les:File">   65      <xsl:fo r-each sel ect="$VarP rojectFile s/wwfiles: Files/wwfi les:File">
66       <xsl:v ariable na me="VarFil e" select= "." />   66       <xsl:v ariable na me="VarFil e" select= "." />
67     67  
68       <xsl:v ariable na me="VarSou rce" selec t="wwuri:M akeAbsolut e('wwprojf ile:dummy. component' , wwuri:Ge tRelativeT o($VarFile /@path, ww filesystem :Combine(w wprojext:G etProjectF ilesDirect oryPath(),  'dummy.co mponent')) )" />   68       <xsl:v ariable na me="VarSou rce" selec t="wwuri:M akeAbsolut e('wwprojf ile:dummy. component' , wwuri:Ge tRelativeT o($VarFile /@path, ww filesystem :Combine(w wprojext:G etProjectF ilesDirect oryPath(),  'dummy.co mponent')) )" />
69     69  
70       <wwspl its:File s ource="{$V arSource}"  source-lo wercase="{ wwstring:T oLower($Va rSource)}"  path="{$V arFile/@pa th}" />   70       <wwspl its:File s ource="{$V arSource}"  source-lo wercase="{ wwstring:T oLower($Va rSource)}"  path="{$V arFile/@pa th}" />
71      </xsl:f or-each>   71      </xsl:f or-each>
72     </wwspli ts:Splits>   72     </wwspli ts:Splits>
73    </xsl:var iable>   73    </xsl:var iable>
74    <xsl:vari able name= "GlobalPro jectFilesA sSplits" s elect="msx sl:node-se t($GlobalP rojectFile sAsSplitsA sXML)" />   74    <xsl:vari able name= "GlobalPro jectFilesA sSplits" s elect="msx sl:node-se t($GlobalP rojectFile sAsSplitsA sXML)" />
75     75  
76     76  
77    <xsl:temp late match ="/">   77    <xsl:temp late match ="/">
78     <wwfiles :Files ver sion="1.0" >   78     <wwfiles :Files ver sion="1.0" >
79     79  
80      <!-- It erate inpu t document s -->   80      <!-- It erate inpu t document s -->
81      <!--                            -->   81      <!--                            -->
82      <xsl:fo r-each sel ect="$Glob alFiles[1] ">   82      <xsl:fo r-each sel ect="$Glob alFiles[1] ">
83       <xsl:v ariable na me="VarFil esByType"  select="ke y('wwfiles -files-by- type', 'en gine:wif') " />   83       <xsl:v ariable na me="VarFil esByType"  select="ke y('wwfiles -files-by- type', 'en gine:wif') " />
84     84  
85       <xsl:v alue-of se lect="wwpr ogress:Sta rt(count($ VarFilesBy Type))" />   85       <xsl:v alue-of se lect="wwpr ogress:Sta rt(count($ VarFilesBy Type))" />
86     86  
87       <xsl:f or-each se lect="$Var FilesByTyp e">   87       <xsl:f or-each se lect="$Var FilesByTyp e">
88        <xsl: value-of s elect="wwp rogress:St art(1)" />   88        <xsl: value-of s elect="wwp rogress:St art(1)" />
89     89  
90        <!--  Load docum ent -->   90        <!--  Load docum ent -->
91        <!--                 -->   91        <!--                 -->
92        <xsl: variable n ame="VarDo cument" se lect="wwex sldoc:Load XMLWithout Resolver(@ path)" />   92        <xsl: variable n ame="VarDo cument" se lect="wwex sldoc:Load XMLWithout Resolver(@ path)" />
93     93  
94        <xsl: variable n ame="VarPa th" select ="wwfilesy stem:Combi ne(wwfiles ystem:GetD irectoryNa me(@path),  'preview_ overrides. css')" />   94        <xsl: variable n ame="VarPa th" select ="wwfilesy stem:Combi ne(wwfiles ystem:GetD irectoryNa me(@path),  'preview_ overrides. css')" />
95     95  
96        <!--  Call templ ate -->   96        <!--  Call templ ate -->
97        <!--                 -->   97        <!--                 -->
98        <xsl: variable n ame="VarRe sultAsXML" >   98        <xsl: variable n ame="VarRe sultAsXML" >
99         <xsl :call-temp late name= "Paragraph Overrides" >   99         <xsl :call-temp late name= "Paragraph Overrides" >
100          <xs l:with-par am name="P aramCSSPat h" select= "$VarPath"  />   100          <xs l:with-par am name="P aramCSSPat h" select= "$VarPath"  />
101          <xs l:with-par am name="P aramDocume nt" select ="$VarDocu ment" />   101          <xs l:with-par am name="P aramDocume nt" select ="$VarDocu ment" />
102          <xs l:with-par am name="P aramDocume ntID" sele ct="@docum entID" />   102          <xs l:with-par am name="P aramDocume ntID" sele ct="@docum entID" />
103         </xs l:call-tem plate>   103         </xs l:call-tem plate>
104     104  
105         <xsl :call-temp late name= "TableOver rides">   105         <xsl :call-temp late name= "TableOver rides">
106          <xs l:with-par am name="P aramCSSPat h" select= "$VarPath"  />   106          <xs l:with-par am name="P aramCSSPat h" select= "$VarPath"  />
107          <xs l:with-par am name="P aramDocume nt" select ="$VarDocu ment" />   107          <xs l:with-par am name="P aramDocume nt" select ="$VarDocu ment" />
108          <xs l:with-par am name="P aramDocume ntID" sele ct="@docum entID" />   108          <xs l:with-par am name="P aramDocume ntID" sele ct="@docum entID" />
109         </xs l:call-tem plate>   109         </xs l:call-tem plate>
110        </xsl :variable>   110        </xsl :variable>
111        <xsl: variable n ame="VarRe sult" sele ct="msxsl: node-set($ VarResultA sXML)" />   111        <xsl: variable n ame="VarRe sult" sele ct="msxsl: node-set($ VarResultA sXML)" />
112        <xsl: variable n ame="VarWr iteResult"  select="w wexsldoc:D ocument($V arResult,  $VarPath,  'utf-8', ' text')" />   112        <xsl: variable n ame="VarWr iteResult"  select="w wexsldoc:D ocument($V arResult,  $VarPath,  'utf-8', ' text')" />
113     113  
114        <wwfi les:File p ath="{$Var Path}" typ e="preview _overrides :css" chec ksum="{wwf ilesystem: GetChecksu m($VarPath )}"  proje ctchecksum ="{$Global Project/ww project:Pr oject/@Cha ngeID}" gr oupID="{@g roupID}" d ocumentID= "{@documen tID}" acti onchecksum ="{$Global ActionChec ksum}">   114        <wwfi les:File p ath="{$Var Path}" typ e="preview _overrides :css" chec ksum="{wwf ilesystem: GetChecksu m($VarPath )}"  proje ctchecksum ="{$Global Project/ww project:Pr oject/@Cha ngeID}" gr oupID="{@g roupID}" d ocumentID= "{@documen tID}" acti onchecksum ="{$Global ActionChec ksum}">
115         <wwf iles:Depen ds path="{ @path}" ch ecksum="{@ checksum}"  groupID=" {@groupID} " document ID="{@docu mentID}" / >   115         <wwf iles:Depen ds path="{ @path}" ch ecksum="{@ checksum}"  groupID=" {@groupID} " document ID="{@docu mentID}" / >
116        </wwf iles:File>   116        </wwf iles:File>
117     117  
118        <!--  Handle doc  numbering  -->   118        <!--  Handle doc  numbering  -->
119        <!--                         -->   119        <!--                         -->
120        <xsl: call-templ ate name=" DefinePara graphNumbe rs">   120        <xsl: call-templ ate name=" DefinePara graphNumbe rs">
121         <xsl :with-para m name="Pa ramDocumen t" select= "$VarDocum ent" />   121         <xsl :with-para m name="Pa ramDocumen t" select= "$VarDocum ent" />
122         <xsl :with-para m name="Pa ramDocumen tID" selec t="@docume ntID" />   122         <xsl :with-para m name="Pa ramDocumen tID" selec t="@docume ntID" />
123         <xsl :with-para m name="Pa ramCSSPath " select=" $VarPath"  />   123         <xsl :with-para m name="Pa ramCSSPath " select=" $VarPath"  />
124        </xsl :call-temp late>   124        </xsl :call-temp late>
125     125  
126        <xsl: value-of s elect="wwp rogress:En d()" />   126        <xsl: value-of s elect="wwp rogress:En d()" />
127       </xsl: for-each>   127       </xsl: for-each>
128     128  
129       <xsl:v alue-of se lect="wwpr ogress:End ()" />   129       <xsl:v alue-of se lect="wwpr ogress:End ()" />
130      </xsl:f or-each>   130      </xsl:f or-each>
131     131  
132     </wwfile s:Files>   132     </wwfile s:Files>
133    </xsl:tem plate>   133    </xsl:tem plate>
134     134  
135     135  
136    <xsl:temp late name= "Paragraph Overrides" >   136    <xsl:temp late name= "Paragraph Overrides" >
137     <xsl:par am name="P aramCSSPat h" />   137     <xsl:par am name="P aramCSSPat h" />
138     <xsl:par am name="P aramDocume nt" />   138     <xsl:par am name="P aramDocume nt" />
139     <xsl:par am name="P aramDocume ntID" />   139     <xsl:par am name="P aramDocume ntID" />
140     140  
141     <xsl:for -each sele ct="$Param Document// wwdoc:Para graph">   141     <xsl:for -each sele ct="$Param Document// wwdoc:Para graph">
142      <xsl:va riable nam e="VarPara graph" sel ect="." />   142      <xsl:va riable nam e="VarPara graph" sel ect="." />
143      <xsl:va riable nam e="VarOver rideRule"  select="ww projext:Ge tOverrideR ule('Parag raph', $Va rParagraph /@stylenam e, $ParamD ocumentID,  $VarParag raph/@id)"  />   143      <xsl:va riable nam e="VarOver rideRule"  select="ww projext:Ge tOverrideR ule('Parag raph', $Va rParagraph /@stylenam e, $ParamD ocumentID,  $VarParag raph/@id)"  />
144     144  
145      <!-- Co ntext rule  -->   145      <!-- Co ntext rule  -->
146      <!--                -->   146      <!--                -->
147      <xsl:va riable nam e="VarCont extRule" s elect="wwp rojext:Get ContextRul e('Paragra ph', $VarP aragraph/@ stylename,  $ParamDoc umentID, $ VarParagra ph/@id)" / >   147      <xsl:va riable nam e="VarCont extRule" s elect="wwp rojext:Get ContextRul e('Paragra ph', $VarP aragraph/@ stylename,  $ParamDoc umentID, $ VarParagra ph/@id)" / >
148      <xsl:va riable nam e="VarBull etCharacte r" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'bull et-charact er']/@Valu e" />   148      <xsl:va riable nam e="VarBull etCharacte r" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'bull et-charact er']/@Valu e" />
149      <xsl:va riable nam e="VarBull etImage" s elect="$Va rContextRu le/wwproje ct:Propert ies/wwproj ect:Proper ty[@Name =  'bullet-i mage']/@Va lue" />   149      <xsl:va riable nam e="VarBull etImage" s elect="$Va rContextRu le/wwproje ct:Propert ies/wwproj ect:Proper ty[@Name =  'bullet-i mage']/@Va lue" />
150      <xsl:va riable nam e="VarBull etSeparato r" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'bull et-separat or']/@Valu e" />   150      <xsl:va riable nam e="VarBull etSeparato r" select= "$VarConte xtRule/wwp roject:Pro perties/ww project:Pr operty[@Na me = 'bull et-separat or']/@Valu e" />
151      <xsl:va riable nam e="VarBull etStyle" s elect="$Va rContextRu le/wwproje ct:Propert ies/wwproj ect:Proper ty[@Name =  'bullet-s tyle']/@Va lue" />   151      <xsl:va riable nam e="VarBull etStyle" s elect="$Va rContextRu le/wwproje ct:Propert ies/wwproj ect:Proper ty[@Name =  'bullet-s tyle']/@Va lue" />
152     152  
153      <!-- Re solve proj ect proper ties -->   153      <!-- Re solve proj ect proper ties -->
154      <!--                               -->   154      <!--                               -->
155      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" >   155      <xsl:va riable nam e="VarReso lvedProper tiesAsXML" >
156       <xsl:c all-templa te name="P roperties- ResolveOve rrideRule" >   156       <xsl:c all-templa te name="P roperties- ResolveOve rrideRule" >
157        <xsl: with-param  name="Par amProperti es" select ="$VarOver rideRule/w wproject:P roperties/ wwproject: Property"  />   157        <xsl: with-param  name="Par amProperti es" select ="$VarOver rideRule/w wproject:P roperties/ wwproject: Property"  />
158        <xsl: with-param  name="Par amContextS tyle" sele ct="$VarPa ragraph/ww doc:Style"  />   158        <xsl: with-param  name="Par amContextS tyle" sele ct="$VarPa ragraph/ww doc:Style"  />
159       </xsl: call-templ ate>   159       </xsl: call-templ ate>
160      </xsl:v ariable>   160      </xsl:v ariable>
161      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" />   161      <xsl:va riable nam e="VarReso lvedProper ties" sele ct="msxsl: node-set($ VarResolve dPropertie sAsXML)/ww project:Pr operty" />
162     162  
163      <!-- CS S properti es -->   163      <!-- CS S properti es -->
164      <!--                  -->   164      <!--                  -->
165      <xsl:va riable nam e="VarCSSP ropertiesA sXML">   165      <xsl:va riable nam e="VarCSSP ropertiesA sXML">
166       <xsl:c all-templa te name="C SS-Transla teProjectP roperties" >   166       <xsl:c all-templa te name="C SS-Transla teProjectP roperties" >
167        <xsl: with-param  name="Par amProperti es" select ="$VarReso lvedProper ties" />   167        <xsl: with-param  name="Par amProperti es" select ="$VarReso lvedProper ties" />
168        <xsl: with-param  name="Par amFromAbso luteURI" s elect="$Pa ramCSSPath " />   168        <xsl: with-param  name="Par amFromAbso luteURI" s elect="$Pa ramCSSPath " />
169        <xsl: with-param  name="Par amSplits"  select="$G lobalProje ctFilesAsS plits" />   169        <xsl: with-param  name="Par amSplits"  select="$G lobalProje ctFilesAsS plits" />
170       </xsl: call-templ ate>   170       </xsl: call-templ ate>
171      </xsl:v ariable>   171      </xsl:v ariable>
172      <xsl:va riable nam e="VarCSSP roperties"  select="m sxsl:node- set($VarCS SPropertie sAsXML)/ww project:Pr operty" />   172      <xsl:va riable nam e="VarCSSP roperties"  select="m sxsl:node- set($VarCS SPropertie sAsXML)/ww project:Pr operty" />
173     173  
174      <!-- Te xt Indent  -->   174      <!-- Te xt Indent  -->
175      <!--               -->   175      <!--               -->
176      <xsl:va riable nam e="VarText Indent">   176      <xsl:va riable nam e="VarText Indent">
177       <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarC SSProperti es[@Name =  'text-ind ent']/@Val ue" />   177       <xsl:v ariable na me="VarOve rrideTextI ndent" sel ect="$VarC SSProperti es[@Name =  'text-ind ent']/@Val ue" />
178       <xsl:c hoose>   178       <xsl:c hoose>
179        <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0">   179        <xsl: when test= "string-le ngth($VarO verrideTex tIndent) & gt; 0">
180         <xsl :value-of  select="$V arOverride TextIndent " />   180         <xsl :value-of  select="$V arOverride TextIndent " />
181        </xsl :when>   181        </xsl :when>
182     182  
183        <xsl: otherwise>   183        <xsl: otherwise>
184         <!--  Retrieve  from rule  -->   184         <!--  Retrieve  from rule  -->
185         <!--                       -->   185         <!--                       -->
186         <xsl :variable  name="VarC atalogRule " select=" wwprojext: GetRule('P aragraph',  $VarParag raph/@styl ename)" />   186         <xsl :variable  name="VarC atalogRule " select=" wwprojext: GetRule('P aragraph',  $VarParag raph/@styl ename)" />
187     187  
188         <!--  Resolve p roject pro perties -- >   188         <!--  Resolve p roject pro perties -- >
189         <!--                               -- >   189         <!--                               -- >
190         <xsl :variable  name="VarR esolvedCat alogProper tiesAsXML" >   190         <xsl :variable  name="VarR esolvedCat alogProper tiesAsXML" >
191          <xs l:call-tem plate name ="Properti es-Resolve Rule">   191          <xs l:call-tem plate name ="Properti es-Resolve Rule">
192           <x sl:with-pa ram name=" ParamDocum entContext " select=" $ParamDocu ment" />   192           <x sl:with-pa ram name=" ParamDocum entContext " select=" $ParamDocu ment" />
193           <x sl:with-pa ram name=" ParamPrope rties" sel ect="$VarC atalogRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' text-inden t']" />   193           <x sl:with-pa ram name=" ParamPrope rties" sel ect="$VarC atalogRule /wwproject :Propertie s/wwprojec t:Property [@Name = ' text-inden t']" />
194           <x sl:with-pa ram name=" ParamStyle Name" sele ct="$VarPa ragraph/@s tylename"  />   194           <x sl:with-pa ram name=" ParamStyle Name" sele ct="$VarPa ragraph/@s tylename"  />
195           <x sl:with-pa ram name=" ParamStyle Type" sele ct="'Parag raph'" />   195           <x sl:with-pa ram name=" ParamStyle Type" sele ct="'Parag raph'" />
196          </x sl:call-te mplate>   196          </x sl:call-te mplate>
197         </xs l:variable >   197         </xs l:variable >
198         <xsl :variable  name="VarR esolvedCat alogProper ties" sele ct="msxsl: node-set($ VarResolve dCatalogPr opertiesAs XML)/wwpro ject:Prope rty" />   198         <xsl :variable  name="VarR esolvedCat alogProper ties" sele ct="msxsl: node-set($ VarResolve dCatalogPr opertiesAs XML)/wwpro ject:Prope rty" />
199     199  
200         <!--  CSS prope rties -->   200         <!--  CSS prope rties -->
201         <!--                  -->   201         <!--                  -->
202         <xsl :variable  name="VarC SSCatalogP ropertiesA sXML">   202         <xsl :variable  name="VarC SSCatalogP ropertiesA sXML">
203          <xs l:call-tem plate name ="CSS-Tran slateProje ctProperti es">   203          <xs l:call-tem plate name ="CSS-Tran slateProje ctProperti es">
204           <x sl:with-pa ram name=" ParamPrope rties" sel ect="$VarR esolvedCat alogProper ties" />   204           <x sl:with-pa ram name=" ParamPrope rties" sel ect="$VarR esolvedCat alogProper ties" />
205           <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamCSSP ath" />   205           <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamCSSP ath" />
206           <x sl:with-pa ram name=" ParamSplit s" select= "$GlobalPr ojectFiles AsSplits"  />   206           <x sl:with-pa ram name=" ParamSplit s" select= "$GlobalPr ojectFiles AsSplits"  />
207          </x sl:call-te mplate>   207          </x sl:call-te mplate>
208         </xs l:variable >   208         </xs l:variable >
209         <xsl :variable  name="VarC SSCatalogP roperties"  select="m sxsl:node- set($VarCS SCatalogPr opertiesAs XML)/wwpro ject:Prope rty" />   209         <xsl :variable  name="VarC SSCatalogP roperties"  select="m sxsl:node- set($VarCS SCatalogPr opertiesAs XML)/wwpro ject:Prope rty" />
210     210  
211         <!--  Text inde nt defined ? -->   211         <!--  Text inde nt defined ? -->
212         <!--                         -->   212         <!--                         -->
213         <xsl :variable  name="VarC atalogText Indent" se lect="$Var CSSCatalog Properties [@Name = ' text-inden t']/@Value " />   213         <xsl :variable  name="VarC atalogText Indent" se lect="$Var CSSCatalog Properties [@Name = ' text-inden t']/@Value " />
214         <xsl :if test=" string-len gth($VarCa talogTextI ndent) &gt ; 0">   214         <xsl :if test=" string-len gth($VarCa talogTextI ndent) &gt ; 0">
215          <xs l:value-of  select="$ VarCatalog TextIndent " />   215          <xs l:value-of  select="$ VarCatalog TextIndent " />
216         </xs l:if>   216         </xs l:if>
217        </xsl :otherwise >   217        </xsl :otherwise >
218       </xsl: choose>   218       </xsl: choose>
219      </xsl:v ariable>   219      </xsl:v ariable>
220      <xsl:va riable nam e="VarText IndentNume ricPrefix"  select="w wunits:Num ericPrefix ($VarTextI ndent)" />   220      <xsl:va riable nam e="VarText IndentNume ricPrefix"  select="w wunits:Num ericPrefix ($VarTextI ndent)" />
221      <xsl:va riable nam e="VarText IndentLess ThanZero"  select="(s tring-leng th($VarTex tIndentNum ericPrefix ) &gt; 0)  and (numbe r($VarText IndentNume ricPrefix)  &lt; 0)"  />   221      <xsl:va riable nam e="VarText IndentLess ThanZero"  select="(s tring-leng th($VarTex tIndentNum ericPrefix ) &gt; 0)  and (numbe r($VarText IndentNume ricPrefix)  &lt; 0)"  />
222     222  
223      <!-- Ov erride nec essary? -- >   223      <!-- Ov erride nec essary? -- >
224      <!--                       -- >   224      <!--                       -- >
225      <xsl:if  test="(co unt($VarCS SPropertie s[1]) = 1)  or (count ($VarParag raph/wwdoc :Number[1] ) = 1) or  (string-le ngth($VarB ulletChara cter) &gt;  0) or (st ring-lengt h($VarBull etImage) & gt; 0) or  (string-le ngth($VarB ulletSepar ator) &gt;  0) or (st ring-lengt h($VarBull etStyle) & gt; 0)">   225      <xsl:if  test="(co unt($VarCS SPropertie s[1]) = 1)  or (count ($VarParag raph/wwdoc :Number[1] ) = 1) or  (string-le ngth($VarB ulletChara cter) &gt;  0) or (st ring-lengt h($VarBull etImage) & gt; 0) or  (string-le ngth($VarB ulletSepar ator) &gt;  0) or (st ring-lengt h($VarBull etStyle) & gt; 0)">
226       <!-- C SS Style - ->   226       <!-- C SS Style - ->
227       <!--            - ->   227       <!--            - ->
228       <xsl:t ext>#</xsl :text>   228       <xsl:t ext>#</xsl :text>
229       <xsl:v alue-of se lect="wwst ring:NCNAM E($VarPara graph/@id) " />   229       <xsl:v alue-of se lect="wwst ring:NCNAM E($VarPara graph/@id) " />
230       <xsl:t ext>   230       <xsl:t ext>
231   {   231   {
232   </xsl:text >   232   </xsl:text >
233     233  
234       <xsl:c hoose>   234       <xsl:c hoose>
235        <xsl: when test= "$VarTextI ndentLessT hanZero">   235        <xsl: when test= "$VarTextI ndentLessT hanZero">
236         <xsl :call-temp late name= "CSS-Catal ogProperti es">   236         <xsl :call-temp late name= "CSS-Catal ogProperti es">
237          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s[@Name !=  'text-ind ent']" />   237          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s[@Name !=  'text-ind ent']" />
238         </xs l:call-tem plate>   238         </xs l:call-tem plate>
239         <xsl :text>  te xt-indent:  0pt;   239         <xsl :text>  te xt-indent:  0pt;
240   </xsl:text >   240   </xsl:text >
241        </xsl :when>   241        </xsl :when>
242     242  
243        <xsl: otherwise>   243        <xsl: otherwise>
244         <xsl :call-temp late name= "CSS-Catal ogProperti es">   244         <xsl :call-temp late name= "CSS-Catal ogProperti es">
245          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" />   245          <xs l:with-par am name="P aramProper ties" sele ct="$VarCS SPropertie s" />
246         </xs l:call-tem plate>   246         </xs l:call-tem plate>
247        </xsl :otherwise >   247        </xsl :otherwise >
248       </xsl: choose>   248       </xsl: choose>
249     249  
250       <xsl:t ext>}   250       <xsl:t ext>}
251     251  
252   </xsl:text >   252   </xsl:text >
253     253  
254       <!-- P osition wr apper for  negative t ext indent  -->   254       <!-- P osition wr apper for  negative t ext indent  -->
255       <!--                                                -->   255       <!--                                                -->
256       <xsl:i f test="$V arTextInde ntLessThan Zero">   256       <xsl:i f test="$V arTextInde ntLessThan Zero">
257        <xsl: text>#</xs l:text>   257        <xsl: text>#</xs l:text>
258        <xsl: value-of s elect="wws tring:NCNA ME($VarPar agraph/@id )" />   258        <xsl: value-of s elect="wws tring:NCNA ME($VarPar agraph/@id )" />
259        <xsl: text>_Posi tionWrappe r</xsl:tex t>   259        <xsl: text>_Posi tionWrappe r</xsl:tex t>
260        <xsl: text>   260        <xsl: text>
261   {   261   {
262   </xsl:text >   262   </xsl:text >
263     263  
264        <xsl: text>  pos ition: abs olute;   264        <xsl: text>  pos ition: abs olute;
265   </xsl:text >   265   </xsl:text >
266     266  
267        <xsl: text>}   267        <xsl: text>}
268     268  
269   </xsl:text >   269   </xsl:text >
270        </xsl :if>   270        </xsl :if>
271     271  
272       <!-- N umber styl e -->   272       <!-- N umber styl e -->
273       <!--                -->   273       <!--                -->
274       <xsl:c hoose>   274       <xsl:c hoose>
275        <xsl: when test= "count($Va rParagraph /wwdoc:Num ber[1]) =  1">   275        <xsl: when test= "count($Va rParagraph /wwdoc:Num ber[1]) =  1">
276         <xsl :choose>   276         <xsl :choose>
277          <xs l:when tes t="$VarTex tIndentLes sThanZero" >   277          <xs l:when tes t="$VarTex tIndentLes sThanZero" >
278           <x sl:variabl e name="Va rNumberAsX ML">   278           <x sl:variabl e name="Va rNumberAsX ML">
279            < wwdoc:Numb er id="{co ncat(wwstr ing:NCNAME ($VarParag raph/@id),  '_Number' )}" stylen ame="{$Var Paragraph/ wwdoc:Numb er[1]/@sty lename}">   279            < wwdoc:Numb er id="{co ncat(wwstr ing:NCNAME ($VarParag raph/@id),  '_Number' )}" stylen ame="{$Var Paragraph/ wwdoc:Numb er[1]/@sty lename}">
280              <wwdoc:Sty le>   280              <wwdoc:Sty le>
281               <wwdoc:At tribute na me="left"  value="{$V arTextInde nt}" />   281               <wwdoc:At tribute na me="left"  value="{$V arTextInde nt}" />
282               <wwdoc:At tribute na me="positi on" value= "relative"  />   282               <wwdoc:At tribute na me="positi on" value= "relative"  />
283     283  
284               <xsl:for- each selec t="$VarPar agraph/wwd oc:Number/ wwdoc:Styl e/wwdoc:At tribute">   284               <xsl:for- each selec t="$VarPar agraph/wwd oc:Number/ wwdoc:Styl e/wwdoc:At tribute">
285                <xsl:cop y-of selec t="." />   285                <xsl:cop y-of selec t="." />
286               </xsl:for -each>   286               </xsl:for -each>
287              </wwdoc:St yle>   287              </wwdoc:St yle>
288              <xsl:copy- of select= "$VarParag raph/wwdoc :Number[1] /*[local-n ame(.) !=  'Style']"/ >   288              <xsl:copy- of select= "$VarParag raph/wwdoc :Number[1] /*[local-n ame(.) !=  'Style']"/ >
289            < /wwdoc:Num ber>   289            < /wwdoc:Num ber>
290           </ xsl:variab le>   290           </ xsl:variab le>
291           <x sl:variabl e name="Va rNumber" s elect="msx sl:node-se t($VarNumb erAsXML)/w wdoc:Numbe r[1]" />   291           <x sl:variabl e name="Va rNumber" s elect="msx sl:node-se t($VarNumb erAsXML)/w wdoc:Numbe r[1]" />
292     292  
293           <! -- Number  Overrides  -->   293           <! -- Number  Overrides  -->
294           <! --                    -->   294           <! --                    -->
295           <x sl:call-te mplate nam e="Charact erOverride s">   295           <x sl:call-te mplate nam e="Charact erOverride s">
296            < xsl:with-p aram name= "ParamCSSP ath" selec t="$ParamC SSPath" />   296            < xsl:with-p aram name= "ParamCSSP ath" selec t="$ParamC SSPath" />
297            < xsl:with-p aram name= "ParamDocu ment" sele ct="$Param Document"  />   297            < xsl:with-p aram name= "ParamDocu ment" sele ct="$Param Document"  />
298            < xsl:with-p aram name= "ParamDocu mentID" se lect="$Par amDocument ID" />   298            < xsl:with-p aram name= "ParamDocu mentID" se lect="$Par amDocument ID" />
299            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarP aragraph"  />   299            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarP aragraph"  />
300            < xsl:with-p aram name= "ParamCont extNodes"  select="$V arNumber"  />   300            < xsl:with-p aram name= "ParamCont extNodes"  select="$V arNumber"  />
301            < xsl:with-p aram name= "ParamBull etStyle" s elect="$Va rBulletSty le" />   301            < xsl:with-p aram name= "ParamBull etStyle" s elect="$Va rBulletSty le" />
302           </ xsl:call-t emplate>   302           </ xsl:call-t emplate>
303          </x sl:when>   303          </x sl:when>
304     304  
305          <xs l:otherwis e>   305          <xs l:otherwis e>
306           <! -- Number  Overrides  -->   306           <! -- Number  Overrides  -->
307           <! --                    -->   307           <! --                    -->
308           <x sl:call-te mplate nam e="Charact erOverride s">   308           <x sl:call-te mplate nam e="Charact erOverride s">
309            < xsl:with-p aram name= "ParamCSSP ath" selec t="$ParamC SSPath" />   309            < xsl:with-p aram name= "ParamCSSP ath" selec t="$ParamC SSPath" />
310            < xsl:with-p aram name= "ParamDocu ment" sele ct="$Param Document"  />   310            < xsl:with-p aram name= "ParamDocu ment" sele ct="$Param Document"  />
311            < xsl:with-p aram name= "ParamDocu mentID" se lect="$Par amDocument ID" />   311            < xsl:with-p aram name= "ParamDocu mentID" se lect="$Par amDocument ID" />
312            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarP aragraph"  />   312            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarP aragraph"  />
313            < xsl:with-p aram name= "ParamCont extNodes"  select="$V arParagrap h/wwdoc:Nu mber[1]" / >   313            < xsl:with-p aram name= "ParamCont extNodes"  select="$V arParagrap h/wwdoc:Nu mber[1]" / >
314            < xsl:with-p aram name= "ParamBull etStyle" s elect="$Va rBulletSty le" />   314            < xsl:with-p aram name= "ParamBull etStyle" s elect="$Va rBulletSty le" />
315           </ xsl:call-t emplate>   315           </ xsl:call-t emplate>
316          </x sl:otherwi se>   316          </x sl:otherwi se>
317         </xs l:choose>   317         </xs l:choose>
318        </xsl :when>   318        </xsl :when>
319     319  
320        <xsl: when test= "(count($V arParagrap h/wwdoc:Nu mber[1]) =  0) and (( string-len gth($VarBu lletCharac ter) &gt;  0) or (str ing-length ($VarBulle tImage) &g t; 0) or ( string-len gth($VarBu lletSepara tor) &gt;  0) or (str ing-length ($VarBulle tStyle) &g t; 0))">   320        <xsl: when test= "(count($V arParagrap h/wwdoc:Nu mber[1]) =  0) and (( string-len gth($VarBu lletCharac ter) &gt;  0) or (str ing-length ($VarBulle tImage) &g t; 0) or ( string-len gth($VarBu lletSepara tor) &gt;  0) or (str ing-length ($VarBulle tStyle) &g t; 0))">
321         <xsl :choose>   321         <xsl :choose>
322          <xs l:when tes t="$VarTex tIndentLes sThanZero" >   322          <xs l:when tes t="$VarTex tIndentLes sThanZero" >
323           <x sl:variabl e name="Va rNumberAsX ML">   323           <x sl:variabl e name="Va rNumberAsX ML">
324            < wwdoc:Numb er id="{co ncat(wwstr ing:NCNAME ($VarParag raph/@id),  '_Number' )}" stylen ame="{$Var Paragraph/ wwdoc:Numb er[1]/@sty lename}">   324            < wwdoc:Numb er id="{co ncat(wwstr ing:NCNAME ($VarParag raph/@id),  '_Number' )}" stylen ame="{$Var Paragraph/ wwdoc:Numb er[1]/@sty lename}">
325              <wwdoc:Sty le>   325              <wwdoc:Sty le>
326               <wwdoc:At tribute na me="left"  value="{$V arTextInde nt}" />   326               <wwdoc:At tribute na me="left"  value="{$V arTextInde nt}" />
327               <wwdoc:At tribute na me="positi on" value= "relative"  />   327               <wwdoc:At tribute na me="positi on" value= "relative"  />
328              </wwdoc:St yle>   328              </wwdoc:St yle>
329            < /wwdoc:Num ber>   329            < /wwdoc:Num ber>
330           </ xsl:variab le>   330           </ xsl:variab le>
331           <x sl:variabl e name="Va rNumber" s elect="msx sl:node-se t($VarNumb erAsXML)/w wdoc:Numbe r[1]" />   331           <x sl:variabl e name="Va rNumber" s elect="msx sl:node-se t($VarNumb erAsXML)/w wdoc:Numbe r[1]" />
332     332  
333           <! -- Number  Overrides  -->   333           <! -- Number  Overrides  -->
334           <! --                    -->   334           <! --                    -->
335           <x sl:call-te mplate nam e="Charact erOverride s">   335           <x sl:call-te mplate nam e="Charact erOverride s">
336            < xsl:with-p aram name= "ParamCSSP ath" selec t="$ParamC SSPath" />   336            < xsl:with-p aram name= "ParamCSSP ath" selec t="$ParamC SSPath" />
337            < xsl:with-p aram name= "ParamDocu ment" sele ct="$Param Document"  />   337            < xsl:with-p aram name= "ParamDocu ment" sele ct="$Param Document"  />
338            < xsl:with-p aram name= "ParamDocu mentID" se lect="$Par amDocument ID" />   338            < xsl:with-p aram name= "ParamDocu mentID" se lect="$Par amDocument ID" />
339            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarP aragraph"  />   339            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarP aragraph"  />
340            < xsl:with-p aram name= "ParamCont extNodes"  select="$V arNumber"  />   340            < xsl:with-p aram name= "ParamCont extNodes"  select="$V arNumber"  />
341            < xsl:with-p aram name= "ParamBull etStyle" s elect="$Va rBulletSty le" />   341            < xsl:with-p aram name= "ParamBull etStyle" s elect="$Va rBulletSty le" />
342           </ xsl:call-t emplate>   342           </ xsl:call-t emplate>
343          </x sl:when>   343          </x sl:when>
344     344  
345          <xs l:otherwis e>   345          <xs l:otherwis e>
346           <! -- Create  dummy numb er to get  info emitt ed in CSS  -->   346           <! -- Create  dummy numb er to get  info emitt ed in CSS  -->
347           <! --                                                     -->   347           <! --                                                     -->
348           <x sl:variabl e name="Va rNumberAsX ML">   348           <x sl:variabl e name="Va rNumberAsX ML">
349            < wwdoc:Numb er id="{co ncat(wwstr ing:NCNAME ($VarParag raph/@id),  '_Number' )}" />   349            < wwdoc:Numb er id="{co ncat(wwstr ing:NCNAME ($VarParag raph/@id),  '_Number' )}" />
350           </ xsl:variab le>   350           </ xsl:variab le>
351           <x sl:variabl e name="Va rNumber" s elect="msx sl:node-se t($VarNumb erAsXML)/w wdoc:Numbe r[1]" />   351           <x sl:variabl e name="Va rNumber" s elect="msx sl:node-se t($VarNumb erAsXML)/w wdoc:Numbe r[1]" />
352     352  
353           <! -- Number  Overrides  -->   353           <! -- Number  Overrides  -->
354           <! --                    -->   354           <! --                    -->
355           <x sl:call-te mplate nam e="Charact erOverride s">   355           <x sl:call-te mplate nam e="Charact erOverride s">
356            < xsl:with-p aram name= "ParamCSSP ath" selec t="$ParamC SSPath" />   356            < xsl:with-p aram name= "ParamCSSP ath" selec t="$ParamC SSPath" />
357            < xsl:with-p aram name= "ParamDocu ment" sele ct="$Param Document"  />   357            < xsl:with-p aram name= "ParamDocu ment" sele ct="$Param Document"  />
358            < xsl:with-p aram name= "ParamDocu mentID" se lect="$Par amDocument ID" />   358            < xsl:with-p aram name= "ParamDocu mentID" se lect="$Par amDocument ID" />
359            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarP aragraph"  />   359            < xsl:with-p aram name= "ParamPara graph" sel ect="$VarP aragraph"  />
360            < xsl:with-p aram name= "ParamCont extNodes"  select="$V arNumber"  />   360            < xsl:with-p aram name= "ParamCont extNodes"  select="$V arNumber"  />
361            < xsl:with-p aram name= "ParamBull etStyle" s elect="$Va rBulletSty le" />   361            < xsl:with-p aram name= "ParamBull etStyle" s elect="$Va rBulletSty le" />
362           </ xsl:call-t emplate>   362           </ xsl:call-t emplate>
363          </x sl:otherwi se>   363          </x sl:otherwi se>
364         </xs l:choose>   364         </xs l:choose>
365     365  
366        </xsl :when>   366        </xsl :when>
367       </xsl: choose>   367       </xsl: choose>
368     368  
369      </xsl:i f>   369      </xsl:i f>
370     370  
371      <!-- Ch aracter Ov errides -- >   371      <!-- Ch aracter Ov errides -- >
372      <!--                       -- >   372      <!--                       -- >
373      <xsl:ca ll-templat e name="Ch aracterOve rrides">   373      <xsl:ca ll-templat e name="Ch aracterOve rrides">
374       <xsl:w ith-param  name="Para mCSSPath"  select="$P aramCSSPat h" />   374       <xsl:w ith-param  name="Para mCSSPath"  select="$P aramCSSPat h" />
375       <xsl:w ith-param  name="Para mDocument"  select="$ ParamDocum ent" />   375       <xsl:w ith-param  name="Para mDocument"  select="$ ParamDocum ent" />
376       <xsl:w ith-param  name="Para mDocumentI D" select= "$ParamDoc umentID" / >   376       <xsl:w ith-param  name="Para mDocumentI D" select= "$ParamDoc umentID" / >
377       <xsl:w ith-param  name="Para mParagraph " select=" $VarParagr aph" />   377       <xsl:w ith-param  name="Para mParagraph " select=" $VarParagr aph" />
378       <xsl:w ith-param  name="Para mContextNo des" selec t="$VarPar agraph/wwd oc:TextRun " />   378       <xsl:w ith-param  name="Para mContextNo des" selec t="$VarPar agraph/wwd oc:TextRun " />
379       <xsl:w ith-param  name="Para mBulletSty le" select ="''" />   379       <xsl:w ith-param  name="Para mBulletSty le" select ="''" />
380      </xsl:c all-templa te>   380      </xsl:c all-templa te>
381     </xsl:fo r-each>   381     </xsl:fo r-each>
382    </xsl:tem plate>   382    </xsl:tem plate>
383     383  
384     384  
385    <xsl:temp late name= "TableOver rides">   385    <xsl:temp late name= "TableOver rides">
386     <xsl:par am name="P aramCSSPat h" />   386     <xsl:par am name="P aramCSSPat h" />
387     <xsl:par am name="P aramDocume nt" />   387     <xsl:par am name="P aramDocume nt" />
388     <xsl:par am name="P aramDocume ntID" />   388     <xsl:par am name="P aramDocume ntID" />
389     389  
390     <xsl:for -each sele ct="$Param Document// wwdoc:Tabl e">   390     <xsl:for -each sele ct="$Param Document// wwdoc:Tabl e">
391      <xsl:va riable nam e="VarTabl e" select= "." />   391      <xsl:va riable nam e="VarTabl e" select= "." />
392      <xsl:va riable nam e="VarCont extRule" s elect="wwp rojext:Get ContextRul e('Table',  $VarTable /@stylenam e, $ParamD ocumentID,  $VarTable /@id)" />   392      <xsl:va riable nam e="VarCont extRule" s elect="wwp rojext:Get ContextRul e('Table',  $VarTable /@stylenam e, $ParamD ocumentID,  $VarTable /@id)" />
393     393  
394      <!-- Re solve proj ect proper ties -->   394      <!-- Re solve proj ect proper ties -->
395      <!--                               -->   395      <!--                               -->
396      <xsl:va riable nam e="VarReso lvedContex tPropertie sAsXML">   396      <xsl:va riable nam e="VarReso lvedContex tPropertie sAsXML">
397       <xsl:c all-templa te name="P roperties- ResolveCon textRule">   397       <xsl:c all-templa te name="P roperties- ResolveCon textRule">
398        <xsl: with-param  name="Par amDocument Context" s elect="$Va rTable" />   398        <xsl: with-param  name="Par amDocument Context" s elect="$Va rTable" />
399        <xsl: with-param  name="Par amProperti es" select ="$VarCont extRule/ww project:Pr operties/w wproject:P roperty" / >   399        <xsl: with-param  name="Par amProperti es" select ="$VarCont extRule/ww project:Pr operties/w wproject:P roperty" / >
400        <xsl: with-param  name="Par amStyleNam e" select= "$VarTable /@stylenam e" />   400        <xsl: with-param  name="Par amStyleNam e" select= "$VarTable /@stylenam e" />
401        <xsl: with-param  name="Par amStyleTyp e" select= "'Table'"  />   401        <xsl: with-param  name="Par amStyleTyp e" select= "'Table'"  />
402        <xsl: with-param  name="Par amContextS tyle" sele ct="$VarTa ble/wwdoc: Style" />   402        <xsl: with-param  name="Par amContextS tyle" sele ct="$VarTa ble/wwdoc: Style" />
403       </xsl: call-templ ate>   403       </xsl: call-templ ate>
404      </xsl:v ariable>   404      </xsl:v ariable>
405      <xsl:va riable nam e="VarReso lvedContex tPropertie s" select= "msxsl:nod e-set($Var ResolvedCo ntextPrope rtiesAsXML )/wwprojec t:Property " />   405      <xsl:va riable nam e="VarReso lvedContex tPropertie s" select= "msxsl:nod e-set($Var ResolvedCo ntextPrope rtiesAsXML )/wwprojec t:Property " />
406     406  
407      <!-- CS S properti es -->   407      <!-- CS S properti es -->
408      <!--                  -->   408      <!--                  -->
409      <xsl:va riable nam e="VarCSSC ontextProp ertiesAsXM L">   409      <xsl:va riable nam e="VarCSSC ontextProp ertiesAsXM L">
410       <xsl:c all-templa te name="C SS-Transla teProjectP roperties" >   410       <xsl:c all-templa te name="C SS-Transla teProjectP roperties" >
411        <xsl: with-param  name="Par amProperti es" select ="$VarReso lvedContex tPropertie s" />   411        <xsl: with-param  name="Par amProperti es" select ="$VarReso lvedContex tPropertie s" />
412        <xsl: with-param  name="Par amFromAbso luteURI" s elect="$Pa ramCSSPath " />   412        <xsl: with-param  name="Par amFromAbso luteURI" s elect="$Pa ramCSSPath " />
413        <xsl: with-param  name="Par amSplits"  select="$G lobalProje ctFilesAsS plits" />   413        <xsl: with-param  name="Par amSplits"  select="$G lobalProje ctFilesAsS plits" />
414       </xsl: call-templ ate>   414       </xsl: call-templ ate>
415      </xsl:v ariable>   415      </xsl:v ariable>
416      <xsl:va riable nam e="VarCSSC ontextProp erties" se lect="msxs l:node-set ($VarCSSCo ntextPrope rtiesAsXML )/wwprojec t:Property " />   416      <xsl:va riable nam e="VarCSSC ontextProp erties" se lect="msxs l:node-set ($VarCSSCo ntextPrope rtiesAsXML )/wwprojec t:Property " />
417     417  
418      <!-- Ha ndle table  alignment  -->   418      <!-- Ha ndle table  alignment  -->
419      <!--                           -->   419      <!--                           -->
420      <xsl:va riable nam e="VarTabl eAlignment ">   420      <xsl:va riable nam e="VarTabl eAlignment ">
421       <xsl:v ariable na me="VarTab leAlignmen tHint" sel ect="$VarR esolvedCon textProper ties[@Name  = 'text-a lign']/@Va lue" />   421       <xsl:v ariable na me="VarTab leAlignmen tHint" sel ect="$VarR esolvedCon textProper ties[@Name  = 'text-a lign']/@Va lue" />
422       <xsl:c hoose>   422       <xsl:c hoose>
423        <xsl: when test= "string-le ngth($VarT ableAlignm entHint) & gt; 0">   423        <xsl: when test= "string-le ngth($VarT ableAlignm entHint) & gt; 0">
424         <xsl :value-of  select="$V arTableAli gnmentHint " />   424         <xsl :value-of  select="$V arTableAli gnmentHint " />
425        </xsl :when>   425        </xsl :when>
426        <xsl: otherwise>   426        <xsl: otherwise>
427         <xsl :value-of  select="'' " />   427         <xsl :value-of  select="'' " />
428        </xsl :otherwise >   428        </xsl :otherwise >
429       </xsl: choose>   429       </xsl: choose>
430      </xsl:v ariable>   430      </xsl:v ariable>
431     431  
432      <xsl:if  test="str ing-length ($VarTable Alignment)  &gt; 0">   432      <xsl:if  test="str ing-length ($VarTable Alignment)  &gt; 0">
433     433  
434       <!-- W rite entry  for div w rapper of  table -->   434       <!-- W rite entry  for div w rapper of  table -->
435       <!--                                          -->   435       <!--                                          -->
436       <xsl:t ext>#</xsl :text>   436       <xsl:t ext>#</xsl :text>
437       <xsl:v alue-of se lect="wwst ring:NCNAM E($VarTabl e/@id)" />   437       <xsl:v alue-of se lect="wwst ring:NCNAM E($VarTabl e/@id)" />
438       <xsl:t ext>_horiz ontal_alig nment</xsl :text>   438       <xsl:t ext>_horiz ontal_alig nment</xsl :text>
439       <xsl:t ext>   439       <xsl:t ext>
440   {   440   {
441     text-ali gn: </xsl: text>   441     text-ali gn: </xsl: text>
442       <xsl:v alue-of se lect="$Var TableAlign ment" />   442       <xsl:v alue-of se lect="$Var TableAlign ment" />
443       <xsl:t ext>;   443       <xsl:t ext>;
444   }   444   }
445   </xsl:text >   445   </xsl:text >
446      </xsl:i f>   446      </xsl:i f>
447     447  
448      <!-- Ov erride nec essary? -- >   448      <!-- Ov erride nec essary? -- >
449      <!--                       -- >   449      <!--                       -- >
450      <xsl:if  test="cou nt($VarCSS ContextPro perties[1] ) = 1">   450      <xsl:if  test="cou nt($VarCSS ContextPro perties[1] ) = 1">
451       <!-- C SS Style - ->   451       <!-- C SS Style - ->
452       <!--            - ->   452       <!--            - ->
453       <xsl:t ext>#</xsl :text>   453       <xsl:t ext>#</xsl :text>
454       <xsl:v alue-of se lect="wwst ring:NCNAM E($VarTabl e/@id)" />   454       <xsl:v alue-of se lect="wwst ring:NCNAM E($VarTabl e/@id)" />
455       <xsl:t ext>   455       <xsl:t ext>
456   {   456   {
457   </xsl:text >   457   </xsl:text >
458     458  
459       <xsl:c all-templa te name="C SS-Catalog Properties ">   459       <xsl:c all-templa te name="C SS-Catalog Properties ">
460        <xsl: with-param  name="Par amProperti es" select ="$VarCSSC ontextProp erties" />   460        <xsl: with-param  name="Par amProperti es" select ="$VarCSSC ontextProp erties" />
461       </xsl: call-templ ate>   461       </xsl: call-templ ate>
462     462  
463       <xsl:t ext>}   463       <xsl:t ext>}
464     464  
465   </xsl:text >   465   </xsl:text >
466     466  
467      </xsl:i f>   467      </xsl:i f>
468     468  
469      <!-- De termine ta ble cell w idths -->   469      <!-- De termine ta ble cell w idths -->
470      <!--                                -->   470      <!--                                -->
471      <xsl:va riable nam e="VarTabl eCellWidth sAsXML">   471      <xsl:va riable nam e="VarTabl eCellWidth sAsXML">
472       <xsl:v ariable na me="VarEmi tTableWidt hsOption"  select="$V arContextR ule/wwproj ect:Option s/wwprojec t:Option[@ Name = 'ta ble-use-do cument-cel l-widths'] /@Value" / >   472       <xsl:v ariable na me="VarEmi tTableWidt hsOption"  select="$V arContextR ule/wwproj ect:Option s/wwprojec t:Option[@ Name = 'ta ble-use-do cument-cel l-widths'] /@Value" / >
473       <xsl:v ariable na me="VarEmi tTableWidt hs" select ="(string- length($Va rEmitTable WidthsOpti on) = 0) o r ($VarEmi tTableWidt hsOption =  'true')"  />   473       <xsl:v ariable na me="VarEmi tTableWidt hs" select ="(string- length($Va rEmitTable WidthsOpti on) = 0) o r ($VarEmi tTableWidt hsOption =  'true')"  />
474     474  
475       <xsl:i f test="$V arEmitTabl eWidths">   475       <xsl:i f test="$V arEmitTabl eWidths">
476        <xsl: call-templ ate name=" Table-Cell Widths">   476        <xsl: call-templ ate name=" Table-Cell Widths">
477         <xsl :with-para m name="Pa ramTable"  select="$V arTable" / >   477         <xsl :with-para m name="Pa ramTable"  select="$V arTable" / >
478        </xsl :call-temp late>   478        </xsl :call-temp late>
479       </xsl: if>   479       </xsl: if>
480      </xsl:v ariable>   480      </xsl:v ariable>
481      <xsl:va riable nam e="VarTabl eCellWidth s" select= "msxsl:nod e-set($Var TableCellW idthsAsXML )/*" />   481      <xsl:va riable nam e="VarTabl eCellWidth s" select= "msxsl:nod e-set($Var TableCellW idthsAsXML )/*" />
482     482  
483      <xsl:fo r-each sel ect="$VarT able/wwdoc :TableHead |$VarTable /wwdoc:Tab leBody|$Va rTable/wwd oc:TableFo ot">   483      <xsl:fo r-each sel ect="$VarT able/wwdoc :TableHead |$VarTable /wwdoc:Tab leBody|$Va rTable/wwd oc:TableFo ot">
484       <xsl:v ariable na me="VarSec tion" sele ct="." />   484       <xsl:v ariable na me="VarSec tion" sele ct="." />
485     485  
486       <!-- R esolve sec tion prope rties -->   486       <!-- R esolve sec tion prope rties -->
487       <!--                               -->   487       <!--                               -->
488       <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML">   488       <xsl:v ariable na me="VarRes olvedSecti onProperti esAsXML">
489        <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule">   489        <xsl: call-templ ate name=" Properties -Table-Sec tion-Resol veContextR ule">
490         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property"  />   490         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property"  />
491         <xsl :with-para m name="Pa ramDocumen tContext"  select="$V arTable" / >   491         <xsl :with-para m name="Pa ramDocumen tContext"  select="$V arTable" / >
492         <xsl :with-para m name="Pa ramTable"  select="$V arTable" / >   492         <xsl :with-para m name="Pa ramTable"  select="$V arTable" / >
493         <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" />   493         <xsl :with-para m name="Pa ramSection " select=" $VarSectio n" />
494        </xsl :call-temp late>   494        </xsl :call-temp late>
495       </xsl: variable>   495       </xsl: variable>
496       <xsl:v ariable na me="VarRes olvedSecti onProperti es" select ="msxsl:no de-set($Va rResolvedS ectionProp ertiesAsXM L)/wwproje ct:Propert y" />   496       <xsl:v ariable na me="VarRes olvedSecti onProperti es" select ="msxsl:no de-set($Va rResolvedS ectionProp ertiesAsXM L)/wwproje ct:Propert y" />
497     497  
498       <!-- P rocess sec tion rows  -->   498       <!-- P rocess sec tion rows  -->
499       <!--                         -->   499       <!--                         -->
500       <xsl:f or-each se lect="$Var Section/ww doc:TableR ow">   500       <xsl:f or-each se lect="$Var Section/ww doc:TableR ow">
501        <xsl: variable n ame="VarTa bleRow" se lect="." / >   501        <xsl: variable n ame="VarTa bleRow" se lect="." / >
502        <xsl: variable n ame="VarRo wPosition"  select="p osition()"  />   502        <xsl: variable n ame="VarRo wPosition"  select="p osition()"  />
503     503  
504        <xsl: for-each s elect="$Va rTableRow/ wwdoc:Tabl eCell">   504        <xsl: for-each s elect="$Va rTableRow/ wwdoc:Tabl eCell">
505         <xsl :variable  name="VarT ableCell"  select="."  />   505         <xsl :variable  name="VarT ableCell"  select="."  />
506         <xsl :variable  name="VarC ellPositio n" select= "position( )" />   506         <xsl :variable  name="VarC ellPositio n" select= "position( )" />
507     507  
508         <!--  Resolve c ell proper ties -->   508         <!--  Resolve c ell proper ties -->
509         <!--                            -->   509         <!--                            -->
510         <xsl :variable  name="VarR esolvedCel lPropertie sAsXML">   510         <xsl :variable  name="VarR esolvedCel lPropertie sAsXML">
511          <xs l:call-tem plate name ="Properti es-Table-C ell-Resolv ePropertie s">   511          <xs l:call-tem plate name ="Properti es-Table-C ell-Resolv ePropertie s">
512           <x sl:with-pa ram name=" ParamSecti onProperti es" select ="$VarReso lvedSectio nPropertie s" />   512           <x sl:with-pa ram name=" ParamSecti onProperti es" select ="$VarReso lvedSectio nPropertie s" />
513           <x sl:with-pa ram name=" ParamCellS tyle" sele ct="$VarTa bleCell/ww doc:Style"  />   513           <x sl:with-pa ram name=" ParamCellS tyle" sele ct="$VarTa bleCell/ww doc:Style"  />
514           <x sl:with-pa ram name=" ParamRowIn dex" selec t="$VarRow Position"  />   514           <x sl:with-pa ram name=" ParamRowIn dex" selec t="$VarRow Position"  />
515           <x sl:with-pa ram name=" ParamColum nIndex" se lect="$Var CellPositi on" />   515           <x sl:with-pa ram name=" ParamColum nIndex" se lect="$Var CellPositi on" />
516          </x sl:call-te mplate>   516          </x sl:call-te mplate>
517     517  
518          <!- - Width at tribute -- >   518          <!- - Width at tribute -- >
519          <!- -                  -- >   519          <!- -                  -- >
520          <xs l:if test= "$VarRowPo sition = 1 ">        
521           <x sl:for-eac h select=" $VarTableC ellWidths[ @id = $Var TableCell/ @id][1]">   520          <xs l:for-each  select="$ VarTableCe llWidths[@ id = $VarT ableCell/@ id][1]">
522            < xsl:variab le name="V arTableCel lWidth" se lect="." / >   521           <x sl:variabl e name="Va rTableCell Width" sel ect="." />
523     522  
524            < wwproject: Property N ame="width " Value="{ $VarTableC ellWidth/@ width}" />   523           <w wproject:P roperty Na me="width"  Value="{$ VarTableCe llWidth/@w idth}" />
525           </ xsl:for-ea ch>   524          </x sl:for-eac h>
526          </x sl:if>        
527         </xs l:variable >   525         </xs l:variable >
528         <xsl :variable  name="VarR esolvedCel lPropertie s" select= "msxsl:nod e-set($Var ResolvedCe llProperti esAsXML)/w wproject:P roperty" / >   526         <xsl :variable  name="VarR esolvedCel lPropertie s" select= "msxsl:nod e-set($Var ResolvedCe llProperti esAsXML)/w wproject:P roperty" / >
529     527  
530         <!--  Valid CSS  propertie s -->   528         <!--  Valid CSS  propertie s -->
531         <!--                         -->   529         <!--                         -->
532         <xsl :variable  name="VarT ableCellCS SPropertie sAsXML">   530         <xsl :variable  name="VarT ableCellCS SPropertie sAsXML">
533          <xs l:call-tem plate name ="CSS-Tran slateProje ctProperti es">   531          <xs l:call-tem plate name ="CSS-Tran slateProje ctProperti es">
534           <x sl:with-pa ram name=" ParamPrope rties" sel ect="$VarR esolvedCel lPropertie s" />   532           <x sl:with-pa ram name=" ParamPrope rties" sel ect="$VarR esolvedCel lPropertie s" />
535           <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamCSSP ath" />   533           <x sl:with-pa ram name=" ParamFromA bsoluteURI " select=" $ParamCSSP ath" />
536           <x sl:with-pa ram name=" ParamSplit s" select= "$GlobalPr ojectFiles AsSplits"  />   534           <x sl:with-pa ram name=" ParamSplit s" select= "$GlobalPr ojectFiles AsSplits"  />
537          </x sl:call-te mplate>   535          </x sl:call-te mplate>
538         </xs l:variable >   536         </xs l:variable >
539         <xsl :variable  name="VarT ableCellCS SPropertie s" select= "msxsl:nod e-set($Var TableCellC SSProperti esAsXML)/w wproject:P roperty" / >   537         <xsl :variable  name="VarT ableCellCS SPropertie s" select= "msxsl:nod e-set($Var TableCellC SSProperti esAsXML)/w wproject:P roperty" / >
540     538  
541         <!--  Override  necessary?  -->   539         <!--  Override  necessary?  -->
542         <!--                        -->   540         <!--                        -->
543         <xsl :if test=" count($Var TableCellC SSProperti es[1]) = 1 ">   541         <xsl :if test=" count($Var TableCellC SSProperti es[1]) = 1 ">
544          <!- - CSS Styl e -->   542          <!- - CSS Styl e -->
545          <!- -            -->   543          <!- -            -->
546          <xs l:text>#</ xsl:text>   544          <xs l:text>#</ xsl:text>
547          <xs l:value-of  select="w wstring:NC NAME($VarT ableCell/@ id)" />   545          <xs l:value-of  select="w wstring:NC NAME($VarT ableCell/@ id)" />
548          <xs l:text>   546          <xs l:text>
549   {   547   {
550   </xsl:text >   548   </xsl:text >
551     549  
552          <xs l:call-tem plate name ="CSS-Cata logPropert ies">   550          <xs l:call-tem plate name ="CSS-Cata logPropert ies">
553           <x sl:with-pa ram name=" ParamPrope rties" sel ect="$VarT ableCellCS SPropertie s" />   551           <x sl:with-pa ram name=" ParamPrope rties" sel ect="$VarT ableCellCS SPropertie s" />
554          </x sl:call-te mplate>   552          </x sl:call-te mplate>
555     553  
556          <xs l:text>}   554          <xs l:text>}
557     555  
558   </xsl:text >   556   </xsl:text >
559     557  
560         </xs l:if>   558         </xs l:if>
561        </xsl :for-each>   559        </xsl :for-each>
562     560  
563       </xsl: for-each>   561       </xsl: for-each>
564     562  
565      </xsl:f or-each>   563      </xsl:f or-each>
566     </xsl:fo r-each>   564     </xsl:fo r-each>
567     565  
568     <!-- Han dle cellsp acing -->   566     <!-- Han dle cellsp acing -->
569     <!--                      -->   567     <!--                      -->
570     <xsl:cal l-template  name="Def ineCellSpa cing">   568     <xsl:cal l-template  name="Def ineCellSpa cing">
571      <xsl:wi th-param n ame="Param Document"  select="$P aramDocume nt" />   569      <xsl:wi th-param n ame="Param Document"  select="$P aramDocume nt" />
572      <xsl:wi th-param n ame="Param DocumentID " select=" $ParamDocu mentID" />   570      <xsl:wi th-param n ame="Param DocumentID " select=" $ParamDocu mentID" />
573      <xsl:wi th-param n ame="Param CSSPath" s elect="$Pa ramCSSPath " />   571      <xsl:wi th-param n ame="Param CSSPath" s elect="$Pa ramCSSPath " />
574     </xsl:ca ll-templat e>   572     </xsl:ca ll-templat e>
575    </xsl:tem plate>   573    </xsl:tem plate>
576     574  
577     575  
578    <xsl:temp late name= "Character Overrides" >   576    <xsl:temp late name= "Character Overrides" >
579     <xsl:par am name="P aramCSSPat h" />   577     <xsl:par am name="P aramCSSPat h" />
580     <xsl:par am name="P aramDocume nt" />   578     <xsl:par am name="P aramDocume nt" />
581     <xsl:par am name="P aramDocume ntID" />   579     <xsl:par am name="P aramDocume ntID" />
582     <xsl:par am name="P aramParagr aph" />   580     <xsl:par am name="P aramParagr aph" />
583     <xsl:par am name="P aramContex tNodes" />   581     <xsl:par am name="P aramContex tNodes" />
584     <xsl:par am name="P aramBullet Style" />   582     <xsl:par am name="P aramBullet Style" />
585     583  
586     <!-- Ite rate text  runs expli citly so t hat positi on() will  match over ride IDs - ->   584     <!-- Ite rate text  runs expli citly so t hat positi on() will  match over ride IDs - ->
587     <!--                                                                                - ->   585     <!--                                                                                - ->
588     <xsl:for -each sele ct="$Param ContextNod es">   586     <xsl:for -each sele ct="$Param ContextNod es">
589      <xsl:va riable nam e="VarCont extNode" s elect="."  />   587      <xsl:va riable nam e="VarCont extNode" s elect="."  />
590     588  
591      <xsl:va riable nam e="VarChar acterID">   589      <xsl:va riable nam e="VarChar acterID">
592       <xsl:c hoose>   590       <xsl:c hoose>
593        <xsl: when test= "local-nam e($VarCont extNode) =  'Number'" >   591        <xsl: when test= "local-nam e($VarCont extNode) =  'Number'" >
594         <xsl :value-of  select="co ncat(wwstr ing:NCNAME ($ParamPar agraph/@id ), '_Numbe r')" />   592         <xsl :value-of  select="co ncat(wwstr ing:NCNAME ($ParamPar agraph/@id ), '_Numbe r')" />
595        </xsl :when>   593        </xsl :when>
596     594  
597        <xsl: otherwise>   595        <xsl: otherwise>
598         <xsl :if test=" (string-le ngth($VarC ontextNode /@stylenam e) &gt; 0)  or (count ($VarConte xtNode/wwd oc:Style[1 ]) &gt; 0) ">   596         <xsl :if test=" (string-le ngth($VarC ontextNode /@stylenam e) &gt; 0)  or (count ($VarConte xtNode/wwd oc:Style[1 ]) &gt; 0) ">
599          <xs l:value-of  select="c oncat(wwst ring:NCNAM E($VarCont extNode/.. /@id), '_C haracter_' , position ())" />   597          <xs l:value-of  select="c oncat(wwst ring:NCNAM E($VarCont extNode/.. /@id), '_C haracter_' , position ())" />
600         </xs l:if>   598         </xs l:if>
601        </xsl :otherwise >   599        </xsl :otherwise >
602       </xsl: choose>   600       </xsl: choose>
603      </xsl:v ariable>   601      </xsl:v ariable>
604     602  
605      <xsl:if  test="str ing-length ($VarChara cterID) &g t; 0">   603      <xsl:if  test="str ing-length ($VarChara cterID) &g t; 0">
606       <xsl:c hoose>   604       <xsl:c hoose>
607        <xsl: when test= "local-nam e($VarCont extNode) =  'Number'" >   605        <xsl: when test= "local-nam e($VarCont extNode) =  'Number'" >
608     606  
609         <xsl :choose>   607         <xsl :choose>
610          <xs l:when tes t="string- length($Pa ramBulletS tyle) &gt;  0">   608          <xs l:when tes t="string- length($Pa ramBulletS tyle) &gt;  0">
611           <! -- Get rul e -->   609           <! -- Get rul e -->
612           <! --           -->   610           <! --           -->
613           <x sl:variabl e name="Va rRule" sel ect="wwpro jext:GetRu le('Charac ter', $Par amBulletSt yle)" />   611           <x sl:variabl e name="Va rRule" sel ect="wwpro jext:GetRu le('Charac ter', $Par amBulletSt yle)" />
614     612  
615           <x sl:variabl e name="Va rStyleBloc kAsXML">   613           <x sl:variabl e name="Va rStyleBloc kAsXML">
616            < wwdoc:Styl e>   614            < wwdoc:Styl e>
617              <wwdoc:Att ribute nam e="positio n" value=" relative"  />   615              <wwdoc:Att ribute nam e="positio n" value=" relative"  />
618              <wwdoc:Att ribute nam e="left" v alue="{$Va rContextNo de/wwdoc:S tyle/wwdoc :Attribute [@name = ' left']/@va lue}" />   616              <wwdoc:Att ribute nam e="left" v alue="{$Va rContextNo de/wwdoc:S tyle/wwdoc :Attribute [@name = ' left']/@va lue}" />
619            < /wwdoc:Sty le>   617            < /wwdoc:Sty le>
620           </ xsl:variab le>   618           </ xsl:variab le>
621           <x sl:variabl e name="Va rStyleBloc k" select= "msxsl:nod e-set($Var StyleBlock AsXML)/wwd oc:Style"  />   619           <x sl:variabl e name="Va rStyleBloc k" select= "msxsl:nod e-set($Var StyleBlock AsXML)/wwd oc:Style"  />
622     620  
623           <! -- Resolve  project p roperties  -->   621           <! -- Resolve  project p roperties  -->
624           <! --                               -->   622           <! --                               -->
625           <x sl:variabl e name="Va rResolvedC ontextProp ertiesAsXM L">   623           <x sl:variabl e name="Va rResolvedC ontextProp ertiesAsXM L">
626            < xsl:call-t emplate na me="Proper ties-Resol veContextR ule">   624            < xsl:call-t emplate na me="Proper ties-Resol veContextR ule">
627              <xsl:with- param name ="ParamDoc umentConte xt" select ="$ParamPa ragraph" / >   625              <xsl:with- param name ="ParamDoc umentConte xt" select ="$ParamPa ragraph" / >
628              <xsl:with- param name ="ParamPro perties" s elect="$Va rRule/wwpr oject:Prop erties/wwp roject:Pro perty" />   626              <xsl:with- param name ="ParamPro perties" s elect="$Va rRule/wwpr oject:Prop erties/wwp roject:Pro perty" />
629              <xsl:with- param name ="ParamSty leName" se lect="$Par amBulletSt yle" />   627              <xsl:with- param name ="ParamSty leName" se lect="$Par amBulletSt yle" />
630              <xsl:with- param name ="ParamSty leType" se lect="'Cha racter'" / >   628              <xsl:with- param name ="ParamSty leType" se lect="'Cha racter'" / >
631              <xsl:with- param name ="ParamCon textStyle"  select="$ VarStyleBl ock" />   629              <xsl:with- param name ="ParamCon textStyle"  select="$ VarStyleBl ock" />
632            < /xsl:call- template>   630            < /xsl:call- template>
633           </ xsl:variab le>   631           </ xsl:variab le>
634           <x sl:variabl e name="Va rResolvedC ontextProp erties" se lect="msxs l:node-set ($VarResol vedContext Properties AsXML)/wwp roject:Pro perty" />   632           <x sl:variabl e name="Va rResolvedC ontextProp erties" se lect="msxs l:node-set ($VarResol vedContext Properties AsXML)/wwp roject:Pro perty" />
635     633  
636           <x sl:call-te mplate nam e="Resolve CharacterO verrides">   634           <x sl:call-te mplate nam e="Resolve CharacterO verrides">
637            < xsl:with-p aram name= "ParamReso lvedProper ties" sele ct="$VarRe solvedCont extPropert ies" />   635            < xsl:with-p aram name= "ParamReso lvedProper ties" sele ct="$VarRe solvedCont extPropert ies" />
638            < xsl:with-p aram name= "ParamCSSP ath" selec t="$ParamC SSPath" />   636            < xsl:with-p aram name= "ParamCSSP ath" selec t="$ParamC SSPath" />
639            < xsl:with-p aram name= "ParamChar acterID" s elect="$Va rCharacter ID" />   637            < xsl:with-p aram name= "ParamChar acterID" s elect="$Va rCharacter ID" />
640           </ xsl:call-t emplate>   638           </ xsl:call-t emplate>
641          </x sl:when>   639          </x sl:when>
642          <xs l:otherwis e>   640          <xs l:otherwis e>
643           <! -- Get rul e -->   641           <! -- Get rul e -->
644           <! --           -->   642           <! --           -->
645           <x sl:variabl e name="Va rRule" sel ect="wwpro jext:GetRu le('Charac ter', $Var ContextNod e/@stylena me)" />   643           <x sl:variabl e name="Va rRule" sel ect="wwpro jext:GetRu le('Charac ter', $Var ContextNod e/@stylena me)" />
646     644  
647           <! -- Resolve  project p roperties  -->   645           <! -- Resolve  project p roperties  -->
648           <! --                               -->   646           <! --                               -->
649           <x sl:variabl e name="Va rResolvedC ontextProp ertiesAsXM L">   647           <x sl:variabl e name="Va rResolvedC ontextProp ertiesAsXM L">
650            < xsl:call-t emplate na me="Proper ties-Resol veContextR ule">   648            < xsl:call-t emplate na me="Proper ties-Resol veContextR ule">
651              <xsl:with- param name ="ParamDoc umentConte xt" select ="$ParamPa ragraph" / >   649              <xsl:with- param name ="ParamDoc umentConte xt" select ="$ParamPa ragraph" / >
652              <xsl:with- param name ="ParamPro perties" s elect="$Va rRule/wwpr oject:Prop erties/wwp roject:Pro perty" />   650              <xsl:with- param name ="ParamPro perties" s elect="$Va rRule/wwpr oject:Prop erties/wwp roject:Pro perty" />
653              <xsl:with- param name ="ParamSty leName" se lect="$Var ContextNod e/@stylena me" />   651              <xsl:with- param name ="ParamSty leName" se lect="$Var ContextNod e/@stylena me" />
654              <xsl:with- param name ="ParamSty leType" se lect="'Cha racter'" / >   652              <xsl:with- param name ="ParamSty leType" se lect="'Cha racter'" / >
655              <xsl:with- param name ="ParamCon textStyle"  select="$ VarContext Node/wwdoc :Style" />   653              <xsl:with- param name ="ParamCon textStyle"  select="$ VarContext Node/wwdoc :Style" />
656            < /xsl:call- template>   654            < /xsl:call- template>
657           </ xsl:variab le>   655           </ xsl:variab le>
658           <x sl:variabl e name="Va rResolvedC ontextProp erties" se lect="msxs l:node-set ($VarResol vedContext Properties AsXML)/wwp roject:Pro perty" />   656           <x sl:variabl e name="Va rResolvedC ontextProp erties" se lect="msxs l:node-set ($VarResol vedContext Properties AsXML)/wwp roject:Pro perty" />
659     657  
660           <x sl:call-te mplate nam e="Resolve CharacterO verrides">   658           <x sl:call-te mplate nam e="Resolve CharacterO verrides">
661            < xsl:with-p aram name= "ParamReso lvedProper ties" sele ct="$VarRe solvedCont extPropert ies" />   659            < xsl:with-p aram name= "ParamReso lvedProper ties" sele ct="$VarRe solvedCont extPropert ies" />
662            < xsl:with-p aram name= "ParamCSSP ath" selec t="$ParamC SSPath" />   660            < xsl:with-p aram name= "ParamCSSP ath" selec t="$ParamC SSPath" />
663            < xsl:with-p aram name= "ParamChar acterID" s elect="$Va rCharacter ID" />   661            < xsl:with-p aram name= "ParamChar acterID" s elect="$Va rCharacter ID" />
664           </ xsl:call-t emplate>   662           </ xsl:call-t emplate>
665          </x sl:otherwi se>   663          </x sl:otherwi se>
666         </xs l:choose>   664         </xs l:choose>
667        </xsl :when>   665        </xsl :when>
668     666  
669        <xsl: otherwise>   667        <xsl: otherwise>
670         <!--  Get rule  -->   668         <!--  Get rule  -->
671         <!--            -->   669         <!--            -->
672         <xsl :variable  name="VarR ule" selec t="wwproje xt:GetRule ('Characte r', $VarCo ntextNode/ @stylename )" />   670         <xsl :variable  name="VarR ule" selec t="wwproje xt:GetRule ('Characte r', $VarCo ntextNode/ @stylename )" />
673     671  
674         <!--  Resolve p roject pro perties -- >   672         <!--  Resolve p roject pro perties -- >
675         <!--                               -- >   673         <!--                               -- >
676         <xsl :variable  name="VarR esolvedPro pertiesAsX ML">   674         <xsl :variable  name="VarR esolvedPro pertiesAsX ML">
677          <xs l:call-tem plate name ="Properti es-Resolve OverrideRu le">   675          <xs l:call-tem plate name ="Properti es-Resolve OverrideRu le">
678           <x sl:with-pa ram name=" ParamPrope rties" sel ect="$VarR ule/wwproj ect:Proper ties/wwpro ject:Prope rty" />   676           <x sl:with-pa ram name=" ParamPrope rties" sel ect="$VarR ule/wwproj ect:Proper ties/wwpro ject:Prope rty" />
679           <x sl:with-pa ram name=" ParamConte xtStyle" s elect="$Va rContextNo de/wwdoc:S tyle" />   677           <x sl:with-pa ram name=" ParamConte xtStyle" s elect="$Va rContextNo de/wwdoc:S tyle" />
680          </x sl:call-te mplate>   678          </x sl:call-te mplate>
681         </xs l:variable >   679         </xs l:variable >
682         <xsl :variable  name="VarR esolvedPro perties" s elect="msx sl:node-se t($VarReso lvedProper tiesAsXML) /wwproject :Property"  />   680         <xsl :variable  name="VarR esolvedPro perties" s elect="msx sl:node-se t($VarReso lvedProper tiesAsXML) /wwproject :Property"  />
683     681  
684         <xsl :call-temp late name= "ResolveCh aracterOve rrides">   682         <xsl :call-temp late name= "ResolveCh aracterOve rrides">
685          <xs l:with-par am name="P aramResolv edProperti es" select ="$VarReso lvedProper ties" />   683          <xs l:with-par am name="P aramResolv edProperti es" select ="$VarReso lvedProper ties" />
686          <xs l:with-par am name="P aramCSSPat h" select= "$ParamCSS Path" />   684          <xs l:with-par am name="P aramCSSPat h" select= "$ParamCSS Path" />
687          <xs l:with-par am name="P aramCharac terID" sel ect="$VarC haracterID " />   685          <xs l:with-par am name="P aramCharac terID" sel ect="$VarC haracterID " />
688         </xs l:call-tem plate>   686         </xs l:call-tem plate>
689        </xsl :otherwise >   687        </xsl :otherwise >
690       </xsl: choose>   688       </xsl: choose>
691      </xsl:i f>   689      </xsl:i f>
692     </xsl:fo r-each>   690     </xsl:fo r-each>
693    </xsl:tem plate>   691    </xsl:tem plate>
694     692  
695     693  
696    <xsl:temp late name= "ResolveCh aracterOve rrides">   694    <xsl:temp late name= "ResolveCh aracterOve rrides">
697     <xsl:par am name="P aramResolv edProperti es" />   695     <xsl:par am name="P aramResolv edProperti es" />
698     <xsl:par am name="P aramCSSPat h" />   696     <xsl:par am name="P aramCSSPat h" />
699     <xsl:par am name="P aramCharac terID" />   697     <xsl:par am name="P aramCharac terID" />
700     698  
701     <!-- CSS  propertie s -->   699     <!-- CSS  propertie s -->
702     <!--                  -->   700     <!--                  -->
703     <xsl:var iable name ="VarCSSPr opertiesAs XML">   701     <xsl:var iable name ="VarCSSPr opertiesAs XML">
704      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties">   702      <xsl:ca ll-templat e name="CS S-Translat eProjectPr operties">
705       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamRes olvedPrope rties" />   703       <xsl:w ith-param  name="Para mPropertie s" select= "$ParamRes olvedPrope rties" />
706       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amCSSPath"  />   704       <xsl:w ith-param  name="Para mFromAbsol uteURI" se lect="$Par amCSSPath"  />
707       <xsl:w ith-param  name="Para mSplits" s elect="$Gl obalProjec tFilesAsSp lits" />   705       <xsl:w ith-param  name="Para mSplits" s elect="$Gl obalProjec tFilesAsSp lits" />
708      </xsl:c all-templa te>   706      </xsl:c all-templa te>
709     </xsl:va riable>   707     </xsl:va riable>
710     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" />   708     <xsl:var iable name ="VarCSSPr operties"  select="ms xsl:node-s et($VarCSS Properties AsXML)/wwp roject:Pro perty" />
711     709  
712     <!-- Ove rride nece ssary? -->   710     <!-- Ove rride nece ssary? -->
713     <!--                       -->   711     <!--                       -->
714     <xsl:for -each sele ct="$VarCS SPropertie s[1]">   712     <xsl:for -each sele ct="$VarCS SPropertie s[1]">
715      <!-- CS S Style -- >   713      <!-- CS S Style -- >
716      <!--            -- >   714      <!--            -- >
717      <xsl:te xt>#</xsl: text>   715      <xsl:te xt>#</xsl: text>
718      <xsl:va lue-of sel ect="$Para mCharacter ID" />   716      <xsl:va lue-of sel ect="$Para mCharacter ID" />
719      <xsl:te xt>   717      <xsl:te xt>
720   {   718   {
721   </xsl:text >   719   </xsl:text >
722     720  
723      <xsl:ca ll-templat e name="CS S-CatalogP roperties" >   721      <xsl:ca ll-templat e name="CS S-CatalogP roperties" >
724       <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties"  />   722       <xsl:w ith-param  name="Para mPropertie s" select= "$VarCSSPr operties"  />
725      </xsl:c all-templa te>   723      </xsl:c all-templa te>
726     724  
727      <xsl:te xt>}   725      <xsl:te xt>}
728     726  
729   </xsl:text >   727   </xsl:text >
730     </xsl:fo r-each>   728     </xsl:fo r-each>
731    </xsl:tem plate>   729    </xsl:tem plate>
732     730  
733     731  
734    <xsl:temp late name= "DefineCel lSpacing">   732    <xsl:temp late name= "DefineCel lSpacing">
735     <xsl:par am name="P aramDocume nt" />   733     <xsl:par am name="P aramDocume nt" />
736     <xsl:par am name="P aramDocume ntID" />   734     <xsl:par am name="P aramDocume ntID" />
737     <xsl:par am name="P aramCSSPat h" />   735     <xsl:par am name="P aramCSSPat h" />
738     736  
739     <xsl:var iable name ="VarHTMLA ttrDefPath " select=" wwfilesyst em:Combine (wwfilesys tem:GetDir ectoryName ($ParamCSS Path), 'sc ripts', 'd ocinfo_tab ledata.js' )" />   737     <xsl:var iable name ="VarHTMLA ttrDefPath " select=" wwfilesyst em:Combine (wwfilesys tem:GetDir ectoryName ($ParamCSS Path), 'sc ripts', 'd ocinfo_tab ledata.js' )" />
740     738  
741     <xsl:var iable name ="VarResul tAsXML">   739     <xsl:var iable name ="VarResul tAsXML">
742      <xsl:te xt>functio n WWLoadDo cInfoData( )   740      <xsl:te xt>functio n WWLoadDo cInfoData( )
743   {   741   {
744   </xsl:text >   742   </xsl:text >
745      <xsl:fo r-each sel ect="$Para mDocument/ /wwdoc:Tab le">   743      <xsl:fo r-each sel ect="$Para mDocument/ /wwdoc:Tab le">
746       <xsl:v ariable na me="VarTab le" select ="." />   744       <xsl:v ariable na me="VarTab le" select ="." />
747     745  
748       <xsl:v ariable na me="VarCon textRule"  select="ww projext:Ge tContextRu le('Table' , $VarTabl e/@stylena me, $Param DocumentID , $VarTabl e/@id)" />   746       <xsl:v ariable na me="VarCon textRule"  select="ww projext:Ge tContextRu le('Table' , $VarTabl e/@stylena me, $Param DocumentID , $VarTabl e/@id)" />
749     747  
750       <!-- R esolve pro ject prope rties -->   748       <!-- R esolve pro ject prope rties -->
751       <!--                               -->   749       <!--                               -->
752       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML">   750       <xsl:v ariable na me="VarRes olvedConte xtProperti esAsXML">
753        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" >   751        <xsl: call-templ ate name=" Properties -ResolveCo ntextRule" >
754         <xsl :with-para m name="Pa ramDocumen tContext"  select="$V arTable" / >   752         <xsl :with-para m name="Pa ramDocumen tContext"  select="$V arTable" / >
755         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property"  />   753         <xsl :with-para m name="Pa ramPropert ies" selec t="$VarCon textRule/w wproject:P roperties/ wwproject: Property"  />
756         <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" />   754         <xsl :with-para m name="Pa ramStyleNa me" select ="$VarTabl e/@stylena me" />
757         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Table'"  />   755         <xsl :with-para m name="Pa ramStyleTy pe" select ="'Table'"  />
758         <xsl :with-para m name="Pa ramContext Style" sel ect="$VarT able/wwdoc :Style" />   756         <xsl :with-para m name="Pa ramContext Style" sel ect="$VarT able/wwdoc :Style" />
759        </xsl :call-temp late>   757        </xsl :call-temp late>
760       </xsl: variable>   758       </xsl: variable>
761       <xsl:v ariable na me="VarRes olvedConte xtProperti es" select ="msxsl:no de-set($Va rResolvedC ontextProp ertiesAsXM L)/wwproje ct:Propert y" />   759       <xsl:v ariable na me="VarRes olvedConte xtProperti es" select ="msxsl:no de-set($Va rResolvedC ontextProp ertiesAsXM L)/wwproje ct:Propert y" />
762     760  
763       <xsl:v ariable na me="VarCel lSpacing">   761       <xsl:v ariable na me="VarCel lSpacing">
764        <xsl: variable n ame="VarCe llSpacingH int" selec t="$VarRes olvedConte xtProperti es[@Name =  'cell-spa cing']/@Va lue" />   762        <xsl: variable n ame="VarCe llSpacingH int" selec t="$VarRes olvedConte xtProperti es[@Name =  'cell-spa cing']/@Va lue" />
765        <xsl: choose>   763        <xsl: choose>
766         <xsl :when test ="string-l ength($Var CellSpacin gHint) &gt ; 0">   764         <xsl :when test ="string-l ength($Var CellSpacin gHint) &gt ; 0">
767          <xs l:value-of  select="$ VarCellSpa cingHint"  />   765          <xs l:value-of  select="$ VarCellSpa cingHint"  />
768         </xs l:when>   766         </xs l:when>
769         <xsl :otherwise >   767         <xsl :otherwise >
770          <xs l:value-of  select="' '" />   768          <xs l:value-of  select="' '" />
771         </xs l:otherwis e>   769         </xs l:otherwis e>
772        </xsl :choose>   770        </xsl :choose>
773       </xsl: variable>   771       </xsl: variable>
774     772  
775       <xsl:i f test="st ring-lengt h($VarCell Spacing) & gt; 0">   773       <xsl:i f test="st ring-lengt h($VarCell Spacing) & gt; 0">
776        <xsl: text>  WWD ocInfo.fAd dProperty( '</xsl:tex t>   774        <xsl: text>  WWD ocInfo.fAd dProperty( '</xsl:tex t>
777        <xsl: value-of s elect="wws tring:NCNA ME($VarTab le/@id)"/>   775        <xsl: value-of s elect="wws tring:NCNA ME($VarTab le/@id)"/>
778        <xsl: text>', 'c ellSpacing ', '</xsl: text>   776        <xsl: text>', 'c ellSpacing ', '</xsl: text>
779        <xsl: value-of s elect="$Va rCellSpaci ng" />   777        <xsl: value-of s elect="$Va rCellSpaci ng" />
780        <xsl: text>');   778        <xsl: text>');
781   </xsl:text >   779   </xsl:text >
782       </xsl: if>   780       </xsl: if>
783     781  
784      </xsl:f or-each>   782      </xsl:f or-each>
785      <xsl:te xt>}   783      <xsl:te xt>}
786   </xsl:text >   784   </xsl:text >
787     </xsl:va riable>   785     </xsl:va riable>
788     <xsl:var iable name ="VarResul t" select= "msxsl:nod e-set($Var ResultAsXM L)" />   786     <xsl:var iable name ="VarResul t" select= "msxsl:nod e-set($Var ResultAsXM L)" />
789     <xsl:var iable name ="VarWrite Result" se lect="wwex sldoc:Docu ment($VarR esult, $Va rHTMLAttrD efPath, 'u tf-8', 'te xt')" />   787     <xsl:var iable name ="VarWrite Result" se lect="wwex sldoc:Docu ment($VarR esult, $Va rHTMLAttrD efPath, 'u tf-8', 'te xt')" />
790    </xsl:tem plate>   788    </xsl:tem plate>
791     789  
792     790  
793    <xsl:temp late name= "DefinePar agraphNumb ers">   791    <xsl:temp late name= "DefinePar agraphNumb ers">
794     <xsl:par am name="P aramDocume nt" />   792     <xsl:par am name="P aramDocume nt" />
795     <xsl:par am name="P aramDocume ntID" />   793     <xsl:par am name="P aramDocume ntID" />
796     <xsl:par am name="P aramCSSPat h" />   794     <xsl:par am name="P aramCSSPat h" />
797     795  
798     <xsl:var iable name ="VarNumbe rDefPath"  select="ww filesystem :Combine(w wfilesyste m:GetDirec toryName($ ParamCSSPa th), 'scri pts', 'doc info_numbe r.js')" />   796     <xsl:var iable name ="VarNumbe rDefPath"  select="ww filesystem :Combine(w wfilesyste m:GetDirec toryName($ ParamCSSPa th), 'scri pts', 'doc info_numbe r.js')" />
799     797  
800     <xsl:var iable name ="VarResul tAsXML">   798     <xsl:var iable name ="VarResul tAsXML">
801      <xsl:te xt>functio n WWLoadDo cInfoNumbe rData()   799      <xsl:te xt>functio n WWLoadDo cInfoNumbe rData()
802   {   800   {
803   </xsl:text >   801   </xsl:text >
804      <xsl:fo r-each sel ect="$Para mDocument/ /wwdoc:Par agraph">   802      <xsl:fo r-each sel ect="$Para mDocument/ /wwdoc:Par agraph">
805       <xsl:v ariable na me="VarPar agraph" se lect="." / >   803       <xsl:v ariable na me="VarPar agraph" se lect="." / >
806     804  
807       <xsl:v ariable na me="VarCon textRule"  select="ww projext:Ge tContextRu le('Paragr aph', $Var Paragraph/ @stylename , $ParamDo cumentID,  $VarParagr aph/@id)"  />   805       <xsl:v ariable na me="VarCon textRule"  select="ww projext:Ge tContextRu le('Paragr aph', $Var Paragraph/ @stylename , $ParamDo cumentID,  $VarParagr aph/@id)"  />
808     806  
809       <!-- U se bullet  from UI? - ->   807       <!-- U se bullet  from UI? - ->
810       <!--                       - ->   808       <!--                       - ->
811       <xsl:v ariable na me="VarBul letCharact er" select ="$VarCont extRule/ww project:Pr operties/w wproject:P roperty[@N ame = 'bul let-charac ter']/@Val ue" />   809       <xsl:v ariable na me="VarBul letCharact er" select ="$VarCont extRule/ww project:Pr operties/w wproject:P roperty[@N ame = 'bul let-charac ter']/@Val ue" />
812       <xsl:v ariable na me="VarBul letImage"  select="$V arContextR ule/wwproj ect:Proper ties/wwpro ject:Prope rty[@Name  = 'bullet- image']/@V alue" />   810       <xsl:v ariable na me="VarBul letImage"  select="$V arContextR ule/wwproj ect:Proper ties/wwpro ject:Prope rty[@Name  = 'bullet- image']/@V alue" />
813       <xsl:v ariable na me="VarBul letSeparat or" select ="$VarCont extRule/ww project:Pr operties/w wproject:P roperty[@N ame = 'bul let-separa tor']/@Val ue" />   811       <xsl:v ariable na me="VarBul letSeparat or" select ="$VarCont extRule/ww project:Pr operties/w wproject:P roperty[@N ame = 'bul let-separa tor']/@Val ue" />
814     812  
815       <xsl:v ariable na me="VarRel ativeImage Path">   813       <xsl:v ariable na me="VarRel ativeImage Path">
816        <xsl: call-templ ate name=" MakePrevie wBulletIma ges">   814        <xsl: call-templ ate name=" MakePrevie wBulletIma ges">
817          <xs l:with-par am name="P aramBullet Image" sel ect="$VarB ulletImage " />   815          <xs l:with-par am name="P aramBullet Image" sel ect="$VarB ulletImage " />
818         <xsl :with-para m name="Pa ramCSSPath " select=" $ParamCSSP ath" />   816         <xsl :with-para m name="Pa ramCSSPath " select=" $ParamCSSP ath" />
819        </xsl :call-temp late>   817        </xsl :call-temp late>
820       </xsl: variable>   818       </xsl: variable>
821     819  
822       <xsl:v alue-of se lect="'WWD ocInfo.fAd dNumberDat a('"/>   820       <xsl:v alue-of se lect="'WWD ocInfo.fAd dNumberDat a('"/>
823       <xsl:t ext>"</xsl :text><xsl :value-of  select="co ncat(wwstr ing:NCNAME ($VarParag raph/@id),  '_Number' )" /><xsl: text>"</xs l:text>   821       <xsl:t ext>"</xsl :text><xsl :value-of  select="co ncat(wwstr ing:NCNAME ($VarParag raph/@id),  '_Number' )" /><xsl: text>"</xs l:text>
824       <xsl:v alue-of se lect="', ' " />   822       <xsl:v alue-of se lect="', ' " />
825       <xsl:t ext>"</xsl :text><xsl :value-of  select="ww string:Rep lace($VarB ulletChara cter, '&qu ot;', '\&q uot;')" /> <xsl:text> "</xsl:tex t>   823       <xsl:t ext>"</xsl :text><xsl :value-of  select="ww string:Rep lace($VarB ulletChara cter, '&qu ot;', '\&q uot;')" /> <xsl:text> "</xsl:tex t>
826       <xsl:v alue-of se lect="', ' " />   824       <xsl:v alue-of se lect="', ' " />
827     825  
828       <!-- I mage varia ble -->   826       <!-- I mage varia ble -->
829       <!--                  -->   827       <!--                  -->
830       <xsl:t ext>&quot; </xsl:text >   828       <xsl:t ext>&quot; </xsl:text >
831       <xsl:i f test="st ring-lengt h($VarRela tiveImageP ath) &gt;  0">   829       <xsl:i f test="st ring-lengt h($VarRela tiveImageP ath) &gt;  0">
832        <xsl: value-of s elect="$Va rRelativeI magePath"  />   830        <xsl: value-of s elect="$Va rRelativeI magePath"  />
833       </xsl: if>   831       </xsl: if>
834       <xsl:t ext>&quot; </xsl:text >   832       <xsl:t ext>&quot; </xsl:text >
835       <xsl:v alue-of se lect="', ' " />   833       <xsl:v alue-of se lect="', ' " />
836     834  
837       <xsl:t ext>&quot; </xsl:text ><xsl:valu e-of selec t="wwstrin g:Replace( $VarBullet Separator,  '&quot;',  '\&quot;' )" /><xsl: text>&quot ;</xsl:tex t>   835       <xsl:t ext>&quot; </xsl:text ><xsl:valu e-of selec t="wwstrin g:Replace( $VarBullet Separator,  '&quot;',  '\&quot;' )" /><xsl: text>&quot ;</xsl:tex t>
838       <xsl:v alue-of se lect="', ' " />   836       <xsl:v alue-of se lect="', ' " />
839       <xsl:t ext>&quot; </xsl:text >   837       <xsl:t ext>&quot; </xsl:text >
840     838  
841       <xsl:v ariable na me="VarNum berText">   839       <xsl:v ariable na me="VarNum berText">
842        <xsl: for-each s elect="$Va rParagraph /wwdoc:Num ber/wwdoc: Text">   840        <xsl: for-each s elect="$Va rParagraph /wwdoc:Num ber/wwdoc: Text">
843         <xsl :value-of  select="ww string:Rep lace(@valu e, '&quot; ', '\&quot ;') "/>   841         <xsl :value-of  select="ww string:Rep lace(@valu e, '&quot; ', '\&quot ;') "/>
844        </xsl :for-each>   842        </xsl :for-each>
845       </xsl: variable>   843       </xsl: variable>
846       <xsl:v alue-of se lect="wwst ring:Repla ceWithExpr ession($Va rNumberTex t, '[ \t\r \n]+$', '' ) "/>   844       <xsl:v alue-of se lect="wwst ring:Repla ceWithExpr ession($Va rNumberTex t, '[ \t\r \n]+$', '' ) "/>
847       <xsl:t ext>&quot; );   845       <xsl:t ext>&quot; );
848   </xsl:text >   846   </xsl:text >
849     847  
850      </xsl:f or-each>   848      </xsl:f or-each>
851      <xsl:te xt>   849      <xsl:te xt>
852   }</xsl:tex t>   850   }</xsl:tex t>
853     </xsl:va riable>   851     </xsl:va riable>
854     <xsl:var iable name ="VarResul t" select= "msxsl:nod e-set($Var ResultAsXM L)" />   852     <xsl:var iable name ="VarResul t" select= "msxsl:nod e-set($Var ResultAsXM L)" />
855     <xsl:var iable name ="VarWrite Result" se lect="wwex sldoc:Docu ment($VarR esult, $Va rNumberDef Path, 'utf -8', 'text ')" />   853     <xsl:var iable name ="VarWrite Result" se lect="wwex sldoc:Docu ment($VarR esult, $Va rNumberDef Path, 'utf -8', 'text ')" />
856    </xsl:tem plate>   854    </xsl:tem plate>
857     855  
858     856  
859    <xsl:temp late name= "MakePrevi ewBulletIm ages">   857    <xsl:temp late name= "MakePrevi ewBulletIm ages">
860     <xsl:par am name="P aramBullet Image" />   858     <xsl:par am name="P aramBullet Image" />
861     <xsl:par am name="P aramCSSPat h" />   859     <xsl:par am name="P aramCSSPat h" />
862     860  
863     <xsl:if  test="stri ng-length( $ParamBull etImage) & gt; 0">   861     <xsl:if  test="stri ng-length( $ParamBull etImage) & gt; 0">
864      <!-- Ta ke care of  path info  -->   862      <!-- Ta ke care of  path info  -->
865      <!--                           -->   863      <!--                           -->
866      <xsl:va riable nam e="VarAbso luteBullet ImagePath"  select="w wfilesyste m:Combine( wwprojext: GetProject FilesDirec toryPath() , $ParamBu lletImage) " />   864      <xsl:va riable nam e="VarAbso luteBullet ImagePath"  select="w wfilesyste m:Combine( wwprojext: GetProject FilesDirec toryPath() , $ParamBu lletImage) " />
867      <xsl:va riable nam e="VarBull etImageFil eName" sel ect="wwfil esystem:Ge tFileName( $ParamBull etImage)"  />   865      <xsl:va riable nam e="VarBull etImageFil eName" sel ect="wwfil esystem:Ge tFileName( $ParamBull etImage)"  />
868      <xsl:va riable nam e="VarBull etImageWit houtExtens ion" selec t="wwfiles ystem:GetF ileNameWit houtExtens ion($VarBu lletImageF ileName)"  />   866      <xsl:va riable nam e="VarBull etImageWit houtExtens ion" selec t="wwfiles ystem:GetF ileNameWit houtExtens ion($VarBu lletImageF ileName)"  />
869      <xsl:va riable nam e="VarCSSD irectory"  select="ww filesystem :GetDirect oryName($P aramCSSPat h)" />   867      <xsl:va riable nam e="VarCSSD irectory"  select="ww filesystem :GetDirect oryName($P aramCSSPat h)" />
870      <xsl:va riable nam e="VarAbso luteDestin ation" sel ect="wwfil esystem:Co mbine($Var CSSDirecto ry, 'bulle t_images',  $VarBulle tImageFile Name)" />   868      <xsl:va riable nam e="VarAbso luteDestin ation" sel ect="wwfil esystem:Co mbine($Var CSSDirecto ry, 'bulle t_images',  $VarBulle tImageFile Name)" />
871      <xsl:va riable nam e="VarAbso luteGIFDes tination"  select="ww filesystem :Combine($ VarCSSDire ctory, 'bu llet_image s', concat ($VarBulle tImageWith outExtensi on, '.gif' ))" />      869      <xsl:va riable nam e="VarAbso luteGIFDes tination"  select="ww filesystem :Combine($ VarCSSDire ctory, 'bu llet_image s', concat ($VarBulle tImageWith outExtensi on, '.gif' ))" />   
872     870  
873      <xsl:va riable nam e="VarJPEG Extension"  select="w wstring:Re placeWithE xpression( $VarBullet ImageFileN ame, '^.*\ .[Jj][Pp][ Gg]$', tru e())" />   871      <xsl:va riable nam e="VarJPEG Extension"  select="w wstring:Re placeWithE xpression( $VarBullet ImageFileN ame, '^.*\ .[Jj][Pp][ Gg]$', tru e())" />
874      <xsl:va riable nam e="VarGIFE xtension"  select="ww string:Rep laceWithEx pression($ VarBulletI mageFileNa me, '^.*\. [Gg][Ii][F f]$', true ())" />   872      <xsl:va riable nam e="VarGIFE xtension"  select="ww string:Rep laceWithEx pression($ VarBulletI mageFileNa me, '^.*\. [Gg][Ii][F f]$', true ())" />
875      <xsl:va riable nam e="VarPNGE xtension"  select="ww string:Rep laceWithEx pression($ VarBulletI mageFileNa me, '^.*\. [Pp][Nn][G g]$', true ())" />   873      <xsl:va riable nam e="VarPNGE xtension"  select="ww string:Rep laceWithEx pression($ VarBulletI mageFileNa me, '^.*\. [Pp][Nn][G g]$', true ())" />
876     874  
877      <xsl:ch oose>   875      <xsl:ch oose>
878       <xsl:w hen test=" ($VarJPEGE xtension =  'true') o r ($VarGIF Extension  = 'true')" >   876       <xsl:w hen test=" ($VarJPEGE xtension =  'true') o r ($VarGIF Extension  = 'true')" >
879        <xsl: if test="w wfilesyste m:FileExis ts($VarAbs oluteDesti nation) !=  'true'">   877        <xsl: if test="w wfilesyste m:FileExis ts($VarAbs oluteDesti nation) !=  'true'">
880         <xsl :variable  name="VarI gnore">   878         <xsl :variable  name="VarI gnore">
881          <xs l:value-of  select="w wfilesyste m:CopyFile ($VarAbsol uteBulletI magePath,  $VarAbsolu teDestinat ion)" />   879          <xs l:value-of  select="w wfilesyste m:CopyFile ($VarAbsol uteBulletI magePath,  $VarAbsolu teDestinat ion)" />
882         </xs l:variable >   880         </xs l:variable >
883        </xsl :if>   881        </xsl :if>
884        <xsl: value-of s elect="wwu ri:GetRela tiveTo($Va rAbsoluteD estination , $ParamCS SPath)"/>   882        <xsl: value-of s elect="wwu ri:GetRela tiveTo($Va rAbsoluteD estination , $ParamCS SPath)"/>
885       </xsl: when>   883       </xsl: when>
886     884  
887       <!-- R aster GIFs  for previ ew -->   885       <!-- R aster GIFs  for previ ew -->
888       <!--                            -->   886       <!--                            -->
889       <xsl:w hen test=" $VarPNGExt ension = ' true'">   887       <xsl:w hen test=" $VarPNGExt ension = ' true'">
890        <xsl: variable n ame="VarBu lletSource ImageInfo"  select="w wimaging:G etInfo($Va rAbsoluteB ulletImage Path)" />   888        <xsl: variable n ame="VarBu lletSource ImageInfo"  select="w wimaging:G etInfo($Va rAbsoluteB ulletImage Path)" />
891     889  
892        <xsl: variable n ame="VarRe sizeWidth"  select="r ound($VarB ulletSourc eImageInfo /@width)"  />   890        <xsl: variable n ame="VarRe sizeWidth"  select="r ound($VarB ulletSourc eImageInfo /@width)"  />
893        <xsl: variable n ame="VarRe sizeHeight " select=" round($Var BulletSour ceImageInf o/@height) " />   891        <xsl: variable n ame="VarRe sizeHeight " select=" round($Var BulletSour ceImageInf o/@height) " />
894     892  
895        <xsl: if test="w wfilesyste m:FileExis ts($VarAbs oluteGIFDe stination)  != 'true' ">   893        <xsl: if test="w wfilesyste m:FileExis ts($VarAbs oluteGIFDe stination)  != 'true' ">
896         <xsl :if test=" wwfilesyst em:Directo ryExists(w wfilesyste m:GetDirec toryName($ VarAbsolut eGIFDestin ation)) !=  'true'">   894         <xsl :if test=" wwfilesyst em:Directo ryExists(w wfilesyste m:GetDirec toryName($ VarAbsolut eGIFDestin ation)) !=  'true'">
897          <xs l:variable  name="Var IgnoreMake Dir">   895          <xs l:variable  name="Var IgnoreMake Dir">
898           <x sl:value-o f select=" wwfilesyst em:CreateD irectory(w wfilesyste m:GetDirec toryName($ VarAbsolut eGIFDestin ation))" / >   896           <x sl:value-o f select=" wwfilesyst em:CreateD irectory(w wfilesyste m:GetDirec toryName($ VarAbsolut eGIFDestin ation))" / >
899          </x sl:variabl e>   897          </x sl:variabl e>
900         </xs l:if>   898         </xs l:if>
901     899  
902         <xsl :variable  name="VarI gnoreMakeI mage">   900         <xsl :variable  name="VarI gnoreMakeI mage">
903          <xs l:value-of  select="w wimaging:T ransform($ VarAbsolut eBulletIma gePath, 'G IF', $VarR esizeWidth , $VarResi zeHeight,  $VarAbsolu teGIFDesti nation)" / >   901          <xs l:value-of  select="w wimaging:T ransform($ VarAbsolut eBulletIma gePath, 'G IF', $VarR esizeWidth , $VarResi zeHeight,  $VarAbsolu teGIFDesti nation)" / >
904         </xs l:variable >   902         </xs l:variable >
905        </xsl :if>   903        </xsl :if>
906     904  
907        <xsl: value-of s elect="wwu ri:GetRela tiveTo($Va rAbsoluteG IFDestinat ion, $Para mCSSPath)" />   905        <xsl: value-of s elect="wwu ri:GetRela tiveTo($Va rAbsoluteG IFDestinat ion, $Para mCSSPath)" />
908       </xsl: when>   906       </xsl: when>
909      </xsl:c hoose>   907      </xsl:c hoose>
910     </xsl:if >   908     </xsl:if >
911    </xsl:tem plate>   909    </xsl:tem plate>
912   </xsl:styl esheet>   910   </xsl:styl esheet>