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