19. Araxis Merge File Comparison Report

Produced by Araxis Merge on Sat May 2 08:30:12 2009 UTC. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.

19.1 Files compared

# Location File Last Modified
1 C:\Documents and Settings\allums\Desktop\2008.4\Formats\Shared\common\splits names.xsl Mon Jan 19 18:02:54 2009 UTC
2 C:\Documents and Settings\allums\Desktop\2009.1\Formats\Shared\common\splits names.xsl Sat May 2 06:55:56 2009 UTC

19.2 Comparison summary

Description Between
Files 1 and 2
Text Blocks Lines
Unchanged 8 1250
Changed 6 20
Inserted 1 5
Removed 0 0

19.3 Comparison options

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

19.4 Active regular expressions

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

19.5 Comparison detail

1   <?xml vers ion="1.0"  encoding=" UTF-8"?>   1   <?xml vers ion="1.0"  encoding=" UTF-8"?>
2   <xsl:style sheet vers ion="1.0"  xmlns="urn :WebWorks- Engine-Spl its-Schema "   2   <xsl:style sheet vers ion="1.0"  xmlns="urn :WebWorks- Engine-Spl its-Schema "
3                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema"   3                                    xmlns:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema"
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:wwbe haviors="u rn:WebWork s-Behavior s-Schema"   9                                    xmlns:wwbe haviors="u rn:WebWork s-Behavior s-Schema"
10                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject"   10                                    xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject"
11                                    xmlns:wwim ages="urn: WebWorks-I mages-Sche ma"   11                                    xmlns:wwim ages="urn: WebWorks-I mages-Sche ma"
12                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress"   12                                    xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress"
13                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log"   13                                    xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log"
14                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem"   14                                    xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem"
15                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI"   15                                    xmlns:wwur i="urn:Web Works-XSLT -Extension -URI"
16                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities"   16                                    xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities"
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:wwun its="urn:W ebWorks-XS LT-Extensi on-Units"   18                                    xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units"
19                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct"   19                                    xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct"
20                                    xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng"   20                                    xmlns:wwim aging="urn :WebWorks- XSLT-Exten sion-Imagi ng"
21                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent"   21                                    xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent"
22                                    exclude-re sult-prefi xes="xsl m sxsl wwspl its wwmode  wwfiles w wdoc wwbeh aviors wwp roject wwi mages wwpr ogress wwl og wwfiles ystem wwur i wwstring  wwfilesex t wwunits  wwprojext  wwimaging  wwexsldoc"   22                                    exclude-re sult-prefi xes="xsl m sxsl wwspl its wwmode  wwfiles w wdoc wwbeh aviors wwp roject wwi mages wwpr ogress wwl og wwfiles ystem wwur i wwstring  wwfilesex t wwunits  wwprojext  wwimaging  wwexsldoc"
23   >   23   >
24    <xsl:para m name="Gl obalInput"  />   24    <xsl:para m name="Gl obalInput"  />
25    <xsl:para m name="Gl obalPipeli neName" />   25    <xsl:para m name="Gl obalPipeli neName" />
26    <xsl:para m name="Gl obalProjec t" />   26    <xsl:para m name="Gl obalProjec t" />
27    <xsl:para m name="Gl obalFiles"  />   27    <xsl:para m name="Gl obalFiles"  />
28    <xsl:para m name="Pa rameterDep endsType"  />   28    <xsl:para m name="Pa rameterDep endsType"  />
29    <xsl:para m name="Pa rameterIma geTypesTyp e" />   29    <xsl:para m name="Pa rameterIma geTypesTyp e" />
30    <xsl:para m name="Pa rameterBeh aviorsType " />   30    <xsl:para m name="Pa rameterBeh aviorsType " />
31    <xsl:para m name="Pa rameterTyp e" />   31    <xsl:para m name="Pa rameterTyp e" />
32    <xsl:para m name="Pa rameterDef aultPageEx tension" / >   32    <xsl:para m name="Pa rameterDef aultPageEx tension" / >
33    <xsl:para m name="Pa rameterDef aultGraphi cExtension " />   33    <xsl:para m name="Pa rameterDef aultGraphi cExtension " />
34     34  
35     35  
36    <xsl:name space-alia s styleshe et-prefix= "wwsplits"  result-pr efix="#def ault" />   36    <xsl:name space-alia s styleshe et-prefix= "wwsplits"  result-pr efix="#def ault" />
37    <xsl:stri p-space el ements="*"  />   37    <xsl:stri p-space el ements="*"  />
38     38  
39     39  
40    <xsl:incl ude href=" wwtransfor m:common/i mages/util ities.xsl"  />   40    <xsl:incl ude href=" wwtransfor m:common/i mages/util ities.xsl"  />
41     41  
42     42  
43    <xsl:key  name="wwfi les-files- by-type" m atch="wwfi les:File"  use="@type " />   43    <xsl:key  name="wwfi les-files- by-type" m atch="wwfi les:File"  use="@type " />
44    <xsl:key  name="wwfi les-files- by-documen tid" match ="wwfiles: File" use= "@document ID" />   44    <xsl:key  name="wwfi les-files- by-documen tid" match ="wwfiles: File" use= "@document ID" />
45    <xsl:key  name="wwsp lits-split s-by-docum entid" mat ch="wwspli ts:Split"  use="@docu mentID" />   45    <xsl:key  name="wwsp lits-split s-by-docum entid" mat ch="wwspli ts:Split"  use="@docu mentID" />
46    <xsl:key  name="wwbe haviors-fr ames-by-id " match="w wbehaviors :Frame" us e="@id" />   46    <xsl:key  name="wwbe haviors-fr ames-by-id " match="w wbehaviors :Frame" us e="@id" />
47     47  
48     48  
49    <xsl:vari able name= "GlobalAct ionChecksu m">   49    <xsl:vari able name= "GlobalAct ionChecksu m">
50     <xsl:var iable name ="VarTrans formChecks ums">   50     <xsl:var iable name ="VarTrans formChecks ums">
51      <xsl:va lue-of sel ect="conca t(wwuri:As FilePath(' wwtransfor m:self'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: self')))"  />   51      <xsl:va lue-of sel ect="conca t(wwuri:As FilePath(' wwtransfor m:self'),  ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: self')))"  />
52      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/images /utilities .xsl'), ': ', wwfiles ystem:GetC hecksum(ww uri:AsFile Path('wwtr ansform:co mmon/image s/utilitie s.xsl')))"  />   52      <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/images /utilities .xsl'), ': ', wwfiles ystem:GetC hecksum(ww uri:AsFile Path('wwtr ansform:co mmon/image s/utilitie s.xsl')))"  />
53     </xsl:va riable>   53     </xsl:va riable>
54     <xsl:val ue-of sele ct="wwstri ng:MD5Chec ksum($VarT ransformCh ecksums)"  />   54     <xsl:val ue-of sele ct="wwstri ng:MD5Chec ksum($VarT ransformCh ecksums)"  />
55    </xsl:var iable>   55    </xsl:var iable>
56     56  
57     57  
58    <xsl:temp late match ="/">   58    <xsl:temp late match ="/">
59     <wwfiles :Files ver sion="1.0" >   59     <wwfiles :Files ver sion="1.0" >
60     60  
61      <!-- It erate inpu t document s -->   61      <!-- It erate inpu t document s -->
62      <!--                            -->   62      <!--                            -->
63      <xsl:fo r-each sel ect="$Glob alFiles[1] ">   63      <xsl:fo r-each sel ect="$Glob alFiles[1] ">
64       <xsl:v ariable na me="VarFil esByType"  select="ke y('wwfiles -files-by- type', $Pa rameterDep endsType)"  />   64       <xsl:v ariable na me="VarFil esByType"  select="ke y('wwfiles -files-by- type', $Pa rameterDep endsType)"  />
65     65  
66       <xsl:v alue-of se lect="wwpr ogress:Sta rt(count($ VarFilesBy Type))" />   66       <xsl:v alue-of se lect="wwpr ogress:Sta rt(count($ VarFilesBy Type))" />
67     67  
68       <!-- I mage types  -->   68       <!-- I mage types  -->
69       <!--               -->   69       <!--               -->
70       <xsl:v ariable na me="VarIma geTypesPat h" select= "key('wwfi les-files- by-type',  $Parameter ImageTypes Type)[1]/@ path" />   70       <xsl:v ariable na me="VarIma geTypesPat h" select= "key('wwfi les-files- by-type',  $Parameter ImageTypes Type)[1]/@ path" />
71       <xsl:v ariable na me="VarIma geTypes" s elect="wwe xsldoc:Loa dXMLWithou tResolver( $VarImageT ypesPath)"  />   71       <xsl:v ariable na me="VarIma geTypes" s elect="wwe xsldoc:Loa dXMLWithou tResolver( $VarImageT ypesPath)"  />
72     72  
73       <xsl:f or-each se lect="$Var FilesByTyp e">   73       <xsl:f or-each se lect="$Var FilesByTyp e">
74        <xsl: variable n ame="VarFi le" select ="." />   74        <xsl: variable n ame="VarFi le" select ="." />
75     75  
76        <xsl: value-of s elect="wwp rogress:St art(1)" />   76        <xsl: value-of s elect="wwp rogress:St art(1)" />
77     77  
78        <!--  Call templ ate -->   78        <!--  Call templ ate -->
79        <!--                 -->   79        <!--                 -->
80        <xsl: variable n ame="VarPa th" select ="wwfilesy stem:Combi ne(wwfiles ystem:GetD irectoryNa me($VarFil e/@path),  concat(tra nslate($Pa rameterTyp e, ':', '_ '),'.xml') )" />   80        <xsl: variable n ame="VarPa th" select ="wwfilesy stem:Combi ne(wwfiles ystem:GetD irectoryNa me($VarFil e/@path),  concat(tra nslate($Pa rameterTyp e, ':', '_ '),'.xml') )" />
81     81  
82        <xsl: variable n ame="VarUp ToDate" se lect="wwfi lesext:UpT oDate($Var Path, '',  $VarFile/@ groupID, ' ', $Global ActionChec ksum)" />   82        <xsl: variable n ame="VarUp ToDate" se lect="wwfi lesext:UpT oDate($Var Path, '',  $VarFile/@ groupID, ' ', $Global ActionChec ksum)" />
83        <xsl: if test="n ot($VarUpT oDate)">   83        <xsl: if test="n ot($VarUpT oDate)">
84         <xsl :variable  name="VarR esultAsXML ">   84         <xsl :variable  name="VarR esultAsXML ">
85          <!- - Load doc ument -->   85          <!- - Load doc ument -->
86          <!- -                -->   86          <!- -                -->
87          <xs l:variable  name="Var GroupNameI nfo" selec t="wwexsld oc:LoadXML WithoutRes olver($Var File/@path )" />   87          <xs l:variable  name="Var GroupNameI nfo" selec t="wwexsld oc:LoadXML WithoutRes olver($Var File/@path )" />
88     88  
89          <xs l:call-tem plate name ="Names">   89          <xs l:call-tem plate name ="Names">
90           <x sl:with-pa ram name=" ParamGroup NameInfo"  select="$V arGroupNam eInfo" />   90           <x sl:with-pa ram name=" ParamGroup NameInfo"  select="$V arGroupNam eInfo" />
91           <x sl:with-pa ram name=" ParamGroup ID" select ="$VarFile /@groupID"  />   91           <x sl:with-pa ram name=" ParamGroup ID" select ="$VarFile /@groupID"  />
92           <x sl:with-pa ram name=" ParamAllow edByRefere nceTypes"  select="$V arImageTyp es" />   92           <x sl:with-pa ram name=" ParamAllow edByRefere nceTypes"  select="$V arImageTyp es" />
93          </x sl:call-te mplate>   93          </x sl:call-te mplate>
94         </xs l:variable >   94         </xs l:variable >
95         <xsl :variable  name="VarR esult" sel ect="msxsl :node-set( $VarResult AsXML)" />   95         <xsl :variable  name="VarR esult" sel ect="msxsl :node-set( $VarResult AsXML)" />
96         <xsl :variable  name="VarW riteResult " select=" wwexsldoc: Document($ VarResult,  $VarPath,  'utf-8',  'xml', '1. 0', 'yes') " />   96         <xsl :variable  name="VarW riteResult " select=" wwexsldoc: Document($ VarResult,  $VarPath,  'utf-8',  'xml', '1. 0', 'yes') " />
97        </xsl :if>   97        </xsl :if>
98     98  
99        <wwfi les:File p ath="{$Var Path}" typ e="{$Param eterType}"  checksum= "{wwfilesy stem:GetCh ecksum($Va rPath)}" p rojectchec ksum="" gr oupID="{$V arFile/@gr oupID}" do cumentID=" " actionch ecksum="{$ GlobalActi onChecksum }">   99        <wwfi les:File p ath="{$Var Path}" typ e="{$Param eterType}"  checksum= "{wwfilesy stem:GetCh ecksum($Va rPath)}" p rojectchec ksum="" gr oupID="{$V arFile/@gr oupID}" do cumentID=" " actionch ecksum="{$ GlobalActi onChecksum }">
100         <wwf iles:Depen ds path="{ $VarFile/@ path}" che cksum="{$V arFile/@ch ecksum}" g roupID="{$ VarFile/@g roupID}" d ocumentID= "{$VarFile /@document ID}" />   100         <wwf iles:Depen ds path="{ $VarFile/@ path}" che cksum="{$V arFile/@ch ecksum}" g roupID="{$ VarFile/@g roupID}" d ocumentID= "{$VarFile /@document ID}" />
101        </wwf iles:File>   101        </wwf iles:File>
102     102  
103        <xsl: value-of s elect="wwp rogress:En d()" />   103        <xsl: value-of s elect="wwp rogress:En d()" />
104       </xsl: for-each>   104       </xsl: for-each>
105     105  
106       <xsl:v alue-of se lect="wwpr ogress:End ()" />   106       <xsl:v alue-of se lect="wwpr ogress:End ()" />
107      </xsl:f or-each>   107      </xsl:f or-each>
108     108  
109     </wwfile s:Files>   109     </wwfile s:Files>
110    </xsl:tem plate>   110    </xsl:tem plate>
111     111  
112     112  
113    <xsl:temp late name= "Names">   113    <xsl:temp late name= "Names">
114     <xsl:par am name="P aramGroupN ameInfo" / >   114     <xsl:par am name="P aramGroupN ameInfo" / >
115     <xsl:par am name="P aramGroupI D" />   115     <xsl:par am name="P aramGroupI D" />
116     <xsl:par am name="P aramAllowe dByReferen ceTypes" / >   116     <xsl:par am name="P aramAllowe dByReferen ceTypes" / >
117     117  
118     <xsl:for -each sele ct="$Param GroupNameI nfo/wwspli ts:Splits" >   118     <xsl:for -each sele ct="$Param GroupNameI nfo/wwspli ts:Splits" >
119      <xsl:va riable nam e="VarSpli ts" select ="." />   119      <xsl:va riable nam e="VarSpli ts" select ="." />
120     120  
121      <wwspli ts:Splits>   121      <wwspli ts:Splits>
122       <xsl:c opy-of sel ect="$VarS plits/@*"  />   122       <xsl:c opy-of sel ect="$VarS plits/@*"  />
123     123  
124       <!-- P rocess all  splits fo r a docume nt at once  -->   124       <!-- P rocess all  splits fo r a docume nt at once  -->
125       <!--                                                -->   125       <!--                                                -->
126       <xsl:v ariable na me="VarPro jectGroupD ocuments"  select="$G lobalProje ct/wwproje ct:Project /wwproject :Groups/ww project:Gr oup[@Group ID = $Para mGroupID]/ /wwproject :Document"  />   126       <xsl:v ariable na me="VarPro jectGroupD ocuments"  select="$G lobalProje ct/wwproje ct:Project /wwproject :Groups/ww project:Gr oup[@Group ID = $Para mGroupID]/ /wwproject :Document"  />
127       <xsl:f or-each se lect="$Var ProjectGro upDocument s">   127       <xsl:f or-each se lect="$Var ProjectGro upDocument s">
128        <xsl: variable n ame="VarPr ojectGroup Document"  select="."  />   128        <xsl: variable n ame="VarPr ojectGroup Document"  select="."  />
129     129  
130        <!--  Locate doc ument beha viors -->   130        <!--  Locate doc ument beha viors -->
131        <!--                              -->   131        <!--                              -->
132        <xsl: for-each s elect="$Gl obalFiles[ 1]">   132        <xsl: for-each s elect="$Gl obalFiles[ 1]">
133         <xsl :variable  name="VarB ehaviorsFi les" selec t="key('ww files-file s-by-docum entid', $V arProjectG roupDocume nt/@Docume ntID)[@typ e = $Param eterBehavi orsType]"  />   133         <xsl :variable  name="VarB ehaviorsFi les" selec t="key('ww files-file s-by-docum entid', $V arProjectG roupDocume nt/@Docume ntID)[@typ e = $Param eterBehavi orsType]"  />
134     134  
135         <xsl :for-each  select="$V arBehavior sFiles[1]" >   135         <xsl :for-each  select="$V arBehavior sFiles[1]" >
136          <xs l:variable  name="Var BehaviorsF ile" selec t="." />   136          <xs l:variable  name="Var BehaviorsF ile" selec t="." />
137     137  
138          <!- - Load doc ument beha viors -->   138          <!- - Load doc ument beha viors -->
139          <!- -                           -->   139          <!- -                           -->
140          <xs l:variable  name="Var Behaviors"  select="w wexsldoc:L oadXMLWith outResolve r($VarBeha viorsFile/ @path)" />   140          <xs l:variable  name="Var Behaviors"  select="w wexsldoc:L oadXMLWith outResolve r($VarBeha viorsFile/ @path)" />
141     141  
142          <!- - Process  document s plits -->   142          <!- - Process  document s plits -->
143          <!- -                           -->   143          <!- -                           -->
144          <xs l:for-each  select="$ VarSplits[ 1]">   144          <xs l:for-each  select="$ VarSplits[ 1]">
145           <x sl:variabl e name="Va rDocumentS plits" sel ect="key(' wwsplits-s plits-by-d ocumentid' , $VarProj ectGroupDo cument/@Do cumentID)"  />   145           <x sl:variabl e name="Va rDocumentS plits" sel ect="key(' wwsplits-s plits-by-d ocumentid' , $VarProj ectGroupDo cument/@Do cumentID)"  />
146     146  
147           <! -- Process  split -->   147           <! -- Process  split -->
148           <! --                -->   148           <! --                -->
149           <x sl:for-eac h select=" $VarDocume ntSplits">   149           <x sl:for-eac h select=" $VarDocume ntSplits">
150            < xsl:variab le name="V arSplit" s elect="."  />   150            < xsl:variab le name="V arSplit" s elect="."  />
151     151  
152            < !-- Get pa ge rule -- >   152            < !-- Get pa ge rule -- >
153            < !--                -- >   153            < !--                -- >
154            < xsl:variab le name="V arPageStyl eName">   154            < xsl:variab le name="V arPageStyl eName">
155              <xsl:call- template n ame="Style Name">   155              <xsl:call- template n ame="Style Name">
156               <xsl:with -param nam e="ParamSt yleNode" s elect="$Va rSplit/wws plits:Page Style" />   156               <xsl:with -param nam e="ParamSt yleNode" s elect="$Va rSplit/wws plits:Page Style" />
157              </xsl:call -template>   157              </xsl:call -template>
158            < /xsl:varia ble>   158            < /xsl:varia ble>
159            < xsl:variab le name="V arPageRule " select=" wwprojext: GetOverrid eRule('Pag e', $VarPa geStyleNam e, $VarSpl it/@docume ntID, $Var Split/@id) " />   159            < xsl:variab le name="V arPageRule " select=" wwprojext: GetOverrid eRule('Pag e', $VarPa geStyleNam e, $VarSpl it/@docume ntID, $Var Split/@id) " />
160     160  
161            < !-- Genera te output?  -->   161            < !-- Genera te output?  -->
162            < !--                    -->   162            < !--                    -->
163            < xsl:variab le name="V arPageGene rateOutput Option" se lect="$Var PageRule/w wproject:O ptions/wwp roject:Opt ion[@Name  = 'generat e-output'] /@Value" / >   163            < xsl:variab le name="V arPageGene rateOutput Option" se lect="$Var PageRule/w wproject:O ptions/wwp roject:Opt ion[@Name  = 'generat e-output'] /@Value" / >
164            < xsl:variab le name="V arPageGene rateOutput " select=" (string-le ngth($VarP ageGenerat eOutputOpt ion) = 0)  or ($VarPa geGenerate OutputOpti on != 'fal se')" />   164            < xsl:variab le name="V arPageGene rateOutput " select=" (string-le ngth($VarP ageGenerat eOutputOpt ion) = 0)  or ($VarPa geGenerate OutputOpti on != 'fal se')" />
165     165  
166            < !-- Genera te output?  -->   166            < !-- Genera te output?  -->
167            < !--                    -->   167            < !--                    -->
168            < xsl:if tes t="$VarPag eGenerateO utput">   168            < xsl:if tes t="$VarPag eGenerateO utput">
169              <!-- Get p ath -->   169              <!-- Get p ath -->
170              <!--           -->   170              <!--           -->
171              <xsl:varia ble name=" VarSplitPa th">   171              <xsl:varia ble name=" VarSplitPa th">
172               <xsl:call -template  name="Spli tPath">   172               <xsl:call -template  name="Spli tPath">
173                <xsl:wit h-param na me="ParamS plit" sele ct="$VarSp lit" />   173                <xsl:wit h-param na me="ParamS plit" sele ct="$VarSp lit" />
174                <xsl:wit h-param na me="ParamR ule" selec t="$VarPag eRule" />   174                <xsl:wit h-param na me="ParamR ule" selec t="$VarPag eRule" />
175               </xsl:cal l-template >   175               </xsl:cal l-template >
176              </xsl:vari able>   176              </xsl:vari able>
177     177  
178              <wwsplits: Split>   178              <wwsplits: Split>
179               <xsl:copy -of select ="$VarSpli t/@*" />   179               <xsl:copy -of select ="$VarSpli t/@*" />
180               <xsl:attr ibute name ="path">   180               <xsl:attr ibute name ="path">
181                <xsl:val ue-of sele ct="$VarSp litPath" / >   181                <xsl:val ue-of sele ct="$VarSp litPath" / >
182               </xsl:att ribute>   182               </xsl:att ribute>
183               <xsl:attr ibute name ="stylenam e">   183               <xsl:attr ibute name ="stylenam e">
184                <xsl:val ue-of sele ct="$VarPa geStyleNam e" />   184                <xsl:val ue-of sele ct="$VarPa geStyleNam e" />
185               </xsl:att ribute>   185               </xsl:att ribute>
186     186  
187               <xsl:for- each selec t="$VarSpl it/wwsplit s:Frames/w wsplits:Fr ame">   187               <xsl:for- each selec t="$VarSpl it/wwsplit s:Frames/w wsplits:Fr ame">
188                <xsl:var iable name ="VarFrame " select=" ." />   188                <xsl:var iable name ="VarFrame " select=" ." />
189     189  
190                <!-- Get  graphic r ule -->   190                <!-- Get  graphic r ule -->
191                <!--                    -->   191                <!--                    -->
192                <xsl:var iable name ="Var
ContextRul e" select= "wwprojext :GetContex tRule('Gra phic', $Va rFrame/wwd oc:Frame/@ stylename,  $VarSplit /@document ID, $VarFr ame/wwdoc: Frame/@id) " />
  192                <xsl:var iable name ="Var Graphic ContextRul e" select= "wwprojext :GetContex tRule('Gra phic', $Va rFrame/wwd oc:Frame/@ stylename,  $VarSplit /@document ID, $VarFr ame/wwdoc: Frame/@id) " />
