Produced by Araxis Merge on Thu Oct 16 22:30:08 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:08 2008 UTC | ||
2 | C:\Documents and Settings\lauren\Desktop\ww-version-snapshots\ww-version-snapshots\2008.3\WebWorks\ePublisher Pro\Formats\Wiki - MoinMoin\Transforms | files.xsl | Mon Oct 13 05:51:50 2008 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 0 | 0 |
Changed | 0 | 0 |
Inserted | 1 | 605 |
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 | 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 " | |||||
24 | > | |||||
25 | <xsl:para m name="Gl obalInput" /> | |||||
26 | <xsl:para m name="Gl obalPipeli neName" /> | |||||
27 | <xsl:para m name="Gl obalProjec t" /> | |||||
28 | <xsl:para m name="Gl obalFiles" /> | |||||
29 | <xsl:para m name="Pa rameterDep endsType" /> | |||||
30 | <xsl:para m name="Pa rameterTyp e" /> | |||||
31 | <xsl:para m name="Pa rameterDoc umentType" /> | |||||
32 | <xsl:para m name="Pa rameterBag gageType" /> | |||||
33 | <xsl:para m name="Pa rameterLoc aleType" / > | |||||
34 | <xsl:para m name="Pa rameterUIL ocaleType" /> | |||||
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 | <xsl:para m name="Pa rameterSin glePDFSpli tFileType" /> | |||||
41 | <xsl:para m name="Pa rameterGro upPDFSplit FileType" /> | |||||
42 | ||||||
43 | ||||||
44 | <xsl:outp ut encodin g="UTF-8" indent="ye s" /> | |||||
45 | <xsl:name space-alia s styleshe et-prefix= "wwsplits" result-pr efix="#def ault" /> | |||||
46 | <xsl:stri p-space el ements="*" /> | |||||
47 | ||||||
48 | ||||||
49 | <xsl:incl ude href=" wwtransfor m:common/f iles/filte r.xsl" /> | |||||
50 | <xsl:incl ude href=" wwtransfor m:common/f iles/forma t.xsl" /> | |||||
51 | <xsl:incl ude href=" wwtransfor m:common/p ages/paget emplate.xs l" /> | |||||
52 | <xsl:incl ude href=" wwformat:T ransforms/ moinmoin.x sl" /> | |||||
53 | ||||||
54 | ||||||
55 | <xsl:key name="wwfi les-files- by-type" m atch="wwfi les:File" use="@type " /> | |||||
56 | <xsl:key name="wwfi les-files- by-groupid -type" mat ch="wwfile s:File" us e="concat( @groupID, ':', @type )" /> | |||||
57 | <xsl:key name="wwpr oject-grou p-by-group id" match= "wwproject :Group" us e="@GroupI D" /> | |||||
58 | ||||||
59 | ||||||
60 | <xsl:vari able name= "GlobalAct ionChecksu m"> | |||||
61 | <xsl:var iable name ="VarTrans formChecks ums"> | |||||
62 | <xsl:va lue-of sel ect="conca t(wwuri:As FilePath(' wwtransfor m:self'), ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: self')))" /> | |||||
63 | <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)))" / > | |||||
64 | <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')) )" /> | |||||
65 | <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')) )" /> | |||||
66 | <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' )))" /> | |||||
67 | <xsl:va lue-of sel ect="conca t(',', wwu ri:AsFileP ath('wwfor mat:Transf orms/moinm oin.xsl'), ':', wwfi lesystem:G etChecksum (wwuri:AsF ilePath('w wformat:Tr ansforms/m oinmoin.xs l')))" /> | |||||
68 | </xsl:va riable> | |||||
69 | <xsl:val ue-of sele ct="wwstri ng:MD5Chec ksum($VarT ransformCh ecksums)" /> | |||||
70 | </xsl:var iable> | |||||
71 | ||||||
72 | ||||||
73 | <xsl:vari able name= "GlobalPro cessAsPage Extensions " select=" concat(' ' , wwprojex t:GetForma tSetting(' wiki-proce ss-as-page -extension s'), ' ')" /> | |||||
74 | ||||||
75 | ||||||
76 | <!-- UI L ocale --> | |||||
77 | <!-- --> | |||||
78 | <xsl:vari able name= "GlobalUIL ocalePath" > | |||||
79 | <xsl:for -each sele ct="$Globa lFiles[1]" > | |||||
80 | <xsl:va lue-of sel ect="key(' wwfiles-fi les-by-typ e', $Param eterUILoca leType)[1] /@path" /> | |||||
81 | </xsl:fo r-each> | |||||
82 | </xsl:var iable> | |||||
83 | <xsl:vari able name= "GlobalUIL ocalePathC hecksum" s elect="wwf ilesystem: GetChecksu m($GlobalU ILocalePat h)" /> | |||||
84 | <xsl:vari able name= "GlobalUIL ocale" sel ect="wwexs ldoc:LoadX MLWithoutR esolver($G lobalUILoc alePath)" /> | |||||
85 | ||||||
86 | ||||||
87 | <!-- Page Template --> | |||||
88 | <!-- --> | |||||
89 | <xsl:vari able name= "GlobalPag eTemplateP ath" selec t="wwuri:A sFilePath( $Parameter PageTempla teURI)" /> | |||||
90 | <xsl:vari able name= "GlobalPag eTemplate" select="w wexsldoc:L oadXMLWith outResolve r($GlobalP ageTemplat ePath)" /> | |||||
91 | ||||||
92 | ||||||
93 | <xsl:temp late match ="/"> | |||||
94 | <wwfiles :Files ver sion="1.0" > | |||||
95 | ||||||
96 | <!-- It erate inpu t document s --> | |||||
97 | <!-- --> | |||||
98 | <xsl:fo r-each sel ect="$Glob alFiles[1] "> | |||||
99 | <xsl:v ariable na me="VarFil esByType" select="ke y('wwfiles -files-by- type', $Pa rameterDep endsType)" /> | |||||
100 | ||||||
101 | <xsl:v alue-of se lect="wwpr ogress:Sta rt(count($ VarFilesBy Type))" /> | |||||
102 | ||||||
103 | <!-- L oad locale --> | |||||
104 | <!-- --> | |||||
105 | <xsl:v ariable na me="VarFil esLocale" select="ke y('wwfiles -files-by- type', $Pa rameterLoc aleType)" /> | |||||
106 | <xsl:v ariable na me="VarLoc ale" selec t="wwexsld oc:LoadXML WithoutRes olver($Var FilesLocal e/@path)" /> | |||||
107 | ||||||
108 | <xsl:f or-each se lect="$Var FilesByTyp e"> | |||||
109 | <xsl: value-of s elect="wwp rogress:St art(1)" /> | |||||
110 | ||||||
111 | <xsl: variable n ame="VarFi lesDocumen t" select= "." /> | |||||
112 | ||||||
113 | <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')) " /> | |||||
114 | ||||||
115 | <!-- Get format files --> | |||||
116 | <!-- --> | |||||
117 | <xsl: variable n ame="VarFo rmatFilesA sXML"> | |||||
118 | <xsl :call-temp late name= "Files-For mat-GetRel ativeFiles "> | |||||
119 | <xs l:with-par am name="P aramRelati veURIPath" select="' Files'" /> | |||||
120 | </xs l:call-tem plate> | |||||
121 | </xsl :variable> | |||||
122 | <xsl: variable n ame="VarFo rmatFiles" select="m sxsl:node- set($VarFo rmatFilesA sXML)" /> | |||||
123 | <xsl: variable n ame="VarFo rmatFilesP aths"> | |||||
124 | <xsl :for-each select="$V arFormatFi les/wwfile s:Files/ww files:File "> | |||||
125 | <xs l:value-of select="@ path" /> | |||||
126 | <xs l:value-of select="' :'" /> | |||||
127 | </xs l:for-each > | |||||
128 | </xsl :variable> | |||||
129 | <xsl: variable n ame="VarFo rmatFilesC hecksum" s elect="wws tring:MD5C hecksum($V arFormatFi lesPaths)" /> | |||||
130 | ||||||
131 | <!-- Get page t emplate fi les --> | |||||
132 | <!-- --> | |||||
133 | <xsl: variable n ame="VarPa geTemplate FilesAsXML "> | |||||
134 | <xsl :apply-tem plates sel ect="$Glob alPageTemp late" mode ="wwmode:p agetemplat e-files" / > | |||||
135 | </xsl :variable> | |||||
136 | <xsl: variable n ame="VarPa geTemplate Files" sel ect="msxsl :node-set( $VarPageTe mplateFile sAsXML)" / > | |||||
137 | <xsl: variable n ame="VarPa geTemplate FilesPaths "> | |||||
138 | <xsl :for-each select="$V arPageTemp lateFiles/ wwpage:Fil e"> | |||||
139 | <xs l:value-of select="@ path" /> | |||||
140 | <xs l:value-of select="' :'" /> | |||||
141 | </xs l:for-each > | |||||
142 | </xsl :variable> | |||||
143 | <xsl: variable n ame="VarPa geTemplate FilesCheck sum" selec t="wwstrin g:MD5Check sum($VarPa geTemplate FilesPaths )" /> | |||||
144 | ||||||
145 | <!-- Get projec t files -- > | |||||
146 | <!-- -- > | |||||
147 | <xsl: variable n ame="VarPr ojectFiles " select=" wwfilesyst em:GetFile s(wwprojex t:GetProje ctFilesDir ectoryPath ())" /> | |||||
148 | <xsl: variable n ame="VarPr ojectFiles Paths"> | |||||
149 | <xsl :for-each select="$V arProjectF iles/wwfil es:Files/w wfiles:Fil e"> | |||||
150 | <xs l:value-of select="@ path" /> | |||||
151 | <xs l:value-of select="' :'" /> | |||||
152 | </xs l:for-each > | |||||
153 | </xsl :variable> | |||||
154 | <xsl: variable n ame="VarPr ojectFiles Checksum" select="ww string:MD5 Checksum($ VarProject FilesPaths )" /> | |||||
155 | ||||||
156 | <!-- Get baggag e files -- > | |||||
157 | <!-- -- > | |||||
158 | <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]" / > | |||||
159 | ||||||
160 | <!-- Determine group name --> | |||||
161 | <!-- --> | |||||
162 | <xsl: variable n ame="VarGr oupName"> | |||||
163 | <xsl :for-each select="$G lobalProje ct[1]"> | |||||
164 | <xs l:value-of select="k ey('wwproj ect-group- by-groupid ', $VarFil esDocument /@groupID) /@Name" /> | |||||
165 | </xs l:for-each > | |||||
166 | </xsl :variable> | |||||
167 | ||||||
168 | <!-- Determine group outp ut directo ry path -- > | |||||
169 | <!-- -- > | |||||
170 | <xsl: variable n ame="VarWi kifiedGrou pName"> | |||||
171 | <xsl :call-temp late name= "MoinMoin- WikifyPath Component" > | |||||
172 | <xs l:with-par am name="P aramPathCo mponent" s elect="$Va rGroupName " /> | |||||
173 | </xs l:call-tem plate> | |||||
174 | </xsl :variable> | |||||
175 | <xsl: variable n ame="VarGr oupOutputD irectoryPa th" select ="wwfilesy stem:Combi ne(wwproje xt:GetTarg etOutputDi rectoryPat h(), $VarW ikifiedGro upName)" / > | |||||
176 | ||||||
177 | <!-- Transform --> | |||||
178 | <!-- --> | |||||
179 | <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) " /> | |||||
180 | <xsl: variable n ame="VarUp ToDate" se lect="wwfi lesext:UpT oDate($Var Path, $Var ProjectChe cksum, $Va rFilesDocu ment/@grou pID, '', $ GlobalActi onChecksum )" /> | |||||
181 | <xsl: if test="n ot($VarUpT oDate)"> | |||||
182 | <xsl :variable name="VarR esultAsXML "> | |||||
183 | <!- - Load doc ument --> | |||||
184 | <!- - --> | |||||
185 | <xs l:variable name="Var Splits" se lect="wwex sldoc:Load XMLWithout Resolver($ VarFilesDo cument/@pa th)" /> | |||||
186 | ||||||
187 | <!- - Add file s --> | |||||
188 | <!- - --> | |||||
189 | <xs l:call-tem plate name ="Files"> | |||||
190 | <x sl:with-pa ram name=" ParamLocal e" select= "$VarLocal e" /> | |||||
191 | <x sl:with-pa ram name=" ParamGroup ID" select ="$VarFile sDocument/ @groupID" /> | |||||
192 | <x sl:with-pa ram name=" ParamGroup OutputDire ctoryPath" select="$ VarGroupOu tputDirect oryPath" / > | |||||
193 | <x sl:with-pa ram name=" ParamForma tFiles" se lect="$Var FormatFile s" /> | |||||
194 | <x sl:with-pa ram name=" ParamProje ctFiles" s elect="$Va rProjectFi les" /> | |||||
195 | <x sl:with-pa ram name=" ParamPageT emplateFil es" select ="$VarPage TemplateFi les" /> | |||||
196 | <x sl:with-pa ram name=" ParamSplit s" select= "$VarSplit s" /> | |||||
197 | <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 " /> | |||||
198 | </x sl:call-te mplate> | |||||
199 | </xs l:variable > | |||||
200 | <xsl :variable name="VarR esult" sel ect="msxsl :node-set( $VarResult AsXML)" /> | |||||
201 | <xsl :variable name="VarW riteResult " select=" wwexsldoc: Document($ VarResult, $VarPath, 'utf-8', 'xml', '1. 0', 'yes') " /> | |||||
202 | </xsl :if> | |||||
203 | ||||||
204 | <!-- Report Fil es --> | |||||
205 | <!-- --> | |||||
206 | <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=" "> | |||||
207 | <wwf iles:Depen ds path="{ $VarFilesL ocale/@pat h}" checks um="{$VarF ilesLocale /@checksum }" groupID ="{$VarFil esLocale/@ groupID}" documentID ="{$VarFil esLocale/@ documentID }" /> | |||||
208 | <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}" /> | |||||
209 | <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 }" /> | |||||
210 | <wwf iles:Depen ds path="{ $GlobalUIL ocalePath} " checksum ="{wwfiles ystem:GetC hecksum($G lobalUILoc alePath)}" groupID=" " document ID="" /> | |||||
211 | <wwf iles:Depen ds path="{ $GlobalPag eTemplateP ath}" chec ksum="{wwf ilesystem: GetChecksu m($GlobalP ageTemplat ePath)}" g roupID="" documentID ="" /> | |||||
212 | </wwf iles:File> | |||||
213 | ||||||
214 | <xsl: value-of s elect="wwp rogress:En d()" /> | |||||
215 | </xsl: for-each> | |||||
216 | ||||||
217 | <xsl:v alue-of se lect="wwpr ogress:End ()" /> | |||||
218 | </xsl:f or-each> | |||||
219 | ||||||
220 | </wwfile s:Files> | |||||
221 | </xsl:tem plate> | |||||
222 | ||||||
223 | <xsl:temp late name= "Files"> | |||||
224 | <xsl:par am name="P aramLocale " /> | |||||
225 | <xsl:par am name="P aramGroupI D" /> | |||||
226 | <xsl:par am name="P aramGroupO utputDirec toryPath" /> | |||||
227 | <xsl:par am name="P aramFormat Files" /> | |||||
228 | <xsl:par am name="P aramProjec tFiles" /> | |||||
229 | <xsl:par am name="P aramPageTe mplateFile s" /> | |||||
230 | <xsl:par am name="P aramSplits " /> | |||||
231 | <xsl:par am name="P aramBaggag eFiles" /> | |||||
232 | ||||||
233 | <!-- Cop y splits w ith new fi le entries added --> | |||||
234 | <!-- --> | |||||
235 | <wwsplit s:Splits> | |||||
236 | <xsl:co py-of sele ct="$Param Splits/wws plits:Spli ts/@*" /> | |||||
237 | ||||||
238 | <!-- Fo rmat Files --> | |||||
239 | <!-- --> | |||||
240 | <xsl:fo r-each sel ect="$Para mFormatFil es/wwfiles :Files/wwf iles:File" > | |||||
241 | <xsl:v ariable na me="VarFor matFile" s elect="." /> | |||||
242 | ||||||
243 | <xsl:v ariable na me="VarFor matFilePat h" select= "wwfilesys tem:Combin e($ParamGr oupOutputD irectoryPa th, $VarFo rmatFile/@ path)" /> | |||||
244 | ||||||
245 | <!-- A llow? --> | |||||
246 | <!-- --> | |||||
247 | <xsl:v ariable na me="VarAll ow"> | |||||
248 | <xsl: call-templ ate name=" Files-Filt er-Allow"> | |||||
249 | <xsl :with-para m name="Pa ramPath" s elect="$Va rFormatFil ePath" /> | |||||
250 | </xsl :call-temp late> | |||||
251 | </xsl: variable> | |||||
252 | <xsl:i f test="$V arAllow = 'true'"> | |||||
253 | <!-- Wikify out put path - -> | |||||
254 | <!-- - -> | |||||
255 | <xsl: variable n ame="VarWi kifiedOutp utPath"> | |||||
256 | <xsl :call-temp late name= "MoinMoin- WikifyPath "> | |||||
257 | <xs l:with-par am name="P aramOutput Path" sele ct="$VarFo rmatFilePa th" /> | |||||
258 | </xs l:call-tem plate> | |||||
259 | </xsl :variable> | |||||
260 | ||||||
261 | <!-- Emit --> | |||||
262 | <!-- --> | |||||
263 | <wwsp lits:File groupID="{ $ParamGrou pID}" docu mentID="" id="" type ="{$Parame terCopySpl itFileType }" source= "{wwuri:Ma keAbsolute ('wwformat :Files/', $VarFormat File/@path )}" path=" {$VarWikif iedOutputP ath}" titl e="" /> | |||||
264 | </xsl: if> | |||||
265 | </xsl:f or-each> | |||||
266 | ||||||
267 | <!-- Pa ge Templat e Files -- > | |||||
268 | <!-- -- > | |||||
269 | <xsl:fo r-each sel ect="$Para mPageTempl ateFiles/w wpage:File "> | |||||
270 | <xsl:v ariable na me="VarPag eTemplateF ile" selec t="." /> | |||||
271 | ||||||
272 | <!-- W ikify outp ut path -- > | |||||
273 | <!-- -- > | |||||
274 | <xsl:v ariable na me="VarWik ifiedOutpu tPath"> | |||||
275 | <xsl: call-templ ate name=" MoinMoin-W ikifyPath" > | |||||
276 | <xsl :with-para m name="Pa ramOutputP ath" selec t="wwfiles ystem:Comb ine($Param GroupOutpu tDirectory Path, $Var PageTempla teFile/@pa th)" /> | |||||
277 | </xsl :call-temp late> | |||||
278 | </xsl: variable> | |||||
279 | ||||||
280 | <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="{$VarWi kifiedOutp utPath}" t itle="" /> | |||||
281 | </xsl:f or-each> | |||||
282 | ||||||
283 | <!-- TO C --> | |||||
284 | <!-- --> | |||||
285 | <xsl:if test="wwp rojext:Get FormatSett ing('toc-g enerate') = 'true'"> | |||||
286 | <!-- W ikify outp ut path -- > | |||||
287 | <!-- -- > | |||||
288 | <xsl:v ariable na me="VarWik ifiedOutpu tPath"> | |||||
289 | <xsl: call-templ ate name=" MoinMoin-W ikifyPath" > | |||||
290 | <xsl :with-para m name="Pa ramOutputP ath" selec t="wwfiles ystem:Comb ine($Param GroupOutpu tDirectory Path, wwpr ojext:GetF ormatSetti ng('toc-fi lename'))" /> | |||||
291 | </xsl :call-temp late> | |||||
292 | </xsl: variable> | |||||
293 | ||||||
294 | <wwspl its:File g roupID="{$ ParamGroup ID}" docum entID="" i d="" type= "{$Paramet erTOCSplit FileType}" source="" stylename ="Default" path="{$V arWikified OutputPath }" title=" {$ParamLoc ale/wwloca le:Locale/ wwlocale:S trings/wwl ocale:Stri ng[@name = 'TOCTitle ']/@value} " /> | |||||
295 | </xsl:i f> | |||||
296 | ||||||
297 | <!-- Re process ex isting spl it entries --> | |||||
298 | <!-- --> | |||||
299 | <xsl:ap ply-templa tes select ="$ParamSp lits/wwspl its:Splits /wwsplits: *" mode="w wmode:repr ocess-spli ts" /> | |||||
300 | ||||||
301 | <!-- In dex --> | |||||
302 | <!-- --> | |||||
303 | <xsl:if test="wwp rojext:Get FormatSett ing('index -generate' ) = 'true' "> | |||||
304 | <!-- W ikify outp ut path -- > | |||||
305 | <!-- -- > | |||||
306 | <xsl:v ariable na me="VarWik ifiedOutpu tPath"> | |||||
307 | <xsl: call-templ ate name=" MoinMoin-W ikifyPath" > | |||||
308 | <xsl :with-para m name="Pa ramOutputP ath" selec t="wwfiles ystem:Comb ine($Param GroupOutpu tDirectory Path, wwpr ojext:GetF ormatSetti ng('index- filename') )" /> | |||||
309 | </xsl :call-temp late> | |||||
310 | </xsl: variable> | |||||
311 | ||||||
312 | <wwspl its:File g roupID="{$ ParamGroup ID}" docum entID="" i d="" type= "{$Paramet erIndexSpl itFileType }" source= "" stylena me="Defaul t" path="{ $VarWikifi edOutputPa th}" title ="{$ParamL ocale/wwlo cale:Local e/wwlocale :Strings/w wlocale:St ring[@name = 'IXTitl e']/@value }" /> | |||||
313 | </xsl:i f> | |||||
314 | ||||||
315 | <!-- Pr oject File s --> | |||||
316 | <!-- --> | |||||
317 | <xsl:va riable nam e="VarProj ectFilesDi rectoryPat h" select= "wwfilesys tem:Combin e(wwprojex t:GetProje ctFilesDir ectoryPath (), 'dummy .component ')" /> | |||||
318 | <xsl:fo r-each sel ect="$Para mProjectFi les/wwfile s:Files/ww files:File "> | |||||
319 | <xsl:v ariable na me="VarPro jectFile" select="." /> | |||||
320 | ||||||
321 | <xsl:v ariable na me="VarRel ativePath" select="w wfilesyste m:GetRelat iveTo($Var ProjectFil e/@path, $ VarProject FilesDirec toryPath)" /> | |||||
322 | <xsl:v ariable na me="VarRel ativeURI" select="ww uri:GetRel ativeTo($V arProjectF ile/@path, 'wwprojfi le:dummy.c omponent') " /> | |||||
323 | <xsl:v ariable na me="VarPro jectFilePa th" select ="wwfilesy stem:Combi ne($ParamG roupOutput DirectoryP ath, $VarR elativePat h)" /> | |||||
324 | ||||||
325 | <!-- A llow? --> | |||||
326 | <!-- --> | |||||
327 | <xsl:v ariable na me="VarAll ow"> | |||||
328 | <xsl: call-templ ate name=" Files-Filt er-Allow"> | |||||
329 | <xsl :with-para m name="Pa ramPath" s elect="$Va rProjectFi lePath" /> | |||||
330 | </xsl :call-temp late> | |||||
331 | </xsl: variable> | |||||
332 | <xsl:i f test="$V arAllow = 'true'"> | |||||
333 | <!-- Wiki does not allow deployment of top-le vel, non-p age files --> | |||||
334 | <!-- --> | |||||
335 | <xsl: variable n ame="VarTo pLevelNonP ageFileAsT ext"> | |||||
336 | <!-- Top-level file? --> | |||||
337 | <!-- --> | |||||
338 | <xsl :if test=" wwfilesyst em:GetFile Name($VarP rojectFile /@path) = $VarRelati vePath"> | |||||
339 | <!- - Non-wiki page exte nsion? --> | |||||
340 | <!- - --> | |||||
341 | <xs l:value-of select="n ot(contain s($GlobalP rocessAsPa geExtensio ns, concat (' ', wwfi lesystem:G etExtensio n($VarProj ectFile/@p ath), ' ') ))" /> | |||||
342 | </xs l:if> | |||||
343 | </xsl :variable> | |||||
344 | <xsl: variable n ame="VarTo pLevelNonP ageFile" s elect="$Va rTopLevelN onPageFile AsText = ' true'" /> | |||||
345 | ||||||
346 | <!-- Top-level, non-page file? --> | |||||
347 | <!-- --> | |||||
348 | <xsl: choose> | |||||
349 | <!-- Top-level , non-page file --> | |||||
350 | <!-- --> | |||||
351 | <xsl :when test ="$VarTopL evelNonPag eFile"> | |||||
352 | <!- - Nest --> | |||||
353 | <!- - --> | |||||
354 | <xs l:variable name="Var WikifiedFi leName"> | |||||
355 | <x sl:call-te mplate nam e="MoinMoi n-WikifyPa thComponen t"> | |||||
356 | < xsl:with-p aram name= "ParamPath Component" select="w wfilesyste m:GetFileN ame($VarPr ojectFile/ @path)" /> | |||||
357 | </ xsl:call-t emplate> | |||||
358 | </x sl:variabl e> | |||||
359 | ||||||
360 | <xs l:variable name="Var WikifiedOu tputPath" select="ww filesystem :Combine($ ParamGroup OutputDire ctoryPath, 'Files', $VarWikifi edFileName )" /> | |||||
361 | ||||||
362 | <!- - Emit --> | |||||
363 | <!- - --> | |||||
364 | <ww splits:Fil e groupID= "{$ParamGr oupID}" do cumentID=" " id="" ty pe="{$Para meterCopyS plitFileTy pe}" sourc e="{concat ('wwprojfi le:', $Var RelativeUR I)}" path= "{$VarWiki fiedOutput Path}" tit le="" /> | |||||
365 | </xs l:when> | |||||
366 | ||||||
367 | <!-- Already n ested --> | |||||
368 | <!-- --> | |||||
369 | <xsl :otherwise > | |||||
370 | <!- - Wikify o utput path --> | |||||
371 | <!- - --> | |||||
372 | <xs l:variable name="Var WikifiedOu tputPath"> | |||||
373 | <x sl:call-te mplate nam e="MoinMoi n-WikifyPa th"> | |||||
374 | < xsl:with-p aram name= "ParamOutp utPath" se lect="$Var ProjectFil ePath" /> | |||||
375 | </ xsl:call-t emplate> | |||||
376 | </x sl:variabl e> | |||||
377 | ||||||
378 | <!- - Emit --> | |||||
379 | <!- - --> | |||||
380 | <ww splits:Fil e groupID= "{$ParamGr oupID}" do cumentID=" " id="" ty pe="{$Para meterCopyS plitFileTy pe}" sourc e="{concat ('wwprojfi le:', $Var RelativeUR I)}" path= "{$VarWiki fiedOutput Path}" tit le="" /> | |||||
381 | </xs l:otherwis e> | |||||
382 | </xsl :choose> | |||||
383 | </xsl: if> | |||||
384 | </xsl:f or-each> | |||||
385 | ||||||
386 | <!-- Ba ggage --> | |||||
387 | <!-- --> | |||||
388 | <xsl:fo r-each sel ect="$Para mBaggageFi les"> | |||||
389 | <xsl:v ariable na me="VarBag gageFile" select="." /> | |||||
390 | ||||||
391 | <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))" /> | |||||
392 | ||||||
393 | <!-- W ikify outp ut path -- > | |||||
394 | <!-- -- > | |||||
395 | <xsl:v ariable na me="VarWik ifiedOutpu tPath"> | |||||
396 | <xsl: call-templ ate name=" MoinMoin-W ikifyPath" > | |||||
397 | <xsl :with-para m name="Pa ramOutputP ath" selec t="$VarPat h" /> | |||||
398 | </xsl :call-temp late> | |||||
399 | </xsl: variable> | |||||
400 | ||||||
401 | <wwspl its:File g roupID="{$ ParamGroup ID}" docum entID="" i d="" type= "{$Paramet erBaggageS plitFileTy pe}" sourc e="{$VarBa ggageFile/ @path}" pa th="{$VarW ikifiedOut putPath}" title="" / > | |||||
402 | </xsl:f or-each> | |||||
403 | </wwspli ts:Splits> | |||||
404 | </xsl:tem plate> | |||||
405 | ||||||
406 | ||||||
407 | <!-- wwmo de:reproce ss-splits --> | |||||
408 | <!-- --> | |||||
409 | ||||||
410 | <xsl:temp late match ="wwsplits :Split" mo de="wwmode :reprocess -splits"> | |||||
411 | <xsl:par am name="P aramSplit" select=". " /> | |||||
412 | ||||||
413 | <!-- Wik ify output path --> | |||||
414 | <!-- --> | |||||
415 | <xsl:var iable name ="VarWikif iedOutputP ath"> | |||||
416 | <xsl:ca ll-templat e name="Mo inMoin-Wik ifyPath"> | |||||
417 | <xsl:w ith-param name="Para mOutputPat h" select= "$ParamSpl it/@path" /> | |||||
418 | </xsl:c all-templa te> | |||||
419 | </xsl:va riable> | |||||
420 | ||||||
421 | <!-- Emi t split -- > | |||||
422 | <!-- -- > | |||||
423 | <wwsplit s:Split> | |||||
424 | <xsl:co py-of sele ct="$Param Split/@*[l ocal-name( ) != 'path ']" /> | |||||
425 | <xsl:at tribute na me="path"> | |||||
426 | <xsl:v alue-of se lect="$Var WikifiedOu tputPath" /> | |||||
427 | </xsl:a ttribute> | |||||
428 | ||||||
429 | <!-- At tachments path --> | |||||
430 | <!-- --> | |||||
431 | <xsl:va riable nam e="VarSpli tAttachmen tsPath" se lect="wwfi lesystem:C ombine(wwf ilesystem: GetDirecto ryName($Va rWikifiedO utputPath) , wwfilesy stem:GetFi leNameWith outExtensi on($VarWik ifiedOutpu tPath))" / > | |||||
432 | ||||||
433 | <!-- Pr ocess chil dren --> | |||||
434 | <!-- --> | |||||
435 | <xsl:ap ply-templa tes mode=" wwmode:rep rocess-spl its"> | |||||
436 | <xsl:w ith-param name="Para mSplitAtta chmentsPat h" select= "$VarSplit Attachment sPath" /> | |||||
437 | </xsl:a pply-templ ates> | |||||
438 | </wwspli ts:Split> | |||||
439 | </xsl:tem plate> | |||||
440 | ||||||
441 | ||||||
442 | <xsl:temp late match ="wwsplits :Frame | w wsplits:Th umbnail | wwsplits:W rapper | w wsplits:De scription" mode="wwm ode:reproc ess-splits "> | |||||
443 | <xsl:par am name="P aramElemen t" select= "." /> | |||||
444 | <xsl:par am name="P aramSplitA ttachments Path" /> | |||||
445 | ||||||
446 | <!-- Pla ce files i n an "atta chments" f older base d on the p arent wiki page --> | |||||
447 | <!-- --> | |||||
448 | <xsl:var iable name ="VarPath" > | |||||
449 | <xsl:va riable nam e="VarFile Name" sele ct="wwfile system:Get FileName($ ParamEleme nt/@path)" /> | |||||
450 | ||||||
451 | <!-- Wi kify path component --> | |||||
452 | <!-- --> | |||||
453 | <xsl:va riable nam e="VarWiki fiedFileNa me"> | |||||
454 | <xsl:c all-templa te name="M oinMoin-Wi kifyPathCo mponent"> | |||||
455 | <xsl: with-param name="Par amPathComp onent" sel ect="$VarF ileName" / > | |||||
456 | </xsl: call-templ ate> | |||||
457 | </xsl:v ariable> | |||||
458 | ||||||
459 | <xsl:va lue-of sel ect="wwfil esystem:Co mbine($Par amSplitAtt achmentsPa th, $VarWi kifiedFile Name)" /> | |||||
460 | </xsl:va riable> | |||||
461 | ||||||
462 | <!-- Emi t element with updat ed path -- > | |||||
463 | <!-- -- > | |||||
464 | <xsl:cop y> | |||||
465 | <xsl:co py-of sele ct="$Param Element/@* [local-nam e() != 'pa th']" /> | |||||
466 | <xsl:at tribute na me="path"> | |||||
467 | <xsl:v alue-of se lect="$Var Path" /> | |||||
468 | </xsl:a ttribute> | |||||
469 | ||||||
470 | <!-- Pr ocess chil dren --> | |||||
471 | <!-- --> | |||||
472 | <xsl:ap ply-templa tes mode=" wwmode:rep rocess-spl its"> | |||||
473 | <xsl:w ith-param name="Para mSplitAtta chmentsPat h" select= "$ParamSpl itAttachme ntsPath" / > | |||||
474 | </xsl:a pply-templ ates> | |||||
475 | </xsl:co py> | |||||
476 | </xsl:tem plate> | |||||
477 | ||||||
478 | ||||||
479 | <xsl:temp late match ="wwsplits :Table" mo de="wwmode :reprocess -splits"> | |||||
480 | <xsl:par am name="P aramTable" select=". " /> | |||||
481 | <xsl:par am name="P aramSplitA ttachments Path" /> | |||||
482 | ||||||
483 | <!-- Pla ce table i n a folder based on the parent wiki page --> | |||||
484 | <!-- --> | |||||
485 | <xsl:var iable name ="VarPath" > | |||||
486 | <xsl:va riable nam e="VarFile Name" sele ct="wwfile system:Get FileName($ ParamTable /@path)" / > | |||||
487 | <xsl:va riable nam e="VarTabl eFileName" > | |||||
488 | <xsl:v alue-of se lect="subs tring-befo re($VarFil eName, '.' )" /> | |||||
489 | <xsl:t ext>.table .</xsl:tex t> | |||||
490 | <xsl:v alue-of se lect="subs tring-afte r($VarFile Name, '.') " /> | |||||
491 | </xsl:v ariable> | |||||
492 | ||||||
493 | <!-- Wi kify path component --> | |||||
494 | <!-- --> | |||||
495 | <xsl:va riable nam e="VarWiki fiedFileNa me"> | |||||
496 | <xsl:c all-templa te name="M oinMoin-Wi kifyPathCo mponent"> | |||||
497 | <xsl: with-param name="Par amPathComp onent" sel ect="$VarT ableFileNa me" /> | |||||
498 | </xsl: call-templ ate> | |||||
499 | </xsl:v ariable> | |||||
500 | ||||||
501 | <xsl:va lue-of sel ect="wwfil esystem:Co mbine($Par amSplitAtt achmentsPa th, $VarWi kifiedFile Name)" /> | |||||
502 | </xsl:va riable> | |||||
503 | ||||||
504 | <!-- Emi t table -- > | |||||
505 | <!-- -- > | |||||
506 | <wwsplit s:Table> | |||||
507 | <xsl:co py-of sele ct="$Param Table/@*[l ocal-name( ) != 'path ']" /> | |||||
508 | <xsl:at tribute na me="path"> | |||||
509 | <xsl:v alue-of se lect="$Var Path" /> | |||||
510 | </xsl:a ttribute> | |||||
511 | ||||||
512 | <!-- Pr ocess chil dren --> | |||||
513 | <!-- --> | |||||
514 | <xsl:ap ply-templa tes mode=" wwmode:rep rocess-spl its"> | |||||
515 | <xsl:w ith-param name="Para mSplitAtta chmentsPat h" select= "$ParamSpl itAttachme ntsPath" / > | |||||
516 | </xsl:a pply-templ ates> | |||||
517 | </wwspli ts:Table> | |||||
518 | </xsl:tem plate> | |||||
519 | ||||||
520 | ||||||
521 | <xsl:temp late match ="wwsplits :File" mod e="wwmode: reprocess- splits"> | |||||
522 | <xsl:par am name="P aramSplitA ttachments Path" /> | |||||
523 | <xsl:par am name="P aramFile" select="." /> | |||||
524 | ||||||
525 | <!-- PDF ? --> | |||||
526 | <!-- --> | |||||
527 | <xsl:cho ose> | |||||
528 | <!-- PD F --> | |||||
529 | <!-- --> | |||||
530 | <xsl:wh en test="( $ParamFile /@type = $ ParameterS inglePDFSp litFileTyp e) or ($Pa ramFile/@t ype = $Par ameterGrou pPDFSplitF ileType)"> | |||||
531 | <!-- R edirect pa th to PDFs area --> | |||||
532 | <!-- --> | |||||
533 | <xsl:v ariable na me="VarPDF Path"> | |||||
534 | <xsl: variable n ame="VarPa rentPath" select="ww filesystem :GetDirect oryName($P aramFile/@ path)" /> | |||||
535 | <xsl: variable n ame="VarFi leName" se lect="wwfi lesystem:G etFileName ($ParamFil e/@path)" /> | |||||
536 | ||||||
537 | <xsl: value-of s elect="wwf ilesystem: Combine($V arParentPa th, 'PDFs' , $VarFile Name)" /> | |||||
538 | </xsl: variable> | |||||
539 | ||||||
540 | <!-- W ikify outp ut path -- > | |||||
541 | <!-- -- > | |||||
542 | <xsl:v ariable na me="VarWik ifiedOutpu tPath"> | |||||
543 | <xsl: call-templ ate name=" MoinMoin-W ikifyPath" > | |||||
544 | <xsl :with-para m name="Pa ramOutputP ath" selec t="$VarPDF Path" /> | |||||
545 | </xsl :call-temp late> | |||||
546 | </xsl: variable> | |||||
547 | ||||||
548 | <!-- E mit --> | |||||
549 | <!-- --> | |||||
550 | <wwspl its:File> | |||||
551 | <xsl: copy-of se lect="@*[l ocal-name( ) != 'path ']" /> | |||||
552 | ||||||
553 | <!-- Update pat h --> | |||||
554 | <!-- --> | |||||
555 | <xsl: attribute name="path "> | |||||
556 | <xsl :value-of select="$V arWikified OutputPath " /> | |||||
557 | </xsl :attribute > | |||||
558 | ||||||
559 | <!-- Process ch ildren --> | |||||
560 | <!-- --> | |||||
561 | <xsl: apply-temp lates mode ="wwmode:r eprocess-s plits"> | |||||
562 | <xsl :with-para m name="Pa ramSplitAt tachmentsP ath" selec t="$ParamS plitAttach mentsPath" /> | |||||
563 | </xsl :apply-tem plates> | |||||
564 | </wwsp lits:File> | |||||
565 | </xsl:w hen> | |||||
566 | ||||||
567 | <xsl:ot herwise> | |||||
568 | <!-- P reserve as is --> | |||||
569 | <!-- --> | |||||
570 | <xsl:c opy> | |||||
571 | <xsl: copy-of se lect="@*" /> | |||||
572 | ||||||
573 | <!-- Process ch ildren --> | |||||
574 | <!-- --> | |||||
575 | <xsl: apply-temp lates mode ="wwmode:r eprocess-s plits"> | |||||
576 | <xsl :with-para m name="Pa ramSplitAt tachmentsP ath" selec t="$ParamS plitAttach mentsPath" /> | |||||
577 | </xsl :apply-tem plates> | |||||
578 | </xsl: copy> | |||||
579 | </xsl:o therwise> | |||||
580 | </xsl:ch oose> | |||||
581 | </xsl:tem plate> | |||||
582 | ||||||
583 | ||||||
584 | <xsl:temp late match ="*" mode= "wwmode:re process-sp lits"> | |||||
585 | <xsl:par am name="P aramSplitA ttachments Path" /> | |||||
586 | ||||||
587 | <!-- Pre serve as i s --> | |||||
588 | <!-- --> | |||||
589 | <xsl:cop y> | |||||
590 | <xsl:co py-of sele ct="@*" /> | |||||
591 | ||||||
592 | <!-- Pr ocess chil dren --> | |||||
593 | <!-- --> | |||||
594 | <xsl:ap ply-templa tes mode=" wwmode:rep rocess-spl its"> | |||||
595 | <xsl:w ith-param name="Para mSplitAtta chmentsPat h" select= "$ParamSpl itAttachme ntsPath" / > | |||||
596 | </xsl:a pply-templ ates> | |||||
597 | </xsl:co py> | |||||
598 | </xsl:tem plate> | |||||
599 | ||||||
600 | ||||||
601 | <xsl:temp late match ="text() | comment() | process ing-instru ction()" m ode="wwmod e:reproces s-splits"> | |||||
602 | <!-- Ign ore --> | |||||
603 | <!-- --> | |||||
604 | </xsl:tem plate> | |||||
605 | </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.