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

29.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\common\splits names.xsl Wed Jul 2 00:02:30 2008 UTC
2 C:\Documents and Settings\lauren\Desktop\ww-version-snapshots\ww-version-snapshots\2008.3\WebWorks\ePublisher Pro\Formats\Shared\common\splits names.xsl Mon Oct 13 05:52:02 2008 UTC

29.2 Comparison summary

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

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

29.4 Active regular expressions

No regular expressions were active.

29.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 ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Graphic' , $VarFram e/wwdoc:Fr ame/@style name, $Var Split/@doc umentID, $ VarFrame/w wdoc:Frame /@id)" />   192                <xsl:var iable name ="VarConte xtRule" se lect="wwpr ojext:GetC ontextRule ('Graphic' , $VarFram e/wwdoc:Fr ame/@style name, $Var Split/@doc umentID, $ VarFrame/w wdoc: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 ="$VarCont extRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'generate -output']/ @Value" />   196                <xsl:var iable name ="VarGraph icGenerate OutputOpti on" select ="$VarCont extRule/ww project:Op tions/wwpr oject:Opti on[@Name =  'generate -output']/ @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="$VarC ontextRule " />   246                     <xs l:with-par am name="P aramContex tRule" sel ect="$VarC ontextRule " />
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 arContextR ule" />   268                     <xs l:with-par am name="P aramRule"  select="$V arContextR ule" />
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=" $VarContex tRule/wwpr oject:Opti ons/wwproj ect:Option [@Name = ' thumbnail- page-rule' ]/@Value"  />   304                  <xsl:v ariable na me="VarThu mbnailPage RuleOption " select=" $VarContex tRule/wwpr oject:Opti ons/wwproj ect:Option [@Name = ' thumbnail- page-rule' ]/@Value"  />
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 -->
        341               <!--                        -->
        342               <xsl:vari able name= "VarTables " select=" $VarSplit/ wwsplits:T ables/wwsp lits:Table " />
        343               <xsl:for- each selec t="$VarTab les">
        344                <xsl:var iable name ="VarTable " select=" ." />
        345  
        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">
        348                 <xsl:va lue-of sel ect="$VarD ocumentBas eName" />
        349                 <xsl:te xt>-</xsl: text>
        350                 <xsl:va lue-of sel ect="$VarT able/@id"  />
        351                 <xsl:va lue-of sel ect="$Para meterDefau ltPageExte nsion" />
        352                </xsl:va riable>
        353                <xsl:var iable name ="VarTable Path">
        354                 <xsl:ca ll-templat e name="Ta blePath">
        355                  <xsl:w ith-param  name="Para mSplit" se lect="$Var Split" />
        356                  <xsl:w ith-param  name="Para mTable" se lect="$Var Table" />
        357                  <xsl:w ith-param  name="Para mRule" sel ect="$VarP ageRule" / >
        358                 </xsl:c all-templa te>
        359                </xsl:va riable>
        360  
        361                <wwsplit s:Table>
        362                 <xsl:co py-of sele ct="$VarTa ble/@*" />
        363  
        364                 <xsl:at tribute na me="path">
        365                  <xsl:v alue-of se lect="$Var TablePath"  />
        366                 </xsl:a ttribute>
        367                </wwspli ts:Table>
        368               </xsl:for -each>
        369  
