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 | deploy_info.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 | 214 |
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- Wiki-MoinM oin-Deploy ment-Schem a" | |||||
3 | xmlns:wwde ploy="urn: WebWorks-W iki-MoinMo in-Deploym ent-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:wwin dex="urn:W ebWorks-In dex-Schema " | |||||
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:wwsp lits="urn: WebWorks-E ngine-Spli ts-Schema" | |||||
12 | xmlns:wwva rs="urn:We bWorks-Var iables-Sch ema" | |||||
13 | xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject" | |||||
14 | xmlns:wwpa ge="urn:We bWorks-Pag e-Template -Schema" | |||||
15 | xmlns:wwlo cale="urn: WebWorks-L ocale-Sche ma" | |||||
16 | xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress" | |||||
17 | xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log" | |||||
18 | xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem" | |||||
19 | xmlns:wwur i="urn:Web Works-XSLT -Extension -URI" | |||||
20 | xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities" | |||||
21 | xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s" | |||||
22 | xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct" | |||||
23 | xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent" | |||||
24 | exclude-re sult-prefi xes="xsl m sxsl wwind ex wwlinks wwmode ww files wwdo c wwsplits wwvars ww project ww page wwloc ale wwprog ress wwlog wwfilesys tem wwuri wwstring w wfilesext wwprojext wwexsldoc" | |||||
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 | ||||||
33 | ||||||
34 | <xsl:outp ut encodin g="UTF-8" indent="ye s" /> | |||||
35 | <xsl:name space-alia s styleshe et-prefix= "wwdeploy" result-pr efix="#def ault" /> | |||||
36 | <xsl:stri p-space el ements="*" /> | |||||
37 | ||||||
38 | ||||||
39 | <xsl:key name="wwfi les-files- by-type" m atch="wwfi les:File" use="@type " /> | |||||
40 | <xsl:key name="wwde ploy-pagei nfo-by-wik ipage" mat ch="wwdepl oy:PageInf o" use="@w iki-page" /> | |||||
41 | ||||||
42 | ||||||
43 | <xsl:vari able name= "GlobalAct ionChecksu m"> | |||||
44 | <xsl:var iable name ="VarTrans formChecks ums"> | |||||
45 | <xsl:va lue-of sel ect="conca t(wwuri:As FilePath(' wwtransfor m:self'), ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: self')))" /> | |||||
46 | </xsl:va riable> | |||||
47 | <xsl:val ue-of sele ct="wwstri ng:MD5Chec ksum($VarT ransformCh ecksums)" /> | |||||
48 | </xsl:var iable> | |||||
49 | ||||||
50 | ||||||
51 | <xsl:temp late match ="/"> | |||||
52 | <wwfiles :Files ver sion="1.0" > | |||||
53 | ||||||
54 | <xsl:fo r-each sel ect="$Glob alFiles[1] "> | |||||
55 | <!-- L ocate page info --> | |||||
56 | <!-- --> | |||||
57 | <xsl:v ariable na me="VarPag eInfoFiles " select=" key('wwfil es-files-b y-type', $ ParameterD ependsType )" /> | |||||
58 | ||||||
59 | <!-- O nly proces s one page info file --> | |||||
60 | <!-- --> | |||||
61 | <xsl:f or-each se lect="$Var PageInfoFi les[1]"> | |||||
62 | <xsl: variable n ame="VarPa geInfoFile " select=" ." /> | |||||
63 | ||||||
64 | <!-- Determine output pat h --> | |||||
65 | <!-- --> | |||||
66 | <xsl: variable n ame="VarPa th" select ="wwfilesy stem:Combi ne(wwproje xt:GetTarg etOutputDi rectoryPat h(), 'wiki -mediawiki .deploy')" /> | |||||
67 | ||||||
68 | <!-- Up-to-date ? --> | |||||
69 | <!-- --> | |||||
70 | <xsl: variable n ame="VarUp ToDate" se lect="wwfi lesext:UpT oDate($Var Path, '', '', '', $G lobalActio nChecksum) " /> | |||||
71 | <xsl: if test="n ot($VarUpT oDate)"> | |||||
72 | <!-- Define de ployment s pecificati on --> | |||||
73 | <!-- --> | |||||
74 | <xsl :variable name="VarR esultAsXML "> | |||||
75 | <xs l:call-tem plate name ="Deployme nt-Specifi cation"> | |||||
76 | <x sl:with-pa ram name=" ParamPageI nfoFile" s elect="$Va rPageInfoF ile" /> | |||||
77 | </x sl:call-te mplate> | |||||
78 | </xs l:variable > | |||||
79 | <xsl :variable name="VarR esult" sel ect="msxsl :node-set( $VarResult AsXML)" /> | |||||
80 | <xsl :variable name="VarW riteResult " select=" wwexsldoc: Document($ VarResult, $VarPath, 'utf-8', 'xml', '1. 0', 'yes') " /> | |||||
81 | </xsl :if> | |||||
82 | ||||||
83 | <!-- Report Fil es --> | |||||
84 | <!-- --> | |||||
85 | <wwfi les:File p ath="{$Var Path}" typ e="{$Param eterType}" checksum= "{wwfilesy stem:GetCh ecksum($Va rPath)}" p rojectchec ksum="" gr oupID="" d ocumentID= "" actionc hecksum="{ $GlobalAct ionChecksu m}" catego ry="" use= "" deploy= "false"> | |||||
86 | <wwf iles:Depen ds path="{ $VarPageIn foFile/@pa th}" check sum="{$Var PageInfoFi le/@checks um}" group ID="{$VarP ageInfoFil e/@groupID }" documen tID="{$Var PageInfoFi le/@docume ntID}" /> | |||||
87 | </wwf iles:File> | |||||
88 | </xsl: for-each> | |||||
89 | </xsl:f or-each> | |||||
90 | ||||||
91 | </wwfile s:Files> | |||||
92 | </xsl:tem plate> | |||||
93 | ||||||
94 | ||||||
95 | <xsl:temp late name= "Deploymen t-Specific ation"> | |||||
96 | <xsl:par am name="P aramPageIn foFile" /> | |||||
97 | ||||||
98 | <wwdeplo y:Deploy> | |||||
99 | ||||||
100 | <!-- Si ngle group in projec t? --> | |||||
101 | <!-- --> | |||||
102 | <xsl:va riable nam e="VarSing leGroupInP roject" se lect="coun t($GlobalP roject/wwp roject:Pro ject/wwpro ject:Group s/wwprojec t:Group) = 1" /> | |||||
103 | ||||||
104 | <!-- Ba se path -- > | |||||
105 | <!-- -- > | |||||
106 | <xsl:va riable nam e="VarBase Path"> | |||||
107 | <xsl:c hoose> | |||||
108 | <!-- Single gro up --> | |||||
109 | <!-- --> | |||||
110 | <xsl: when test= "$VarSingl eGroupInPr oject"> | |||||
111 | <xsl :value-of select="ww filesystem :Combine(w wprojext:G etTargetOu tputDirect oryPath(), wwprojext :GetGroupN ame($Globa lProject/w wproject:P roject/wwp roject:Gro ups/wwproj ect:Group/ @GroupID), 'dummy.co mponent')" /> | |||||
112 | </xsl :when> | |||||
113 | ||||||
114 | <!-- Multiple g roups --> | |||||
115 | <!-- --> | |||||
116 | <xsl: otherwise> | |||||
117 | <xsl :value-of select="ww filesystem :Combine(w wprojext:G etTargetOu tputDirect oryPath(), 'dummy.co mponent')" /> | |||||
118 | </xsl :otherwise > | |||||
119 | </xsl: choose> | |||||
120 | </xsl:v ariable> | |||||
121 | ||||||
122 | <!-- Pa ge Info -- > | |||||
123 | <!-- -- > | |||||
124 | <xsl:va riable nam e="VarPage InfoCollec tion" sele ct="wwexsl doc:LoadXM LWithoutRe solver($Pa ramPageInf oFile/@pat h)" /> | |||||
125 | ||||||
126 | <!-- Pa ges --> | |||||
127 | <!-- --> | |||||
128 | <xsl:ap ply-templa tes select ="$VarPage InfoCollec tion" mode ="wwmode:p ages" /> | |||||
129 | ||||||
130 | </wwdepl oy:Deploy> | |||||
131 | </xsl:tem plate> | |||||
132 | ||||||
133 | ||||||
134 | <!-- wwmo de:pages - -> | |||||
135 | <!-- - -> | |||||
136 | ||||||
137 | <xsl:temp late match ="/" mode= "wwmode:pa ges"> | |||||
138 | <!-- Pro cess child ren --> | |||||
139 | <!-- --> | |||||
140 | <xsl:app ly-templat es mode="w wmode:page s" /> | |||||
141 | </xsl:tem plate> | |||||
142 | ||||||
143 | ||||||
144 | <xsl:temp late match ="wwdeploy :PageInfoC ollection" mode="wwm ode:pages" > | |||||
145 | <!-- Pro cess child ren --> | |||||
146 | <!-- --> | |||||
147 | <xsl:app ly-templat es mode="w wmode:page s" /> | |||||
148 | </xsl:tem plate> | |||||
149 | ||||||
150 | ||||||
151 | <xsl:temp late match ="wwdeploy :PageInfo" mode="wwm ode:pages" > | |||||
152 | <xsl:var iable name ="ParamPag eInfo" sel ect="." /> | |||||
153 | ||||||
154 | <!-- Loc ate first unique pag e --> | |||||
155 | <!-- --> | |||||
156 | <xsl:var iable name ="VarSameP ageInfoCol lection" s elect="key ('wwdeploy -pageinfo- by-wikipag e', $Param PageInfo/@ wiki-page) " /> | |||||
157 | <xsl:if test="coun t($ParamPa geInfo | $ VarSamePag eInfoColle ction[1]) = 1"> | |||||
158 | <!-- Lo cate page source --> | |||||
159 | <!-- --> | |||||
160 | <xsl:va riable nam e="VarExis tingPageIn fo" select ="$VarSame PageInfoCo llection/s elf::*[@at tachment = 'false'][ 1]" /> | |||||
161 | <xsl:ch oose> | |||||
162 | <!-- P age exists --> | |||||
163 | <!-- --> | |||||
164 | <xsl:w hen test=" count($Var ExistingPa geInfo) = 1"> | |||||
165 | <wwde ploy:Page source="{$ VarExistin gPageInfo/ @source}" name="{$Va rExistingP ageInfo/@w iki-name}" > | |||||
166 | <xsl :apply-tem plates sel ect="$VarS amePageInf oCollectio n" mode="w wmode:atta chments" / > | |||||
167 | </wwd eploy:Page > | |||||
168 | </xsl: when> | |||||
169 | ||||||
170 | <!-- S ynthesize page entry --> | |||||
171 | <!-- --> | |||||
172 | <xsl:o therwise> | |||||
173 | <wwde ploy:Page source="" name="{$Pa ramPageInf o/@wiki-pa ge}"> | |||||
174 | <xsl :apply-tem plates sel ect="$VarS amePageInf oCollectio n" mode="w wmode:atta chments" / > | |||||
175 | </wwd eploy:Page > | |||||
176 | </xsl: otherwise> | |||||
177 | </xsl:c hoose> | |||||
178 | </xsl:if > | |||||
179 | </xsl:tem plate> | |||||
180 | ||||||
181 | ||||||
182 | <xsl:temp late match ="*" mode= "wwmode:pa ges"> | |||||
183 | <!-- Ign ore --> | |||||
184 | <!-- --> | |||||
185 | </xsl:tem plate> | |||||
186 | ||||||
187 | ||||||
188 | <xsl:temp late match ="text() | comment() | process ing-instru ction()" m ode="wwmod e:pages"> | |||||
189 | <!-- Ign ore --> | |||||
190 | <!-- --> | |||||
191 | </xsl:tem plate> | |||||
192 | ||||||
193 | ||||||
194 | <!-- wwmo de:attachm ents --> | |||||
195 | <!-- --> | |||||
196 | ||||||
197 | <xsl:temp late match ="wwdeploy :PageInfo[ @attachmen t = 'true' ]" mode="w wmode:atta chments"> | |||||
198 | <xsl:par am name="P aramInfo" select="." /> | |||||
199 | ||||||
200 | <wwdeplo y:Attachme nt source= "{$ParamIn fo/@source }" name="{ $ParamInfo /@wiki-nam e}" /> | |||||
201 | </xsl:tem plate> | |||||
202 | ||||||
203 | ||||||
204 | <xsl:temp late match ="*" mode= "wwmode:at tachments" > | |||||
205 | <!-- Ign ore --> | |||||
206 | <!-- --> | |||||
207 | </xsl:tem plate> | |||||
208 | ||||||
209 | ||||||
210 | <xsl:temp late match ="text() | comment() | process ing-instru ction()" m ode="wwmod e:attachme nts"> | |||||
211 | <!-- Ign ore --> | |||||
212 | <!-- --> | |||||
213 | </xsl:tem plate> | |||||
214 | </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.