193     193  
194                <!-- Gen erate outp ut? -->   194                <!-- Gen erate outp ut? -->
195                <!--                    -->   195                <!--                    -->
196                <xsl:var iable name ="VarGraph icGenerate OutputOpti on" select ="$Var
ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'gene rate-outpu t']/@Value " />
  196                <xsl:var iable name ="VarGraph icGenerate OutputOpti on" select ="$Var Graphic ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'gene rate-outpu t']/@Value " />
197                <xsl:var iable name ="VarGraph icGenerate Output" se lect="(str ing-length ($VarGraph icGenerate OutputOpti on) = 0) o r ($VarGra phicGenera teOutputOp tion != 'f alse')" />   197                <xsl:var iable name ="VarGraph icGenerate Output" se lect="(str ing-length ($VarGraph icGenerate OutputOpti on) = 0) o r ($VarGra phicGenera teOutputOp tion != 'f alse')" />
198     198  
199                <!-- Gen erate outp ut? -->   199                <!-- Gen erate outp ut? -->
200                <!--                    -->   200                <!--                    -->
201                <xsl:if  test="$Var GraphicGen erateOutpu t">   201                <xsl:if  test="$Var GraphicGen erateOutpu t">
202                 <!-- WI F structur e allows f or by refe rence grap hic? -->   202                 <!-- WI F structur e allows f or by refe rence grap hic? -->
203                 <!--                                                     -->   203                 <!--                                                     -->
204                 <xsl:va riable nam e="VarWIFA llowsByRef erenceAsTe xt">   204                 <xsl:va riable nam e="VarWIFA llowsByRef erenceAsTe xt">
205                  <xsl:c all-templa te name="I mages-WIFA llowsByRef erence">   205                  <xsl:c all-templa te name="I mages-WIFA llowsByRef erence">
206                   <xsl: with-param  name="Par amFrame" s elect="$Va rFrame" />   206                   <xsl: with-param  name="Par amFrame" s elect="$Va rFrame" />
207                  </xsl: call-templ ate>   207                  </xsl: call-templ ate>
208                 </xsl:v ariable>   208                 </xsl:v ariable>
209                 <xsl:va riable nam e="VarWIFA llowsByRef erence" se lect="$Var WIFAllowsB yReference AsText = s tring(true ())" />   209                 <xsl:va riable nam e="VarWIFA llowsByRef erence" se lect="$Var WIFAllowsB yReference AsText = s tring(true ())" />
210     210  
211                 <!-- By  reference  source pa th -->   211                 <!-- By  reference  source pa th -->
212                 <!--                             -->   212                 <!--                             -->
213                 <xsl:va riable nam e="VarByRe ferenceSou rcePath">   213                 <xsl:va riable nam e="VarByRe ferenceSou rcePath">
214                  <xsl:c hoose>   214                  <xsl:c hoose>
215                   <xsl: when test= "$VarWIFAl lowsByRefe rence">   215                   <xsl: when test= "$VarWIFAl lowsByRefe rence">
216                    <xsl :variable  name="VarB yReference Facets"  s elect="$Va rFrame/wwd oc:Frame// wwdoc:Face t[@type =  'by-refere nce']" />   216                    <xsl :variable  name="VarB yReference Facets"  s elect="$Va rFrame/wwd oc:Frame// wwdoc:Face t[@type =  'by-refere nce']" />
217                    <xsl :for-each  select="$V arByRefere nceFacets[ 1]">   217                    <xsl :for-each  select="$V arByRefere nceFacets[ 1]">
218                     <xs l:variable  name="Var ByReferenc eFacet" se lect="." / >   218                     <xs l:variable  name="Var ByReferenc eFacet" se lect="." / >
219     219  
220                     <xs l:value-of  select="$ VarByRefer enceFacet/ wwdoc:Attr ibute[@nam e = 'path' ]/@value"  />   220                     <xs l:value-of  select="$ VarByRefer enceFacet/ wwdoc:Attr ibute[@nam e = 'path' ]/@value"  />
221                    </xs l:for-each >   221                    </xs l:for-each >
222                   </xsl :when>   222                   </xsl :when>
223     223  
224                   <xsl: otherwise>   224                   <xsl: otherwise>
225                    <xsl :value-of  select="'' " />   225                    <xsl :value-of  select="'' " />
226                   </xsl :otherwise >   226                   </xsl :otherwise >
227                  </xsl: choose>   227                  </xsl: choose>
228                 </xsl:v ariable>   228                 </xsl:v ariable>
229     229  
230                 <!-- Ha ndle as by -reference  image? -- >   230                 <!-- Ha ndle as by -reference  image? -- >
231                 <!--                                  -- >   231                 <!--                                  -- >
232                 <xsl:va riable nam e="VarByRe ferenceAsT ext">   232                 <xsl:va riable nam e="VarByRe ferenceAsT ext">
233                  <!-- I mage file  exists? -- >   233                  <!-- I mage file  exists? -- >
234                  <!--                      -- >   234                  <!--                      -- >
235                  <xsl:i f test="ww filesystem :FileExist s($VarByRe ferenceSou rcePath)">   235                  <xsl:i f test="ww filesystem :FileExist s($VarByRe ferenceSou rcePath)">
236                   <!--  Locate fra me behavio r -->   236                   <!--  Locate fra me behavio r -->
237                   <!--                          -->   237                   <!--                          -->
238                   <xsl: for-each s elect="$Va rBehaviors [1]">   238                   <xsl: for-each s elect="$Va rBehaviors [1]">
239                    <xsl :variable  name="VarB ehaviorFra me" select ="key('wwb ehaviors-f rames-by-i d', $VarFr ame/wwdoc: Frame/@id) [1]" />   239                    <xsl :variable  name="VarB ehaviorFra me" select ="key('wwb ehaviors-f rames-by-i d', $VarFr ame/wwdoc: Frame/@id) [1]" />
240     240  
241                    <!--  Allow by  reference?  -->   241                    <!--  Allow by  reference?  -->
242                    <!--                        -->   242                    <!--                        -->
243                    <xsl :call-temp late name= "Images-Al lowByRefer ence">   243                    <xsl :call-temp late name= "Images-Al lowByRefer ence">
244                     <xs l:with-par am name="P aramAllowe dByReferen ceTypes" s elect="$Pa ramAllowed ByReferenc eTypes" />   244                     <xs l:with-par am name="P aramAllowe dByReferen ceTypes" s elect="$Pa ramAllowed ByReferenc eTypes" />
245                     <xs l:with-par am name="P aramByRefe renceSourc ePath" sel ect="$VarB yReference SourcePath " />   245                     <xs l:with-par am name="P aramByRefe renceSourc ePath" sel ect="$VarB yReference SourcePath " />
246                     <xs l:with-par am name="P aramContex tRule" sel ect="$Var
ContextRul e" />
  246                     <xs l:with-par am name="P aramContex tRule" sel ect="$Var Graphic ContextRul e" />