340               <!-- Copy  over any  popups -->   370               <!-- Copy  over any  popups -->
341               <!--                        -->   371               <!--                        -->
342               <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 " />
343               <xsl:for- each selec t="$VarPop ups">   373               <xsl:for- each selec t="$VarPop ups">
344                <xsl:var iable name ="VarPopup " select=" ." />   374                <xsl:var iable name ="VarPopup " select=" ." />
345     375  
346                <xsl:var iable name ="VarDocum entBaseNam e" select= "wwfilesys tem:GetFil eNameWitho utExtensio n($VarSpli t/wwsplits :Document/ @path)" />   376                <xsl:var iable name ="VarDocum entBaseNam e" select= "wwfilesys tem:GetFil eNameWitho utExtensio n($VarSpli t/wwsplits :Document/ @path)" />
347                <xsl:var iable name ="VarPopup FileName">   377                <xsl:var iable name ="VarPopup FileName">
348                 <xsl:va lue-of sel ect="$VarD ocumentBas eName" />   378                 <xsl:va lue-of sel ect="$VarD ocumentBas eName" />
349                 <xsl:te xt>-</xsl: text>   379                 <xsl:te xt>-</xsl: text>
350                 <xsl:va lue-of sel ect="$VarP opup/@id"  />   380                 <xsl:va lue-of sel ect="$VarP opup/@id"  />
351                 <xsl:va lue-of sel ect="$Para meterDefau ltPageExte nsion" />   381                 <xsl:va lue-of sel ect="$Para meterDefau ltPageExte nsion" />
352                </xsl:va riable>   382                </xsl:va riable>
353                <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)" / >   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)" / >
354     384  
355                <wwsplit s:Popup>   385                <wwsplit s:Popup>
356                 <xsl:co py-of sele ct="$VarPo pup/@*" />   386                 <xsl:co py-of sele ct="$VarPo pup/@*" />
357     387  
358                 <xsl:at tribute na me="path">   388                 <xsl:at tribute na me="path">
359                  <xsl:v alue-of se lect="$Var PopupPath"  />   389                  <xsl:v alue-of se lect="$Var PopupPath"  />
360                 </xsl:a ttribute>   390                 </xsl:a ttribute>
361                </wwspli ts:Popup>   391                </wwspli ts:Popup>
362               </xsl:for -each>   392               </xsl:for -each>
363              </wwsplits :Split>   393              </wwsplits :Split>
364            < /xsl:if>   394            < /xsl:if>
365           </ xsl:for-ea ch>   395           </ xsl:for-ea ch>
366          </x sl:for-eac h>   396          </x sl:for-eac h>
367         </xs l:for-each >   397         </xs l:for-each >
368        </xsl :for-each>   398        </xsl :for-each>
369       </xsl: for-each>   399       </xsl: for-each>
370     400  
371      </wwspl its:Splits >   401      </wwspl its:Splits >
372     </xsl:fo r-each>   402     </xsl:fo r-each>
373    </xsl:tem plate>   403    </xsl:tem plate>
374     404  
375     405  
376    <xsl:temp late name= "StyleName ">   406    <xsl:temp late name= "StyleName ">
377     <xsl:par am name="P aramStyleN ode" />   407     <xsl:par am name="P aramStyleN ode" />
378     408  
379     <xsl:cho ose>   409     <xsl:cho ose>
380      <xsl:wh en test="c ount($Para mStyleNode [1]) = 1">   410      <xsl:wh en test="c ount($Para mStyleNode [1]) = 1">
381       <!-- U se request ed style - ->   411       <!-- U se request ed style - ->
382       <!--                       - ->   412       <!--                       - ->
383       <xsl:v alue-of se lect="$Par amStyleNod e/@value"  />   413       <xsl:v alue-of se lect="$Par amStyleNod e/@value"  />
384      </xsl:w hen>   414      </xsl:w hen>
385     415  
386      <xsl:ot herwise>   416      <xsl:ot herwise>
387       <!-- F orce defau lt rule -- >   417       <!-- F orce defau lt rule -- >
388       <!--                      -- >   418       <!--                      -- >
389       <xsl:v alue-of se lect="''"  />   419       <xsl:v alue-of se lect="''"  />
390      </xsl:o therwise>   420      </xsl:o therwise>
391     </xsl:ch oose>   421     </xsl:ch oose>
392    </xsl:tem plate>   422    </xsl:tem plate>
393     423  
394     424  
395    <xsl:temp late name= "Make-Vali d-Path">   425    <xsl:temp late name= "Make-Vali d-Path">
396     <xsl:par am name="P aramPath"  select="."  />   426     <xsl:par am name="P aramPath"  select="."  />
397     427  
398     <xsl:var iable name ="VarPath"  select="t ranslate($ ParamPath,  '\', '/') " />   428     <xsl:var iable name ="VarPath"  select="t ranslate($ ParamPath,  '\', '/') " />
399     <xsl:cal l-template  name="Mak e-Valid-Pa th-Entries ">   429     <xsl:cal l-template  name="Mak e-Valid-Pa th-Entries ">
400      <xsl:wi th-param n ame="Param Path" sele ct="$VarPa th" />   430      <xsl:wi th-param n ame="Param Path" sele ct="$VarPa th" />
401     </xsl:ca ll-templat e>   431     </xsl:ca ll-templat e>
402    </xsl:tem plate>   432    </xsl:tem plate>
403     433  
404     434  
405    <xsl:temp late name= "Make-Vali d-Path-Ent ries">   435    <xsl:temp late name= "Make-Vali d-Path-Ent ries">
406     <xsl:par am name="P aramPath"  select="."  />   436     <xsl:par am name="P aramPath"  select="."  />
407     437  
408     <xsl:cho ose>   438     <xsl:cho ose>
409      <!-- Mu ltiple pat h entries  exist? -->   439      <!-- Mu ltiple pat h entries  exist? -->
410      <!--                                 -->   440      <!--                                 -->
411      <xsl:wh en test="c ontains($P aramPath,  '/')">   441      <xsl:wh en test="c ontains($P aramPath,  '/')">
412       <xsl:v ariable na me="VarPre fix" selec t="substri ng-before( $ParamPath , '/')" />   442       <xsl:v ariable na me="VarPre fix" selec t="substri ng-before( $ParamPath , '/')" />
413       <xsl:v ariable na me="VarSuf fix" selec t="substri ng-after($ ParamPath,  '/')" />   443       <xsl:v ariable na me="VarSuf fix" selec t="substri ng-after($ ParamPath,  '/')" />
414     444  
415       <xsl:v ariable na me="VarPat hRemainder ">   445       <xsl:v ariable na me="VarPat hRemainder ">
416        <xsl: call-templ ate name=" Make-Valid -Path-Entr ies">   446        <xsl: call-templ ate name=" Make-Valid -Path-Entr ies">
417         <xsl :with-para m name="Pa ramPath" s elect="$Va rSuffix" / >   447         <xsl :with-para m name="Pa ramPath" s elect="$Va rSuffix" / >
418        </xsl :call-temp late>   448        </xsl :call-temp late>
419       </xsl: variable>   449       </xsl: variable>
420     450  
421       <xsl:c hoose>   451       <xsl:c hoose>
422        <xsl: when test= "(string-l ength($Var Prefix) &g t; 0) and  (string-le ngth($VarP athRemaind er) &gt; 0 )">   452        <xsl: when test= "(string-l ength($Var Prefix) &g t; 0) and  (string-le ngth($VarP athRemaind er) &gt; 0 )">
423         <xsl :value-of  select="ww filesystem :Combine($ VarPrefix,  $VarPathR emainder)"  />   453         <xsl :value-of  select="ww filesystem :Combine($ VarPrefix,  $VarPathR emainder)"  />
424        </xsl :when>   454        </xsl :when>
425     455  
426        <xsl: when test= "(string-l ength($Var Prefix) &g t; 0) and  (string-le ngth($VarP athRemaind er) = 0)">   456        <xsl: when test= "(string-l ength($Var Prefix) &g t; 0) and  (string-le ngth($VarP athRemaind er) = 0)">
427         <xsl :value-of  select="ww filesystem :MakeValid FileName($ VarPrefix) " />   457         <xsl :value-of  select="ww filesystem :MakeValid FileName($ VarPrefix) " />
428        </xsl :when>   458        </xsl :when>
429     459  
430        <xsl: when test= "(string-l ength($Var Prefix) =  0) and (st ring-lengt h($VarPath Remainder)  &gt; 0)">   460        <xsl: when test= "(string-l ength($Var Prefix) =  0) and (st ring-lengt h($VarPath Remainder)  &gt; 0)">
431         <xsl :value-of  select="$V arPathRema inder" />   461         <xsl :value-of  select="$V arPathRema inder" />
432        </xsl :when>   462        </xsl :when>
433       </xsl: choose>   463       </xsl: choose>
434      </xsl:w hen>   464      </xsl:w hen>
435     465  
436      <!-- Si ngle path  entry -->   466      <!-- Si ngle path  entry -->
437      <!--                     -->   467      <!--                     -->
438      <xsl:ot herwise>   468      <xsl:ot herwise>
439       <xsl:v alue-of se lect="wwfi lesystem:M akeValidFi leName($Pa ramPath)"  />   469       <xsl:v alue-of se lect="wwfi lesystem:M akeValidFi leName($Pa ramPath)"  />
440      </xsl:o therwise>   470      </xsl:o therwise>
441     </xsl:ch oose>   471     </xsl:ch oose>
442    </xsl:tem plate>   472    </xsl:tem plate>
443     473  
444     474  
445    <xsl:temp late name= "SplitPath ">   475    <xsl:temp late name= "SplitPath ">
446     <xsl:par am name="P aramSplit"  />   476     <xsl:par am name="P aramSplit"  />
447     <xsl:par am name="P aramRule"  />   477     <xsl:par am name="P aramRule"  />
448     478  
449     <!-- Gat her file n aming info  -->   479     <!-- Gat her file n aming info  -->
450     <!--                            -->   480     <!--                            -->
451     <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))" />   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))" />
452     <xsl:var iable name ="VarBaseF ileName">   482     <xsl:var iable name ="VarBaseF ileName">
453      <xsl:va riable nam e="VarFile NameHint"  select="$P aramSplit/ wwsplits:F ileName/@v alue" />   483      <xsl:va riable nam e="VarFile NameHint"  select="$P aramSplit/ wwsplits:F ileName/@v alue" />
454      <xsl:ch oose>   484      <xsl:ch oose>
455       <xsl:w hen test=" string-len gth($VarFi leNameHint ) &gt; 0">   485       <xsl:w hen test=" string-len gth($VarFi leNameHint ) &gt; 0">
456        <xsl: value-of s elect="$Va rFileNameH int" />   486        <xsl: value-of s elect="$Va rFileNameH int" />
457       </xsl: when>   487       </xsl: when>
458     488  
459       <!-- U se origina l document  name if t his docume nt does no t split -- >   489       <!-- U se origina l document  name if t his docume nt does no t split -- >
460       <!--                                                                  -- >   490       <!--                                                                  -- >
461       <xsl:w hen test=" ($ParamSpl it/@positi on = 1) an d (count($ ParamSplit /following -sibling:: wwsplits:S plit[@docu mentID = $ ParamSplit /@document ID]) = 0)" >   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)" >
462        <xsl: value-of s elect="wwf ilesystem: GetFileNam eWithoutEx tension($P aramSplit/ wwsplits:D ocument/@p ath)" />   492        <xsl: value-of s elect="wwf ilesystem: GetFileNam eWithoutEx tension($P aramSplit/ wwsplits:D ocument/@p ath)" />
463       </xsl: when>   493       </xsl: when>
464     494  
465       <xsl:o therwise>   495       <xsl:o therwise>
466        <xsl: value-of s elect="wwf ilesystem: GetFileNam eWithoutEx tension($P aramSplit/ wwsplits:D ocument/@p ath)" />   496        <xsl: value-of s elect="wwf ilesystem: GetFileNam eWithoutEx tension($P aramSplit/ wwsplits:D ocument/@p ath)" />
467        <xsl: text>.</xs l:text>   497        <xsl: text>.</xs l:text>
468        <xsl: value-of s elect="$Pa ramSplit/w wsplits:Do cument/@po sition" />   498        <xsl: value-of s elect="$Pa ramSplit/w wsplits:Do cument/@po sition" />
469        <xsl: text>.</xs l:text>   499        <xsl: text>.</xs l:text>
470        <xsl: value-of s elect="$Pa ramSplit/@ position"  />   500        <xsl: value-of s elect="$Pa ramSplit/@ position"  />
471       </xsl: otherwise>   501       </xsl: otherwise>
472      </xsl:c hoose>   502      </xsl:c hoose>
473     </xsl:va riable>   503     </xsl:va riable>
474     <xsl:var iable name ="VarExten sionOption " select=" $ParamRule /wwproject :Options/w wproject:O ption[@Nam e = 'file- extension' ]/@Value"  />   504     <xsl:var iable name ="VarExten sionOption " select=" $ParamRule /wwproject :Options/w wproject:O ption[@Nam e = 'file- extension' ]/@Value"  />
475     <xsl:var iable name ="VarExten sion">   505     <xsl:var iable name ="VarExten sion">
476      <xsl:ch oose>   506      <xsl:ch oose>
477       <xsl:w hen test=" string-len gth($VarEx tensionOpt ion) &gt;  0">   507       <xsl:w hen test=" string-len gth($VarEx tensionOpt ion) &gt;  0">
478        <xsl: value-of s elect="$Va rExtension Option" />   508        <xsl: value-of s elect="$Va rExtension Option" />
479       </xsl: when>   509       </xsl: when>
480     510  
481       <xsl:o therwise>   511       <xsl:o therwise>
482        <xsl: value-of s elect="$Pa rameterDef aultPageEx tension" / >   512        <xsl: value-of s elect="$Pa rameterDef aultPageEx tension" / >
483       </xsl: otherwise>   513       </xsl: otherwise>
484      </xsl:c hoose>   514      </xsl:c hoose>
485     </xsl:va riable>   515     </xsl:va riable>
486     516  
487     <xsl:var iable name ="VarName" >   517     <xsl:var iable name ="VarName" >
488      <xsl:va lue-of sel ect="$VarB aseFileNam e" />   518      <xsl:va lue-of sel ect="$VarB aseFileNam e" />
489      <xsl:va lue-of sel ect="$VarE xtension"  />   519      <xsl:va lue-of sel ect="$VarE xtension"  />
490     </xsl:va riable>   520     </xsl:va riable>
491     <xsl:var iable name ="VarValid Path">   521     <xsl:var iable name ="VarValid Path">
492      <xsl:ca ll-templat e name="Ma ke-Valid-P ath">   522      <xsl:ca ll-templat e name="Ma ke-Valid-P ath">
493       <xsl:w ith-param  name="Para mPath" sel ect="$VarN ame" />   523       <xsl:w ith-param  name="Para mPath" sel ect="$VarN ame" />
494      </xsl:c all-templa te>   524      </xsl:c all-templa te>
495     </xsl:va riable>   525     </xsl:va riable>
496     <xsl:var iable name ="VarPath"  select="w wfilesyste m:Combine( $VarOutput DirectoryP ath, $VarV alidPath)"  />   526     <xsl:var iable name ="VarPath"  select="w wfilesyste m:Combine( $VarOutput DirectoryP ath, $VarV alidPath)"  />
497     527  
498     <xsl:val ue-of sele ct="$VarPa th" />   528     <xsl:val ue-of sele ct="$VarPa th" />
499    </xsl:tem plate>   529    </xsl:tem plate>
500     530  
501     531  
502    <xsl:temp late name= "FramePath ">   532    <xsl:temp late name= "FramePath ">
503     <xsl:par am name="P aramSplit"  />   533     <xsl:par am name="P aramSplit"  />
504     <xsl:par am name="P aramFrame"  />   534     <xsl:par am name="P aramFrame"  />
505     <xsl:par am name="P aramRule"  />   535     <xsl:par am name="P aramRule"  />
506     536  
507     <!-- Gat her file n aming info  -->   537     <!-- Gat her file n aming info  -->
508     <!--                            -->   538     <!--                            -->
509     <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))" />   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))" />
510     <xsl:var iable name ="VarImage sDirectory Path" sele ct="wwfile system:Com bine($VarO utputDirec toryPath,  'images')"  />   540     <xsl:var iable name ="VarImage sDirectory Path" sele ct="wwfile system:Com bine($VarO utputDirec toryPath,  'images')"  />
511     <xsl:var iable name ="VarBaseF ileName">   541     <xsl:var iable name ="VarBaseF ileName">
512      <xsl:va riable nam e="VarFile NameHint"  select="$P aramFrame/ wwsplits:F ileName/@v alue" />   542      <xsl:va riable nam e="VarFile NameHint"  select="$P aramFrame/ wwsplits:F ileName/@v alue" />
513      <xsl:ch oose>   543      <xsl:ch oose>
514       <xsl:w hen test=" string-len gth($VarFi leNameHint ) &gt; 0">   544       <xsl:w hen test=" string-len gth($VarFi leNameHint ) &gt; 0">
515        <xsl: value-of s elect="$Va rFileNameH int" />   545        <xsl: value-of s elect="$Va rFileNameH int" />
516       </xsl: when>   546       </xsl: when>
517     547  
518       <xsl:o therwise>   548       <xsl:o therwise>
519        <xsl: value-of s elect="wwf ilesystem: GetFileNam eWithoutEx tension($P aramSplit/ wwsplits:D ocument/@p ath)" />   549        <xsl: value-of s elect="wwf ilesystem: GetFileNam eWithoutEx tension($P aramSplit/ wwsplits:D ocument/@p ath)" />
520        <xsl: text>.</xs l:text>   550        <xsl: text>.</xs l:text>
521        <xsl: value-of s elect="$Pa ramSplit/w wsplits:Do cument/@po sition" />   551        <xsl: value-of s elect="$Pa ramSplit/w wsplits:Do cument/@po sition" />
522        <xsl: text>.</xs l:text>   552        <xsl: text>.</xs l:text>
523        <xsl: value-of s elect="$Pa ramSplit/@ position"  />   553        <xsl: value-of s elect="$Pa ramSplit/@ position"  />
524        <xsl: text>.</xs l:text>   554        <xsl: text>.</xs l:text>
525        <xsl: value-of s elect="$Pa ramFrame/@ position"  />   555        <xsl: value-of s elect="$Pa ramFrame/@ position"  />
526       </xsl: otherwise>   556       </xsl: otherwise>
527      </xsl:c hoose>   557      </xsl:c hoose>
528     </xsl:va riable>   558     </xsl:va riable>
529     <xsl:var iable name ="VarExten sionOption " select=" $ParamRule /wwproject :Options/w wproject:O ption[@Nam e = 'file- extension' ]/@Value"  />   559     <xsl:var iable name ="VarExten sionOption " select=" $ParamRule /wwproject :Options/w wproject:O ption[@Nam e = 'file- extension' ]/@Value"  />
530     <xsl:var iable name ="VarExten sion">   560     <xsl:var iable name ="VarExten sion">
531      <xsl:ch oose>   561      <xsl:ch oose>
532       <xsl:w hen test=" string-len gth($VarEx tensionOpt ion) &gt;  0">   562       <xsl:w hen test=" string-len gth($VarEx tensionOpt ion) &gt;  0">
533        <xsl: value-of s elect="$Va rExtension Option" />   563        <xsl: value-of s elect="$Va rExtension Option" />
534       </xsl: when>   564       </xsl: when>
535     565  
536       <xsl:o therwise>   566       <xsl:o therwise>
537        <xsl: value-of s elect="$Pa rameterDef aultGraphi cExtension " />   567        <xsl: value-of s elect="$Pa rameterDef aultGraphi cExtension " />
538       </xsl: otherwise>   568       </xsl: otherwise>
539      </xsl:c hoose>   569      </xsl:c hoose>
540     </xsl:va riable>   570     </xsl:va riable>
541     571  
542     <xsl:var iable name ="VarName" >   572     <xsl:var iable name ="VarName" >
543      <xsl:va lue-of sel ect="$VarB aseFileNam e" />   573      <xsl:va lue-of sel ect="$VarB aseFileNam e" />
544      <xsl:va lue-of sel ect="$VarE xtension"  />   574      <xsl:va lue-of sel ect="$VarE xtension"  />
545     </xsl:va riable>   575     </xsl:va riable>
546     <xsl:var iable name ="VarValid Path">   576     <xsl:var iable name ="VarValid Path">
547      <xsl:ca ll-templat e name="Ma ke-Valid-P ath">   577      <xsl:ca ll-templat e name="Ma ke-Valid-P ath">
548       <xsl:w ith-param  name="Para mPath" sel ect="$VarN ame" />   578       <xsl:w ith-param  name="Para mPath" sel ect="$VarN ame" />
549      </xsl:c all-templa te>   579      </xsl:c all-templa te>
550     </xsl:va riable>   580     </xsl:va riable>
551     <xsl:var iable name ="VarPath"  select="w wfilesyste m:Combine( $VarImages DirectoryP ath, $VarV alidPath)"  />   581     <xsl:var iable name ="VarPath"  select="w wfilesyste m:Combine( $VarImages DirectoryP ath, $VarV alidPath)"  />
552     582  
553     <xsl:val ue-of sele ct="$VarPa th" />   583     <xsl:val ue-of sele ct="$VarPa th" />
554    </xsl:tem plate>   584    </xsl:tem plate>
        585  
        586  
        587    <xsl:temp late name= "TablePath ">
        588     <xsl:par am name="P aramSplit"  />
        589     <xsl:par am name="P aramTable"  />
        590     <xsl:par am name="P aramRule"  />
        591    
        592     <!-- Gat her file n aming info  -->
        593     <!--                            -->
        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))" />
        595     <xsl:var iable name ="VarTable sDirectory Path" sele ct="wwfile system:Com bine($VarO utputDirec toryPath,  'tables')"  />
        596     <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)" />
        598      <xsl:te xt>.</xsl: text>
        599      <xsl:va lue-of sel ect="$Para mSplit/wws plits:Docu ment/@posi tion" />
        600      <xsl:te xt>.</xsl: text>
        601      <xsl:va lue-of sel ect="$Para mSplit/@po sition" />
        602      <xsl:te xt>.</xsl: text>
        603      <xsl:va lue-of sel ect="$Para mTable/@po sition" />
        604     </xsl:va riable>
        605     <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">
        607      <xsl:ch oose>
        608       <xsl:w hen test=" string-len gth($VarEx tensionOpt ion) &gt;  0">
        609        <xsl: value-of s elect="$Va rExtension Option" />
        610       </xsl: when>
        611  
        612       <xsl:o therwise>
        613        <xsl: value-of s elect="$Pa rameterDef aultPageEx tension" / >
        614       </xsl: otherwise>
        615      </xsl:c hoose>
        616     </xsl:va riable>
        617  
        618     <xsl:var iable name ="VarName" >
        619      <xsl:va lue-of sel ect="$VarB aseFileNam e" />
        620      <xsl:va lue-of sel ect="$VarE xtension"  />
        621     </xsl:va riable>
        622     <xsl:var iable name ="VarValid Path">
        623      <xsl:ca ll-templat e name="Ma ke-Valid-P ath">
        624       <xsl:w ith-param  name="Para mPath" sel ect="$VarN ame" />
        625      </xsl:c all-templa te>
        626     </xsl:va riable>
        627     <xsl:var iable name ="VarPath"  select="w wfilesyste m:Combine( $VarTables DirectoryP ath, $VarV alidPath)"  />
        628  
        629     <xsl:val ue-of sele ct="$VarPa th" />
        630    </xsl:tem plate>
555   </xsl:styl esheet>   631   </xsl:styl esheet>