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_page_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 | 235 |
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 rameterTOC Type" /> | |||||
31 | <xsl:para m name="Pa rameterInd exType" /> | |||||
32 | <xsl:para m name="Pa rameterPag eType" /> | |||||
33 | <xsl:para m name="Pa rameterTyp e" /> | |||||
34 | ||||||
35 | ||||||
36 | <xsl:outp ut encodin g="UTF-8" indent="ye s" /> | |||||
37 | <xsl:name space-alia s styleshe et-prefix= "wwdeploy" result-pr efix="#def ault" /> | |||||
38 | <xsl:stri p-space el ements="*" /> | |||||
39 | ||||||
40 | <xsl:incl ude href=" wwformat:T ransforms/ mediawiki. xsl" /> | |||||
41 | ||||||
42 | <xsl:key name="wwfi les-files- by-deploy" match="ww files:File " use="@de ploy" /> | |||||
43 | ||||||
44 | ||||||
45 | <xsl:vari able name= "GlobalAct ionChecksu m"> | |||||
46 | <xsl:var iable name ="VarTrans formChecks ums"> | |||||
47 | <xsl:va lue-of sel ect="conca t(wwuri:As FilePath(' wwtransfor m:self'), ':', wwfil esystem:Ge tChecksum( wwuri:AsFi lePath('ww transform: self')))" /> | |||||
48 | <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')))" / > | |||||
49 | </xsl:va riable> | |||||
50 | <xsl:val ue-of sele ct="wwstri ng:MD5Chec ksum($VarT ransformCh ecksums)" /> | |||||
51 | </xsl:var iable> | |||||
52 | ||||||
53 | ||||||
54 | <xsl:vari able name= "GlobalPro cessAsPage Extensions " select=" concat(' ' , wwprojex t:GetForma tSetting(' wiki-proce ss-as-page -extension s'), ' ')" /> | |||||
55 | ||||||
56 | ||||||
57 | <xsl:temp late match ="/"> | |||||
58 | <wwfiles :Files ver sion="1.0" > | |||||
59 | ||||||
60 | <xsl:fo r-each sel ect="$Glob alFiles[1] "> | |||||
61 | <!-- D etermine o utput path --> | |||||
62 | <!-- --> | |||||
63 | <xsl:v ariable na me="VarPat h" select= "wwfilesys tem:Combin e(wwprojex t:GetTarge tDataDirec toryPath() , concat(t ranslate($ ParameterT ype, ':', '_'),'.xml '))" /> | |||||
64 | ||||||
65 | <!-- U p-to-date? --> | |||||
66 | <!-- --> | |||||
67 | <xsl:v ariable na me="VarFil esToDeploy " select=" key('wwfil es-files-b y-deploy', 'true')" /> | |||||
68 | <xsl:v ariable na me="VarFil esToDeploy Count" sel ect="count ($VarFiles ToDeploy)" /> | |||||
69 | <xsl:v ariable na me="VarUpT oDate" sel ect="wwfil esext:UpTo Date($VarP ath, $VarF ilesToDepl oyCount, ' ', '', $Gl obalAction Checksum)" /> | |||||
70 | <xsl:i f test="no t($VarUpTo Date)"> | |||||
71 | <!-- Define dep loyment sp ecificatio n --> | |||||
72 | <!-- --> | |||||
73 | <xsl: variable n ame="VarRe sultAsXML" > | |||||
74 | <xsl :call-temp late name= "Deploymen t-Page-Inf o"> | |||||
75 | <xs l:with-par am name="P aramFilesT oDeploy" s elect="$Va rFilesToDe ploy" /> | |||||
76 | </xs l:call-tem plate> | |||||
77 | </xsl :variable> | |||||
78 | <xsl: variable n ame="VarRe sult" sele ct="msxsl: node-set($ VarResultA sXML)" /> | |||||
79 | <xsl: variable n ame="VarWr iteResult" select="w wexsldoc:D ocument($V arResult, $VarPath, 'utf-8', ' xml', '1.0 ', 'yes')" /> | |||||
80 | </xsl: if> | |||||
81 | ||||||
82 | <!-- R eport File s --> | |||||
83 | <!-- --> | |||||
84 | <wwfil es:File pa th="{$VarP ath}" type ="{$Parame terType}" checksum=" {wwfilesys tem:GetChe cksum($Var Path)}" pr ojectcheck sum="{$Var FilesToDep loyCount}" groupID=" " document ID="" acti onchecksum ="{$Global ActionChec ksum}" cat egory="" u se="" depl oy="false" > | |||||
85 | <xsl: for-each s elect="$Va rFilesToDe ploy"> | |||||
86 | <xsl :variable name="VarF ileToDeplo y" select= "." /> | |||||
87 | ||||||
88 | <wwf iles:Depen ds path="{ $VarFileTo Deploy/@pa th}" check sum="{$Var FileToDepl oy/@checks um}" group ID="{$VarF ileToDeplo y/@groupID }" documen tID="{$Var FileToDepl oy/@docume ntID}" /> | |||||
89 | </xsl :for-each> | |||||
90 | </wwfi les:File> | |||||
91 | </xsl:f or-each> | |||||
92 | ||||||
93 | </wwfile s:Files> | |||||
94 | </xsl:tem plate> | |||||
95 | ||||||
96 | ||||||
97 | <xsl:temp late name= "Deploymen t-Page-Inf o"> | |||||
98 | <xsl:par am name="P aramFilesT oDeploy" / > | |||||
99 | ||||||
100 | <wwdeplo y:PageInfo Collection > | |||||
101 | ||||||
102 | <!-- Si ngle group in projec t? --> | |||||
103 | <!-- --> | |||||
104 | <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" /> | |||||
105 | ||||||
106 | <!-- Ba se path -- > | |||||
107 | <!-- -- > | |||||
108 | <xsl:va riable nam e="VarBase Path" sele ct="wwfile system:Com bine(wwpro jext:GetTa rgetOutput DirectoryP ath(), 'du mmy.compon ent')" /> | |||||
109 | ||||||
110 | <!-- Pa ge Info -- > | |||||
111 | <!-- -- > | |||||
112 | <xsl:ap ply-templa tes select ="$GlobalF iles" mode ="wwmode:p age-info"> | |||||
113 | <xsl:w ith-param name="Para mBasePath" select="$ VarBasePat h" /> | |||||
114 | </xsl:a pply-templ ates> | |||||
115 | ||||||
116 | </wwdepl oy:PageInf oCollectio n> | |||||
117 | </xsl:tem plate> | |||||
118 | ||||||
119 | ||||||
120 | <!-- wwmo de:page-in fo --> | |||||
121 | <!-- --> | |||||
122 | ||||||
123 | <xsl:temp late match ="/" mode= "wwmode:pa ge-info"> | |||||
124 | <xsl:par am name="P aramBasePa th" /> | |||||
125 | ||||||
126 | <!-- Pro cess child ren --> | |||||
127 | <!-- --> | |||||
128 | <xsl:app ly-templat es mode="w wmode:page -info"> | |||||
129 | <xsl:wi th-param n ame="Param BasePath" select="$P aramBasePa th" /> | |||||
130 | </xsl:ap ply-templa tes> | |||||
131 | </xsl:tem plate> | |||||
132 | ||||||
133 | ||||||
134 | <xsl:temp late match ="wwfiles: Files" mod e="wwmode: page-info" > | |||||
135 | <xsl:par am name="P aramBasePa th" /> | |||||
136 | ||||||
137 | <!-- Pro cess child ren --> | |||||
138 | <!-- --> | |||||
139 | <xsl:app ly-templat es mode="w wmode:page -info"> | |||||
140 | <xsl:wi th-param n ame="Param BasePath" select="$P aramBasePa th" /> | |||||
141 | </xsl:ap ply-templa tes> | |||||
142 | </xsl:tem plate> | |||||
143 | ||||||
144 | ||||||
145 | <xsl:temp late match ="wwfiles: File[@depl oy = 'true ']" mode=" wwmode:pag e-info"> | |||||
146 | <xsl:par am name="P aramFile" select="." /> | |||||
147 | <xsl:par am name="P aramBasePa th" /> | |||||
148 | ||||||
149 | <!-- Wik i page? -- > | |||||
150 | <!-- -- > | |||||
151 | <xsl:var iable name ="VarIsWik iPageAsTex t"> | |||||
152 | <xsl:ch oose> | |||||
153 | <!-- T OC --> | |||||
154 | <!-- --> | |||||
155 | <xsl:w hen test=" $ParamFile /@type = $ ParameterT OCType"> | |||||
156 | <xsl: value-of s elect="tru e()" /> | |||||
157 | </xsl: when> | |||||
158 | ||||||
159 | <!-- I ndex --> | |||||
160 | <!-- --> | |||||
161 | <xsl:w hen test=" $ParamFile /@type = $ ParameterI ndexType"> | |||||
162 | <xsl: value-of s elect="tru e()" /> | |||||
163 | </xsl: when> | |||||
164 | ||||||
165 | <!-- G enerated p age --> | |||||
166 | <!-- --> | |||||
167 | <xsl:w hen test=" $ParamFile /@type = $ ParameterP ageType"> | |||||
168 | <xsl: value-of s elect="tru e()" /> | |||||
169 | </xsl: when> | |||||
170 | ||||||
171 | <!-- W iki page e xtension - -> | |||||
172 | <!-- - -> | |||||
173 | <xsl:o therwise> | |||||
174 | <xsl: value-of s elect="con tains($Glo balProcess AsPageExte nsions, co ncat(' ', wwfilesyst em:GetExte nsion($Par amFile/@pa th), ' ')) " /> | |||||
175 | </xsl: otherwise> | |||||
176 | </xsl:c hoose> | |||||
177 | </xsl:va riable> | |||||
178 | <xsl:var iable name ="VarIsWik iPage" sel ect="$VarI sWikiPageA sText = 't rue'" /> | |||||
179 | ||||||
180 | <!-- Inf o Entry -- > | |||||
181 | <!-- -- > | |||||
182 | <xsl:cho ose> | |||||
183 | <!-- Pa ge --> | |||||
184 | <!-- --> | |||||
185 | <xsl:wh en test="$ VarIsWikiP age"> | |||||
186 | <xsl:v ariable na me="VarWik iName"> | |||||
187 | <xsl: call-templ ate name=" MediaWiki- ProjectRoo tedLink"> | |||||
188 | <xsl :with-para m name="Pa ramLinkPat h" select= "$ParamFil e/@path" / > | |||||
189 | <xsl :with-para m name="Pa ramTargetO utputDirec toryPath" select="$P aramBasePa th" /> | |||||
190 | </xsl :call-temp late> | |||||
191 | </xsl: variable> | |||||
192 | <xsl:v ariable na me="VarWik iPage" sel ect="$VarW ikiName" / > | |||||
193 | ||||||
194 | <wwdep loy:PageIn fo source= "{$ParamFi le/@path}" wiki-name ="{$VarWik iName}" wi ki-page="{ $VarWikiPa ge}" attac hment="fal se" /> | |||||
195 | </xsl:w hen> | |||||
196 | ||||||
197 | <!-- At tachment - -> | |||||
198 | <!-- - -> | |||||
199 | <xsl:ot herwise> | |||||
200 | <xsl:v ariable na me="VarWik iName"> | |||||
201 | <xsl: call-templ ate name=" MediaWiki- ImageRoote dLink"> | |||||
202 | <xsl :with-para m name="Pa ramLinkPat h" select= "$ParamFil e/@path" / > | |||||
203 | <xsl :with-para m name="Pa ramTargetO utputDirec toryPath" select="$P aramBasePa th" /> | |||||
204 | <xsl :with-para m name="Pa ramInclude Namespace" select="f alse()" /> | |||||
205 | </xsl :call-temp late> | |||||
206 | </xsl: variable> | |||||
207 | ||||||
208 | <xsl:v ariable na me="VarWik iPage"> | |||||
209 | <xsl: call-templ ate name=" MediaWiki- ProjectRoo tedLink"> | |||||
210 | <xsl :with-para m name="Pa ramLinkPat h" select= "concat(ww filesystem :GetDirect oryName($P aramFile/@ path), '.w iki')" /> | |||||
211 | <xsl :with-para m name="Pa ramTargetO utputDirec toryPath" select="$P aramBasePa th" /> | |||||
212 | </xsl :call-temp late> | |||||
213 | </xsl: variable> | |||||
214 | ||||||
215 | <wwdep loy:PageIn fo source= "{$ParamFi le/@path}" wiki-name ="{$VarWik iName}" wi ki-page="{ $VarWikiPa ge}" attac hment="tru e" /> | |||||
216 | </xsl:o therwise> | |||||
217 | </xsl:ch oose> | |||||
218 | </xsl:tem plate> | |||||
219 | ||||||
220 | ||||||
221 | <xsl:temp late match ="*" mode= "wwmode:pa ge-info"> | |||||
222 | <xsl:par am name="P aramBasePa th" /> | |||||
223 | ||||||
224 | <!-- Ign ore --> | |||||
225 | <!-- --> | |||||
226 | </xsl:tem plate> | |||||
227 | ||||||
228 | ||||||
229 | <xsl:temp late match ="text() | comment() | process ing-instru ction()" m ode="wwmod e:page-inf o"> | |||||
230 | <xsl:par am name="P aramBasePa th" /> | |||||
231 | ||||||
232 | <!-- Ign ore --> | |||||
233 | <!-- --> | |||||
234 | </xsl:tem plate> | |||||
235 | </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.