247                     <xs l:with-par am name="P aramFrameB ehavior" s elect="$Va rBehaviorF rame" />   247                     <xs l:with-par am name="P aramFrameB ehavior" s elect="$Va rBehaviorF rame" />
248                    </xs l:call-tem plate>   248                    </xs l:call-tem plate>
249                   </xsl :for-each>   249                   </xsl :for-each>
250                  </xsl: if>   250                  </xsl: if>
251                 </xsl:v ariable>   251                 </xsl:v ariable>
252                 <xsl:va riable nam e="VarByRe ference" s elect="$Va rByReferen ceAsText =  string(tr ue())" />   252                 <xsl:va riable nam e="VarByRe ference" s elect="$Va rByReferen ceAsText =  string(tr ue())" />
253     253  
254                 <!-- Ge t path -->   254                 <!-- Ge t path -->
255                 <!--           -->   255                 <!--           -->
256                 <xsl:va riable nam e="VarFram ePath">   256                 <xsl:va riable nam e="VarFram ePath">
257                  <xsl:c hoose>   257                  <xsl:c hoose>
258                   <xsl: when test= "$VarByRef erence">   258                   <xsl: when test= "$VarByRef erence">
259                    <xsl :variable  name="VarO utputDirec toryPath"  select="ww filesystem :Combine(w wprojext:G etTargetOu tputDirect oryPath(),  wwprojext :GetDocume ntGroupPat h($VarSpli t/@documen tID))" />   259                    <xsl :variable  name="VarO utputDirec toryPath"  select="ww filesystem :Combine(w wprojext:G etTargetOu tputDirect oryPath(),  wwprojext :GetDocume ntGroupPat h($VarSpli t/@documen tID))" />
260                    <xsl :variable  name="VarI magesDirec toryPath"  select="ww filesystem :Combine($ VarOutputD irectoryPa th, 'image s')" />   260                    <xsl :variable  name="VarI magesDirec toryPath"  select="ww filesystem :Combine($ VarOutputD irectoryPa th, 'image s')" />
261                    <xsl :value-of  select="ww filesystem :Combine($ VarImagesD irectoryPa th, wwfile system:Get FileName($ VarByRefer enceSource Path))" />   261                    <xsl :value-of  select="ww filesystem :Combine($ VarImagesD irectoryPa th, wwfile system:Get FileName($ VarByRefer enceSource Path))" />
262                   </xsl :when>   262                   </xsl :when>
263     263  
264                   <xsl: otherwise>   264                   <xsl: otherwise>
265                    <xsl :call-temp late name= "FramePath ">   265                    <xsl :call-temp late name= "FramePath ">
266                     <xs l:with-par am name="P aramSplit"  select="$ VarSplit"  />   266                     <xs l:with-par am name="P aramSplit"  select="$ VarSplit"  />
267                     <xs l:with-par am name="P aramFrame"  select="$ VarFrame"  />   267                     <xs l:with-par am name="P aramFrame"  select="$ VarFrame"  />
268                     <xs l:with-par am name="P aramRule"  select="$V ar
ContextRul e" />
  268                     <xs l:with-par am name="P aramRule"  select="$V ar Graphic ContextRul e" />
