Produced by Araxis Merge on Thu Oct 16 22:30:06 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.
# | Location | File | Last Modified |
---|---|---|---|
1 | Thu Oct 16 22:30:06 2008 UTC | ||
2 | C:\Documents and Settings\lauren\Desktop\ww-version-snapshots\ww-version-snapshots\2008.3\WebWorks\ePublisher Pro\Formats\Wiki - MediaWiki\Transforms | files.xsl | Mon Oct 13 05:52:00 2008 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 0 | 0 |
Changed | 0 | 0 |
Inserted | 1 | 416 |
Removed | 0 | 0 |
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 |
No regular expressions were active.
1 | <?xml vers ion="1.0" encoding=" UTF-8"?> | |||||
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" | |||||
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" | |||||
6 | xmlns:wwto c="urn:Web Works-Engi ne-TOC-Sch ema" | |||||
7 | xmlns:wwli nks="urn:W ebWorks-En gine-Links -Schema" | |||||
8 | xmlns:wwmo de="urn:We bWorks-Eng ine-Mode" | |||||
9 | xmlns:wwfi les="urn:W ebWorks-En gine-Files -Schema" | |||||
10 | xmlns:wwdo c="urn:Web Works-Docu ment-Schem a" | |||||
11 | xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject" | |||||
12 | xmlns:wwba ggage="urn :WebWorks- Baggage-Sc hema" | |||||
13 | xmlns:wwpa ge="urn:We bWorks-Pag e-Template -Schema" | |||||
14 | xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma" | |||||
15 | xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress" | |||||
16 | xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log" | |||||
17 | xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem" | |||||
18 | xmlns:wwur i="urn:Web Works-XSLT -Extension -URI" | |||||
19 | xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities" | |||||
20 | xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s" | |||||
21 | xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct" | |||||
22 | xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent" | |||||
23 | xmlns:wwmu ltisere="u rn:WebWork s-XSLT-Ext ension-Mul tiSearchRe place" | |||||
24 | exclude-re sult-prefi xes="xsl m sxsl wwtoc wwlinks w wmode wwfi les wwdoc wwsplits w wproject w wbaggage w wpage wwlo cale wwpro gress wwlo g wwfilesy stem wwuri wwstring wwfilesext wwprojext wwexsldoc wwmultise re" | |||||
25 | > | |||||
26 | <xsl:para m name="Gl obalInput" /> | |||||
27 | <xsl:para m name="Gl obalPipeli neName" /> | |||||
28 | <xsl:para m name="Gl obalProjec t" /> | |||||
29 | <xsl:para m name="Gl obalFiles" /> | |||||
30 | <xsl:para m name="Pa rameterDep endsType" /> | |||||
31 | <xsl:para m name="Pa rameterTyp e" /> | |||||
32 | <xsl:para m name="Pa rameterDoc umentType" /> | |||||
33 | <xsl:para m name="Pa rameterBag gageType" /> | |||||
34 | <xsl:para m name="Pa rameterLoc aleType" / > | |||||
35 | <xsl:para m name="Pa rameterPag eTemplateU RI" /> | |||||
36 | <xsl:para m name="Pa rameterCop ySplitFile Type" /> | |||||
37 | <xsl:para m name="Pa rameterBag gageSplitF ileType" / > | |||||
38 | <xsl:para m name="Pa rameterTOC SplitFileT ype" /> | |||||
39 | <xsl:para m name="Pa rameterInd exSplitFil eType" /> | |||||
40 | ||||||
41 | ||||||
42 | <xsl:outp ut encodin g="UTF-8" indent="ye s" /> | |||||
43 | <xsl:name space-alia s styleshe et-prefix= "wwsplits" result-pr efix="#def ault" /> | |||||
44 | <xsl:stri p-space el ements="*" /> | |||||
45 | ||||||
46 | ||||||
47 | <xsl:incl ude href=" wwtransfor m:common/f iles/filte r.xsl" /> | |||||
48 | <xsl:incl ude href=" wwtransfor m:common/f iles/forma t.xsl" /> | |||||
49 | <xsl:incl ude href=" wwtransfor m:common/p ages/paget emplate.xs l" /> | |||||
50 | <xsl:incl ude href=" wwformat:T ransforms/ mediawiki. xsl" /> | |||||
51 | ||||||
52 | ||||||
53 | <xsl:key name="wwfi les-files- by-type" m atch="wwfi les:File" use="@type " /> | |||||
54 | <xsl:key name="wwfi les-files- by-groupid -type" mat ch="wwfile s:File" us e="concat( @groupID, ':', @type )" /> | |||||
55 | <xsl:key name="wwpr oject-grou p-by-group id" match= "wwproject :Group" us e="@GroupI D" /> | |||||
56 | ||||||
57 | ||||||
58 | <xsl:vari able name= "GlobalAct ionChecksu m"> | |||||
59 | <xsl:var iable name ="VarTrans formChecks ums"> | |||||
60 | <xsl:va lue-of sel ect="conca t(wwuri:As FilePath(' wwtransfor m:self'), ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: self')))" /> | |||||
61 | <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath($Param eterPageTe mplateURI) , ':', wwf ilesystem: GetChecksu m(wwuri:As FilePath($ ParameterP ageTemplat eURI)))" / > | |||||
62 | <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/files/ filter.xsl '), ':', w wfilesyste m:GetCheck sum(wwuri: AsFilePath ('wwtransf orm:common /files/fil ter.xsl')) )" /> | |||||
63 | <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/files/ format.xsl '), ':', w wfilesyste m:GetCheck sum(wwuri: AsFilePath ('wwtransf orm:common /files/for mat.xsl')) )" /> | |||||
64 | <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwtra nsform:com mon/pages/ pagetempla te.xsl'), ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: common/pag es/pagetem plate.xsl' )))" /> | |||||
65 | <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwfor mat:Transf orms/media wiki.xsl') , ':', wwf ilesystem: GetChecksu m(wwuri:As FilePath(' wwformat:T ransforms/ mediawiki. xsl')))" / > | |||||
66 | </xsl:va riable> | |||||
67 | <xsl:val ue-of sele ct="wwstri ng:MD5Chec ksum($VarT ransformCh ecksums)" /> | |||||
68 | </xsl:var iable> | |||||
69 | ||||||
70 | ||||||
71 | <!-- Page Template --> | |||||
72 | <!-- --> | |||||
73 | <xsl:vari able name= "GlobalPag eTemplateP ath" selec t="wwuri:A sFilePath( $Parameter PageTempla teURI)" /> | |||||
74 | <xsl:vari able name= "GlobalPag eTemplate" select="w wexsldoc:L oadXMLWith outResolve r($GlobalP ageTemplat ePath)" /> | |||||
75 | ||||||
76 | ||||||
77 | <xsl:temp late match ="/"> | |||||
78 | <wwfiles :Files ver sion="1.0" > | |||||
79 | ||||||
80 | <!-- It erate inpu t document s --> | |||||
81 | <!-- --> | |||||
82 | <xsl:fo r-each sel ect="$Glob alFiles[1] "> | |||||
83 | <xsl:v ariable na me="VarFil esByType" select="ke y('wwfiles -files-by- type', $Pa rameterDep endsType)" /> | |||||
84 | ||||||
85 | <xsl:v alue-of se lect="wwpr ogress:Sta rt(count($ VarFilesBy Type))" /> | |||||
86 | ||||||
87 | <!-- L oad locale --> | |||||
88 | <!-- --> | |||||
89 | <xsl:v ariable na me="VarFil esLocale" select="ke y('wwfiles -files-by- type', $Pa rameterLoc aleType)" /> | |||||
90 | <xsl:v ariable na me="VarLoc ale" selec t="wwexsld oc:LoadXML WithoutRes olver($Var FilesLocal e/@path)" /> | |||||
91 | ||||||
92 | <xsl:f or-each se lect="$Var FilesByTyp e"> | |||||
93 | <xsl: value-of s elect="wwp rogress:St art(1)" /> | |||||
94 | ||||||
95 | <xsl: variable n ame="VarFi lesDocumen t" select= "." /> | |||||
96 | ||||||
97 | <xsl: variable n ame="VarPa th" select ="wwfilesy stem:Combi ne(wwfiles ystem:GetD irectoryNa me($VarFil esDocument /@path), c oncat(tran slate($Par ameterType , ':', '_' ),'.xml')) " /> | |||||
98 | ||||||
99 | <!-- Get format files --> | |||||
100 | <!-- --> | |||||
101 | <xsl: variable n ame="VarFo rmatFilesA sXML"> | |||||
102 | <xsl :call-temp late name= "Files-For mat-GetRel ativeFiles "> | |||||
103 | <xs l:with-par am name="P aramRelati veURIPath" select="' Files'" /> | |||||
104 | </xs l:call-tem plate> | |||||
105 | </xsl :variable> | |||||
106 | <xsl: variable n ame="VarFo rmatFiles" select="m sxsl:node- set($VarFo rmatFilesA sXML)" /> | |||||
107 | <xsl: variable n ame="VarFo rmatFilesP aths"> | |||||
108 | <xsl :for-each select="$V arFormatFi les/wwfile s:Files/ww files:File "> | |||||
109 | <xs l:value-of select="@ path" /> | |||||
110 | <xs l:value-of select="' :'" /> | |||||
111 | </xs l:for-each > | |||||
112 | </xsl :variable> | |||||
113 | <xsl: variable n ame="VarFo rmatFilesC hecksum" s elect="wws tring:MD5C hecksum($V arFormatFi lesPaths)" /> | |||||
114 | ||||||
115 | <!-- Get page t emplate fi les --> | |||||
116 | <!-- --> | |||||
117 | <xsl: variable n ame="VarPa geTemplate FilesAsXML "> | |||||
118 | <xsl :apply-tem plates sel ect="$Glob alPageTemp late" mode ="wwmode:p agetemplat e-files" / > | |||||
119 | </xsl :variable> | |||||
120 | <xsl: variable n ame="VarPa geTemplate Files" sel ect="msxsl :node-set( $VarPageTe mplateFile sAsXML)" / > | |||||
121 | <xsl: variable n ame="VarPa geTemplate FilesPaths "> | |||||
122 | <xsl :for-each select="$V arPageTemp lateFiles/ wwpage:Fil e"> | |||||
123 | <xs l:value-of select="@ path" /> | |||||
124 | <xs l:value-of select="' :'" /> | |||||
125 | </xs l:for-each > | |||||
126 | </xsl :variable> | |||||
127 | <xsl: variable n ame="VarPa geTemplate FilesCheck sum" selec t="wwstrin g:MD5Check sum($VarPa geTemplate FilesPaths )" /> | |||||
128 | ||||||
129 | <!-- Get projec t files -- > | |||||
130 | <!-- -- > | |||||
131 | <xsl: variable n ame="VarPr ojectFiles " select=" wwfilesyst em:GetFile s(wwprojex t:GetProje ctFilesDir ectoryPath ())" /> | |||||
132 | <xsl: variable n ame="VarPr ojectFiles Paths"> | |||||
133 | <xsl :for-each select="$V arProjectF iles/wwfil es:Files/w wfiles:Fil e"> | |||||
134 | <xs l:value-of select="@ path" /> | |||||
135 | <xs l:value-of select="' :'" /> | |||||
136 | </xs l:for-each > | |||||
137 | </xsl :variable> | |||||
138 | <xsl: variable n ame="VarPr ojectFiles Checksum" select="ww string:MD5 Checksum($ VarProject FilesPaths )" /> | |||||
139 | ||||||
140 | <!-- Get baggag e files -- > | |||||
141 | <!-- -- > | |||||
142 | <xsl: variable n ame="VarBa ggageFiles File" sele ct="key('w wfiles-fil es-by-grou pid-type', concat($V arFilesDoc ument/@gro upID, ':', $Paramete rBaggageTy pe))[1]" / > | |||||
143 | ||||||
144 | <!-- Determine group name --> | |||||
145 | <!-- --> | |||||
146 | <xsl: variable n ame="VarGr oupName"> | |||||
147 | <xsl :for-each select="$G lobalProje ct[1]"> | |||||
148 | <xs l:value-of select="k ey('wwproj ect-group- by-groupid ', $VarFil esDocument /@groupID) /@Name" /> | |||||
149 | </xs l:for-each > | |||||
150 | </xsl :variable> | |||||
151 | ||||||
152 | <!-- Determine group outp ut directo ry path -- > | |||||
153 | <!-- -- > | |||||
154 | <xsl: variable n ame="VarGr oupOutputD irectoryPa th" select ="wwfilesy stem:Combi ne(wwproje xt:GetTarg etOutputDi rectoryPat h(), $VarG roupName)" /> | |||||
155 | ||||||
156 | <!-- Transform --> | |||||
157 | <!-- --> | |||||
158 | <xsl: variable n ame="VarPr ojectCheck sum" selec t="concat( $GlobalPro ject/wwpro ject:Proje ct/@Change ID, ':', $ VarFormatF ilesChecks um, ':', $ VarPageTem plateFiles Checksum, ':', $VarP rojectFile sChecksum) " /> | |||||
159 | <xsl: variable n ame="VarUp ToDate" se lect="wwfi lesext:UpT oDate($Var Path, $Var ProjectChe cksum, $Va rFilesDocu ment/@grou pID, '', $ GlobalActi onChecksum )" /> | |||||
160 | <xsl: if test="n ot($VarUpT oDate)"> | |||||
161 | <xsl :variable name="VarR esultAsXML "> | |||||
162 | <!- - Load doc ument --> | |||||
163 | <!- - --> | |||||
164 | <xs l:variable name="Var Splits" se lect="wwex sldoc:Load XMLWithout Resolver($ VarFilesDo cument/@pa th)" /> | |||||
165 | ||||||
166 | <!- - Add file s --> | |||||
167 | <!- - --> | |||||
168 | <xs l:call-tem plate name ="Files"> | |||||
169 | <x sl:with-pa ram name=" ParamLocal e" select= "$VarLocal e" /> | |||||
170 | <x sl:with-pa ram name=" ParamGroup ID" select ="$VarFile sDocument/ @groupID" /> | |||||
171 | <x sl:with-pa ram name=" ParamGroup OutputDire ctoryPath" select="$ VarGroupOu tputDirect oryPath" / > | |||||
172 | <x sl:with-pa ram name=" ParamForma tFiles" se lect="$Var FormatFile s" /> | |||||
173 | <x sl:with-pa ram name=" ParamProje ctFiles" s elect="$Va rProjectFi les" /> | |||||
174 | <x sl:with-pa ram name=" ParamPageT emplateFil es" select ="$VarPage TemplateFi les" /> | |||||
175 | <x sl:with-pa ram name=" ParamSplit s" select= "$VarSplit s" /> | |||||
176 | <x sl:with-pa ram name=" ParamBagga geFiles" s elect="wwe xsldoc:Loa dXMLWithou tResolver( $VarBaggag eFilesFile /@path)/ww baggage:Ba ggage/wwba ggage:File " /> | |||||
177 | </x sl:call-te mplate> | |||||
178 | </xs l:variable > | |||||
179 | <xsl :variable name="VarR esult" sel ect="msxsl :node-set( $VarResult AsXML)" /> | |||||
180 | <xsl :variable name="VarW riteResult " select=" wwexsldoc: Document($ VarResult, $VarPath, 'utf-8', 'xml', '1. 0', 'yes') " /> | |||||
181 | </xsl :if> | |||||
182 | ||||||
183 | <!-- Report Fil es --> | |||||
184 | <!-- --> | |||||
185 | <wwfi les:File p ath="{$Var Path}" typ e="{$Param eterType}" checksum= "{wwfilesy stem:GetCh ecksum($Va rPath)}" p rojectchec ksum="{$Va rProjectCh ecksum}" g roupID="{$ VarFilesDo cument/@gr oupID}" do cumentID=" " actionch ecksum="{$ GlobalActi onChecksum }" categor y="" use=" "> | |||||
186 | <wwf iles:Depen ds path="{ $VarFilesL ocale/@pat h}" checks um="{$VarF ilesLocale /@checksum }" groupID ="{$VarFil esLocale/@ groupID}" documentID ="{$VarFil esLocale/@ documentID }" /> | |||||
187 | <wwf iles:Depen ds path="{ $VarFilesD ocument/@p ath}" chec ksum="{$Va rFilesDocu ment/@chec ksum}" gro upID="{$Va rFilesDocu ment/@grou pID}" docu mentID="{$ VarFilesDo cument/@do cumentID}" /> | |||||
188 | <wwf iles:Depen ds path="{ $VarBaggag eFilesFile /@path}" c hecksum="{ $VarBaggag eFilesFile /@checksum }" groupID ="{$VarBag gageFilesF ile/@group ID}" docum entID="{$V arBaggageF ilesFile/@ documentID }" /> | |||||
189 | <wwf iles:Depen ds path="{ $GlobalPag eTemplateP ath}" chec ksum="{wwf ilesystem: GetChecksu m($GlobalP ageTemplat ePath)}" g roupID="" documentID ="" /> | |||||
190 | </wwf iles:File> | |||||
191 | ||||||
192 | <xsl: value-of s elect="wwp rogress:En d()" /> | |||||
193 | </xsl: for-each> | |||||
194 | ||||||
195 | <xsl:v alue-of se lect="wwpr ogress:End ()" /> | |||||
196 | </xsl:f or-each> | |||||
197 | ||||||
198 | </wwfile s:Files> | |||||
199 | </xsl:tem plate> | |||||
200 | ||||||
201 | <xsl:temp late name= "Files"> | |||||
202 | <xsl:par am name="P aramLocale " /> | |||||
203 | <xsl:par am name="P aramGroupI D" /> | |||||
204 | <xsl:par am name="P aramGroupO utputDirec toryPath" /> | |||||
205 | <xsl:par am name="P aramFormat Files" /> | |||||
206 | <xsl:par am name="P aramProjec tFiles" /> | |||||
207 | <xsl:par am name="P aramPageTe mplateFile s" /> | |||||
208 | <xsl:par am name="P aramSplits " /> | |||||
209 | <xsl:par am name="P aramBaggag eFiles" /> | |||||
210 | ||||||
211 | <!-- Cop y splits w ith new fi le entries added --> | |||||
212 | <!-- --> | |||||
213 | <wwsplit s:Splits> | |||||
214 | <xsl:co py-of sele ct="$Param Splits/wws plits:Spli ts/@*" /> | |||||
215 | ||||||
216 | <!-- Fo rmat Files --> | |||||
217 | <!-- --> | |||||
218 | <xsl:fo r-each sel ect="$Para mFormatFil es/wwfiles :Files/wwf iles:File" > | |||||
219 | <xsl:v ariable na me="VarFor matFile" s elect="." /> | |||||
220 | ||||||
221 | <xsl:v ariable na me="VarFor matFilePat h" select= "wwfilesys tem:Combin e($ParamGr oupOutputD irectoryPa th, $VarFo rmatFile/@ path)" /> | |||||
222 | ||||||
223 | <!-- A llow? --> | |||||
224 | <!-- --> | |||||
225 | <xsl:v ariable na me="VarAll ow"> | |||||
226 | <xsl: call-templ ate name=" Files-Filt er-Allow"> | |||||
227 | <xsl :with-para m name="Pa ramPath" s elect="$Va rFormatFil ePath" /> | |||||
228 | </xsl :call-temp late> | |||||
229 | </xsl: variable> | |||||
230 | <xsl:i f test="$V arAllow = 'true'"> | |||||
231 | <!-- Emit --> | |||||
232 | <!-- --> | |||||
233 | <wwsp lits:File groupID="{ $ParamGrou pID}" docu mentID="" id="" type ="{$Parame terCopySpl itFileType }" source= "{wwuri:Ma keAbsolute ('wwformat :Files/', $VarFormat File/@path )}" path=" {$VarForma tFilePath} " title="" /> | |||||
234 | </xsl: if> | |||||
235 | </xsl:f or-each> | |||||
236 | ||||||
237 | <!-- Pa ge Templat e Files -- > | |||||
238 | <!-- -- > | |||||
239 | <xsl:fo r-each sel ect="$Para mPageTempl ateFiles/w wpage:File "> | |||||
240 | <xsl:v ariable na me="VarPag eTemplateF ile" selec t="." /> | |||||
241 | ||||||
242 | <wwspl its:File g roupID="{$ ParamGroup ID}" docum entID="" i d="" type= "{$Paramet erCopySpli tFileType} " source=" {concat('w wformat:Pa ges/', $Va rPageTempl ateFile/@p ath)}" pat h="{wwfile system:Com bine($Para mGroupOutp utDirector yPath, $Va rPageTempl ateFile/@p ath)}" tit le="" /> | |||||
243 | </xsl:f or-each> | |||||
244 | ||||||
245 | <xsl:va riable nam e="VarTarg etOutputDi rectoryPat h" select= "wwfilesys tem:Combin e(wwprojex t:GetTarge tOutputDir ectoryPath (), 'dummy .component ')" /> | |||||
246 | ||||||
247 | <!-- TO C --> | |||||
248 | <!-- --> | |||||
249 | <xsl:if test="wwp rojext:Get FormatSett ing('toc-g enerate') = 'true'"> | |||||
250 | <wwspl its:File g roupID="{$ ParamGroup ID}" docum entID="" i d="" type= "{$Paramet erTOCSplit FileType}" source="" stylename ="Default" path="{ww filesystem :Combine($ ParamGroup OutputDire ctoryPath, wwprojext :GetFormat Setting('t oc-filenam e'))}" tar get-output -directory -path="{$V arTargetOu tputDirect oryPath}" title="{$P aramLocale /wwlocale: Locale/wwl ocale:Stri ngs/wwloca le:String[ @name = 'T OCTitle']/ @value}" / > | |||||
251 | </xsl:i f> | |||||
252 | ||||||
253 | <!-- Re process al l existing split ent ries --> | |||||
254 | <!-- --> | |||||
255 | <xsl:ap ply-templa tes select ="$ParamSp lits/wwspl its:Splits /wwsplits: *" mode="w wmode:repr ocess-spli ts"> | |||||
256 | <xsl:w ith-param name="Para mTargetOut putDirecto ryPath" se lect="$Var TargetOutp utDirector yPath" /> | |||||
257 | </xsl:a pply-templ ates> | |||||
258 | ||||||
259 | <!-- In dex --> | |||||
260 | <!-- --> | |||||
261 | <xsl:if test="wwp rojext:Get FormatSett ing('index -generate' ) = 'true' "> | |||||
262 | <wwspl its:File g roupID="{$ ParamGroup ID}" docum entID="" i d="" type= "{$Paramet erIndexSpl itFileType }" source= "" stylena me="Defaul t" path="{ wwfilesyst em:Combine ($ParamGro upOutputDi rectoryPat h, wwproje xt:GetForm atSetting( 'index-fil ename'))}" target-ou tput-direc tory-path= "{$VarTarg etOutputDi rectoryPat h}" title= "{$ParamLo cale/wwloc ale:Locale /wwlocale: Strings/ww locale:Str ing[@name = 'IXTitle ']/@value} " /> | |||||
263 | </xsl:i f> | |||||
264 | ||||||
265 | <!-- Pr oject File s --> | |||||
266 | <!-- --> | |||||
267 | <xsl:va riable nam e="VarProj ectFilesDi rectoryPat h" select= "wwfilesys tem:Combin e(wwprojex t:GetProje ctFilesDir ectoryPath (), 'dummy .component ')" /> | |||||
268 | <xsl:fo r-each sel ect="$Para mProjectFi les/wwfile s:Files/ww files:File "> | |||||
269 | <xsl:v ariable na me="VarPro jectFile" select="." /> | |||||
270 | ||||||
271 | <xsl:v ariable na me="VarRel ativePath" select="w wfilesyste m:GetRelat iveTo($Var ProjectFil e/@path, $ VarProject FilesDirec toryPath)" /> | |||||
272 | <xsl:v ariable na me="VarRel ativeURI" select="ww uri:GetRel ativeTo($V arProjectF ile/@path, 'wwprojfi le:dummy.c omponent') " /> | |||||
273 | <xsl:v ariable na me="VarPro jectFilePa th" select ="wwfilesy stem:Combi ne($ParamG roupOutput DirectoryP ath, $VarR elativePat h)" /> | |||||
274 | ||||||
275 | <!-- A llow? --> | |||||
276 | <!-- --> | |||||
277 | <xsl:v ariable na me="VarAll ow"> | |||||
278 | <xsl: call-templ ate name=" Files-Filt er-Allow"> | |||||
279 | <xsl :with-para m name="Pa ramPath" s elect="$Va rProjectFi lePath" /> | |||||
280 | </xsl :call-temp late> | |||||
281 | </xsl: variable> | |||||
282 | <xsl:i f test="$V arAllow = 'true'"> | |||||
283 | <!-- Emit --> | |||||
284 | <!-- --> | |||||
285 | <wwsp lits:File groupID="{ $ParamGrou pID}" docu mentID="" id="" type ="{$Parame terCopySpl itFileType }" source= "{concat(' wwprojfile :', $VarRe lativeURI) }" path="{ $VarProjec tFilePath} " title="" /> | |||||
286 | </xsl: if> | |||||
287 | </xsl:f or-each> | |||||
288 | ||||||
289 | <!-- Ba ggage --> | |||||
290 | <!-- --> | |||||
291 | <xsl:fo r-each sel ect="$Para mBaggageFi les"> | |||||
292 | <xsl:v ariable na me="VarBag gageFile" select="." /> | |||||
293 | ||||||
294 | <xsl:v ariable na me="VarPat h" select= "wwfilesys tem:Combin e($ParamGr oupOutputD irectoryPa th, 'bagga ge', wwfil esystem:Ge tFileName( $VarBaggag eFile/@pat h))" /> | |||||
295 | ||||||
296 | <wwspl its:File g roupID="{$ ParamGroup ID}" docum entID="" i d="" type= "{$Paramet erBaggageS plitFileTy pe}" sourc e="{$VarBa ggageFile/ @path}" pa th="{$VarP ath}" titl e="" /> | |||||
297 | </xsl:f or-each> | |||||
298 | </wwspli ts:Splits> | |||||
299 | </xsl:tem plate> | |||||
300 | ||||||
301 | ||||||
302 | <!-- wwmo de:reproce ss-splits --> | |||||
303 | <!-- --> | |||||
304 | ||||||
305 | <xsl:temp late match ="wwsplits :Split" mo de="wwmode :reprocess -splits"> | |||||
306 | <xsl:par am name="P aramSplit" select=". " /> | |||||
307 | <xsl:par am name="P aramTarget OutputDire ctoryPath" /> | |||||
308 | ||||||
309 | <!-- Emi t split -- > | |||||
310 | <!-- -- > | |||||
311 | <wwsplit s:Split> | |||||
312 | <xsl:co py-of sele ct="$Param Split/@*[l ocal-name( ) != 'path ']" /> | |||||
313 | ||||||
314 | <!-- Ne w path --> | |||||
315 | <!-- --> | |||||
316 | <xsl:va riable nam e="VarBase NameWithou tExtension " select=" wwmultiser e:ReplaceA llInString (wwfilesys tem:MakeVa lidFileNam e(normaliz e-space($P aramSplit/ @title)), $GlobalWik iNameRepla cements)" /> | |||||
317 | ||||||
318 | <xsl:va riable nam e="VarSynt ehsizedBas eName"> | |||||
319 | <xsl:c all-templa te name="M ediaWiki-S ynthesizeU nderscores "> | |||||
320 | <xsl: with-param name="Par amOriginal String" se lect="$Var BaseNameWi thoutExten sion" /> | |||||
321 | </xsl: call-templ ate> | |||||
322 | </xsl:v ariable> | |||||
323 | ||||||
324 | <xsl:va riable nam e="VarBase Name"> | |||||
325 | <xsl:v alue-of se lect="$Var Syntehsize dBaseName" /> | |||||
326 | <xsl:t ext>.wiki< /xsl:text> | |||||
327 | </xsl:v ariable> | |||||
328 | ||||||
329 | <xsl:va riable nam e="VarPath " select=" wwfilesyst em:Combine (wwfilesys tem:GetDir ectoryName ($ParamSpl it/@path), $VarBaseN ame)" /> | |||||
330 | ||||||
331 | <xsl:at tribute na me="path"> | |||||
332 | <xsl:v alue-of se lect="$Var Path" /> | |||||
333 | </xsl:a ttribute> | |||||
334 | ||||||
335 | <xsl:at tribute na me="target -output-di rectory-pa th"> | |||||
336 | <xsl:v alue-of se lect="$Par amTargetOu tputDirect oryPath" / > | |||||
337 | </xsl:a ttribute> | |||||
338 | ||||||
339 | <xsl:va riable nam e="VarSpli tAttachmen tsPath" se lect="wwfi lesystem:C ombine(wwf ilesystem: GetDirecto ryName($Pa ramSplit/@ path), $Va rBaseNameW ithoutExte nsion)" /> | |||||
340 | ||||||
341 | <!-- Pr ocess chil dren --> | |||||
342 | <!-- --> | |||||
343 | <xsl:ap ply-templa tes mode=" wwmode:rep rocess-spl its"> | |||||
344 | <xsl:w ith-param name="Para mSplitAtta chmentsPat h" select= "$VarSplit Attachment sPath" /> | |||||
345 | </xsl:a pply-templ ates> | |||||
346 | </wwspli ts:Split> | |||||
347 | </xsl:tem plate> | |||||
348 | ||||||
349 | ||||||
350 | <xsl:temp late match ="wwsplits :Frame" mo de="wwmode :reprocess -splits"> | |||||
351 | <xsl:par am name="P aramFrame" select=". " /> | |||||
352 | <xsl:par am name="P aramSplitA ttachments Path" /> | |||||
353 | ||||||
354 | <!-- Pla ce image i n an "atta chments" f older base on the pa rent wiki page --> | |||||
355 | <!-- --> | |||||
356 | <xsl:var iable name ="VarPath" > | |||||
357 | <xsl:va riable nam e="VarFile Name" sele ct="wwfile system:Get FileName($ ParamFrame /@path)" / > | |||||
358 | <xsl:va lue-of sel ect="wwfil esystem:Co mbine($Par amSplitAtt achmentsPa th, $VarFi leName)" / > | |||||
359 | </xsl:va riable> | |||||
360 | ||||||
361 | <!-- Emi t frame -- > | |||||
362 | <!-- -- > | |||||
363 | <wwsplit s:Frame> | |||||
364 | <xsl:co py-of sele ct="$Param Frame/@*[l ocal-name( ) != 'path ']" /> | |||||
365 | <xsl:at tribute na me="path"> | |||||
366 | <xsl:v alue-of se lect="$Var Path" /> | |||||
367 | </xsl:a ttribute> | |||||
368 | ||||||
369 | <!-- Pr ocess chil dren --> | |||||
370 | <!-- --> | |||||
371 | <xsl:ap ply-templa tes mode=" wwmode:rep rocess-spl its"> | |||||
372 | <xsl:w ith-param name="Para mSplitAtta chmentsPat h" select= "$ParamSpl itAttachme ntsPath" / > | |||||
373 | </xsl:a pply-templ ates> | |||||
374 | </wwspli ts:Frame> | |||||
375 | </xsl:tem plate> | |||||
376 | ||||||
377 | ||||||
378 | <xsl:temp late match ="wwsplits :Thumbnail " mode="ww mode:repro cess-split s"> | |||||
379 | <xsl:par am name="P aramThumbn ail" selec t="." /> | |||||
380 | <xsl:par am name="P aramSplitA ttachments Path" /> | |||||
381 | ||||||
382 | <!-- Pla ce image i n an "atta chments" f older base on the pa rent wiki page --> | |||||
383 | <!-- --> | |||||
384 | <xsl:var iable name ="VarPath" > | |||||
385 | <xsl:va riable nam e="VarFile Name" sele ct="wwfile system:Get FileName($ ParamThumb nail/@path )" /> | |||||
386 | <xsl:va lue-of sel ect="wwfil esystem:Co mbine($Par amSplitAtt achmentsPa th, $VarFi leName)" / > | |||||
387 | </xsl:va riable> | |||||
388 | ||||||
389 | <!-- Emi t thumbnai l --> | |||||
390 | <!-- --> | |||||
391 | <wwsplit s:Thumbnai l> | |||||
392 | <xsl:co py-of sele ct="$Param Thumbnail/ @*[local-n ame() != ' path']" /> | |||||
393 | <xsl:at tribute na me="path"> | |||||
394 | <xsl:v alue-of se lect="$Var Path" /> | |||||
395 | </xsl:a ttribute> | |||||
396 | ||||||
397 | <!-- Pr ocess chil dren --> | |||||
398 | <!-- --> | |||||
399 | <xsl:ap ply-templa tes mode=" wwmode:rep rocess-spl its"> | |||||
400 | <xsl:w ith-param name="Para mSplitAtta chmentsPat h" select= "$ParamSpl itAttachme ntsPath" / > | |||||
401 | </xsl:a pply-templ ates> | |||||
402 | </wwspli ts:Thumbna il> | |||||
403 | </xsl:tem plate> | |||||
404 | ||||||
405 | ||||||
406 | <xsl:temp late match ="*" mode= "wwmode:re process-sp lits"> | |||||
407 | <!-- Ign ore --> | |||||
408 | <!-- --> | |||||
409 | </xsl:tem plate> | |||||
410 | ||||||
411 | ||||||
412 | <xsl:temp late match ="text() | comment() | process ing-instru ction()" m ode="wwmod e:reproces s-splits"> | |||||
413 | <!-- Ign ore --> | |||||
414 | <!-- --> | |||||
415 | </xsl:tem plate> | |||||
416 | </xsl:styl esheet> |
Araxis Merge (but not the data content of this report) is Copyright © 1993-2007 Araxis Ltd (www.araxis.com). All rights reserved.