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:xsl=
"http://ww
w.w3.org/1
999/XSL/Tr
ansform"
|
|
2 |
|
<xsl:style
sheet vers
ion="1.0"
xmlns:xsl=
"http://ww
w.w3.org/1
999/XSL/Tr
ansform"
|
3 |
|
xmlns:msxs
l="urn:sch
emas-micro
soft-com:x
slt"
|
|
3 |
|
xmlns:msxs
l="urn:sch
emas-micro
soft-com:x
slt"
|
|
|
|
|
4 |
|
xmlns:html
="http://w
ww.w3.org/
1999/xhtml
"
|
4 |
|
xmlns:wwsp
lits="urn:
WebWorks-E
ngine-Spli
ts-Schema"
|
|
5 |
|
xmlns:wwsp
lits="urn:
WebWorks-E
ngine-Spli
ts-Schema"
|
5 |
|
xmlns:wwto
c="urn:Web
Works-Engi
ne-TOC-Sch
ema"
|
|
6 |
|
xmlns:wwto
c="urn:Web
Works-Engi
ne-TOC-Sch
ema"
|
6 |
|
xmlns:wwli
nks="urn:W
ebWorks-En
gine-Links
-Schema"
|
|
7 |
|
xmlns:wwli
nks="urn:W
ebWorks-En
gine-Links
-Schema"
|
7 |
|
xmlns:wwmo
de="urn:We
bWorks-Eng
ine-Mode"
|
|
8 |
|
xmlns:wwmo
de="urn:We
bWorks-Eng
ine-Mode"
|
8 |
|
xmlns:wwfi
les="urn:W
ebWorks-En
gine-Files
-Schema"
|
|
9 |
|
xmlns:wwfi
les="urn:W
ebWorks-En
gine-Files
-Schema"
|
9 |
|
xmlns:wwdo
c="urn:Web
Works-Docu
ment-Schem
a"
|
|
10 |
|
xmlns:wwdo
c="urn:Web
Works-Docu
ment-Schem
a"
|
10 |
|
xmlns:wwbe
haviors="u
rn:WebWork
s-Behavior
s-Schema"
|
|
11 |
|
xmlns:wwbe
haviors="u
rn:WebWork
s-Behavior
s-Schema"
|
11 |
|
xmlns:wwno
tes="urn:W
ebWorks-Fo
otnote-Sch
ema"
|
|
12 |
|
xmlns:wwno
tes="urn:W
ebWorks-Fo
otnote-Sch
ema"
|
12 |
|
xmlns:wwpr
oject="urn
:WebWorks-
Publish-Pr
oject"
|
|
13 |
|
xmlns:wwpr
oject="urn
:WebWorks-
Publish-Pr
oject"
|
13 |
|
xmlns:wwpa
ge="urn:We
bWorks-Pag
e-Template
-Schema"
|
|
14 |
|
xmlns:wwpa
ge="urn:We
bWorks-Pag
e-Template
-Schema"
|
14 |
|
xmlns:wwlo
cale="urn:
WebWorks-L
ocale-Sche
ma"
|
|
15 |
|
xmlns:wwlo
cale="urn:
WebWorks-L
ocale-Sche
ma"
|
15 |
|
xmlns:wwpr
ogress="ur
n:WebWorks
-XSLT-Exte
nsion-Prog
ress"
|
|
16 |
|
xmlns:wwpr
ogress="ur
n:WebWorks
-XSLT-Exte
nsion-Prog
ress"
|
16 |
|
xmlns:wwlo
g="urn:Web
Works-XSLT
-Extension
-Log"
|
|
17 |
|
xmlns:wwlo
g="urn:Web
Works-XSLT
-Extension
-Log"
|
17 |
|
xmlns:wwfi
lesystem="
urn:WebWor
ks-XSLT-Ex
tension-Fi
leSystem"
|
|
18 |
|
xmlns:wwfi
lesystem="
urn:WebWor
ks-XSLT-Ex
tension-Fi
leSystem"
|
18 |
|
xmlns:wwur
i="urn:Web
Works-XSLT
-Extension
-URI"
|
|
19 |
|
xmlns:wwur
i="urn:Web
Works-XSLT
-Extension
-URI"
|
19 |
|
xmlns:wwst
ring="urn:
WebWorks-X
SLT-Extens
ion-String
Utilities"
|
|
20 |
|
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:wwfi
lesext="ur
n:WebWorks
-XSLT-Exte
nsion-File
s"
|
21 |
|
xmlns:wwpr
ojext="urn
:WebWorks-
XSLT-Exten
sion-Proje
ct"
|
|
22 |
|
xmlns:wwpr
ojext="urn
:WebWorks-
XSLT-Exten
sion-Proje
ct"
|
22 |
|
xmlns:wwex
sldoc="urn
:WebWorks-
XSLT-Exten
sion-Docum
ent"
|
|
23 |
|
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 |
|
xmlns:wwmu
ltisere="u
rn:WebWork
s-XSLT-Ext
ension-Mul
tiSearchRe
place"
|
24 |
|
exclude-re
sult-prefi
xes="xsl m
sxsl wwspl
its wwtoc
wwlinks ww
mode wwfil
es wwdoc w
wbehaviors
wwproject
wwpage ww
locale wwp
rogress ww
log wwfile
system wwu
ri wwstrin
g wwfilese
xt wwproje
xt wwexsld
oc wwmulti
sere"
|
|
25 |
|
exclude-re
sult-prefi
xes="xsl m
sxsl wwspl
its wwtoc
wwlinks ww
mode wwfil
es wwdoc w
wbehaviors
wwproject
wwpage ww
locale wwp
rogress ww
log wwfile
system wwu
ri wwstrin
g wwfilese
xt wwproje
xt wwexsld
oc wwmulti
sere"
|
25 |
|
>
|
|
26 |
|
>
|
26 |
|
|
|
27 |
|
|
27 |
|
<!-- Wiki
Name Repl
acements -
->
|
|
28 |
|
<!-- Wiki
Name Repl
acements -
->
|
28 |
|
<!--
-
->
|
|
29 |
|
<!--
-
->
|
29 |
|
<xsl:vari
able name=
"GlobalWik
iNameRepla
cementsAsX
ML">
|
|
30 |
|
<xsl:vari
able name=
"GlobalWik
iNameRepla
cementsAsX
ML">
|
30 |
|
<wwmulti
sere:Entry
match=";"
replaceme
nt="_" />
|
|
31 |
|
<wwmulti
sere:Entry
match=";"
replaceme
nt="_" />
|
31 |
|
<wwmulti
sere:Entry
match="/"
replaceme
nt="_" />
|
|
32 |
|
<wwmulti
sere:Entry
match="/"
replaceme
nt="_" />
|
32 |
|
<wwmulti
sere:Entry
match="?"
replaceme
nt="_" />
|
|
33 |
|
<wwmulti
sere:Entry
match="?"
replaceme
nt="_" />
|
33 |
|
<wwmulti
sere:Entry
match="@"
replaceme
nt="_" />
|
|
34 |
|
<wwmulti
sere:Entry
match="@"
replaceme
nt="_" />
|
34 |
|
<wwmulti
sere:Entry
match="&a
mp;" repla
cement="_"
/>
|
|
35 |
|
<wwmulti
sere:Entry
match="&a
mp;" repla
cement="_"
/>
|
35 |
|
<wwmulti
sere:Entry
match="="
replaceme
nt="_" />
|
|
36 |
|
<wwmulti
sere:Entry
match="="
replaceme
nt="_" />
|
36 |
|
<wwmulti
sere:Entry
match="+"
replaceme
nt="_" />
|
|
37 |
|
<wwmulti
sere:Entry
match="+"
replaceme
nt="_" />
|
37 |
|
<wwmulti
sere:Entry
match="$"
replaceme
nt="_" />
|
|
38 |
|
<wwmulti
sere:Entry
match="$"
replaceme
nt="_" />
|
38 |
|
<wwmulti
sere:Entry
match=","
replaceme
nt="_" />
|
|
39 |
|
<wwmulti
sere:Entry
match=","
replaceme
nt="_" />
|
39 |
|
<wwmulti
sere:Entry
match="#"
replaceme
nt="_" />
|
|
40 |
|
<wwmulti
sere:Entry
match="#"
replaceme
nt="_" />
|
40 |
|
<wwmulti
sere:Entry
match=" "
replaceme
nt="_" />
|
|
41 |
|
<wwmulti
sere:Entry
match=" "
replaceme
nt="_" />
|
41 |
|
<wwmulti
sere:Entry
match="&l
t;" replac
ement="_"
/>
|
|
42 |
|
<wwmulti
sere:Entry
match="&l
t;" replac
ement="_"
/>
|
42 |
|
<wwmulti
sere:Entry
match="&g
t;" replac
ement="_"
/>
|
|
43 |
|
<wwmulti
sere:Entry
match="&g
t;" replac
ement="_"
/>
|
43 |
|
<wwmulti
sere:Entry
match="%"
replaceme
nt="_" />
|
|
44 |
|
<wwmulti
sere:Entry
match="%"
replaceme
nt="_" />
|
44 |
|
<wwmulti
sere:Entry
match="&q
uot;" repl
acement="_
" />
|
|
45 |
|
<wwmulti
sere:Entry
match="&q
uot;" repl
acement="_
" />
|
45 |
|
<wwmulti
sere:Entry
match="{{
" replacem
ent="_" />
|
|
46 |
|
<wwmulti
sere:Entry
match="{{
" replacem
ent="_" />
|
46 |
|
<wwmulti
sere:Entry
match="}}
" replacem
ent="_" />
|
|
47 |
|
<wwmulti
sere:Entry
match="}}
" replacem
ent="_" />
|
47 |
|
<wwmulti
sere:Entry
match="|"
replaceme
nt="_" />
|
|
48 |
|
<wwmulti
sere:Entry
match="|"
replaceme
nt="_" />
|
48 |
|
<wwmulti
sere:Entry
match="\"
replaceme
nt="_" />
|
|
49 |
|
<wwmulti
sere:Entry
match="\"
replaceme
nt="_" />
|
49 |
|
<wwmulti
sere:Entry
match="^"
replaceme
nt="_" />
|
|
50 |
|
<wwmulti
sere:Entry
match="^"
replaceme
nt="_" />
|
50 |
|
<wwmulti
sere:Entry
match="["
replaceme
nt="_" />
|
|
51 |
|
<wwmulti
sere:Entry
match="["
replaceme
nt="_" />
|
51 |
|
<wwmulti
sere:Entry
match="]"
replaceme
nt="_" />
|
|
52 |
|
<wwmulti
sere:Entry
match="]"
replaceme
nt="_" />
|
52 |
|
<wwmulti
sere:Entry
match="`"
replaceme
nt="_" />
|
|
53 |
|
<wwmulti
sere:Entry
match="`"
replaceme
nt="_" />
|
53 |
|
</xsl:var
iable>
|
|
54 |
|
</xsl:var
iable>
|
54 |
|
<xsl:vari
able name=
"GlobalWik
iNameRepla
cements" s
elect="msx
sl:node-se
t($GlobalW
ikiNameRep
lacementsA
sXML)" />
|
|
55 |
|
<xsl:vari
able name=
"GlobalWik
iNameRepla
cements" s
elect="msx
sl:node-se
t($GlobalW
ikiNameRep
lacementsA
sXML)" />
|
55 |
|
|
|
56 |
|
|
56 |
|
|
|
|
|
|
57 |
|
<xsl:temp
late name=
"MediaWiki
-ProjectRo
otedLink">
|
|
57 |
|
<xsl:temp
late name=
"MediaWiki
-ProjectRo
otedLink">
|
58 |
|
<xsl:par
am name="P
aramLinkPa
th" />
|
|
58 |
|
<xsl:par
am name="P
aramLinkPa
th" />
|
59 |
|
<xsl:par
am name="P
aramTarget
OutputDire
ctoryPath"
/>
|
|
59 |
|
<xsl:par
am name="P
aramTarget
OutputDire
ctoryPath"
/>
|
60 |
|
|
|
60 |
|
|
61 |
|
<!-- Cre
ate the "r
ooted" pat
h, which i
s the part
from the
target out
put direct
ory to the
end of th
e filename
-->
|
|
61 |
|
<!-- Cre
ate the "r
ooted" pat
h, which i
s the part
from the
target out
put direct
ory to the
end of th
e filename
-->
|
62 |
|
<!--
-->
|
|
62 |
|
<!--
-->
|
63 |
|
<xsl:var
iable name
="VarRefer
enceDirect
oryPath">
|
|
63 |
|
<xsl:var
iable name
="VarRefer
enceDirect
oryPath">
|
64 |
|
<xsl:va
riable nam
e="VarProj
ectGroups"
select="$
GlobalProj
ect/wwproj
ect:Projec
t/wwprojec
t:Groups/w
wproject:G
roup" />
|
|
64 |
|
<xsl:va
riable nam
e="VarProj
ectGroups"
select="$
GlobalProj
ect/wwproj
ect:Projec
t/wwprojec
t:Groups/w
wproject:G
roup" />
|
65 |
|
<xsl:ch
oose>
|
|
65 |
|
<xsl:ch
oose>
|
66 |
|
<!-- E
liminate g
roup name
from singl
e group pr
ojects -->
|
|
66 |
|
<!-- E
liminate g
roup name
from singl
e group pr
ojects -->
|
67 |
|
<!--
-->
|
|
67 |
|
<!--
-->
|
68 |
|
<xsl:w
hen test="
count($Var
ProjectGro
ups[2]) =
0">
|
|
68 |
|
<xsl:w
hen test="
count($Var
ProjectGro
ups[2]) =
0">
|
69 |
|
<xsl:
value-of s
elect="wwf
ilesystem:
Combine(ww
filesystem
:GetDirect
oryName($P
aramTarget
OutputDire
ctoryPath)
, $VarProj
ectGroups[
1]/@Name,
'dummy.com
ponent')"
/>
|
|
69 |
|
<xsl:
value-of s
elect="wwf
ilesystem:
Combine(ww
filesystem
:GetDirect
oryName($P
aramTarget
OutputDire
ctoryPath)
, $VarProj
ectGroups[
1]/@Name,
'dummy.com
ponent')"
/>
|
70 |
|
</xsl:
when>
|
|
70 |
|
</xsl:
when>
|
71 |
|
|
|
71 |
|
|
72 |
|
<!-- Q
ualify gro
up names -
->
|
|
72 |
|
<!-- Q
ualify gro
up names -
->
|
73 |
|
<!--
-
->
|
|
73 |
|
<!--
-
->
|
74 |
|
<xsl:o
therwise>
|
|
74 |
|
<xsl:o
therwise>
|
75 |
|
<xsl:
value-of s
elect="$Pa
ramTargetO
utputDirec
toryPath"
/>
|
|
75 |
|
<xsl:
value-of s
elect="$Pa
ramTargetO
utputDirec
toryPath"
/>
|
76 |
|
</xsl:
otherwise>
|
|
76 |
|
</xsl:
otherwise>
|
77 |
|
</xsl:c
hoose>
|
|
77 |
|
</xsl:c
hoose>
|
78 |
|
</xsl:va
riable>
|
|
78 |
|
</xsl:va
riable>
|
79 |
|
<xsl:var
iable name
="VarProje
ctRootedPa
thWithExte
nsion" sel
ect="wwuri
:Unescape(
wwuri:GetR
elativeTo(
$ParamLink
Path, $Var
ReferenceD
irectoryPa
th))" />
|
|
79 |
|
<xsl:var
iable name
="VarProje
ctRootedPa
thWithExte
nsion" sel
ect="wwuri
:Unescape(
wwuri:GetR
elativeTo(
$ParamLink
Path, $Var
ReferenceD
irectoryPa
th))" />
|
80 |
|
<xsl:var
iable name
="VarFileN
ameWithout
Extension"
select="w
wfilesyste
m:GetFileN
ameWithout
Extension(
$VarProjec
tRootedPat
hWithExten
sion)" />
|
|
80 |
|
<xsl:var
iable name
="VarFileN
ameWithout
Extension"
select="w
wfilesyste
m:GetFileN
ameWithout
Extension(
$VarProjec
tRootedPat
hWithExten
sion)" />
|
81 |
|
<xsl:var
iable name
="VarProje
ctRootedDi
rectory" s
elect="wws
tring:Repl
ace(wwfile
system:Get
DirectoryN
ame($VarPr
ojectRoote
dPathWithE
xtension),
'\', ':')
" />
|
|
81 |
|
<xsl:var
iable name
="VarProje
ctRootedDi
rectory" s
elect="wws
tring:Repl
ace(wwfile
system:Get
DirectoryN
ame($VarPr
ojectRoote
dPathWithE
xtension),
'\', ':')
" />
|
82 |
|
|
|
82 |
|
|
83 |
|
<xsl:var
iable name
="VarWikiD
eploymentP
refixSetti
ng">
|
|
83 |
|
<xsl:var
iable name
="VarWikiD
eploymentP
refixSetti
ng">
|
84 |
|
<xsl:if
test="wwp
rojext:Get
FormatSett
ing('wiki-
deployment
-prefix')
!= 'none'"
>
|
|
84 |
|
<xsl:if
test="wwp
rojext:Get
FormatSett
ing('wiki-
deployment
-prefix')
!= 'none'"
>
|
85 |
|
<xsl:v
alue-of se
lect="wwpr
ojext:GetF
ormatSetti
ng('wiki-d
eployment-
prefix')"
/>
|
|
85 |
|
<xsl:v
alue-of se
lect="wwpr
ojext:GetF
ormatSetti
ng('wiki-d
eployment-
prefix')"
/>
|
86 |
|
</xsl:i
f>
|
|
86 |
|
</xsl:i
f>
|
87 |
|
</xsl:va
riable>
|
|
87 |
|
</xsl:va
riable>
|
88 |
|
<xsl:var
iable name
="VarWikiD
eploymentP
refix" sel
ect="wwmul
tisere:Rep
laceAllInS
tring($Var
WikiDeploy
mentPrefix
Setting, $
GlobalWiki
NameReplac
ements/*)"
/>
|
|
88 |
|
<xsl:var
iable name
="VarWikiD
eploymentP
refix" sel
ect="wwmul
tisere:Rep
laceAllInS
tring($Var
WikiDeploy
mentPrefix
Setting, $
GlobalWiki
NameReplac
ements/*)"
/>
|
89 |
|
|
|
89 |
|
|
90 |
|
<xsl:var
iable name
="VarResul
t">
|
|
90 |
|
<xsl:var
iable name
="VarResul
t">
|
91 |
|
<xsl:if
test="str
ing-length
($VarWikiD
eploymentP
refix) >
; 0">
|
|
91 |
|
<xsl:if
test="str
ing-length
($VarWikiD
eploymentP
refix) >
; 0">
|
92 |
|
<xsl:v
alue-of se
lect="wwst
ring:ToUpp
er(substri
ng($VarWik
iDeploymen
tPrefix, 1
, 1))" />
|
|
92 |
|
<xsl:v
alue-of se
lect="wwst
ring:ToUpp
er(substri
ng($VarWik
iDeploymen
tPrefix, 1
, 1))" />
|
93 |
|
<xsl:v
alue-of se
lect="subs
tring($Var
WikiDeploy
mentPrefix
, 2)" />
|
|
93 |
|
<xsl:v
alue-of se
lect="subs
tring($Var
WikiDeploy
mentPrefix
, 2)" />
|
94 |
|
<xsl:t
ext>:</xsl
:text>
|
|
94 |
|
<xsl:t
ext>:</xsl
:text>
|
95 |
|
</xsl:i
f>
|
|
95 |
|
</xsl:i
f>
|
96 |
|
|
|
96 |
|
|
97 |
|
<!-- Em
it group b
it and any
subdirect
ories -->
|
|
97 |
|
<!-- Em
it group b
it and any
subdirect
ories -->
|
98 |
|
<!--
-->
|
|
98 |
|
<!--
-->
|
99 |
|
<xsl:if
test="str
ing-length
($VarProje
ctRootedDi
rectory) &
gt; 0">
|
|
99 |
|
<xsl:if
test="str
ing-length
($VarProje
ctRootedDi
rectory) &
gt; 0">
|
100 |
|
<xsl:
apply-temp
lates sele
ct="msxsl:
node-set(w
wmultisere
:ReplaceAl
lInString(
$VarProjec
tRootedDir
ectory, $G
lobalWikiN
ameReplace
ments/*))"
mode="wwm
ode:mediaw
iki" />
|
|
100 |
|
<xsl:
apply-temp
lates sele
ct="msxsl:
node-set(w
wmultisere
:ReplaceAl
lInString(
$VarProjec
tRootedDir
ectory, $G
lobalWikiN
ameReplace
ments/*))"
mode="wwm
ode:mediaw
iki" />
|
101 |
|
|
|
101 |
|
|
102 |
|
<xsl:
text>-</xs
l:text>
|
|
102 |
|
<xsl:
text>-</xs
l:text>
|
103 |
|
</xsl:i
f>
|
|
103 |
|
</xsl:i
f>
|
104 |
|
|
|
104 |
|
|
105 |
|
<xsl:ap
ply-templa
tes select
="msxsl:no
de-set(wwm
ultisere:R
eplaceAllI
nString($V
arFileName
WithoutExt
ension, $G
lobalWikiN
ameReplace
ments/*))"
mode="wwm
ode:mediaw
iki" />
|
|
105 |
|
<xsl:ap
ply-templa
tes select
="msxsl:no
de-set(wwm
ultisere:R
eplaceAllI
nString($V
arFileName
WithoutExt
ension, $G
lobalWikiN
ameReplace
ments/*))"
mode="wwm
ode:mediaw
iki" />
|
106 |
|
</xsl:va
riable>
|
|
106 |
|
</xsl:va
riable>
|
107 |
|
|
|
107 |
|
|
108 |
|
<xsl:val
ue-of sele
ct="$VarRe
sult" />
|
|
108 |
|
<xsl:val
ue-of sele
ct="$VarRe
sult" />
|
109 |
|
</xsl:tem
plate>
|
|
109 |
|
</xsl:tem
plate>
|
110 |
|
|
|
110 |
|
|
111 |
|
<xsl:temp
late name=
"MediaWiki
-ImageRoot
edLink">
|
|
111 |
|
<xsl:temp
late name=
"MediaWiki
-ImageRoot
edLink">
|
112 |
|
<xsl:par
am name="P
aramLinkPa
th" />
|
|
112 |
|
<xsl:par
am name="P
aramLinkPa
th" />
|
113 |
|
<xsl:par
am name="P
aramTarget
OutputDire
ctoryPath"
/>
|
|
113 |
|
<xsl:par
am name="P
aramTarget
OutputDire
ctoryPath"
/>
|
114 |
|
<xsl:par
am name="P
aramInclud
eNamespace
" select="
true()" />
|
|
114 |
|
<xsl:par
am name="P
aramInclud
eNamespace
" select="
true()" />
|
115 |
|
|
|
115 |
|
|
116 |
|
<!-- Cre
ate the "r
ooted" pat
h, which i
s the part
from the
target out
put direct
ory to the
end of th
e filename
-->
|
|
116 |
|
<!-- Cre
ate the "r
ooted" pat
h, which i
s the part
from the
target out
put direct
ory to the
end of th
e filename
-->
|
117 |
|
<!--
-->
|
|
117 |
|
<!--
-->
|
118 |
|
<xsl:var
iable name
="VarRefer
enceDirect
oryPath">
|
|
118 |
|
<xsl:var
iable name
="VarRefer
enceDirect
oryPath">
|
119 |
|
<xsl:va
riable nam
e="VarProj
ectGroups"
select="$
GlobalProj
ect/wwproj
ect:Projec
t/wwprojec
t:Groups/w
wproject:G
roup" />
|
|
119 |
|
<xsl:va
riable nam
e="VarProj
ectGroups"
select="$
GlobalProj
ect/wwproj
ect:Projec
t/wwprojec
t:Groups/w
wproject:G
roup" />
|
120 |
|
<xsl:ch
oose>
|
|
120 |
|
<xsl:ch
oose>
|
121 |
|
<!-- E
liminate g
roup name
from singl
e group pr
ojects -->
|
|
121 |
|
<!-- E
liminate g
roup name
from singl
e group pr
ojects -->
|
122 |
|
<!--
-->
|
|
122 |
|
<!--
-->
|
123 |
|
<xsl:w
hen test="
count($Var
ProjectGro
ups[2]) =
0">
|
|
123 |
|
<xsl:w
hen test="
count($Var
ProjectGro
ups[2]) =
0">
|
124 |
|
<xsl:
value-of s
elect="wwf
ilesystem:
Combine(ww
filesystem
:GetDirect
oryName($P
aramTarget
OutputDire
ctoryPath)
, $VarProj
ectGroups[
1]/@Name,
'dummy.com
ponent')"
/>
|
|
124 |
|
<xsl:
value-of s
elect="wwf
ilesystem:
Combine(ww
filesystem
:GetDirect
oryName($P
aramTarget
OutputDire
ctoryPath)
, $VarProj
ectGroups[
1]/@Name,
'dummy.com
ponent')"
/>
|
125 |
|
</xsl:
when>
|
|
125 |
|
</xsl:
when>
|
126 |
|
|
|
126 |
|
|
127 |
|
<!-- Q
ualify gro
up names -
->
|
|
127 |
|
<!-- Q
ualify gro
up names -
->
|
128 |
|
<!--
-
->
|
|
128 |
|
<!--
-
->
|
129 |
|
<xsl:o
therwise>
|
|
129 |
|
<xsl:o
therwise>
|
130 |
|
<xsl:
value-of s
elect="$Pa
ramTargetO
utputDirec
toryPath"
/>
|
|
130 |
|
<xsl:
value-of s
elect="$Pa
ramTargetO
utputDirec
toryPath"
/>
|
131 |
|
</xsl:
otherwise>
|
|
131 |
|
</xsl:
otherwise>
|
132 |
|
</xsl:c
hoose>
|
|
132 |
|
</xsl:c
hoose>
|
133 |
|
</xsl:va
riable>
|
|
133 |
|
</xsl:va
riable>
|
134 |
|
<xsl:var
iable name
="VarProje
ctRootedPa
thWithExte
nsion" sel
ect="wwuri
:Unescape(
wwuri:GetR
elativeTo(
$ParamLink
Path, $Var
ReferenceD
irectoryPa
th))" />
|
|
134 |
|
<xsl:var
iable name
="VarProje
ctRootedPa
thWithExte
nsion" sel
ect="wwuri
:Unescape(
wwuri:GetR
elativeTo(
$ParamLink
Path, $Var
ReferenceD
irectoryPa
th))" />
|
135 |
|
<xsl:var
iable name
="VarFileN
ame" selec
t="wwfiles
ystem:GetF
ileName($V
arProjectR
ootedPathW
ithExtensi
on)" />
|
|
135 |
|
<xsl:var
iable name
="VarFileN
ame" selec
t="wwfiles
ystem:GetF
ileName($V
arProjectR
ootedPathW
ithExtensi
on)" />
|
136 |
|
<xsl:var
iable name
="VarProje
ctRootedDi
rectory" s
elect="wws
tring:Repl
ace(wwfile
system:Get
DirectoryN
ame($VarPr
ojectRoote
dPathWithE
xtension),
'\', '-')
" />
|
|
136 |
|
<xsl:var
iable name
="VarProje
ctRootedDi
rectory" s
elect="wws
tring:Repl
ace(wwfile
system:Get
DirectoryN
ame($VarPr
ojectRoote
dPathWithE
xtension),
'\', '-')
" />
|
137 |
|
|
|
137 |
|
|
138 |
|
<xsl:var
iable name
="VarWikiD
eploymentP
refixSetti
ng">
|
|
138 |
|
<xsl:var
iable name
="VarWikiD
eploymentP
refixSetti
ng">
|
139 |
|
<xsl:if
test="wwp
rojext:Get
FormatSett
ing('wiki-
deployment
-prefix')
!= 'none'"
>
|
|
139 |
|
<xsl:if
test="wwp
rojext:Get
FormatSett
ing('wiki-
deployment
-prefix')
!= 'none'"
>
|
140 |
|
<xsl:v
alue-of se
lect="wwpr
ojext:GetF
ormatSetti
ng('wiki-d
eployment-
prefix')"
/>
|
|
140 |
|
<xsl:v
alue-of se
lect="wwpr
ojext:GetF
ormatSetti
ng('wiki-d
eployment-
prefix')"
/>
|
141 |
|
</xsl:i
f>
|
|
141 |
|
</xsl:i
f>
|
142 |
|
</xsl:va
riable>
|
|
142 |
|
</xsl:va
riable>
|
143 |
|
<xsl:var
iable name
="VarWikiD
eploymentP
refix" sel
ect="wwmul
tisere:Rep
laceAllInS
tring($Var
WikiDeploy
mentPrefix
Setting, $
GlobalWiki
NameReplac
ements/*)"
/>
|
|
143 |
|
<xsl:var
iable name
="VarWikiD
eploymentP
refix" sel
ect="wwmul
tisere:Rep
laceAllInS
tring($Var
WikiDeploy
mentPrefix
Setting, $
GlobalWiki
NameReplac
ements/*)"
/>
|
144 |
|
|
|
144 |
|
|
145 |
|
<xsl:var
iable name
="VarResul
t">
|
|
145 |
|
<xsl:var
iable name
="VarResul
t">
|
146 |
|
<!-- Em
it Image n
amespace -
->
|
|
146 |
|
<!-- Em
it Image n
amespace -
->
|
147 |
|
<!--
-
->
|
|
147 |
|
<!--
-
->
|
148 |
|
<xsl:if
test="$Pa
ramInclude
Namespace"
>
|
|
148 |
|
<xsl:if
test="$Pa
ramInclude
Namespace"
>
|
149 |
|
<xsl:t
ext>Image:
</xsl:text
>
|
|
149 |
|
<xsl:t
ext>Image:
</xsl:text
>
|
150 |
|
</xsl:i
f>
|
|
150 |
|
</xsl:i
f>
|
151 |
|
|
|
151 |
|
|
152 |
|
<xsl:if
test="str
ing-length
($VarWikiD
eploymentP
refix) >
; 0">
|
|
152 |
|
<xsl:if
test="str
ing-length
($VarWikiD
eploymentP
refix) >
; 0">
|
153 |
|
<xsl:v
alue-of se
lect="wwst
ring:ToUpp
er(substri
ng($VarWik
iDeploymen
tPrefix, 1
, 1))" />
|
|
153 |
|
<xsl:v
alue-of se
lect="wwst
ring:ToUpp
er(substri
ng($VarWik
iDeploymen
tPrefix, 1
, 1))" />
|
154 |
|
<xsl:v
alue-of se
lect="subs
tring($Var
WikiDeploy
mentPrefix
, 2)" />
|
|
154 |
|
<xsl:v
alue-of se
lect="subs
tring($Var
WikiDeploy
mentPrefix
, 2)" />
|
155 |
|
<xsl:t
ext>-</xsl
:text>
|
|
155 |
|
<xsl:t
ext>-</xsl
:text>
|
156 |
|
</xsl:i
f>
|
|
156 |
|
</xsl:i
f>
|
157 |
|
|
|
157 |
|
|
158 |
|
<!-- Em
it group b
it and any
subdirect
ories -->
|
|
158 |
|
<!-- Em
it group b
it and any
subdirect
ories -->
|
159 |
|
<!--
-->
|
|
159 |
|
<!--
-->
|
160 |
|
<xsl:if
test="str
ing-length
($VarProje
ctRootedDi
rectory) &
gt; 0">
|
|
160 |
|
<xsl:if
test="str
ing-length
($VarProje
ctRootedDi
rectory) &
gt; 0">
|
161 |
|
<xsl:a
pply-templ
ates selec
t="msxsl:n
ode-set(ww
multisere:
ReplaceAll
InString($
VarProject
RootedDire
ctory, $Gl
obalWikiNa
meReplacem
ents/*))"
mode="wwmo
de:mediawi
ki" />
|
|
161 |
|
<xsl:a
pply-templ
ates selec
t="msxsl:n
ode-set(ww
multisere:
ReplaceAll
InString($
VarProject
RootedDire
ctory, $Gl
obalWikiNa
meReplacem
ents/*))"
mode="wwmo
de:mediawi
ki" />
|
162 |
|
|
|
162 |
|
|
163 |
|
<xsl:t
ext>-</xsl
:text>
|
|
163 |
|
<xsl:t
ext>-</xsl
:text>
|
164 |
|
</xsl:i
f>
|
|
164 |
|
</xsl:i
f>
|
165 |
|
|
|
165 |
|
|
166 |
|
<xsl:ap
ply-templa
tes select
="msxsl:no
de-set(wwm
ultisere:R
eplaceAllI
nString($V
arFileName
, $GlobalW
ikiNameRep
lacements/
*))" mode=
"wwmode:me
diawiki" /
>
|
|
166 |
|
<xsl:ap
ply-templa
tes select
="msxsl:no
de-set(wwm
ultisere:R
eplaceAllI
nString($V
arFileName
, $GlobalW
ikiNameRep
lacements/
*))" mode=
"wwmode:me
diawiki" /
>
|
167 |
|
</xsl:va
riable>
|
|
167 |
|
</xsl:va
riable>
|
168 |
|
|
|
168 |
|
|
169 |
|
<xsl:val
ue-of sele
ct="$VarRe
sult" />
|
|
169 |
|
<xsl:val
ue-of sele
ct="$VarRe
sult" />
|
170 |
|
</xsl:tem
plate>
|
|
170 |
|
</xsl:tem
plate>
|
171 |
|
|
|
171 |
|
|
|
|
|
|
172 |
|
<!-- Esca
ping parag
raph text
for link m
eta charac
ters -->
|
|
|
|
|
173 |
|
<!--
-->
|
|
|
|
|
174 |
|
<xsl:temp
late name=
"MediaWiki
-EscapeFor
Link">
|
|
|
|
|
175 |
|
<xsl:par
am name="P
aramText"
/>
|
|
|
|
|
176 |
|
|
|
|
|
|
177 |
|
<xsl:cho
ose>
|
|
|
|
|
178 |
|
<xsl:wh
en test="c
ontains($P
aramText,
'[')">
|
|
|
|
|
179 |
|
<xsl:v
ariable na
me="VarPre
fix" selec
t="substri
ng-before(
$ParamText
, '[')" />
|
|
|
|
|
180 |
|
<xsl:v
ariable na
me="VarSuf
fix" selec
t="substri
ng-after($
ParamText,
'[')" />
|
|
|
|
|
181 |
|
|
|
|
|
|
182 |
|
<xsl:c
all-templa
te name="M
ediaWiki-E
scapeForLi
nk">
|
|
|
|
|
183 |
|
<xsl:
with-param
name="Par
amText" se
lect="$Var
Prefix" />
|
|
|
|
|
184 |
|
</xsl:
call-templ
ate>
|
|
|
|
|
185 |
|
|
|
|
|
|
186 |
|
<html:
nowiki>[</
html:nowik
i>
|
|
|
|
|
187 |
|
|
|
|
|
|
188 |
|
<xsl:c
all-templa
te name="M
ediaWiki-E
scapeForLi
nk">
|
|
|
|
|
189 |
|
<xsl:
with-param
name="Par
amText" se
lect="$Var
Suffix" />
|
|
|
|
|
190 |
|
</xsl:
call-templ
ate>
|
|
|
|
|
191 |
|
</xsl:w
hen>
|
|
|
|
|
192 |
|
|
|
|
|
|
193 |
|
<xsl:wh
en test="c
ontains($P
aramText,
']')">
|
|
|
|
|
194 |
|
<xsl:v
ariable na
me="VarPre
fix" selec
t="substri
ng-before(
$ParamText
, ']')" />
|
|
|
|
|
195 |
|
<xsl:v
ariable na
me="VarSuf
fix" selec
t="substri
ng-after($
ParamText,
']')" />
|
|
|
|
|
196 |
|
|
|
|
|
|
197 |
|
<xsl:c
all-templa
te name="M
ediaWiki-E
scapeForLi
nk">
|
|
|
|
|
198 |
|
<xsl:
with-param
name="Par
amText" se
lect="$Var
Prefix" />
|
|
|
|
|
199 |
|
</xsl:
call-templ
ate>
|
|
|
|
|
200 |
|
|
|
|
|
|
201 |
|
<html:
nowiki>]</
html:nowik
i>
|
|
|
|
|
202 |
|
|
|
|
|
|
203 |
|
<xsl:c
all-templa
te name="M
ediaWiki-E
scapeForLi
nk">
|
|
|
|
|
204 |
|
<xsl:
with-param
name="Par
amText" se
lect="$Var
Suffix" />
|
|
|
|
|
205 |
|
</xsl:
call-templ
ate>
|
|
|
|
|
206 |
|
</xsl:w
hen>
|
|
|
|
|
207 |
|
|
|
|
|
|
208 |
|
<xsl:ot
herwise>
|
|
|
|
|
209 |
|
<xsl:v
alue-of se
lect="$Par
amText" />
|
|
|
|
|
210 |
|
</xsl:o
therwise>
|
|
|
|
|
211 |
|
</xsl:ch
oose>
|
|
|
|
|
212 |
|
</xsl:tem
plate>
|
172 |
|
|
|
213 |
|
|
173 |
|
<!-- Call
template
for synthe
sizing und
erscores -
->
|
|
214 |
|
<!-- Call
template
for synthe
sizing und
erscores -
->
|
174 |
|
<!--
-
->
|
|
215 |
|
<!--
-
->
|
175 |
|
<xsl:temp
late match
="text()"
name="Medi
aWiki-Synt
hesizeUnde
rscores" m
ode="wwmod
e:mediawik
i">
|
|
216 |
|
<xsl:temp
late match
="text()"
name="Medi
aWiki-Synt
hesizeUnde
rscores" m
ode="wwmod
e:mediawik
i">
|
176 |
|
<xsl:par
am name="P
aramOrigin
alString"
select="."
/>
|
|
217 |
|
<xsl:par
am name="P
aramOrigin
alString"
select="."
/>
|
177 |
|
<xsl:par
am name="P
aramBuilde
rString" s
elect="''"
/>
|
|
218 |
|
<xsl:par
am name="P
aramBuilde
rString" s
elect="''"
/>
|
178 |
|
<xsl:par
am name="P
aramCharac
terIndex"
select="1"
/>
|
|
219 |
|
<xsl:par
am name="P
aramCharac
terIndex"
select="1"
/>
|
179 |
|
<xsl:par
am name="P
aramCanApp
endUndersc
ore" selec
t="false()
" />
|
|
220 |
|
<xsl:par
am name="P
aramCanApp
endUndersc
ore" selec
t="false()
" />
|
180 |
|
|
|
221 |
|
|
181 |
|
<xsl:var
iable name
="VarFirst
Character"
select="s
ubstring($
ParamOrigi
nalString,
$ParamCha
racterInde
x, 1)" />
|
|
222 |
|
<xsl:var
iable name
="VarFirst
Character"
select="s
ubstring($
ParamOrigi
nalString,
$ParamCha
racterInde
x, 1)" />
|
182 |
|
|
|
223 |
|
|
183 |
|
<xsl:var
iable name
="VarAppen
dCharacter
">
|
|
224 |
|
<xsl:var
iable name
="VarAppen
dCharacter
">
|
184 |
|
<xsl:ch
oose>
|
|
225 |
|
<xsl:ch
oose>
|
185 |
|
<xsl:w
hen test="
$VarFirstC
haracter =
'_'">
|
|
226 |
|
<xsl:w
hen test="
$VarFirstC
haracter =
'_'">
|
186 |
|
<xsl:
if test="$
ParamCanAp
pendUnders
core = 'tr
ue'">
|
|
227 |
|
<xsl:
if test="$
ParamCanAp
pendUnders
core = 'tr
ue'">
|
187 |
|
<xsl
:text>_</x
sl:text>
|
|
228 |
|
<xsl
:text>_</x
sl:text>
|
188 |
|
</xsl
:if>
|
|
229 |
|
</xsl
:if>
|
189 |
|
</xsl:
when>
|
|
230 |
|
</xsl:
when>
|
190 |
|
<xsl:o
therwise>
|
|
231 |
|
<xsl:o
therwise>
|
191 |
|
<xsl:
value-of s
elect="$Va
rFirstChar
acter" />
|
|
232 |
|
<xsl:
value-of s
elect="$Va
rFirstChar
acter" />
|
192 |
|
</xsl:
otherwise>
|
|
233 |
|
</xsl:
otherwise>
|
193 |
|
</xsl:c
hoose>
|
|
234 |
|
</xsl:c
hoose>
|
194 |
|
</xsl:va
riable>
|
|
235 |
|
</xsl:va
riable>
|
195 |
|
|
|
236 |
|
|
196 |
|
<xsl:var
iable name
="VarBuild
erString">
|
|
237 |
|
<xsl:var
iable name
="VarBuild
erString">
|
197 |
|
<xsl:va
lue-of sel
ect="$Para
mBuilderSt
ring" />
|
|
238 |
|
<xsl:va
lue-of sel
ect="$Para
mBuilderSt
ring" />
|
198 |
|
<xsl:va
lue-of sel
ect="$VarA
ppendChara
cter" />
|
|
239 |
|
<xsl:va
lue-of sel
ect="$VarA
ppendChara
cter" />
|
199 |
|
</xsl:va
riable>
|
|
240 |
|
</xsl:va
riable>
|
200 |
|
|
|
241 |
|
|
201 |
|
<xsl:cho
ose>
|
|
242 |
|
<xsl:cho
ose>
|
202 |
|
<xsl:wh
en test="(
$ParamChar
acterIndex
+ 1) >
string-le
ngth($Para
mOriginalS
tring)">
|
|
243 |
|
<xsl:wh
en test="(
$ParamChar
acterIndex
+ 1) >
string-le
ngth($Para
mOriginalS
tring)">
|
203 |
|
<!-- R
eturn -->
|
|
244 |
|
<!-- R
eturn -->
|
204 |
|
<!--
-->
|
|
245 |
|
<!--
-->
|
205 |
|
<xsl:v
alue-of se
lect="$Var
BuilderStr
ing" />
|
|
246 |
|
<xsl:v
alue-of se
lect="$Var
BuilderStr
ing" />
|
206 |
|
</xsl:w
hen>
|
|
247 |
|
</xsl:w
hen>
|
207 |
|
|
|
248 |
|
|
208 |
|
<xsl:ot
herwise>
|
|
249 |
|
<xsl:ot
herwise>
|
209 |
|
<!-- R
ecurse -->
|
|
250 |
|
<!-- R
ecurse -->
|
210 |
|
<!--
-->
|
|
251 |
|
<!--
-->
|
211 |
|
<xsl:c
all-templa
te name="M
ediaWiki-S
ynthesizeU
nderscores
">
|
|
252 |
|
<xsl:c
all-templa
te name="M
ediaWiki-S
ynthesizeU
nderscores
">
|
212 |
|
<xsl:
with-param
name="Par
amOriginal
String" se
lect="$Par
amOriginal
String" />
|
|
253 |
|
<xsl:
with-param
name="Par
amOriginal
String" se
lect="$Par
amOriginal
String" />
|
213 |
|
<xsl:
with-param
name="Par
amBuilderS
tring" sel
ect="$VarB
uilderStri
ng" />
|
|
254 |
|
<xsl:
with-param
name="Par
amBuilderS
tring" sel
ect="$VarB
uilderStri
ng" />
|
214 |
|
<xsl:
with-param
name="Par
amCharacte
rIndex" se
lect="$Par
amCharacte
rIndex + 1
" />
|
|
255 |
|
<xsl:
with-param
name="Par
amCharacte
rIndex" se
lect="$Par
amCharacte
rIndex + 1
" />
|
215 |
|
<xsl:
with-param
name="Par
amCanAppen
dUnderscor
e" select=
"($VarFirs
tCharacter
!= '_')"
/>
|
|
256 |
|
<xsl:
with-param
name="Par
amCanAppen
dUnderscor
e" select=
"($VarFirs
tCharacter
!= '_')"
/>
|
216 |
|
</xsl:
call-templ
ate>
|
|
257 |
|
</xsl:
call-templ
ate>
|
217 |
|
</xsl:o
therwise>
|
|
258 |
|
</xsl:o
therwise>
|
218 |
|
</xsl:ch
oose>
|
|
259 |
|
</xsl:ch
oose>
|
219 |
|
</xsl:tem
plate>
|
|
260 |
|
</xsl:tem
plate>
|
220 |
|
</xsl:styl
esheet>
|
|
261 |
|
</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.