269                    </xs l:call-tem plate>   269                    </xs l:call-tem plate>
270                   </xsl :otherwise >   270                   </xsl :otherwise >
271                  </xsl: choose>   271                  </xsl: choose>
272                 </xsl:v ariable>   272                 </xsl:v ariable>
273     273  
274                 <wwspli ts:Frame>   274                 <wwspli ts:Frame>
275                  <xsl:a ttribute n ame="group ID">   275                  <xsl:a ttribute n ame="group ID">
276                   <xsl: value-of s elect="$Va rSplit/@gr oupID" />   276                   <xsl: value-of s elect="$Va rSplit/@gr oupID" />
277                  </xsl: attribute>   277                  </xsl: attribute>
278                  <xsl:a ttribute n ame="docum entID">   278                  <xsl:a ttribute n ame="docum entID">
279                   <xsl: value-of s elect="$Va rSplit/@do cumentID"  />   279                   <xsl: value-of s elect="$Va rSplit/@do cumentID"  />
280                  </xsl: attribute>   280                  </xsl: attribute>
281                  <xsl:c opy-of sel ect="$VarF rame/wwdoc :Frame/@*"  />   281                  <xsl:c opy-of sel ect="$VarF rame/wwdoc :Frame/@*"  />
282                  <xsl:c opy-of sel ect="$VarF rame/@*" / >   282                  <xsl:c opy-of sel ect="$VarF rame/@*" / >
283                  <xsl:i f test="$V arByRefere nce">   283                  <xsl:i f test="$V arByRefere nce">
284                   <xsl: attribute  name="byre f">   284                   <xsl: attribute  name="byre f">
285                    <xsl :value-of  select="tr ue()" />   285                    <xsl :value-of  select="tr ue()" />
286                   </xsl :attribute >   286                   </xsl :attribute >
287                  </xsl: if>   287                  </xsl: if>
288                  <xsl:i f test="($ VarWIFAllo wsByRefere nce) and ( wwfilesyst em:FileExi sts($VarBy ReferenceS ourcePath) )">   288                  <xsl:i f test="($ VarWIFAllo wsByRefere nce) and ( wwfilesyst em:FileExi sts($VarBy ReferenceS ourcePath) )">
289                   <xsl: attribute  name="byre f-allowed- by-wif">   289                   <xsl: attribute  name="byre f-allowed- by-wif">
290                    <xsl :value-of  select="tr ue()" />   290                    <xsl :value-of  select="tr ue()" />
291                   </xsl :attribute >   291                   </xsl :attribute >
292                  </xsl: if>   292                  </xsl: if>
293                  <xsl:i f test="(( $VarByRefe rence) or  ($VarWIFAl lowsByRefe rence)) an d (wwfiles ystem:File Exists($Va rByReferen ceSourcePa th))">   293                  <xsl:i f test="(( $VarByRefe rence) or  ($VarWIFAl lowsByRefe rence)) an d (wwfiles ystem:File Exists($Va rByReferen ceSourcePa th))">
294                   <xsl: attribute  name="sour ce">   294                   <xsl: attribute  name="sour ce">
295                    <xsl :value-of  select="$V arByRefere nceSourceP ath" />   295                    <xsl :value-of  select="$V arByRefere nceSourceP ath" />
296                   </xsl :attribute >   296                   </xsl :attribute >
297                  </xsl: if>   297                  </xsl: if>
298                  <xsl:a ttribute n ame="path" >   298                  <xsl:a ttribute n ame="path" >
299                   <xsl: value-of s elect="$Va rFramePath " />   299                   <xsl: value-of s elect="$Va rFramePath " />
300                  </xsl: attribute>   300                  </xsl: attribute>
301     301  
302                  <!-- T humbnail,  wrapper, a nd descrip tion files  -->   302                  <!-- T humbnail,  wrapper, a nd descrip tion files  -->
303                  <!--                                                -->   303                  <!--                                                -->
304                  <xsl:v ariable na me="VarThu mbnailPage RuleOption " select=" $Var
ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'thum bnail-page -rule']/@V alue" />
  304                  <xsl:v ariable na me="VarThu mbnailPage RuleOption " select=" $Var Graphic ContextRul e/wwprojec t:Options/ wwproject: Option[@Na me = 'thum bnail-page -rule']/@V alue" />
305                  <wwspl its:Thumbn ail>   305                  <wwspl its:Thumbn ail>
306                   <xsl: attribute  name="path ">   306                   <xsl: attribute  name="path ">
307                    <xsl :variable  name="VarF ileName">   307                    <xsl :variable  name="VarF ileName">
308                     <xs l:value-of  select="w wfilesyste m:GetFileN ameWithout Extension( $VarFrameP ath)" />   308                     <xs l:value-of  select="w wfilesyste m:GetFileN ameWithout Extension( $VarFrameP ath)" />
309                     <xs l:text>_th umb</xsl:t ext>   309                     <xs l:text>_th umb</xsl:t ext>
310                     <xs l:value-of  select="w wfilesyste m:GetExten sion($VarF ramePath)"  />   310                     <xs l:value-of  select="w wfilesyste m:GetExten sion($VarF ramePath)"  />
311                    </xs l:variable >   311                    </xs l:variable >
312     312  
313                    <xsl :value-of  select="ww filesystem :Combine(w wfilesyste m:GetDirec toryName($ VarFramePa th), $VarF ileName)"  />   313                    <xsl :value-of  select="ww filesystem :Combine(w wfilesyste m:GetDirec toryName($ VarFramePa th), $VarF ileName)"  />
314                   </xsl :attribute >   314                   </xsl :attribute >
315                  </wwsp lits:Thumb nail>   315                  </wwsp lits:Thumb nail>
316                  <wwspl its:Wrappe r groupID= "{$VarSpli t/@groupID }" documen tID="{$Var Split/@doc umentID}"  stylename= "{$VarThum bnailPageR uleOption} ">   316                  <wwspl its:Wrappe r groupID= "{$VarSpli t/@groupID }" documen tID="{$Var Split/@doc umentID}"  stylename= "{$VarThum bnailPageR uleOption} ">
317                   <xsl: attribute  name="path ">   317                   <xsl: attribute  name="path ">
318                    <xsl :variable  name="VarF ileName">   318                    <xsl :variable  name="VarF ileName">
319                     <xs l:value-of  select="w wfilesyste m:GetFileN ameWithout Extension( $VarFrameP ath)" />   319                     <xs l:value-of  select="w wfilesyste m:GetFileN ameWithout Extension( $VarFrameP ath)" />
320                     <xs l:value-of  select="$ ParameterD efaultPage Extension"  />   320                     <xs l:value-of  select="$ ParameterD efaultPage Extension"  />
321                    </xs l:variable >   321                    </xs l:variable >
322     322  
323                    <xsl :value-of  select="ww filesystem :Combine(w wfilesyste m:GetDirec toryName($ VarFramePa th), $VarF ileName)"  />   323                    <xsl :value-of  select="ww filesystem :Combine(w wfilesyste m:GetDirec toryName($ VarFramePa th), $VarF ileName)"  />
324                   </xsl :attribute >   324                   </xsl :attribute >
325                  </wwsp lits:Wrapp er>   325                  </wwsp lits:Wrapp er>
326                  <wwspl its:Descri ption>   326                  <wwspl its:Descri ption>
327                   <xsl: attribute  name="path ">   327                   <xsl: attribute  name="path ">
328                    <xsl :variable  name="VarF ileName">   328                    <xsl :variable  name="VarF ileName">
329                     <xs l:value-of  select="w wfilesyste m:GetFileN ameWithout Extension( $VarFrameP ath)" />   329                     <xs l:value-of  select="w wfilesyste m:GetFileN ameWithout Extension( $VarFrameP ath)" />
330                     <xs l:text>.tx t</xsl:tex t>   330                     <xs l:text>.tx t</xsl:tex t>
331                    </xs l:variable >   331                    </xs l:variable >
332     332  
333                    <xsl :value-of  select="ww filesystem :Combine(w wfilesyste m:GetDirec toryName($ VarFramePa th), $VarF ileName)"  />   333                    <xsl :value-of  select="ww filesystem :Combine(w wfilesyste m:GetDirec toryName($ VarFramePa th), $VarF ileName)"  />
334                   </xsl :attribute >   334                   </xsl :attribute >
335                  </wwsp lits:Descr iption>   335                  </wwsp lits:Descr iption>
336                 </wwspl its:Frame>   336                 </wwspl its:Frame>
337                </xsl:if >   337                </xsl:if >
338               </xsl:for -each>   338               </xsl:for -each>
339     339  
340               <!-- Copy  over any  tables -->   340               <!-- Copy  over any  tables -->
341               <!--                        -->   341               <!--                        -->
342               <xsl:vari able name= "VarTables " select=" $VarSplit/ wwsplits:T ables/wwsp lits:Table " />   342               <xsl:vari able name= "VarTables " select=" $VarSplit/ wwsplits:T ables/wwsp lits:Table " />
343               <xsl:for- each selec t="$VarTab les">   343               <xsl:for- each selec t="$VarTab les">
344                <xsl:var iable name ="VarTable " select=" ." />   344                <xsl:var iable name ="VarTable " select=" ." />
345     345  
346                <xsl:var iable name ="VarDocum entBaseNam e" select= "wwfilesys tem:GetFil eNameWitho utExtensio n($VarSpli t/wwsplits :Document/ @path)" />   346                <xsl:var iable name ="VarDocum entBaseNam e" select= "wwfilesys tem:GetFil eNameWitho utExtensio n($VarSpli t/wwsplits :Document/ @path)" />
347                <xsl:var iable name ="VarTable FileName">   347                <xsl:var iable name ="VarTable FileName">
348                 <xsl:va lue-of sel ect="$VarD ocumentBas eName" />   348                 <xsl:va lue-of sel ect="$VarD ocumentBas eName" />
349                 <xsl:te xt>-</xsl: text>   349                 <xsl:te xt>-</xsl: text>
350                 <xsl:va lue-of sel ect="$VarT able/@id"  />   350                 <xsl:va lue-of sel ect="$VarT able/@id"  />
351                 <xsl:va lue-of sel ect="$Para meterDefau ltPageExte nsion" />   351                 <xsl:va lue-of sel ect="$Para meterDefau ltPageExte nsion" />
352                </xsl:va riable>   352                </xsl:va riable>
353                <xsl:var iable name ="VarTable Path">   353                <xsl:var iable name ="VarTable Path">
354                 <xsl:ca ll-templat e name="Ta blePath">   354                 <xsl:ca ll-templat e name="Ta blePath">
355                  <xsl:w ith-param  name="Para mSplit" se lect="$Var Split" />   355                  <xsl:w ith-param  name="Para mSplit" se lect="$Var Split" />
356                  <xsl:w ith-param  name="Para mTable" se lect="$Var Table" />   356                  <xsl:w ith-param  name="Para mTable" se lect="$Var Table" />
357                  <xsl:w ith-param  name="Para mRule" sel ect="$VarP ageRule" / >   357                  <xsl:w ith-param  name="Para mRule" sel ect="$VarP ageRule" / >
358                 </xsl:c all-templa te>   358                 </xsl:c all-templa te>
359                </xsl:va riable>   359                </xsl:va riable>
360     360  
361                <wwsplit s:Table>   361                <wwsplit s:Table>
362                 <xsl:co py-of sele ct="$VarTa ble/@*" />   362                 <xsl:co py-of sele ct="$VarTa ble/@*" />
363     363  
364                 <xsl:at tribute na me="path">   364                 <xsl:at tribute na me="path">
365                  <xsl:v alue-of se lect="$Var TablePath"  />   365                  <xsl:v alue-of se lect="$Var TablePath"  />
366                 </xsl:a ttribute>   366                 </xsl:a ttribute>
367                </wwspli ts:Table>   367                </wwspli ts:Table>
368               </xsl:for -each>   368               </xsl:for -each>
369     369  
370               <!-- Copy  over any  popups -->   370               <!-- Copy  over any  popups -->
371               <!--                        -->   371               <!--                        -->
372               <xsl:vari able name= "VarPopups " select=" $VarSplit/ wwsplits:P opups/wwsp lits:Popup " />   372               <xsl:vari able name= "VarPopups " select=" $VarSplit/ wwsplits:P opups/wwsp lits:Popup " />
373               <xsl:for- each selec t="$VarPop ups">   373               <xsl:for- each selec t="$VarPop ups">
374                <xsl:var iable name ="VarPopup " select=" ." />   374                <xsl:var iable name ="VarPopup " select=" ." />
375     375  
        376                <!-- Get  popup pag e rule -->
        377                <!--                       -->
        378                <xsl:var iable name ="VarPopup PageRule"  select="ww projext:Ge tRule('Pag e', $VarPo pup/@style name)" />
        379                <xsl:var iable name ="VarPopup PageExtens ionOption"  select="$ VarPopupPa geRule/wwp roject:Opt ions/wwpro ject:Optio n[@Name =  'file-exte nsion']/@V alue" />
        380  
376                <xsl:var iable name ="VarDocum entBaseNam e" select= "wwfilesys tem:GetFil eNameWitho utExtensio n($VarSpli t/wwsplits :Document/ @path)" />   381                <xsl:var iable name ="VarDocum entBaseNam e" select= "wwfilesys tem:GetFil eNameWitho utExtensio n($VarSpli t/wwsplits :Document/ @path)" />
377                <xsl:var iable name ="VarPopup FileName">   382                <xsl:var iable name ="VarPopup FileName">
378                 <xsl:va lue-of sel ect="$VarD ocumentBas eName" />   383                 <xsl:va lue-of sel ect="$VarD ocumentBas eName" />
379                 <xsl:te xt>-</xsl: text>   384                 <xsl:te xt>-</xsl: text>
380                 <xsl:va lue-of sel ect="$VarP opup/@id"  />   385                 <xsl:va lue-of sel ect="$VarP opup/@id"  />
381                 
<xsl:value -of select ="$Paramet erDefaultP ageExtensi on" />
  386                 <xsl:ch oose>
        387                  <xsl:w hen test=" string-len gth($VarPo pupPageExt ensionOpti on) &gt; 0 ">
        388                   <xsl: value-of s elect="$Va rPopupPage ExtensionO ption" />
        389                  </xsl: when>
        390  
        391                  <xsl:o therwise>
        392                     <xsl:value -of select ="$Paramet erDefaultP ageExtensi on" />
        393                  </xsl: otherwise>
        394                 </xsl:c hoose>
382                </xsl:va riable>   395                </xsl:va riable>
383                <xsl:var iable name ="VarPopup Path" sele ct="wwfile system:Com bine(wwpro jext:GetTa rgetOutput DirectoryP ath(), $Va rSplit/wws plits:Grou p/@name, ' popups', $ VarPopupFi leName)" / >   396                <xsl:var iable name ="VarPopup Path" sele ct="wwfile system:Com bine(wwpro jext:GetTa rgetOutput DirectoryP ath(), $Va rSplit/wws plits:Grou p/@name, ' popups', $ VarPopupFi leName)" / >
384     397  
385                <wwsplit s:Popup>   398                <wwsplit s:Popup>
386                 <xsl:co py-of sele ct="$VarPo pup/@*" />   399                 <xsl:co py-of sele ct="$VarPo pup/@*" />
387     400  
388                 <xsl:at tribute na me="path">   401                 <xsl:at tribute na me="path">
389                  <xsl:v alue-of se lect="$Var PopupPath"  />   402                  <xsl:v alue-of se lect="$Var PopupPath"  />
390                 </xsl:a ttribute>   403                 </xsl:a ttribute>
391                </wwspli ts:Popup>   404                </wwspli ts:Popup>
392               </xsl:for -each>   405               </xsl:for -each>
393              </wwsplits :Split>   406              </wwsplits :Split>
394            < /xsl:if>   407            < /xsl:if>
395           </ xsl:for-ea ch>   408           </ xsl:for-ea ch>
396          </x sl:for-eac h>   409          </x sl:for-eac h>
397         </xs l:for-each >   410         </xs l:for-each >
398        </xsl :for-each>   411        </xsl :for-each>
399       </xsl: for-each>   412       </xsl: for-each>
400     413  
401      </wwspl its:Splits >   414      </wwspl its:Splits >
402     </xsl:fo r-each>   415     </xsl:fo r-each>
403    </xsl:tem plate>   416    </xsl:tem plate>
404     417  
405     418  
406    <xsl:temp late name= "StyleName ">   419    <xsl:temp late name= "StyleName ">
407     <xsl:par am name="P aramStyleN ode" />   420     <xsl:par am name="P aramStyleN ode" />
408     421  
409     <xsl:cho ose>   422     <xsl:cho ose>
410      <xsl:wh en test="c ount($Para mStyleNode [1]) = 1">   423      <xsl:wh en test="c ount($Para mStyleNode [1]) = 1">
411       <!-- U se request ed style - ->   424       <!-- U se request ed style - ->
412       <!--                       - ->   425       <!--                       - ->
413       <xsl:v alue-of se lect="$Par amStyleNod e/@value"  />   426       <xsl:v alue-of se lect="$Par amStyleNod e/@value"  />
414      </xsl:w hen>   427      </xsl:w hen>
415     428  
416      <xsl:ot herwise>   429      <xsl:ot herwise>
417       <!-- F orce defau lt rule -- >   430       <!-- F orce defau lt rule -- >
418       <!--                      -- >   431       <!--                      -- >
419       <xsl:v alue-of se lect="''"  />   432       <xsl:v alue-of se lect="''"  />
420      </xsl:o therwise>   433      </xsl:o therwise>
421     </xsl:ch oose>   434     </xsl:ch oose>
422    </xsl:tem plate>   435    </xsl:tem plate>
423     436  
424     437  
425    <xsl:temp late name= "Make-Vali d-Path">   438    <xsl:temp late name= "Make-Vali d-Path">
426     <xsl:par am name="P aramPath"  select="."  />   439     <xsl:par am name="P aramPath"  select="."  />
427     440  
428     <xsl:var iable name ="VarPath"  select="t ranslate($ ParamPath,  '\', '/') " />   441     <xsl:var iable name ="VarPath"  select="t ranslate($ ParamPath,  '\', '/') " />
429     <xsl:cal l-template  name="Mak e-Valid-Pa th-Entries ">   442     <xsl:cal l-template  name="Mak e-Valid-Pa th-Entries ">
430      <xsl:wi th-param n ame="Param Path" sele ct="$VarPa th" />   443      <xsl:wi th-param n ame="Param Path" sele ct="$VarPa th" />
431     </xsl:ca ll-templat e>   444     </xsl:ca ll-templat e>
432    </xsl:tem plate>   445    </xsl:tem plate>
433     446  
434     447  
435    <xsl:temp late name= "Make-Vali d-Path-Ent ries">   448    <xsl:temp late name= "Make-Vali d-Path-Ent ries">
436     <xsl:par am name="P aramPath"  select="."  />   449     <xsl:par am name="P aramPath"  select="."  />
437     450  
438     <xsl:cho ose>   451     <xsl:cho ose>
439      <!-- Mu ltiple pat h entries  exist? -->   452      <!-- Mu ltiple pat h entries  exist? -->
440      <!--                                 -->   453      <!--                                 -->
441      <xsl:wh en test="c ontains($P aramPath,  '/')">   454      <xsl:wh en test="c ontains($P aramPath,  '/')">
442       <xsl:v ariable na me="VarPre fix" selec t="substri ng-before( $ParamPath , '/')" />   455       <xsl:v ariable na me="VarPre fix" selec t="substri ng-before( $ParamPath , '/')" />
443       <xsl:v ariable na me="VarSuf fix" selec t="substri ng-after($ ParamPath,  '/')" />   456       <xsl:v ariable na me="VarSuf fix" selec t="substri ng-after($ ParamPath,  '/')" />
444     457  
445       <xsl:v ariable na me="VarPat hRemainder ">   458       <xsl:v ariable na me="VarPat hRemainder ">
446        <xsl: call-templ ate name=" Make-Valid -Path-Entr ies">   459        <xsl: call-templ ate name=" Make-Valid -Path-Entr ies">
447         <xsl :with-para m name="Pa ramPath" s elect="$Va rSuffix" / >   460         <xsl :with-para m name="Pa ramPath" s elect="$Va rSuffix" / >
448        </xsl :call-temp late>   461        </xsl :call-temp late>
449       </xsl: variable>   462       </xsl: variable>
450     463  
451       <xsl:c hoose>   464       <xsl:c hoose>
452        <xsl: when test= "(string-l ength($Var Prefix) &g t; 0) and  (string-le ngth($VarP athRemaind er) &gt; 0 )">   465        <xsl: when test= "(string-l ength($Var Prefix) &g t; 0) and  (string-le ngth($VarP athRemaind er) &gt; 0 )">
453         <xsl :value-of  select="ww filesystem :Combine($ VarPrefix,  $VarPathR emainder)"  />   466         <xsl :value-of  select="ww filesystem :Combine($ VarPrefix,  $VarPathR emainder)"  />
454        </xsl :when>   467        </xsl :when>
455     468  
456        <xsl: when test= "(string-l ength($Var Prefix) &g t; 0) and  (string-le ngth($VarP athRemaind er) = 0)">   469        <xsl: when test= "(string-l ength($Var Prefix) &g t; 0) and  (string-le ngth($VarP athRemaind er) = 0)">
457         <xsl :value-of  select="ww filesystem :MakeValid FileName($ VarPrefix) " />   470         <xsl :value-of  select="ww filesystem :MakeValid FileName($ VarPrefix) " />
458        </xsl :when>   471        </xsl :when>
459     472  
460        <xsl: when test= "(string-l ength($Var Prefix) =  0) and (st ring-lengt h($VarPath Remainder)  &gt; 0)">   473        <xsl: when test= "(string-l ength($Var Prefix) =  0) and (st ring-lengt h($VarPath Remainder)  &gt; 0)">
461         <xsl :value-of  select="$V arPathRema inder" />   474         <xsl :value-of  select="$V arPathRema inder" />
462        </xsl :when>   475        </xsl :when>
463       </xsl: choose>   476       </xsl: choose>
464      </xsl:w hen>   477      </xsl:w hen>
465     478  
466      <!-- Si ngle path  entry -->   479      <!-- Si ngle path  entry -->
467      <!--                     -->   480      <!--                     -->
468      <xsl:ot herwise>   481      <xsl:ot herwise>
469       <xsl:v alue-of se lect="wwfi lesystem:M akeValidFi leName($Pa ramPath)"  />   482       <xsl:v alue-of se lect="wwfi lesystem:M akeValidFi leName($Pa ramPath)"  />
470      </xsl:o therwise>   483      </xsl:o therwise>
471     </xsl:ch oose>   484     </xsl:ch oose>
472    </xsl:tem plate>   485    </xsl:tem plate>
473     486  
474     487  
475    <xsl:temp late name= "SplitPath ">   488    <xsl:temp late name= "SplitPath ">
476     <xsl:par am name="P aramSplit"  />   489     <xsl:par am name="P aramSplit"  />
477     <xsl:par am name="P aramRule"  />   490     <xsl:par am name="P aramRule"  />
478     491  
479     <!-- Gat her file n aming info  -->   492     <!-- Gat her file n aming info  -->
480     <!--                            -->   493     <!--                            -->
481     <xsl:var iable name ="VarOutpu tDirectory Path" sele ct="wwfile system:Com bine(wwpro jext:GetTa rgetOutput DirectoryP ath(), wwp rojext:Get DocumentGr oupPath($P aramSplit/ @documentI D))" />   494     <xsl:var iable name ="VarOutpu tDirectory Path" sele ct="wwfile system:Com bine(wwpro jext:GetTa rgetOutput DirectoryP ath(), wwp rojext:Get DocumentGr oupPath($P aramSplit/ @documentI D))" />
482     <xsl:var iable name ="VarBaseF ileName">   495     <xsl:var iable name ="VarBaseF ileName">
483      <xsl:va riable nam e="VarFile NameHint"  select="$P aramSplit/ wwsplits:F ileName/@v alue" />   496      <xsl:va riable nam e="VarFile NameHint"  select="$P aramSplit/ wwsplits:F ileName/@v alue" />
484      <xsl:ch oose>   497      <xsl:ch oose>
485       <xsl:w hen test=" string-len gth($VarFi leNameHint ) &gt; 0">   498       <xsl:w hen test=" string-len gth($VarFi leNameHint ) &gt; 0">
486        <xsl: value-of s elect="$Va rFileNameH int" />   499        <xsl: value-of s elect="$Va rFileNameH int" />
487       </xsl: when>   500       </xsl: when>
488     501  
489       <!-- U se origina l document  name if t his docume nt does no t split -- >   502       <!-- U se origina l document  name if t his docume nt does no t split -- >
490       <!--                                                                  -- >   503       <!--                                                                  -- >
491       <xsl:w hen test=" ($ParamSpl it/@positi on = 1) an d (count($ ParamSplit /following -sibling:: wwsplits:S plit[@docu mentID = $ ParamSplit /@document ID]) = 0)" >   504       <xsl:w hen test=" ($ParamSpl it/@positi on = 1) an d (count($ ParamSplit /following -sibling:: wwsplits:S plit[@docu mentID = $ ParamSplit /@document ID]) = 0)" >
492        <xsl: value-of s elect="wwf ilesystem: GetFileNam eWithoutEx tension($P aramSplit/ wwsplits:D ocument/@p ath)" />   505        <xsl: value-of s elect="wwf ilesystem: GetFileNam eWithoutEx tension($P aramSplit/ wwsplits:D ocument/@p ath)" />
493       </xsl: when>   506       </xsl: when>
494     507  
495       <xsl:o therwise>   508       <xsl:o therwise>
496        <xsl: value-of s elect="wwf ilesystem: GetFileNam eWithoutEx tension($P aramSplit/ wwsplits:D ocument/@p ath)" />   509        <xsl: value-of s elect="wwf ilesystem: GetFileNam eWithoutEx tension($P aramSplit/ wwsplits:D ocument/@p ath)" />
497        <xsl: text>.</xs l:text>   510        <xsl: text>.</xs l:text>
498        <xsl: value-of s elect="$Pa ramSplit/w wsplits:Do cument/@po sition" />   511        <xsl: value-of s elect="$Pa ramSplit/w wsplits:Do cument/@po sition" />
499        <xsl: text>.</xs l:text>   512        <xsl: text>.</xs l:text>
500        <xsl: value-of s elect="$Pa ramSplit/@ position"  />   513        <xsl: value-of s elect="$Pa ramSplit/@ position"  />
501       </xsl: otherwise>   514       </xsl: otherwise>
502      </xsl:c hoose>   515      </xsl:c hoose>
503     </xsl:va riable>   516     </xsl:va riable>
504     <xsl:var iable name ="VarExten sionOption " select=" $ParamRule /wwproject :Options/w wproject:O ption[@Nam e = 'file- extension' ]/@Value"  />   517     <xsl:var iable name ="VarExten sionOption " select=" $ParamRule /wwproject :Options/w wproject:O ption[@Nam e = 'file- extension' ]/@Value"  />
505     <xsl:var iable name ="VarExten sion">   518     <xsl:var iable name ="VarExten sion">
506      <xsl:ch oose>   519      <xsl:ch oose>
507       <xsl:w hen test=" string-len gth($VarEx tensionOpt ion) &gt;  0">   520       <xsl:w hen test=" string-len gth($VarEx tensionOpt ion) &gt;  0">
508        <xsl: value-of s elect="$Va rExtension Option" />   521        <xsl: value-of s elect="$Va rExtension Option" />
509       </xsl: when>   522       </xsl: when>
510     523  
511       <xsl:o therwise>   524       <xsl:o therwise>
512        <xsl: value-of s elect="$Pa rameterDef aultPageEx tension" / >   525        <xsl: value-of s elect="$Pa rameterDef aultPageEx tension" / >
513       </xsl: otherwise>   526       </xsl: otherwise>
514      </xsl:c hoose>   527      </xsl:c hoose>
515     </xsl:va riable>   528     </xsl:va riable>
516     529  
517     <xsl:var iable name ="VarName" >   530     <xsl:var iable name ="VarName" >
518      <xsl:va lue-of sel ect="$VarB aseFileNam e" />   531      <xsl:va lue-of sel ect="$VarB aseFileNam e" />
519      <xsl:va lue-of sel ect="$VarE xtension"  />   532      <xsl:va lue-of sel ect="$VarE xtension"  />
520     </xsl:va riable>   533     </xsl:va riable>
521     <xsl:var iable name ="VarValid Path">   534     <xsl:var iable name ="VarValid Path">
522      <xsl:ca ll-templat e name="Ma ke-Valid-P ath">   535      <xsl:ca ll-templat e name="Ma ke-Valid-P ath">
523       <xsl:w ith-param  name="Para mPath" sel ect="$VarN ame" />   536       <xsl:w ith-param  name="Para mPath" sel ect="$VarN ame" />
524      </xsl:c all-templa te>   537      </xsl:c all-templa te>
525     </xsl:va riable>   538     </xsl:va riable>
526     <xsl:var iable name ="VarPath"  select="w wfilesyste m:Combine( $VarOutput DirectoryP ath, $VarV alidPath)"  />   539     <xsl:var iable name ="VarPath"  select="w wfilesyste m:Combine( $VarOutput DirectoryP ath, $VarV alidPath)"  />
527     540  
528     <xsl:val ue-of sele ct="$VarPa th" />   541     <xsl:val ue-of sele ct="$VarPa th" />
529    </xsl:tem plate>   542    </xsl:tem plate>
530     543  
531     544  
532    <xsl:temp late name= "FramePath ">   545    <xsl:temp late name= "FramePath ">
533     <xsl:par am name="P aramSplit"  />   546     <xsl:par am name="P aramSplit"  />
534     <xsl:par am name="P aramFrame"  />   547     <xsl:par am name="P aramFrame"  />
535     <xsl:par am name="P aramRule"  />   548     <xsl:par am name="P aramRule"  />
536     549  
537     <!-- Gat her file n aming info  -->   550     <!-- Gat her file n aming info  -->
538     <!--                            -->   551     <!--                            -->
539     <xsl:var iable name ="VarOutpu tDirectory Path" sele ct="wwfile system:Com bine(wwpro jext:GetTa rgetOutput DirectoryP ath(), wwp rojext:Get DocumentGr oupPath($P aramSplit/ @documentI D))" />   552     <xsl:var iable name ="VarOutpu tDirectory Path" sele ct="wwfile system:Com bine(wwpro jext:GetTa rgetOutput DirectoryP ath(), wwp rojext:Get DocumentGr oupPath($P aramSplit/ @documentI D))" />
540     <xsl:var iable name ="VarImage sDirectory Path" sele ct="wwfile system:Com bine($VarO utputDirec toryPath,  'images')"  />   553     <xsl:var iable name ="VarImage sDirectory Path" sele ct="wwfile system:Com bine($VarO utputDirec toryPath,  'images')"  />
541     <xsl:var iable name ="VarBaseF ileName">   554     <xsl:var iable name ="VarBaseF ileName">
542      <xsl:va riable nam e="VarFile NameHint"  select="$P aramFrame/ wwsplits:F ileName/@v alue" />   555      <xsl:va riable nam e="VarFile NameHint"  select="$P aramFrame/ wwsplits:F ileName/@v alue" />
543      <xsl:ch oose>   556      <xsl:ch oose>
544       <xsl:w hen test=" string-len gth($VarFi leNameHint ) &gt; 0">   557       <xsl:w hen test=" string-len gth($VarFi leNameHint ) &gt; 0">
545        <xsl: value-of s elect="$Va rFileNameH int" />   558        <xsl: value-of s elect="$Va rFileNameH int" />
546       </xsl: when>   559       </xsl: when>
547     560  
548       <xsl:o therwise>   561       <xsl:o therwise>
549        <xsl: value-of s elect="wwf ilesystem: GetFileNam eWithoutEx tension($P aramSplit/ wwsplits:D ocument/@p ath)" />   562        <xsl: value-of s elect="wwf ilesystem: GetFileNam eWithoutEx tension($P aramSplit/ wwsplits:D ocument/@p ath)" />
550        <xsl: text>.</xs l:text>   563        <xsl: text>.</xs l:text>
551        <xsl: value-of s elect="$Pa ramSplit/w wsplits:Do cument/@po sition" />   564        <xsl: value-of s elect="$Pa ramSplit/w wsplits:Do cument/@po sition" />
552        <xsl: text>.</xs l:text>   565        <xsl: text>.</xs l:text>
553        <xsl: value-of s elect="$Pa ramSplit/@ position"  />   566        <xsl: value-of s elect="$Pa ramSplit/@ position"  />
554        <xsl: text>.</xs l:text>   567        <xsl: text>.</xs l:text>
555        <xsl: value-of s elect="$Pa ramFrame/@ position"  />   568        <xsl: value-of s elect="$Pa ramFrame/@ position"  />
556       </xsl: otherwise>   569       </xsl: otherwise>
557      </xsl:c hoose>   570      </xsl:c hoose>
558     </xsl:va riable>   571     </xsl:va riable>
559     <xsl:var iable name ="VarExten sionOption " select=" $ParamRule /wwproject :Options/w wproject:O ption[@Nam e = 'file- extension' ]/@Value"  />   572     <xsl:var iable name ="VarExten sionOption " select=" $ParamRule /wwproject :Options/w wproject:O ption[@Nam e = 'file- extension' ]/@Value"  />
560     <xsl:var iable name ="VarExten sion">   573     <xsl:var iable name ="VarExten sion">
561      <xsl:ch oose>   574      <xsl:ch oose>
562       <xsl:w hen test=" string-len gth($VarEx tensionOpt ion) &gt;  0">   575       <xsl:w hen test=" string-len gth($VarEx tensionOpt ion) &gt;  0">
563        <xsl: value-of s elect="$Va rExtension Option" />   576        <xsl: value-of s elect="$Va rExtension Option" />
564       </xsl: when>   577       </xsl: when>
565     578  
566       <xsl:o therwise>   579       <xsl:o therwise>
567        <xsl: value-of s elect="$Pa rameterDef aultGraphi cExtension " />   580        <xsl: value-of s elect="$Pa rameterDef aultGraphi cExtension " />
568       </xsl: otherwise>   581       </xsl: otherwise>
569      </xsl:c hoose>   582      </xsl:c hoose>
570     </xsl:va riable>   583     </xsl:va riable>
571     584  
572     <xsl:var iable name ="VarName" >   585     <xsl:var iable name ="VarName" >
573      <xsl:va lue-of sel ect="$VarB aseFileNam e" />   586      <xsl:va lue-of sel ect="$VarB aseFileNam e" />
574      <xsl:va lue-of sel ect="$VarE xtension"  />   587      <xsl:va lue-of sel ect="$VarE xtension"  />
575     </xsl:va riable>   588     </xsl:va riable>
576     <xsl:var iable name ="VarValid Path">   589     <xsl:var iable name ="VarValid Path">
577      <xsl:ca ll-templat e name="Ma ke-Valid-P ath">   590      <xsl:ca ll-templat e name="Ma ke-Valid-P ath">
578       <xsl:w ith-param  name="Para mPath" sel ect="$VarN ame" />   591       <xsl:w ith-param  name="Para mPath" sel ect="$VarN ame" />
579      </xsl:c all-templa te>   592      </xsl:c all-templa te>
580     </xsl:va riable>   593     </xsl:va riable>
581     <xsl:var iable name ="VarPath"  select="w wfilesyste m:Combine( $VarImages DirectoryP ath, $VarV alidPath)"  />   594     <xsl:var iable name ="VarPath"  select="w wfilesyste m:Combine( $VarImages DirectoryP ath, $VarV alidPath)"  />
582     595  
583     <xsl:val ue-of sele ct="$VarPa th" />   596     <xsl:val ue-of sele ct="$VarPa th" />
584    </xsl:tem plate>   597    </xsl:tem plate>
585     598  
586     599  
587    <xsl:temp late name= "TablePath ">   600    <xsl:temp late name= "TablePath ">
588     <xsl:par am name="P aramSplit"  />   601     <xsl:par am name="P aramSplit"  />
589     <xsl:par am name="P aramTable"  />   602     <xsl:par am name="P aramTable"  />
590     <xsl:par am name="P aramRule"  />   603     <xsl:par am name="P aramRule"  />
591       604    
592     <!-- Gat her file n aming info  -->   605     <!-- Gat her file n aming info  -->
593     <!--                            -->   606     <!--                            -->
594     <xsl:var iable name ="VarOutpu tDirectory Path" sele ct="wwfile system:Com bine(wwpro jext:GetTa rgetOutput DirectoryP ath(), wwp rojext:Get DocumentGr oupPath($P aramSplit/ @documentI D))" />   607     <xsl:var iable name ="VarOutpu tDirectory Path" sele ct="wwfile system:Com bine(wwpro jext:GetTa rgetOutput DirectoryP ath(), wwp rojext:Get DocumentGr oupPath($P aramSplit/ @documentI D))" />
595     <xsl:var iable name ="VarTable sDirectory Path" sele ct="wwfile system:Com bine($VarO utputDirec toryPath,  'tables')"  />   608     <xsl:var iable name ="VarTable sDirectory Path" sele ct="wwfile system:Com bine($VarO utputDirec toryPath,  'tables')"  />
596     <xsl:var iable name ="VarBaseF ileName">   609     <xsl:var iable name ="VarBaseF ileName">
597      <xsl:va lue-of sel ect="wwfil esystem:Ge tFileNameW ithoutExte nsion($Par amSplit/ww splits:Doc ument/@pat h)" />   610      <xsl:va lue-of sel ect="wwfil esystem:Ge tFileNameW ithoutExte nsion($Par amSplit/ww splits:Doc ument/@pat h)" />
598      <xsl:te xt>.</xsl: text>   611      <xsl:te xt>.</xsl: text>
599      <xsl:va lue-of sel ect="$Para mSplit/wws plits:Docu ment/@posi tion" />   612      <xsl:va lue-of sel ect="$Para mSplit/wws plits:Docu ment/@posi tion" />
600      <xsl:te xt>.</xsl: text>   613      <xsl:te xt>.</xsl: text>
601      <xsl:va lue-of sel ect="$Para mSplit/@po sition" />   614      <xsl:va lue-of sel ect="$Para mSplit/@po sition" />
602      <xsl:te xt>.</xsl: text>   615      <xsl:te xt>.</xsl: text>
603      <xsl:va lue-of sel ect="$Para mTable/@po sition" />   616      <xsl:va lue-of sel ect="$Para mTable/@po sition" />
604     </xsl:va riable>   617     </xsl:va riable>
605     <xsl:var iable name ="VarExten sionOption " select=" $ParamRule /wwproject :Options/w wproject:O ption[@Nam e = 'file- extension' ]/@Value"  />   618     <xsl:var iable name ="VarExten sionOption " select=" $ParamRule /wwproject :Options/w wproject:O ption[@Nam e = 'file- extension' ]/@Value"  />
606     <xsl:var iable name ="VarExten sion">   619     <xsl:var iable name ="VarExten sion">
607      <xsl:ch oose>   620      <xsl:ch oose>
608       <xsl:w hen test=" string-len gth($VarEx tensionOpt ion) &gt;  0">   621       <xsl:w hen test=" string-len gth($VarEx tensionOpt ion) &gt;  0">
609        <xsl: value-of s elect="$Va rExtension Option" />   622        <xsl: value-of s elect="$Va rExtension Option" />
610       </xsl: when>   623       </xsl: when>
611     624  
612       <xsl:o therwise>   625       <xsl:o therwise>
613        <xsl: value-of s elect="$Pa rameterDef aultPageEx tension" / >   626        <xsl: value-of s elect="$Pa rameterDef aultPageEx tension" / >
614       </xsl: otherwise>   627       </xsl: otherwise>
615      </xsl:c hoose>   628      </xsl:c hoose>
616     </xsl:va riable>   629     </xsl:va riable>
617     630  
618     <xsl:var iable name ="VarName" >   631     <xsl:var iable name ="VarName" >
619      <xsl:va lue-of sel ect="$VarB aseFileNam e" />   632      <xsl:va lue-of sel ect="$VarB aseFileNam e" />
620      <xsl:va lue-of sel ect="$VarE xtension"  />   633      <xsl:va lue-of sel ect="$VarE xtension"  />
621     </xsl:va riable>   634     </xsl:va riable>
622     <xsl:var iable name ="VarValid Path">   635     <xsl:var iable name ="VarValid Path">
623      <xsl:ca ll-templat e name="Ma ke-Valid-P ath">   636      <xsl:ca ll-templat e name="Ma ke-Valid-P ath">
624       <xsl:w ith-param  name="Para mPath" sel ect="$VarN ame" />   637       <xsl:w ith-param  name="Para mPath" sel ect="$VarN ame" />
625      </xsl:c all-templa te>   638      </xsl:c all-templa te>
626     </xsl:va riable>   639     </xsl:va riable>
627     <xsl:var iable name ="VarPath"  select="w wfilesyste m:Combine( $VarTables DirectoryP ath, $VarV alidPath)"  />   640     <xsl:var iable name ="VarPath"  select="w wfilesyste m:Combine( $VarTables DirectoryP ath, $VarV alidPath)"  />
628     641  
629     <xsl:val ue-of sele ct="$VarPa th" />   642     <xsl:val ue-of sele ct="$VarPa th" />
630    </xsl:tem plate>   643    </xsl:tem plate>
631   </xsl:styl esheet>   644   </xsl:styl esheet>