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:wwmo
de="urn:We
bWorks-Eng
ine-Mode"
|
|
4 |
|
xmlns:wwmo
de="urn:We
bWorks-Eng
ine-Mode"
|
5 |
|
xmlns:wwli
nks="urn:W
ebWorks-En
gine-Links
-Schema"
|
|
5 |
|
xmlns:wwli
nks="urn:W
ebWorks-En
gine-Links
-Schema"
|
6 |
|
xmlns:wwfi
les="urn:W
ebWorks-En
gine-Files
-Schema"
|
|
6 |
|
xmlns:wwfi
les="urn:W
ebWorks-En
gine-Files
-Schema"
|
7 |
|
xmlns:wwdo
c="urn:Web
Works-Docu
ment-Schem
a"
|
|
7 |
|
xmlns:wwdo
c="urn:Web
Works-Docu
ment-Schem
a"
|
8 |
|
xmlns:wwbe
haviors="u
rn:WebWork
s-Behavior
s-Schema"
|
|
8 |
|
xmlns:wwbe
haviors="u
rn:WebWork
s-Behavior
s-Schema"
|
9 |
|
xmlns:wwsp
lits="urn:
WebWorks-E
ngine-Spli
ts-Schema"
|
|
9 |
|
xmlns:wwsp
lits="urn:
WebWorks-E
ngine-Spli
ts-Schema"
|
10 |
|
xmlns:wwpr
oject="urn
:WebWorks-
Publish-Pr
oject"
|
|
10 |
|
xmlns:wwpr
oject="urn
:WebWorks-
Publish-Pr
oject"
|
11 |
|
xmlns:wwtr
ait="urn:W
ebWorks-En
gine-Forma
tTraitInfo
-Schema"
|
|
11 |
|
xmlns:wwtr
ait="urn:W
ebWorks-En
gine-Forma
tTraitInfo
-Schema"
|
12 |
|
xmlns:wwpr
ogress="ur
n:WebWorks
-XSLT-Exte
nsion-Prog
ress"
|
|
12 |
|
xmlns:wwpr
ogress="ur
n:WebWorks
-XSLT-Exte
nsion-Prog
ress"
|
13 |
|
xmlns:wwlo
g="urn:Web
Works-XSLT
-Extension
-Log"
|
|
13 |
|
xmlns:wwlo
g="urn:Web
Works-XSLT
-Extension
-Log"
|
14 |
|
xmlns:wwfi
lesystem="
urn:WebWor
ks-XSLT-Ex
tension-Fi
leSystem"
|
|
14 |
|
xmlns:wwfi
lesystem="
urn:WebWor
ks-XSLT-Ex
tension-Fi
leSystem"
|
15 |
|
xmlns:wwur
i="urn:Web
Works-XSLT
-Extension
-URI"
|
|
15 |
|
xmlns:wwur
i="urn:Web
Works-XSLT
-Extension
-URI"
|
16 |
|
xmlns:wwst
ring="urn:
WebWorks-X
SLT-Extens
ion-String
Utilities"
|
|
16 |
|
xmlns:wwst
ring="urn:
WebWorks-X
SLT-Extens
ion-String
Utilities"
|
17 |
|
xmlns:wwfi
lesext="ur
n:WebWorks
-XSLT-Exte
nsion-File
s"
|
|
17 |
|
xmlns:wwfi
lesext="ur
n:WebWorks
-XSLT-Exte
nsion-File
s"
|
18 |
|
xmlns:wwun
its="urn:W
ebWorks-XS
LT-Extensi
on-Units"
|
|
18 |
|
xmlns:wwun
its="urn:W
ebWorks-XS
LT-Extensi
on-Units"
|
19 |
|
xmlns:wwpr
ojext="urn
:WebWorks-
XSLT-Exten
sion-Proje
ct"
|
|
19 |
|
xmlns:wwpr
ojext="urn
:WebWorks-
XSLT-Exten
sion-Proje
ct"
|
20 |
|
xmlns:wwad
apter="urn
:WebWorks-
XSLT-Exten
sion-Adapt
er"
|
|
20 |
|
xmlns:wwad
apter="urn
:WebWorks-
XSLT-Exten
sion-Adapt
er"
|
21 |
|
xmlns:wwim
aging="urn
:WebWorks-
XSLT-Exten
sion-Imagi
ng"
|
|
21 |
|
xmlns:wwim
aging="urn
:WebWorks-
XSLT-Exten
sion-Imagi
ng"
|
22 |
|
xmlns:wwex
sldoc="urn
:WebWorks-
XSLT-Exten
sion-Docum
ent"
|
|
22 |
|
xmlns:wwex
sldoc="urn
:WebWorks-
XSLT-Exten
sion-Docum
ent"
|
23 |
|
exclude-re
sult-prefi
xes="xsl m
sxsl wwmod
e wwlinks
wwfiles ww
doc wwbeha
viors wwsp
lits wwpro
ject wwtra
it wwprogr
ess wwlog
wwfilesyst
em wwuri w
wstring ww
filesext w
wunits wwp
rojext wwa
dapter wwi
maging wwe
xsldoc"
|
|
23 |
|
exclude-re
sult-prefi
xes="xsl m
sxsl wwmod
e wwlinks
wwfiles ww
doc wwbeha
viors wwsp
lits wwpro
ject wwtra
it wwprogr
ess wwlog
wwfilesyst
em wwuri w
wstring ww
filesext w
wunits wwp
rojext wwa
dapter wwi
maging wwe
xsldoc"
|
24 |
|
>
|
|
24 |
|
>
|
25 |
|
<xsl:para
m name="Gl
obalInput"
/>
|
|
25 |
|
<xsl:para
m name="Gl
obalInput"
/>
|
26 |
|
<xsl:para
m name="Gl
obalPipeli
neName" />
|
|
26 |
|
<xsl:para
m name="Gl
obalPipeli
neName" />
|
27 |
|
<xsl:para
m name="Gl
obalProjec
t" />
|
|
27 |
|
<xsl:para
m name="Gl
obalProjec
t" />
|
28 |
|
<xsl:para
m name="Gl
obalFiles"
/>
|
|
28 |
|
<xsl:para
m name="Gl
obalFiles"
/>
|
29 |
|
<xsl:para
m name="Pa
rameterDep
endsType"
/>
|
|
29 |
|
<xsl:para
m name="Pa
rameterDep
endsType"
/>
|
30 |
|
<xsl:para
m name="Pa
rameterSpl
itsType" /
>
|
|
30 |
|
<xsl:para
m name="Pa
rameterSpl
itsType" /
>
|
31 |
|
<xsl:para
m name="Pa
rameterBeh
aviorsType
" />
|
|
31 |
|
<xsl:para
m name="Pa
rameterBeh
aviorsType
" />
|
32 |
|
<xsl:para
m name="Pa
rameterPos
tScriptTyp
e" />
|
|
32 |
|
<xsl:para
m name="Pa
rameterPos
tScriptTyp
e" />
|
33 |
|
<xsl:para
m name="Pa
rameterDef
aultFormat
" />
|
|
33 |
|
<xsl:para
m name="Pa
rameterDef
aultFormat
" />
|
34 |
|
<xsl:para
m name="Pa
rameterAll
owThumbnai
ls" />
|
|
34 |
|
<xsl:para
m name="Pa
rameterAll
owThumbnai
ls" />
|
35 |
|
<xsl:para
m name="Pa
rameterThu
mbnailType
" />
|
|
35 |
|
<xsl:para
m name="Pa
rameterThu
mbnailType
" />
|
36 |
|
<xsl:para
m name="Pa
rameterTyp
e" />
|
|
36 |
|
<xsl:para
m name="Pa
rameterTyp
e" />
|
37 |
|
<xsl:para
m name="Pa
rameterCat
egory" />
|
|
37 |
|
<xsl:para
m name="Pa
rameterCat
egory" />
|
38 |
|
<xsl:para
m name="Pa
rameterUse
" />
|
|
38 |
|
<xsl:para
m name="Pa
rameterUse
" />
|
39 |
|
<xsl:para
m name="Pa
rameterDep
loy" />
|
|
39 |
|
<xsl:para
m name="Pa
rameterDep
loy" />
|
40 |
|
|
|
40 |
|
|
41 |
|
|
|
41 |
|
|
|
|
|
|
42 |
|
<xsl:incl
ude href="
wwtransfor
m:common/i
mages/util
ities.xsl"
/>
|
|
|
|
|
43 |
|
|
|
|
|
|
44 |
|
|
42 |
|
<xsl:key
name="wwfi
les-files-
by-groupid
-type" mat
ch="wwfile
s:File" us
e="concat(
@groupID,
':', @type
)" />
|
|
45 |
|
<xsl:key
name="wwfi
les-files-
by-groupid
-type" mat
ch="wwfile
s:File" us
e="concat(
@groupID,
':', @type
)" />
|
43 |
|
<xsl:key
name="wwfi
les-files-
by-documen
tid" match
="wwfiles:
File" use=
"@document
ID" />
|
|
46 |
|
<xsl:key
name="wwfi
les-files-
by-documen
tid" match
="wwfiles:
File" use=
"@document
ID" />
|
44 |
|
<xsl:key
name="wwsp
lits-frame
s-by-docum
entid" mat
ch="wwspli
ts:Frame"
use="@docu
mentID" />
|
|
47 |
|
<xsl:key
name="wwsp
lits-frame
s-by-docum
entid" mat
ch="wwspli
ts:Frame"
use="@docu
mentID" />
|
45 |
|
<xsl:key
name="wwdo
c-frames-b
y-id" matc
h="wwdoc:F
rame" use=
"@id" />
|
|
48 |
|
<xsl:key
name="wwdo
c-frames-b
y-id" matc
h="wwdoc:F
rame" use=
"@id" />
|
46 |
|
<xsl:key
name="wwbe
haviors-fr
ames-by-id
" match="w
wbehaviors
:Frame" us
e="@id" />
|
|
49 |
|
<xsl:key
name="wwbe
haviors-fr
ames-by-id
" match="w
wbehaviors
:Frame" us
e="@id" />
|
47 |
|
|
|
50 |
|
|
48 |
|
|
|
51 |
|
|
49 |
|
<xsl:vari
able name=
"GlobalAct
ionChecksu
m">
|
|
52 |
|
<xsl:vari
able name=
"GlobalAct
ionChecksu
m">
|
50 |
|
<xsl:var
iable name
="VarTrans
formChecks
ums">
|
|
53 |
|
<xsl:var
iable name
="VarTrans
formChecks
ums">
|
51 |
|
<xsl:va
lue-of sel
ect="conca
t(wwuri:As
FilePath('
wwtransfor
m:self'),
':', wwfil
esystem:Ge
tChecksum(
wwuri:AsFi
lePath('ww
transform:
self')))"
/>
|
|
54 |
|
<xsl:va
lue-of sel
ect="conca
t(wwuri:As
FilePath('
wwtransfor
m:self'),
':', wwfil
esystem:Ge
tChecksum(
wwuri:AsFi
lePath('ww
transform:
self')))"
/>
|
|
|
|
|
55 |
|
<xsl:va
lue-of sel
ect="conca
t(',', wwu
ri:AsFileP
ath('wwtra
nsform:com
mon/images
/utilities
.xsl'), ':
', wwfiles
ystem:GetC
hecksum(ww
uri:AsFile
Path('wwtr
ansform:co
mmon/image
s/utilitie
s.xsl')))"
/>
|
52 |
|
</xsl:va
riable>
|
|
56 |
|
</xsl:va
riable>
|
53 |
|
<xsl:val
ue-of sele
ct="wwstri
ng:MD5Chec
ksum($VarT
ransformCh
ecksums)"
/>
|
|
57 |
|
<xsl:val
ue-of sele
ct="wwstri
ng:MD5Chec
ksum($VarT
ransformCh
ecksums)"
/>
|
54 |
|
</xsl:var
iable>
|
|
58 |
|
</xsl:var
iable>
|
55 |
|
|
|
59 |
|
|
56 |
|
|
|
60 |
|
|
57 |
|
<xsl:temp
late match
="/">
|
|
61 |
|
<xsl:temp
late match
="/">
|
58 |
|
<wwfiles
:Files ver
sion="1.0"
>
|
|
62 |
|
<wwfiles
:Files ver
sion="1.0"
>
|
59 |
|
|
|
63 |
|
|
60 |
|
<!-- Gr
oups -->
|
|
64 |
|
<!-- Gr
oups -->
|
61 |
|
<!--
-->
|
|
65 |
|
<!--
-->
|
62 |
|
<xsl:va
riable nam
e="VarProj
ectGroups"
select="$
GlobalProj
ect/wwproj
ect:Projec
t/wwprojec
t:Groups/w
wproject:G
roup" />
|
|
66 |
|
<xsl:va
riable nam
e="VarProj
ectGroups"
select="$
GlobalProj
ect/wwproj
ect:Projec
t/wwprojec
t:Groups/w
wproject:G
roup" />
|
63 |
|
<xsl:va
riable nam
e="Var
Igno
r
e
1
Start" sel
ect="wwpro
gress:Star
t(count($V
arProjectG
roups))" /
>
|
|
67 |
|
<xsl:va
riable nam
e="Var
P
r
oj
e
ctGroups
Start" sel
ect="wwpro
gress:Star
t(count($V
arProjectG
roups))" /
>
|
64 |
|
<xsl:fo
r-each sel
ect="$VarP
rojectGrou
ps">
|
|
68 |
|
<xsl:fo
r-each sel
ect="$VarP
rojectGrou
ps">
|
65 |
|
<xsl:v
ariable na
me="VarPro
jectGroup"
select=".
" />
|
|
69 |
|
<xsl:v
ariable na
me="VarPro
jectGroup"
select=".
" />
|
66 |
|
|
|
70 |
|
|
67 |
|
<!-- S
plits -->
|
|
71 |
|
<!-- S
plits -->
|
68 |
|
<!--
-->
|
|
72 |
|
<!--
-->
|
69 |
|
<xsl:v
ariable na
me="Var
Igno
r
e
2
Start" sel
ect="wwpro
gress:Star
t(1)" />
|
|
73 |
|
<xsl:v
ariable na
me="Var
P
r
oj
e
ctGroup
Start" sel
ect="wwpro
gress:Star
t(1)" />
|
70 |
|
<xsl:f
or-each se
lect="$Glo
balInput[1
]">
|
|
74 |
|
<xsl:f
or-each se
lect="$Glo
balInput[1
]">
|
71 |
|
<xsl:
variable n
ame="VarSp
litsFiles"
select="k
ey('wwfile
s-files-by
-groupid-t
ype', conc
at($VarPro
jectGroup/
@GroupID,
':', $Para
meterSplit
sType))" /
>
|
|
75 |
|
<xsl:
variable n
ame="VarSp
litsFiles"
select="k
ey('wwfile
s-files-by
-groupid-t
ype', conc
at($VarPro
jectGroup/
@GroupID,
':', $Para
meterSplit
sType))" /
>
|
72 |
|
<xsl:
for-each s
elect="$Va
rSplitsFil
es[1]">
|
|
76 |
|
<xsl:
for-each s
elect="$Va
rSplitsFil
es[1]">
|
73 |
|
<xsl
:variable
name="VarS
plitsFile"
select=".
" />
|
|
77 |
|
<xsl
:variable
name="VarS
plitsFile"
select=".
" />
|
74 |
|
|
|
78 |
|
|
75 |
|
<!--
Load spli
ts -->
|
|
79 |
|
<!--
Load spli
ts -->
|
76 |
|
<!--
-->
|
|
80 |
|
<!--
-->
|
77 |
|
<xsl
:variable
name="VarS
plits" sel
ect="wwexs
ldoc:LoadX
MLWithoutR
esolver($V
arSplitsFi
le/@path)"
/>
|
|
81 |
|
<xsl
:variable
name="VarS
plits" sel
ect="wwexs
ldoc:LoadX
MLWithoutR
esolver($V
arSplitsFi
le/@path)"
/>
|
78 |
|
<xsl
:if test="
count($Var
Splits//ww
splits:Fra
me) > 0
">
|
|
82 |
|
<xsl
:if test="
count($Var
Splits//ww
splits:Fra
me) > 0
">
|
79 |
|
<!-
- Document
s -->
|
|
83 |
|
<!-
- Document
s -->
|
80 |
|
<!-
-
-->
|
|
84 |
|
<!-
-
-->
|
81 |
|
<xs
l:variable
name="Var
ProjectDoc
uments" se
lect="$Var
ProjectGro
up//wwproj
ect:Docume
nt" />
|
|
85 |
|
<xs
l:variable
name="Var
ProjectDoc
uments" se
lect="$Var
ProjectGro
up//wwproj
ect:Docume
nt" />
|
82 |
|
<xs
l:variable
name="Var
Igno
r
e
3
Start" sel
ect="wwpro
gress:Star
t(count($V
arProjectD
ocuments))
" />
|
|
86 |
|
<xs
l:variable
name="Var
P
r
oj
e
ctDocument
s
Start" sel
ect="wwpro
gress:Star
t(count($V
arProjectD
ocuments))
" />
|
83 |
|
<xs
l:for-each
select="$
VarProject
Documents"
>
|
|
87 |
|
<xs
l:for-each
select="$
VarProject
Documents"
>
|
84 |
|
<x
sl:variabl
e name="Va
rProjectDo
cument" se
lect="." /
>
|
|
88 |
|
<x
sl:variabl
e name="Va
rProjectDo
cument" se
lect="." /
>
|
85 |
|
|
|
89 |
|
|
86 |
|
<x
sl:variabl
e name="Va
r
Igno
r
e
4
Start" sel
ect="wwpro
gress:Star
t(1)" />
|
|
90 |
|
<x
sl:variabl
e name="Va
r
P
r
oj
e
ctDocument
Start" sel
ect="wwpro
gress:Star
t(1)" />
|
87 |
|
|
|
91 |
|
|
88 |
|
<!
-- Aborted
? -->
|
|
92 |
|
<!
-- Aborted
? -->
|
89 |
|
<!
--
-->
|
|
93 |
|
<!
--
-->
|
90 |
|
<x
sl:if test
="not(wwpr
ogress:Abo
rt())">
|
|
94 |
|
<x
sl:if test
="not(wwpr
ogress:Abo
rt())">
|
91 |
|
<
!-- Docume
nt Frames
-->
|
|
95 |
|
<
!-- Docume
nt Frames
-->
|
92 |
|
<
!--
-->
|
|
96 |
|
<
!--
-->
|
93 |
|
<
xsl:for-ea
ch select=
"$VarSplit
s[1]">
|
|
97 |
|
<
xsl:for-ea
ch select=
"$VarSplit
s[1]">
|
94 |
|
<xsl:varia
ble name="
VarSplitFr
ames" sele
ct="key('w
wsplits-fr
ames-by-do
cumentid',
$VarProje
ctDocument
/@Document
ID)" />
|
|
98 |
|
<xsl:varia
ble name="
VarSplitFr
ames" sele
ct="key('w
wsplits-fr
ames-by-do
cumentid',
$VarProje
ctDocument
/@Document
ID)" />
|
95 |
|
<xsl:if te
st="count(
$VarSplitF
rames) >
; 0">
|
|
99 |
|
<xsl:if te
st="count(
$VarSplitF
rames) >
; 0">
|
96 |
|
<!-- Load
document
-->
|
|
100 |
|
<!-- Load
document
-->
|
97 |
|
<!--
-->
|
|
101 |
|
<!--
-->
|
98 |
|
<xsl:for-
each selec
t="$Global
Input[1]">
|
|
102 |
|
<xsl:for-
each selec
t="$Global
Input[1]">
|
99 |
|
<xsl:var
iable name
="VarDocum
entFiles"
select="ke
y('wwfiles
-files-by-
documentid
', $VarPro
jectDocume
nt/@Docume
ntID)[@typ
e = $Param
eterDepend
sType]" />
|
|
103 |
|
<xsl:var
iable name
="VarDocum
entFiles"
select="ke
y('wwfiles
-files-by-
documentid
', $VarPro
jectDocume
nt/@Docume
ntID)[@typ
e = $Param
eterDepend
sType]" />
|
100 |
|
<xsl:var
iable name
="VarBehav
iorsFiles"
select="k
ey('wwfile
s-files-by
-documenti
d', $VarPr
ojectDocum
ent/@Docum
entID)[@ty
pe = $Para
meterBehav
iorsType]"
/>
|
|
104 |
|
<xsl:var
iable name
="VarBehav
iorsFiles"
select="k
ey('wwfile
s-files-by
-documenti
d', $VarPr
ojectDocum
ent/@Docum
entID)[@ty
pe = $Para
meterBehav
iorsType]"
/>
|
101 |
|
|
|
105 |
|
|
102 |
|
<!-- Loa
d document
-->
|
|
106 |
|
<!-- Loa
d document
-->
|
103 |
|
<!--
-->
|
|
107 |
|
<!--
-->
|
104 |
|
<xsl:for
-each sele
ct="$VarDo
cumentFile
s[1]">
|
|
108 |
|
<xsl:for
-each sele
ct="$VarDo
cumentFile
s[1]">
|
105 |
|
<xsl:va
riable nam
e="VarDocu
mentFile"
select="."
/>
|
|
109 |
|
<xsl:va
riable nam
e="VarDocu
mentFile"
select="."
/>
|
106 |
|
<xsl:va
riable nam
e="VarDocu
ment" sele
ct="wwexsl
doc:LoadXM
LWithoutRe
solver($Va
rDocumentF
ile/@path)
" />
|
|
110 |
|
<xsl:va
riable nam
e="VarDocu
ment" sele
ct="wwexsl
doc:LoadXM
LWithoutRe
solver($Va
rDocumentF
ile/@path)
" />
|
107 |
|
|
|
111 |
|
|
108 |
|
<!-- Lo
ad behavio
rs -->
|
|
112 |
|
<!-- Lo
ad behavio
rs -->
|
109 |
|
<!--
-->
|
|
113 |
|
<!--
-->
|
110 |
|
<xsl:fo
r-each sel
ect="$VarB
ehaviorsFi
les[1]">
|
|
114 |
|
<xsl:fo
r-each sel
ect="$VarB
ehaviorsFi
les[1]">
|
111 |
|
<xsl:v
ariable na
me="VarBeh
aviorsFile
" select="
." />
|
|
115 |
|
<xsl:v
ariable na
me="VarBeh
aviorsFile
" select="
." />
|
112 |
|
<xsl:v
ariable na
me="VarBeh
aviors" se
lect="wwex
sldoc:Load
XMLWithout
Resolver($
VarBehavio
rsFile/@pa
th)" />
|
|
116 |
|
<xsl:v
ariable na
me="VarBeh
aviors" se
lect="wwex
sldoc:Load
XMLWithout
Resolver($
VarBehavio
rsFile/@pa
th)" />
|
113 |
|
|
|
117 |
|
|
114 |
|
<!-- P
rocess doc
ument fram
es -->
|
|
118 |
|
<!-- P
rocess doc
ument fram
es -->
|
115 |
|
<!--
-->
|
|
119 |
|
<!--
-->
|
116 |
|
<xsl:v
ariable na
me="Var
Igno
r
e
5
Start" sel
ect="wwpro
gress:Star
t(count($V
arSplitFra
mes))" />
|
|
120 |
|
<xsl:v
ariable na
me="Var
SplitF
r
am
e
s
Start" sel
ect="wwpro
gress:Star
t(count($V
arSplitFra
mes))" />
|
117 |
|
<xsl:f
or-each se
lect="$Var
SplitFrame
s">
|
|
121 |
|
<xsl:f
or-each se
lect="$Var
SplitFrame
s">
|
118 |
|
<xsl:
variable n
ame="VarSp
litFrame"
select="."
/>
|
|
122 |
|
<xsl:
variable n
ame="VarSp
litFrame"
select="."
/>
|
119 |
|
|
|
123 |
|
|
120 |
|
<xsl:
variable n
ame="Var
Igno
r
e
6
Start" sel
ect="wwpro
gress:Star
t(1)" />
|
|
124 |
|
<xsl:
variable n
ame="Var
SplitF
r
am
e
Start" sel
ect="wwpro
gress:Star
t(1)" />
|
121 |
|
|
|
125 |
|
|
122 |
|
<!--
Aborted? -
->
|
|
126 |
|
<!--
Aborted? -
->
|
123 |
|
<!--
-
->
|
|
127 |
|
<!--
-
->
|
124 |
|
<xsl:
if test="n
ot(wwprogr
ess:Abort(
))">
|
|
128 |
|
<xsl:
if test="n
ot(wwprogr
ess:Abort(
))">
|
125 |
|
<!--
Graphic R
ule -->
|
|
129 |
|
<!--
Graphic R
ule -->
|
126 |
|
<!--
-->
|
|
130 |
|
<!--
-->
|
127 |
|
<xsl
:variable
name="VarC
ontextRule
" select="
wwprojext:
GetContext
Rule('Grap
hic', $Var
SplitFrame
/@stylenam
e, $VarSpl
itFrame/@d
ocumentID,
$VarSplit
Frame/@id)
" />
|
|
131 |
|
<xsl
:variable
name="VarC
ontextRule
" select="
wwprojext:
GetContext
Rule('Grap
hic', $Var
SplitFrame
/@stylenam
e, $VarSpl
itFrame/@d
ocumentID,
$VarSplit
Frame/@id)
" />
|
128 |
|
<xsl
:variable
name="VarG
enerateOut
putOption"
select="$
VarContext
Rule/wwpro
ject:Optio
ns/wwproje
ct:Option[
@Name = 'g
enerate-ou
tput']/@Va
lue" />
|
|
132 |
|
<xsl
:variable
name="VarG
enerateOut
putOption"
select="$
VarContext
Rule/wwpro
ject:Optio
ns/wwproje
ct:Option[
@Name = 'g
enerate-ou
tput']/@Va
lue" />
|
129 |
|
<xsl
:variable
name="VarG
enerateOut
put" selec
t="(string
-length($V
arGenerate
OutputOpti
on) = 0) o
r ($VarGen
erateOutpu
tOption !=
'false')"
/>
|
|
133 |
|
<xsl
:variable
name="VarG
enerateOut
put" selec
t="(string
-length($V
arGenerate
OutputOpti
on) = 0) o
r ($VarGen
erateOutpu
tOption !=
'false')"
/>
|
130 |
|
<xsl
:if test="
$VarGenera
teOutput">
|
|
134 |
|
<xsl
:if test="
$VarGenera
teOutput">
|
131 |
|
<!-
- Locate d
ocument fr
ame -->
|
|
135 |
|
<!-
- Locate d
ocument fr
ame -->
|
132 |
|
<!-
-
-->
|
|
136 |
|
<!-
-
-->
|
133 |
|
<xs
l:for-each
select="$
VarDocumen
t[1]">
|
|
137 |
|
<xs
l:for-each
select="$
VarDocumen
t[1]">
|
134 |
|
<x
sl:variabl
e name="Va
rDocumentF
rame" sele
ct="key('w
wdoc-frame
s-by-id',
$VarSplitF
rame/@id)[
1]" />
|
|
138 |
|
<x
sl:variabl
e name="Va
rDocumentF
rame" sele
ct="key('w
wdoc-frame
s-by-id',
$VarSplitF
rame/@id)[
1]" />
|
135 |
|
|
|
139 |
|
|
136 |
|
<!
-- Locate
behaviors
frame -->
|
|
140 |
|
<!
-- Locate
behaviors
frame -->
|
137 |
|
<!
--
-->
|
|
141 |
|
<!
--
-->
|
138 |
|
<x
sl:for-eac
h select="
$VarBehavi
ors[1]">
|
|
142 |
|
<x
sl:for-eac
h select="
$VarBehavi
ors[1]">
|
139 |
|
<
xsl:variab
le name="V
arBehavior
sFrame" se
lect="key(
'wwbehavio
rs-frames-
by-id', $V
arSplitFra
me/@id)[1]
" />
|
|
143 |
|
<
xsl:variab
le name="V
arBehavior
sFrame" se
lect="key(
'wwbehavio
rs-frames-
by-id', $V
arSplitFra
me/@id)[1]
" />
|
140 |
|
|
|
144 |
|
|
141 |
|
<
!-- Full s
ize -->
|
|
145 |
|
<
!-- Full s
ize -->
|
142 |
|
<
!--
-->
|
|
146 |
|
<
!--
-->
|
143 |
|
<
xsl:call-t
emplate na
me="FullSi
ze">
|
|
147 |
|
<
xsl:call-t
emplate na
me="FullSi
ze">
|
144 |
|
<xsl:with-
param name
="ParamDoc
umentFile"
select="$
VarDocumen
tFile" />
|
|
148 |
|
<xsl:with-
param name
="ParamDoc
umentFile"
select="$
VarDocumen
tFile" />
|
145 |
|
<xsl:with-
param name
="ParamBeh
aviorsFile
" select="
$VarBehavi
orsFile" /
>
|
|
149 |
|
<xsl:with-
param name
="ParamBeh
aviorsFile
" select="
$VarBehavi
orsFile" /
>
|
146 |
|
<xsl:with-
param name
="ParamSpl
itsFile" s
elect="$Va
rSplitsFil
e" />
|
|
150 |
|
<xsl:with-
param name
="ParamSpl
itsFile" s
elect="$Va
rSplitsFil
e" />
|
147 |
|
<xsl:with-
param name
="ParamDoc
umentFrame
" select="
$VarDocume
ntFrame" /
>
|
|
151 |
|
<xsl:with-
param name
="ParamDoc
umentFrame
" select="
$VarDocume
ntFrame" /
>
|
148 |
|
<xsl:with-
param name
="ParamBeh
aviorsFram
e" select=
"$VarBehav
iorsFrame"
/>
|
|
152 |
|
<xsl:with-
param name
="ParamBeh
aviorsFram
e" select=
"$VarBehav
iorsFrame"
/>
|
149 |
|
<xsl:with-
param name
="ParamSpl
itFrame" s
elect="$Va
rSplitFram
e" />
|
|
153 |
|
<xsl:with-
param name
="ParamSpl
itFrame" s
elect="$Va
rSplitFram
e" />
|
150 |
|
<xsl:with-
param name
="ParamCon
textRule"
select="$V
arContextR
ule" />
|
|
154 |
|
<xsl:with-
param name
="ParamCon
textRule"
select="$V
arContextR
ule" />
|
151 |
|
<
/xsl:call-
template>
|
|
155 |
|
<
/xsl:call-
template>
|
152 |
|
|
|
156 |
|
|
153 |
|
<
!-- Thumbn
ail -->
|
|
157 |
|
<
!-- Thumbn
ail -->
|
154 |
|
<
!--
-->
|
|
158 |
|
<
!--
-->
|
155 |
|
<
xsl:if tes
t="$Parame
terAllowTh
umbnails =
'true'">
|
|
159 |
|
<
xsl:if tes
t="$Parame
terAllowTh
umbnails =
'true'">
|
156 |
|
<xsl:call-
template n
ame="Thumb
nail">
|
|
160 |
|
<xsl:call-
template n
ame="Thumb
nail">
|
157 |
|
<xsl:with
-param nam
e="ParamDo
cumentFram
e" select=
"$VarDocum
entFrame"
/>
|
|
161 |
|
<xsl:with
-param nam
e="ParamDo
cumentFram
e" select=
"$VarDocum
entFrame"
/>
|
158 |
|
<xsl:with
-param nam
e="ParamBe
haviorsFra
me" select
="$VarBeha
viorsFrame
" />
|
|
162 |
|
<xsl:with
-param nam
e="ParamBe
haviorsFra
me" select
="$VarBeha
viorsFrame
" />
|
159 |
|
<xsl:with
-param nam
e="ParamSp
litFrame"
select="$V
arSplitFra
me" />
|
|
163 |
|
<xsl:with
-param nam
e="ParamSp
litFrame"
select="$V
arSplitFra
me" />
|
160 |
|
<xsl:with
-param nam
e="ParamCo
ntextRule"
select="$
VarContext
Rule" />
|
|
164 |
|
<xsl:with
-param nam
e="ParamCo
ntextRule"
select="$
VarContext
Rule" />
|
161 |
|
</xsl:call
-template>
|
|
165 |
|
</xsl:call
-template>
|
162 |
|
<
/xsl:if>
|
|
166 |
|
<
/xsl:if>
|
163 |
|
</
xsl:for-ea
ch>
|
|
167 |
|
</
xsl:for-ea
ch>
|
164 |
|
</x
sl:for-eac
h>
|
|
168 |
|
</x
sl:for-eac
h>
|
165 |
|
</xs
l:if>
|
|
169 |
|
</xs
l:if>
|
166 |
|
</xsl
:if>
|
|
170 |
|
</xsl
:if>
|
167 |
|
|
|
171 |
|
|
168 |
|
<xsl:
variable n
ame="Var
Igno
r
e
6
End" selec
t="wwprogr
ess:End()"
/>
|
|
172 |
|
<xsl:
variable n
ame="Var
SplitF
r
am
e
End" selec
t="wwprogr
ess:End()"
/>
|
169 |
|
</xsl:
for-each>
|
|
173 |
|
</xsl:
for-each>
|
170 |
|
</xsl:f
or-each>
|
|
174 |
|
</xsl:f
or-each>
|
171 |
|
<xsl:va
riable nam
e="Var
Igno
r
e
5
End" selec
t="wwprogr
ess:End()"
/>
|
|
175 |
|
<xsl:va
riable nam
e="Var
SplitF
r
am
e
s
End" selec
t="wwprogr
ess:End()"
/>
|
172 |
|
</xsl:fo
r-each>
|
|
176 |
|
</xsl:fo
r-each>
|
173 |
|
</xsl:for
-each>
|
|
177 |
|
</xsl:for
-each>
|
174 |
|
</xsl:if>
|
|
178 |
|
</xsl:if>
|
175 |
|
<
/xsl:for-e
ach>
|
|
179 |
|
<
/xsl:for-e
ach>
|
176 |
|
</
xsl:if>
|
|
180 |
|
</
xsl:if>
|
177 |
|
|
|
181 |
|
|
178 |
|
<x
sl:variabl
e name="Va
r
Igno
r
e
4
End" selec
t="wwprogr
ess:End()"
/>
|
|
182 |
|
<x
sl:variabl
e name="Va
r
P
r
oj
e
ctDocument
End" selec
t="wwprogr
ess:End()"
/>
|
179 |
|
|
|
183 |
|
|
180 |
|
</x
sl:for-eac
h>
|
|
184 |
|
</x
sl:for-eac
h>
|
181 |
|
<xs
l:variable
name="Var
Igno
r
e
3
End" selec
t="wwprogr
ess:End()"
/>
|
|
185 |
|
<xs
l:variable
name="Var
P
r
oj
e
ctDocument
s
End" selec
t="wwprogr
ess:End()"
/>
|
182 |
|
|
|
186 |
|
|
183 |
|
</xs
l:if>
|
|
187 |
|
</xs
l:if>
|
184 |
|
|
|
188 |
|
|
185 |
|
</xsl
:for-each>
|
|
189 |
|
</xsl
:for-each>
|
186 |
|
|
|
190 |
|
|
187 |
|
</xsl:
for-each>
|
|
191 |
|
</xsl:
for-each>
|
188 |
|
<xsl:v
ariable na
me="Var
Igno
r
e
2
End" selec
t="wwprogr
ess:End()"
/>
|
|
192 |
|
<xsl:v
ariable na
me="Var
P
r
oj
e
ctGroup
End" selec
t="wwprogr
ess:End()"
/>
|
189 |
|
|
|
193 |
|
|
190 |
|
</xsl:f
or-each>
|
|
194 |
|
</xsl:f
or-each>
|
191 |
|
<xsl:va
riable nam
e="Var
Igno
r
e
1
End" selec
t="wwprogr
ess:End()"
/>
|
|
195 |
|
<xsl:va
riable nam
e="Var
P
r
oj
e
ctGroups
End" selec
t="wwprogr
ess:End()"
/>
|
192 |
|
|
|
196 |
|
|
193 |
|
</wwfile
s:Files>
|
|
197 |
|
</wwfile
s:Files>
|
194 |
|
</xsl:tem
plate>
|
|
198 |
|
</xsl:tem
plate>
|
195 |
|
|
|
199 |
|
|
196 |
|
|
|
200 |
|
|
197 |
|
<xsl:temp
late name=
"
Max
Size
Option
">
|
|
201 |
|
<xsl:temp
late name=
"
Full
Size
">
|
198 |
|
<xsl:par
am name="P
aram
MaxSiz
e
Op
t
i
onVa
l
u
e" />
|
|
202 |
|
<xsl:par
am name="P
aram
Docum
e
n
t
F
i
l
e" />
|
|
|
|
|
203 |
|
<xsl:par
am name="P
aramBehavi
orsFile" /
>
|
|
|
|
|
204 |
|
<xsl:par
am name="P
aramSplits
File" />
|
|
|
|
|
205 |
|
<xsl:par
am name="P
aramDocume
ntFrame" /
>
|
|
|
|
|
206 |
|
<xsl:par
am name="P
aramBehavi
orsFrame"
/>
|
|
|
|
|
207 |
|
<xsl:par
am name="P
aramSplitF
rame" />
|
|
|
|
|
208 |
|
<xsl:par
am name="P
aramContex
tRule" />
|
|
|
|
|
209 |
|
|
|
|
|
|
210 |
|
<!-- Ski
p by refer
ence graph
ics -->
|
|
|
|
|
211 |
|
<!--
-->
|
|
|
|
|
212 |
|
<xsl:var
iable name
="VarByRef
erence" se
lect="$Par
amSplitFra
me/@byref
= string(t
rue())" />
|
|
|
|
|
213 |
|
<xsl:if
test="not(
$VarByRefe
rence)">
|
|
|
|
|
214 |
|
<!-- Tr
anslation
from sourc
e image po
ssible? --
>
|
|
|
|
|
215 |
|
<!--
--
>
|
|
|
|
|
216 |
|
<xsl:va
riable nam
e="VarTran
slateAsTex
t">
|
|
|
|
|
217 |
|
<xsl:i
f test="$P
aramSplitF
rame/@byre
f-allowed-
by-wif = s
tring(true
())">
|
|
|
|
|
218 |
|
<!--
Access sou
rce image
info -->
|
|
|
|
|
219 |
|
<!--
-->
|
|
|
|
|
220 |
|
<xsl:
variable n
ame="VarSo
urceImageI
nfo" selec
t="wwimagi
ng:GetInfo
($ParamSpl
itFrame/@s
ource)" />
|
|
|
|
|
221 |
|
|
|
|
|
|
222 |
|
<!--
Raster ima
ge format?
-->
|
|
|
|
|
223 |
|
<!--
-->
|
|
|
|
|
224 |
|
<xsl:
variable n
ame="VarRa
sterImageF
ormatAsTex
t">
|
|
|
|
|
225 |
|
<xsl
:call-temp
late name=
"Images-Ra
sterImageF
ormat">
|
|
|
|
|
226 |
|
<xs
l:with-par
am name="P
aramImageI
nfo" selec
t="$VarSou
rceImageIn
fo" />
|
|
|
|
|
227 |
|
</xs
l:call-tem
plate>
|
|
|
|
|
228 |
|
</xsl
:variable>
|
|
|
|
|
229 |
|
<xsl:
variable n
ame="VarRa
sterImageF
ormat" sel
ect="$VarR
asterImage
FormatAsTe
xt = strin
g(true())"
/>
|
199 |
|
|
|
230 |
|
|
200 |
|
<xsl:cho
ose>
|
|
231 |
|
<!--
Allow if r
aster imag
e format -
->
|
201 |
|
<xsl:wh
en test="$
ParamMaxSi
zeOptionVa
lue = 'non
e'">
|
|
232 |
|
<!--
-
->
|
202 |
|
<
xsl:
value-o
f
select="0
" /
>
|
|
233 |
|
<xsl:
value-of s
elect="$Va
rRasterIma
geFormat"
/>
|
203 |
|
</xsl:
wh
e
n
>
|
|
234 |
|
<
/
xsl:
i
f
>
|
|
|
|
|
235 |
|
</xsl:
variabl
e
>
|
|
|
|
|
236 |
|
<xsl:va
riable nam
e="VarTran
slate" sel
ect="$VarT
ranslateAs
Text = str
ing(true()
)" />
|
204 |
|
|
|
237 |
|
|
205 |
|
<xsl:wh
en test="(
string-len
gth($Param
MaxSizeOpt
ionValue)
> 0) an
d (number(
$ParamMaxS
izeOptionV
alue) >
0)">
|
|
238 |
|
<xsl:ch
oose>
|
206 |
|
<xsl:
v
a
lu
e
-
o
f
select="
number(
$Param
MaxSiz
e
Opt
io
nVa
l
u
e
)
" />
|
|
239 |
|
<!-- T
ranslate f
rom origio
nal source
file -->
|
207 |
|
</xsl:when
>
|
|
240 |
|
<!--
-->
|
|
|
|
|
241 |
|
<xsl:w
hen test="
$VarTransl
ate">
|
|
|
|
|
242 |
|
<xsl:
call-templ
ate name="
FullSize-T
ranslate">
|
|
|
|
|
243 |
|
<xsl
:with-para
m name="Pa
ramDocumen
tFile" sel
ect="$Para
mDocumentF
ile" />
|
|
|
|
|
244 |
|
<xsl:
with-p
a
ram nam
e
="ParamBeh
avi
o
rsFile"
select="
$Param
B
e
hav
io
rsFi
l
e
" />
|
|
|
|
|
245 |
|
<xsl
:with-para
m name="Pa
ramSplitsF
ile" selec
t="$ParamS
plitsFile"
/>
|
|
|
|
|
246 |
|
<xsl
:with-para
m name="Pa
ramDocumen
tFrame" se
lect="$Par
amDocument
Frame" />
|
|
|
|
|
247 |
|
<xsl
:with-para
m name="Pa
ramBehavio
rsFrame" s
elect="$Pa
ramBehavio
rsFrame" /
>
|
|
|
|
|
248 |
|
<xsl
:with-para
m name="Pa
ramSplitFr
ame" selec
t="$ParamS
plitFrame"
/>
|
|
|
|
|
249 |
|
<xsl
:with-para
m name="Pa
ramContext
Rule" sele
ct="$Param
ContextRul
e" />
|
|
|
|
|
250 |
|
</xsl
:call-temp
late>
|
|
|
|
|
251 |
|
</xsl:when
>
|
208 |
|
|
|
252 |
|
|
209 |
|
<
xsl:
o
t
h
e
rwis
e>
|
|
253 |
|
<!-- R
ender via
PostScript
-->
|
210 |
|
<
xsl:
value-
o
f s
e
l
e
ct="0" /
>
|
|
254 |
|
<!--
-->
|
211 |
|
</xsl:
ot
h
erwi
se>
|
|
255 |
|
<xsl:o
therwise>
|
212 |
|
</xsl:
choose
>
|
|
256 |
|
<xsl:
call-templ
ate name="
FullSize-P
ostScript"
>
|
|
|
|
|
257 |
|
<xsl
:with-para
m name="Pa
ramDocumen
tFile" sel
ect="$Para
mDocumentF
ile" />
|
|
|
|
|
258 |
|
<xsl
:with-para
m name="Pa
ramBehavio
rsFile" se
lect="$Par
amBehavior
sFile" />
|
|
|
|
|
259 |
|
<xsl
:with-para
m name="Pa
ramSplitsF
ile" selec
t="$ParamS
plitsFile"
/>
|
|
|
|
|
260 |
|
<xsl
:with-para
m name="Pa
ramDocumen
tFrame" se
lect="$Par
amDocument
Frame" />
|
|
|
|
|
261 |
|
<xsl
:with-para
m name="Pa
ramBehavio
rsFrame" s
elect="$Pa
ramBehavio
rsFrame" /
>
|
|
|
|
|
262 |
|
<xsl
:with-para
m name="Pa
ramSplitFr
ame" selec
t="$ParamS
plitFrame"
/>
|
|
|
|
|
263 |
|
<xsl
:with-para
m name="Pa
ramContext
Rule" sele
ct="$Param
ContextRul
e" />
|
|
|
|
|
264 |
|
<
/
xsl:
call-
t
e
mplat
e>
|
|
|
|
|
265 |
|
<
/
xsl:
o
th
e
rwis
e
>
|
|
|
|
|
266 |
|
</xsl:
c
h
oo
se>
|
|
|
|
|
267 |
|
</xsl:
if
>
|
213 |
|
</xsl:tem
plate>
|
|
268 |
|
</xsl:tem
plate>
|
214 |
|
|
|
269 |
|
|
215 |
|
|
|
270 |
|
|
216 |
|
<xsl:temp
late name=
"FullSize
">
|
|
271 |
|
<xsl:temp
late name=
"FullSize
-Translate
">
|
217 |
|
<xsl:par
am name="P
aramDocume
ntFile" />
|
|
272 |
|
<xsl:par
am name="P
aramDocume
ntFile" />
|
218 |
|
<xsl:par
am name="P
aramBehavi
orsFile" /
>
|
|
273 |
|
<xsl:par
am name="P
aramBehavi
orsFile" /
>
|
219 |
|
<xsl:par
am name="P
aramSplits
File" />
|
|
274 |
|
<xsl:par
am name="P
aramSplits
File" />
|
220 |
|
<xsl:par
am name="P
aramDocume
ntFrame" /
>
|
|
275 |
|
<xsl:par
am name="P
aramDocume
ntFrame" /
>
|
221 |
|
<xsl:par
am name="P
aramBehavi
orsFrame"
/>
|
|
276 |
|
<xsl:par
am name="P
aramBehavi
orsFrame"
/>
|
222 |
|
<xsl:par
am name="P
aramSplitF
rame" />
|
|
277 |
|
<xsl:par
am name="P
aramSplitF
rame" />
|
223 |
|
<xsl:par
am name="P
aramContex
tRule" />
|
|
278 |
|
<xsl:par
am name="P
aramContex
tRule" />
|
224 |
|
|
|
279 |
|
|
225 |
|
<!-- Ski
p by refer
ence graph
ics -->
|
|
280 |
|
<!-- Ge
t
image-
s
c
ale marke
r
-->
|
226 |
|
<!--
-->
|
|
281 |
|
<!--
-->
|
227 |
|
<xsl:if
test="(not
($ParamSpl
itFrame/@b
yref)) or
($ParamSpl
itFrame/@b
yref != 't
rue')">
|
|
282 |
|
<xsl:
var
i
able
nam
e
="
Var
Image
Sc
a
l
e
">
|
228 |
|
<!-- Ge
nera
t
e
Po
s
tS
c
r
ipt
-->
|
|
283 |
|
<xsl:ca
ll-templat
e name="Im
ages-Image
ScaleMarke
rValue">
|
229 |
|
<!--
-->
|
|
284 |
|
<xsl:w
ith-param
name="Para
mFrameBeha
vior" sele
ct="$Param
BehaviorsF
rame" />
|
230 |
|
<xsl:va
riable nam
e="VarPost
ScriptPath
" select="
wwfilesyst
em:Combine
(wwprojext
:GetDocume
ntDataDire
ctoryPath(
$ParamSpli
tFrame/@do
cumentID),
concat(tr
anslate($P
arameterTy
pe, ':', '
_'), '_',
$ParamSpli
tFrame/@id
, '.ps'))"
/>
|
|
285 |
|
</xsl:c
all-templa
te>
|
231 |
|
<xsl:va
riable nam
e="VarPost
ScriptUpTo
Date" sele
ct="wwfile
sext:UpToD
ate($VarPo
stScriptPa
th, '', $P
aramSplitF
rame/@grou
pID, $Para
mSplitFram
e/@documen
tID, $Glob
alActionCh
ecksum)" /
>
|
|
286 |
|
</xsl:
var
i
able
>
|
232 |
|
<xsl:
i
f
t
e
st
="
not($
Var
Post
Sc
riptUpToD
a
t
e
)
">
|
|
|
|
|
233 |
|
<xsl:v
ariable na
me="VarIgn
oreResult"
select="w
wadapter:G
eneratePos
tScriptFor
Image($Par
amDocument
Frame, $Va
rPostScrip
tPath)" />
|
|
|
|
|
234 |
|
</xsl:
i
f
>
|
|
|
|
|
235 |
|
|
|
287 |
|
|
236 |
|
<!--
D
e
p
enden
c
y
i
nf
o
-->
|
|
288 |
|
<!--
G
e
t gra
p
hi
c
opt
i
o
ns
-->
|
|
|
|
|
289 |
|
<!--
-->
|
|
|
|
|
290 |
|
<xsl:var
iable name
="VarScale
Option" se
lect="$Par
amContextR
ule/wwproj
ect:Option
s/wwprojec
t:Option[@
Name = 'sc
ale']/@Val
ue" />
|
|
|
|
|
291 |
|
<xsl:var
iable name
="VarMaxWi
dthOption"
>
|
|
|
|
|
292 |
|
<xsl:ca
ll-templat
e name="Im
ages-MaxSi
zeOption">
|
|
|
|
|
293 |
|
<xsl:w
ith-param
name="Para
mMaxSizeOp
tionValue"
select="$
ParamConte
xtRule/wwp
roject:Opt
ions/wwpro
ject:Optio
n[@Name =
'max-width
']/@Value"
/>
|
|
|
|
|
294 |
|
</xsl:c
all-templa
te>
|
|
|
|
|
295 |
|
</xsl:va
riable>
|
|
|
|
|
296 |
|
<xsl:var
iable name
="VarMaxHe
ightOption
">
|
|
|
|
|
297 |
|
<xsl:ca
ll-templat
e name="Im
ages-MaxSi
zeOption">
|
|
|
|
|
298 |
|
<xsl:w
ith-param
name="Para
mMaxSizeOp
tionValue"
select="$
ParamConte
xtRule/wwp
roject:Opt
ions/wwpro
ject:Optio
n[@Name =
'max-heigh
t']/@Value
" />
|
|
|
|
|
299 |
|
</xsl:c
all-templa
te>
|
|
|
|
|
300 |
|
</xsl:va
riable>
|
|
|
|
|
301 |
|
|
|
|
|
|
302 |
|
<!-- Gen
erate imag
e -->
|
|
|
|
|
303 |
|
<!--
-->
|
|
|
|
|
304 |
|
<xsl:var
iable name
="VarImage
UpToDate"
select="ww
filesext:U
pToDate($P
aramSplitF
rame/@path
, concat($
GlobalProj
ect/wwproj
ect:Projec
t/@ChangeI
D, ':', $V
arImageSca
le, ':', $
VarScaleOp
tion, ':',
$VarMaxWi
dthOption,
':', $Var
MaxHeightO
ption), $P
aramSplitF
rame/@grou
pID, $Para
mSplitFram
e/@documen
tID, $Glob
alActionCh
ecksum)" /
>
|
|
|
|
|
305 |
|
<xsl:if
test="not(
$VarImageU
pToDate)">
|
|
|
|
|
306 |
|
<!-- Lo
ad image i
nfo -->
|
237 |
|
<!--
-->
|
|
307 |
|
<!--
-->
|
238 |
|
<xsl:va
riable nam
e="Var
PostScript
Checksu
m
" select="
ww
f
i
lesyste
m
:Get
Checksum
($
V
ar
Post
S
cri
p
t
P
a
th
)" />
|
|
308 |
|
<xsl:va
riable nam
e="Var
I
m
ageInfo
" select="
ww
i
m
aging
:Get
Info
($
P
ar
am
S
p
li
t
Fr
a
me/@source
)" />
|
239 |
|
<wwfile
s:File pat
h="{$VarPo
stScriptPa
th}" type=
"$Paramete
rPostScrip
tType" che
cksum="{$V
arPostScri
ptChecksum
}" project
checksum="
" groupID=
"{$ParamSp
litFrame/@
groupID}"
documentID
="{$ParamS
plitFrame/
@documentI
D}" action
checksum="
{$GlobalAc
tionChecks
um}">
|
|
|
|
|
240 |
|
<wwfil
es:Depends
path="{$P
aramDocume
ntFile/@pa
th}" check
sum="{$Par
amDocument
File/@chec
ksum}" gro
upID="{$Pa
ramDocumen
tFile/@gro
upID}" doc
umentID="{
$ParamDocu
mentFile/@
documentID
}" />
|
|
|
|
|
241 |
|
</wwfil
es:File>
|
|
|
|
|
242 |
|
|
|
309 |
|
|
243 |
|
<!-- Ab
orted? -->
|
|
310 |
|
<!--
D
e
f
i
n
e
initi
al
width/h
e
ight
-->
|
244 |
|
<!--
-->
|
|
311 |
|
<!--
-->
|
245 |
|
<xsl:if
test="not
(wwprogres
s:Abort())
">
|
|
312 |
|
<xsl:va
riable nam
e="VarByRe
ferenceGra
phicsUseDo
cumentDime
nsionsOpti
on" select
="$ParamCo
ntextRule/
wwproject:
Options/ww
project:Op
tion[@Name
= 'by-ref
erence-use
-document-
dimensions
']/@Value"
/>
|
246 |
|
<!--
G
e
t
i
mag
e
-sc
al
e
mark
e
r
-->
|
|
313 |
|
<xsl:va
riable nam
e="VarByRe
ferenceGra
phicsUseDo
cumentDime
nsions" se
lect="(str
ing-length
($VarByRef
erenceGrap
hicsUseDoc
umentDimen
sionsOptio
n) = 0) or
($VarByRe
ferenceGra
phicsUseDo
cumentDime
nsionsOpti
on = 'true
')" />
|
247 |
|
<!--
-->
|
|
314 |
|
<xsl:varia
ble name="
VarI
niti
al
Width
">
|
248 |
|
<xsl:varia
ble name="
VarI
mageSc
al
e
">
|
|
315 |
|
<xsl:c
hoose>
|
249 |
|
<xsl:varia
ble name="
Var
ImageS
c
aleB
e
havio
r
M
a
rk
e
rs
" select="
$Param
Behavi
o
rs
Frame/
/
ww
behavi
o
rs
:
Ma
r
k
e
r
[@
beh
a
vior
= '
i
mage-sc
al
e
']
" />
|
|
316 |
|
<xsl:
when test=
"($VarByRe
ferenceGra
phicsUseDo
cumentDime
nsions) or
($VarImag
eInfo/@wid
th = 0)">
|
250 |
|
<xsl:
if test="c
ount($VarI
mageScaleB
ehaviorMar
kers) >
0">
|
|
317 |
|
<xsl:varia
ble name="
Var
Do
c
um
e
ntF
r
a
m
e
Width
" select="
wwunits:Nu
mericPrefi
x(
$Param
D
o
cument
Frame/
ww
d
o
c
:
Att
r
ibut
e
[@
n
a
me
= '
w
i
dth']/@v
al
u
e
)
" />
|
251 |
|
<xsl
:variable
name="VarI
mageScaleM
arkerValue
">
|
|
|
|
|
252 |
|
<!-
- Use last
one defin
ed -->
|
|
|
|
|
253 |
|
<!-
-
-->
|
|
|
|
|
254 |
|
<xs
l:for-each
select="$
VarImageSc
aleBehavio
rMarkers[c
ount($VarI
mageScaleB
ehaviorMar
kers)]">
|
|
|
|
|
255 |
|
<x
sl:variabl
e name="Va
rImageScal
eBehaviorM
arker" sel
ect="." />
|
|
|
|
|
256 |
|
|
|
318 |
|
|
257 |
|
<x
sl:for-eac
h select="
$VarImageS
caleBehavi
orMarker/w
wdoc:Marke
r/wwdoc:Te
xtRun/wwdo
c:Text">
|
|
319 |
|
<xsl:value
-of select
="
wwunits:Co
n
v
ert($V
a
rDoc
u
m
e
ntFrameWid
th, 'point
s', 'inche
s') * 96
" />
|
258 |
|
<xsl:value
-of select
="
@
v
a
l
u
e
" />
|
|
320 |
|
</xsl:
wh
e
n
>
|
259 |
|
</
xsl:for-ea
ch>
|
|
|
|
|
260 |
|
</x
sl:for-eac
h>
|
|
|
|
|
261 |
|
</xsl:
variabl
e
>
|
|
|
|
|
262 |
|
|
|
321 |
|
|
263 |
|
<xsl
:if test="
(string-le
ngth($VarI
mageScaleM
arkerValue
) > 0)
and (numbe
r($VarImag
eScaleMark
erValue) &
gt; 0)">
|
|
322 |
|
<xsl:
otherwise>
|
264 |
|
<xs
l:value-of
select="n
umber($Var
ImageScale
MarkerValu
e)" />
|
|
323 |
|
<xsl
:value-of
select="$V
arImageInf
o/@width"
/>
|
265 |
|
</xs
l:if>
|
|
324 |
|
</xsl
:otherwise
>
|
266 |
|
</
xs
l
:
i
f
>
|
|
325 |
|
</xsl:
choose>
|
267 |
|
</xsl:
variab
l
e>
|
|
326 |
|
</xsl:v
ariable>
|
|
|
|
|
327 |
|
<xsl:va
riable nam
e="VarInit
ialHeight"
>
|
|
|
|
|
328 |
|
<xsl:c
hoose>
|
|
|
|
|
329 |
|
<xsl:
when test=
"($VarByRe
ferenceGra
phicsUseDo
cumentDime
nsions) or
($VarImag
eInfo/@hei
ght = 0)">
|
|
|
|
|
330 |
|
<xsl
:variable
name="VarD
ocumentFra
meHeight"
select="ww
units:Nume
ricPrefix(
$ParamDocu
mentFrame/
wwdoc:Attr
ibute[@nam
e = 'heigh
t']/@value
)" />
|
|
|
|
|
331 |
|
|
|
|
|
|
332 |
|
<xsl
:value-of
select="ww
units:Conv
ert($VarDo
cumentFram
eHeight, '
points', '
inches') *
96" />
|
|
|
|
|
333 |
|
</xsl
:when>
|
|
|
|
|
334 |
|
|
|
|
|
|
335 |
|
<xsl:
otherwise>
|
|
|
|
|
336 |
|
<xsl
:value-of
select="$V
arImageInf
o/@height"
/>
|
|
|
|
|
337 |
|
</xsl
:otherwise
>
|
|
|
|
|
338 |
|
</xsl:
choose>
|
|
|
|
|
339 |
|
</xsl:v
ariable>
|
|
|
|
|
340 |
|
|
|
|
|
|
341 |
|
<!-- De
termine up
scaling f
actor -->
|
|
|
|
|
342 |
|
<!--
-->
|
|
|
|
|
343 |
|
<xsl:va
riable nam
e="VarUpSc
alingFacto
r">
|
|
|
|
|
344 |
|
<xsl:c
hoose>
|
|
|
|
|
345 |
|
<!--
Use image-
scale mark
ers if def
ined -->
|
|
|
|
|
346 |
|
<!--
-->
|
|
|
|
|
347 |
|
<xsl:
when test=
"string-le
ngth($VarI
mageScale)
> 0">
|
|
|
|
|
348 |
|
<xsl
:value-of
select="$V
arImageSca
le div 100
.0" />
|
|
|
|
|
349 |
|
</xsl
:when>
|
|
|
|
|
350 |
|
|
|
|
|
|
351 |
|
<!--
Scale -->
|
|
|
|
|
352 |
|
<!--
-->
|
|
|
|
|
353 |
|
<xsl:
when test=
"(string-l
ength($Var
ScaleOptio
n) > 0)
and ($Var
ScaleOptio
n != 'none
') and (nu
mber($VarS
caleOption
) > 0)"
>
|
|
|
|
|
354 |
|
<xsl
:value-of
select="$V
arScaleOpt
ion div 10
0.0" />
|
|
|
|
|
355 |
|
</xsl
:when>
|
|
|
|
|
356 |
|
|
|
|
|
|
357 |
|
<xsl:
otherwise>
|
|
|
|
|
358 |
|
<xsl
:value-of
select="1.
0" />
|
|
|
|
|
359 |
|
</xsl
:otherwise
>
|
|
|
|
|
360 |
|
</xsl:
choose>
|
|
|
|
|
361 |
|
</xsl:v
ariable>
|
|
|
|
|
362 |
|
|
|
|
|
|
363 |
|
<!-- De
termine sc
aled width
/height --
>
|
|
|
|
|
364 |
|
<!--
--
>
|
|
|
|
|
365 |
|
<xsl:va
riable nam
e="VarScal
edWidth">
|
|
|
|
|
366 |
|
<xsl:v
alue-of se
lect="$Var
InitialWid
th * $VarU
pScalingFa
ctor" />
|
|
|
|
|
367 |
|
</xsl:v
ariable>
|
|
|
|
|
368 |
|
<xsl:va
riable nam
e="VarScal
edHeight">
|
|
|
|
|
369 |
|
<xsl:v
alue-of se
lect="$Var
InitialHei
ght * $Var
UpScalingF
actor" />
|
|
|
|
|
370 |
|
</xsl:v
ariable>
|
|
|
|
|
371 |
|
|
|
|
|
|
372 |
|
<!-- De
termine do
wn scaling
factor --
>
|
|
|
|
|
373 |
|
<!--
--
>
|
|
|
|
|
374 |
|
<xsl:va
riable nam
e="VarDown
ScalingFac
tor">
|
|
|
|
|
375 |
|
<xsl:c
hoose>
|
|
|
|
|
376 |
|
<!--
Max Width/
Height -->
|
|
|
|
|
377 |
|
<!--
-->
|
|
|
|
|
378 |
|
<xsl:
when test=
"($VarMaxW
idthOption
> 0) o
r ($VarMax
HeightOpti
on > 0)
">
|
|
|
|
|
379 |
|
<!--
Determine
scaling r
atio -->
|
|
|
|
|
380 |
|
<!--
-->
|
|
|
|
|
381 |
|
<xsl
:variable
name="VarW
idthRatio"
select="$
VarMaxWidt
hOption di
v $VarScal
edWidth" /
>
|
|
|
|
|
382 |
|
<xsl
:variable
name="VarH
eightRatio
" select="
$VarMaxHei
ghtOption
div $VarSc
aledHeight
" />
|
|
|
|
|
383 |
|
<xsl
:choose>
|
|
|
|
|
384 |
|
<xs
l:when tes
t="($VarWi
dthRatio &
lt; 1.0) a
nd ((($Var
WidthRatio
> 0) a
nd ($VarWi
dthRatio &
lt; $VarHe
ightRatio)
) or ($Var
HeightRati
o = 0))">
|
|
|
|
|
385 |
|
<x
sl:value-o
f select="
$VarWidthR
atio" />
|
|
|
|
|
386 |
|
</x
sl:when>
|
|
|
|
|
387 |
|
|
|
|
|
|
388 |
|
<xs
l:when tes
t="$VarHei
ghtRatio &
lt; 1.0">
|
|
|
|
|
389 |
|
<x
sl:value-o
f select="
$VarHeight
Ratio" />
|
|
|
|
|
390 |
|
</x
sl:when>
|
|
|
|
|
391 |
|
|
|
|
|
|
392 |
|
<xs
l:otherwis
e>
|
|
|
|
|
393 |
|
<x
sl:value-o
f select="
1.0" />
|
|
|
|
|
394 |
|
</x
sl:otherwi
se>
|
|
|
|
|
395 |
|
</xs
l:choose>
|
|
|
|
|
396 |
|
</xsl
:when>
|
|
|
|
|
397 |
|
|
|
|
|
|
398 |
|
<xsl:
otherwise>
|
|
|
|
|
399 |
|
<xsl
:value-of
select="1.
0" />
|
|
|
|
|
400 |
|
</xsl
:otherwise
>
|
|
|
|
|
401 |
|
</xsl:
choose>
|
|
|
|
|
402 |
|
</xsl:v
ariable>
|
|
|
|
|
403 |
|
|
|
|
|
|
404 |
|
<!-- De
termine ta
rget width
/height --
>
|
|
|
|
|
405 |
|
<!--
--
>
|
|
|
|
|
406 |
|
<xsl:va
riable nam
e="VarTarg
etWidth">
|
|
|
|
|
407 |
|
<xsl:v
alue-of se
lect="ceil
ing($VarDo
wnScalingF
actor * $V
arScaledWi
dth)" />
|
|
|
|
|
408 |
|
</xsl:v
ariable>
|
|
|
|
|
409 |
|
<xsl:va
riable nam
e="VarTarg
etHeight">
|
|
|
|
|
410 |
|
<xsl:v
alue-of se
lect="ceil
ing($VarDo
wnScalingF
actor * $V
arScaledHe
ight)" />
|
|
|
|
|
411 |
|
</xsl:v
ariable>
|
|
|
|
|
412 |
|
|
|
|
|
|
413 |
|
<!-- Fo
rmat -->
|
|
|
|
|
414 |
|
<!--
-->
|
|
|
|
|
415 |
|
<xsl:va
riable nam
e="VarForm
at">
|
|
|
|
|
416 |
|
<xsl:v
ariable na
me="VarFor
matOption"
select="$
ParamConte
xtRule/wwp
roject:Opt
ions/wwpro
ject:Optio
n[@Name =
'format']/
@Value" />
|
|
|
|
|
417 |
|
<xsl:c
hoose>
|
|
|
|
|
418 |
|
<xsl:
when test=
"string-le
ngth($VarF
ormatOptio
n) > 0"
>
|
|
|
|
|
419 |
|
<xsl
:value-of
select="$V
arFormatOp
tion" />
|
|
|
|
|
420 |
|
</xsl
:when>
|
|
|
|
|
421 |
|
|
|
|
|
|
422 |
|
<xsl:
otherwise>
|
|
|
|
|
423 |
|
<xsl
:value-of
select="$P
arameterDe
faultForma
t" />
|
|
|
|
|
424 |
|
</xsl
:otherwise
>
|
|
|
|
|
425 |
|
</xsl:
choose>
|
|
|
|
|
426 |
|
</xsl:v
ariable>
|
|
|
|
|
427 |
|
|
|
|
|
|
428 |
|
<!-- Qu
ality (for
JPEGs) --
>
|
|
|
|
|
429 |
|
<!--
--
>
|
|
|
|
|
430 |
|
<xsl:va
riable nam
e="VarQual
ity">
|
|
|
|
|
431 |
|
<xsl:v
ariable na
me="VarQua
lityOption
" select="
$ParamCont
extRule/ww
project:Op
tions/wwpr
oject:Opti
on[@Name =
'quality'
]/@Value"
/>
|
|
|
|
|
432 |
|
|
|
|
|
|
433 |
|
<xsl:c
hoose>
|
|
|
|
|
434 |
|
<xsl:
when test=
"number($V
arQualityO
ption) >
; 0">
|
|
|
|
|
435 |
|
<xsl
:value-of
select="$V
arQualityO
ption" />
|
|
|
|
|
436 |
|
</xsl
:when>
|
|
|
|
|
437 |
|
|
|
|
|
|
438 |
|
<xsl:
otherwise>
|
|
|
|
|
439 |
|
<xsl
:value-of
select="75
" />
|
|
|
|
|
440 |
|
</xsl
:otherwise
>
|
|
|
|
|
441 |
|
</xsl:
choose>
|
|
|
|
|
442 |
|
</xsl:v
ariable>
|
|
|
|
|
443 |
|
|
|
|
|
|
444 |
|
<!-- Tr
ansform --
>
|
|
|
|
|
445 |
|
<!--
--
>
|
|
|
|
|
446 |
|
<xsl:va
riable nam
e="VarTran
sform" sel
ect="wwima
ging:Trans
form($Para
mSplitFram
e/@source,
$VarForma
t, $VarQua
lity, $Var
TargetWidt
h, $VarTar
getHeight,
$ParamSpl
itFrame/@p
ath)" />
|
|
|
|
|
447 |
|
</xsl:if
>
|
|
|
|
|
448 |
|
|
|
|
|
|
449 |
|
<!-- Dep
endency in
fo -->
|
|
|
|
|
450 |
|
<!--
-->
|
|
|
|
|
451 |
|
<wwfiles
:File path
="{$ParamS
plitFrame/
@path}" ty
pe="{$Para
meterType}
" checksum
="{wwfiles
ystem:GetC
hecksum($P
aramSplitF
rame/@path
)}" projec
tchecksum=
"{concat($
GlobalProj
ect/wwproj
ect:Projec
t/@ChangeI
D, ':', $V
arImageSca
le, ':', $
VarScaleOp
tion, ':',
$VarMaxWi
dthOption,
':', $Var
MaxHeightO
ption)}" g
roupID="{$
ParamSplit
Frame/@gro
upID}" doc
umentID="{
$ParamSpli
tFrame/@do
cumentID}"
actionche
cksum="{$G
lobalActio
nChecksum}
" category
="{$Parame
terCategor
y}" use="{
$Parameter
Use}" depl
oy="{$Para
meterDeplo
y}">
|
|
|
|
|
452 |
|
<wwfile
s:Depends
path="{$Pa
ramSplitFr
ame/@sourc
e}" checks
um="{wwfil
esystem:Ge
tChecksum(
$ParamSpli
tFrame/@so
urce)}" gr
oupID="" d
ocumentID=
"" />
|
|
|
|
|
453 |
|
<wwfile
s:Depends
path="{$Pa
ramBehavio
rsFile/@pa
th}" check
sum="{$Par
amBehavior
sFile/@che
cksum}" gr
oupID="{$P
aramBehavi
orsFile/@g
roupID}" d
ocumentID=
"{$ParamBe
haviorsFil
e/@documen
tID}" />
|
|
|
|
|
454 |
|
</
wwfi
l
es
:
F
i
le
>
|
|
|
|
|
455 |
|
</xsl:
temp
l
at
e>
|
268 |
|
|
|
456 |
|
|
269 |
|
<!-- G
et graphic
options -
->
|
|
|
|
|
270 |
|
<!--
-
->
|
|
|
|
|
271 |
|
<xsl:v
ariable na
me="VarMax
WidthOptio
n">
|
|
|
|
|
272 |
|
<xsl:
call-templ
ate name="
MaxSizeOpt
ion">
|
|
|
|
|
273 |
|
<xsl
:with-para
m name="Pa
ramMaxSize
OptionValu
e" select=
"$ParamCon
textRule/w
wproject:O
ptions/wwp
roject:Opt
ion[@Name
= 'max-wid
th']/@Valu
e" />
|
|
|
|
|
274 |
|
</xsl
:call-temp
late>
|
|
|
|
|
275 |
|
</xsl:
variable>
|
|
|
|
|
276 |
|
<xsl:v
ariable na
me="VarMax
HeightOpti
on">
|
|
|
|
|
277 |
|
<xsl:
call-templ
ate name="
MaxSizeOpt
ion">
|
|
|
|
|
278 |
|
<xsl
:with-para
m name="Pa
ramMaxSize
OptionValu
e" select=
"$ParamCon
textRule/w
wproject:O
ptions/wwp
roject:Opt
ion[@Name
= 'max-hei
ght']/@Val
ue" />
|
|
|
|
|
279 |
|
</xsl
:call-temp
late>
|
|
|
|
|
280 |
|
</xsl:
variable>
|
|
|
|
|
281 |
|
<xsl:v
ariable na
me="VarSca
leOption"
select="$P
aramContex
tRule/wwpr
oject:Opti
ons/wwproj
ect:Option
[@Name = '
scale']/@V
alue" />
|
|
|
|
|
282 |
|
|
|
457 |
|
|
283 |
|
<!-- G
enerate im
age -->
|
|
458 |
|
<xsl:temp
late name=
"FullSize-
PostScript
">
|
284 |
|
<!--
-->
|
|
459 |
|
<xsl:par
am name="P
aramDocume
ntFile" />
|
285 |
|
<xsl:v
ariable na
me="VarIma
geUpToDate
" select="
wwfilesext
:UpToDate(
$ParamSpli
tFrame/@pa
th, concat
($GlobalPr
oject/wwpr
oject:Proj
ect/@Chang
eID, ':',
$VarImageS
cale, ':',
$VarScale
Option, ':
', $VarMax
WidthOptio
n, ':', $V
arMaxHeigh
tOption),
$ParamSpli
tFrame/@gr
oupID, $Pa
ramSplitFr
ame/@docum
entID, $Gl
obalAction
Checksum)"
/>
|
|
460 |
|
<xsl:par
am name="P
aramBehavi
orsFile" /
>
|
286 |
|
<xsl:i
f test="no
t($VarPost
ScriptUpTo
Date) or n
ot($VarIma
geUpToDate
)">
|
|
461 |
|
<xsl:par
am name="P
aramSplits
File" />
|
287 |
|
<!--
R
a
s
teriz
e -->
|
|
462 |
|
<xsl:par
am name="P
aramDocume
ntFrame" /
>
|
|
|
|
|
463 |
|
<xsl:par
am name="P
aramBehavi
orsFrame"
/>
|
|
|
|
|
464 |
|
<xsl:par
am name="P
aramSplitF
rame" />
|
|
|
|
|
465 |
|
<xsl:par
am name="P
aramContex
tRule" />
|
|
|
|
|
466 |
|
|
|
|
|
|
467 |
|
<!-- Gen
erate Post
Script -->
|
|
|
|
|
468 |
|
<!--
-->
|
|
|
|
|
469 |
|
<xsl:var
iable name
="VarPostS
criptPath"
select="w
wfilesyste
m:Combine(
wwprojext:
GetDocumen
tDataDirec
toryPath($
ParamSplit
Frame/@doc
umentID),
concat(tra
nslate($Pa
rameterTyp
e, ':', '_
'), '_', $
ParamSplit
Frame/@id,
'.ps'))"
/>
|
|
|
|
|
470 |
|
<xsl:var
iable name
="VarPostS
criptUpToD
ate" selec
t="wwfiles
ext:UpToDa
te($VarPos
tScriptPat
h, '', $Pa
ramSplitFr
ame/@group
ID, $Param
SplitFrame
/@document
ID, $Globa
lActionChe
cksum)" />
|
|
|
|
|
471 |
|
<xsl:if
test="not(
$VarPostSc
riptUpToDa
te)">
|
|
|
|
|
472 |
|
<xsl:va
riable nam
e="VarIgno
reResult"
select="ww
adapter:Ge
neratePost
ScriptForI
mage($Para
mDocumentF
rame, $Var
PostScript
Path)" />
|
|
|
|
|
473 |
|
</xsl:if
>
|
|
|
|
|
474 |
|
|
|
|
|
|
475 |
|
<!-- Dep
endency in
fo -->
|
|
|
|
|
476 |
|
<!--
-->
|
|
|
|
|
477 |
|
<xsl:var
iable name
="VarPostS
criptCheck
sum" selec
t="wwfiles
ystem:GetC
hecksum($V
arPostScri
ptPath)" /
>
|
|
|
|
|
478 |
|
<wwfiles
:File path
="{$VarPos
tScriptPat
h}" type="
$Parameter
PostScript
Type" chec
ksum="{$Va
rPostScrip
tChecksum}
" projectc
hecksum=""
groupID="
{$ParamSpl
itFrame/@g
roupID}" d
ocumentID=
"{$ParamSp
litFrame/@
documentID
}" actionc
hecksum="{
$GlobalAct
ionChecksu
m}">
|
|
|
|
|
479 |
|
<wwfile
s:Depends
path="{$Pa
ramDocumen
tFile/@pat
h}" checks
um="{$Para
mDocumentF
ile/@check
sum}" grou
pID="{$Par
amDocument
File/@grou
pID}" docu
mentID="{$
ParamDocum
entFile/@d
ocumentID}
" />
|
|
|
|
|
480 |
|
</wwfile
s:File>
|
|
|
|
|
481 |
|
|
|
|
|
|
482 |
|
<!-- Abo
rted? -->
|
|
|
|
|
483 |
|
<!--
-->
|
|
|
|
|
484 |
|
<xsl:if
test="not(
wwprogress
:Abort())"
>
|
|
|
|
|
485 |
|
<!-- Ge
t image-sc
ale marker
-->
|
|
|
|
|
486 |
|
<!--
-->
|
|
|
|
|
487 |
|
<xsl:va
riable nam
e="VarImag
eScale">
|
|
|
|
|
488 |
|
<xsl:c
all-templa
te name="I
mages-Imag
eScaleMark
erValue">
|
|
|
|
|
489 |
|
<xsl:
with-param
name="Par
amFrameBeh
avior" sel
ect="$Para
mBehaviors
Frame" />
|
|
|
|
|
490 |
|
</xsl:
call-templ
ate>
|
|
|
|
|
491 |
|
</xsl:v
ariable>
|
|
|
|
|
492 |
|
|
|
|
|
|
493 |
|
<!-- Ge
t graphic
options --
>
|
|
|
|
|
494 |
|
<!--
--
>
|
|
|
|
|
495 |
|
<xsl:va
riable nam
e="VarScal
eOption" s
elect="$Pa
ramContext
Rule/wwpro
ject:Optio
ns/wwproje
ct:Option[
@Name = 's
cale']/@Va
lue" />
|
|
|
|
|
496 |
|
<xsl:va
riable nam
e="VarMaxW
idthOption
">
|
|
|
|
|
497 |
|
<xsl:c
all-templa
te name="I
mages-MaxS
izeOption"
>
|
|
|
|
|
498 |
|
<xsl:
with-param
name="Par
amMaxSizeO
ptionValue
" select="
$ParamCont
extRule/ww
project:Op
tions/wwpr
oject:Opti
on[@Name =
'max-widt
h']/@Value
" />
|
|
|
|
|
499 |
|
</xsl:
call-templ
ate>
|
|
|
|
|
500 |
|
</xsl:v
ariable>
|
|
|
|
|
501 |
|
<xsl:va
riable nam
e="VarMaxH
eightOptio
n">
|
|
|
|
|
502 |
|
<xsl:c
all-templa
te name="I
mages-MaxS
izeOption"
>
|
|
|
|
|
503 |
|
<xsl:
with-param
name="Par
amMaxSizeO
ptionValue
" select="
$ParamCont
extRule/ww
project:Op
tions/wwpr
oject:Opti
on[@Name =
'max-heig
ht']/@Valu
e" />
|
|
|
|
|
504 |
|
</xsl:
call-templ
ate>
|
|
|
|
|
505 |
|
</xsl:v
ariable>
|
|
|
|
|
506 |
|
|
|
|
|
|
507 |
|
<!-- Ge
nerate ima
ge -->
|
|
|
|
|
508 |
|
<!--
-->
|
|
|
|
|
509 |
|
<xsl:va
riable nam
e="VarImag
eUpToDate"
select="w
wfilesext:
UpToDate($
ParamSplit
Frame/@pat
h, concat(
$GlobalPro
ject/wwpro
ject:Proje
ct/@Change
ID, ':', $
VarImageSc
ale, ':',
$VarScaleO
ption, ':'
, $VarMaxW
idthOption
, ':', $Va
rMaxHeight
Option), $
ParamSplit
Frame/@gro
upID, $Par
amSplitFra
me/@docume
ntID, $Glo
balActionC
hecksum)"
/>
|
|
|
|
|
510 |
|
<xsl:if
test="not
($VarPostS
criptUpToD
ate) or no
t($VarImag
eUpToDate)
">
|
|
|
|
|
511 |
|
<!-- R
asterize -
->
|
|
|
|
|
512 |
|
<!--
-
->
|
|
|
|
|
513 |
|
<xsl:v
ariable na
me="VarDoc
umentFrame
Width" sel
ect="wwuni
ts:Numeric
Prefix($Pa
ramDocumen
tFrame/wwd
oc:Attribu
te[@name =
'width']/
@value)" /
>
|
|
|
|
|
514 |
|
<xsl:v
ariable na
me="VarDoc
umentFrame
Height" se
lect="wwun
its:Numeri
cPrefix($P
aramDocume
ntFrame/ww
doc:Attrib
ute[@name
= 'height'
]/@value)"
/>
|
|
|
|
|
515 |
|
<xsl:i
f test="($
VarDocumen
tFrameWidt
h > 0)
and ($VarD
ocumentFra
meHeight &
gt; 0)">
|
|
|
|
|
516 |
|
<!--
Render DPI
-->
|
|
|
|
|
517 |
|
<!--
-->
|
|
|
|
|
518 |
|
<xsl:
variable n
ame="VarRe
nderDPI">
|
|
|
|
|
519 |
|
<xsl
:variable
name="VarR
enderDPIOp
tion" sele
ct="$Param
ContextRul
e/wwprojec
t:Options/
wwproject:
Option[@Na
me = 'rend
er-dpi']/@
Value" />
|
|
|
|
|
520 |
|
<xsl
:choose>
|
|
|
|
|
521 |
|
<xs
l:when tes
t="string-
length($Va
rRenderDPI
Option) &g
t; 0">
|
|
|
|
|
522 |
|
<x
sl:value-o
f select="
$VarRender
DPIOption"
/>
|
|
|
|
|
523 |
|
</x
sl:when>
|
|
|
|
|
524 |
|
|
|
|
|
|
525 |
|
<xs
l:otherwis
e>
|
|
|
|
|
526 |
|
<x
sl:value-o
f select="
96" />
|
|
|
|
|
527 |
|
</x
sl:otherwi
se>
|
|
|
|
|
528 |
|
</xs
l:choose>
|
|
|
|
|
529 |
|
</xsl
:variable>
|
|
|
|
|
530 |
|
|
|
|
|
|
531 |
|
<!--
Width/Heig
ht -->
|
|
|
|
|
532 |
|
<!--
-->
|
|
|
|
|
533 |
|
<xsl:
variable n
ame="VarWi
dth" selec
t="wwunits
:Convert($
VarDocumen
tFrameWidt
h, 'points
', 'inches
') * $VarR
enderDPI"
/>
|
|
|
|
|
534 |
|
<xsl:
variable n
ame="VarHe
ight" sele
ct="wwunit
s:Convert(
$VarDocume
ntFrameHei
ght, 'poin
ts', 'inch
es') * $Va
rRenderDPI
" />
|
|
|
|
|
535 |
|
|
|
|
|
|
536 |
|
<!--
Format -->
|
|
|
|
|
537 |
|
<!--
-->
|
|
|
|
|
538 |
|
<xsl:
variable n
ame="VarFo
rmat">
|
|
|
|
|
539 |
|
<xsl
:variable
name="VarF
ormatOptio
n" select=
"$ParamCon
textRule/w
wproject:O
ptions/wwp
roject:Opt
ion[@Name
= 'format'
]/@Value"
/>
|
|
|
|
|
540 |
|
<xsl
:choose>
|
|
|
|
|
541 |
|
<xs
l:when tes
t="string-
length($Va
rFormatOpt
ion) >
0">
|
|
|
|
|
542 |
|
<x
sl:value-o
f select="
$VarFormat
Option" />
|
|
|
|
|
543 |
|
</x
sl:when>
|
|
|
|
|
544 |
|
|
|
|
|
|
545 |
|
<xs
l:otherwis
e>
|
|
|
|
|
546 |
|
<x
sl:value-o
f select="
$Parameter
DefaultFor
mat" />
|
|
|
|
|
547 |
|
</x
sl:otherwi
se>
|
|
|
|
|
548 |
|
</xs
l:choose>
|
|
|
|
|
549 |
|
</xsl
:variable>
|
|
|
|
|
550 |
|
|
|
|
|
|
551 |
|
<!--
Color Dept
h -->
|
|
|
|
|
552 |
|
<!--
-->
|
|
|
|
|
553 |
|
<xsl:
variable n
ame="VarCo
lorDepth">
|
|
|
|
|
554 |
|
<xsl
:variable
name="VarC
olorDepthO
ption" sel
ect="$Para
mContextRu
le/wwproje
ct:Options
/wwproject
:Option[@N
ame = 'col
or-depth']
/@Value" /
>
|
|
|
|
|
555 |
|
<xsl
:choose>
|
|
|
|
|
556 |
|
<xs
l:when tes
t="number(
$VarColorD
epthOption
) > 0">
|
|
|
|
|
557 |
|
<x
sl:value-o
f select="
$VarColorD
epthOption
" />
|
|
|
|
|
558 |
|
</x
sl:when>
|
|
|
|
|
559 |
|
|
|
|
|
|
560 |
|
<xs
l:otherwis
e>
|
|
|
|
|
561 |
|
<x
sl:value-o
f select="
256" />
|
|
|
|
|
562 |
|
</x
sl:otherwi
se>
|
|
|
|
|
563 |
|
</xs
l:choose>
|
|
|
|
|
564 |
|
</xsl
:variable>
|
|
|
|
|
565 |
|
|
|
|
|
|
566 |
|
<!--
Gr
a
y
s
cal
e -->
|
288 |
|
<!--
-->
|
|
567 |
|
<!--
-->
|
289 |
|
<xsl:
variable n
ame="Var
DocumentF
ra
m
e
Wid
t
h
" select="
wwunits:Nu
mericPrefi
x(
$Param
D
o
cume
nt
Fram
e/ww
d
o
c
:A
t
t
r
i
but
e
[@
n
ame = '
width
']/@
v
alue
)
" />
|
|
568 |
|
<xsl:
variable n
ame="Var
G
ra
yscal
e
Op
t
ion
" select="
$Param
C
o
nt
extRul
e/ww
pr
o
je
c
t
:Op
t
i
ons/wwproj
e
ct:Option
[@
N
ame = '
grayscale
']/@
V
alue
" />
|
290 |
|
<xsl:
variable n
ame="Var
DocumentF
ra
meH
e
ight
" select="
wwunits:Nu
mericPrefi
x(
$
P
ar
a
mDo
c
umentFr
a
m
e
/wwdoc:At
t
r
i
bute[@
n
ame
= '
heigh
t
']/@val
ue
)
" />
|
|
569 |
|
<xsl:
variable n
ame="Var
G
ra
yscal
e
" select="
$
V
ar
Gr
a
ys
c
a
l
e
Op
t
i
o
n
= '
t
r
ue
'
" />
|
291 |
|
<xsl:
if test="(
$VarDocume
ntFrameWid
th > 0)
and ($Var
DocumentFr
ameHeight
> 0)">
|
|
|
|
|
292 |
|
<!--
Render DP
I -->
|
|
|
|
|
293 |
|
<!--
-->
|
|
|
|
|
294 |
|
<xsl
:variable
name="VarR
enderDPI">
|
|
|
|
|
295 |
|
<xs
l:variable
name="Var
RenderDPIO
ption" sel
ect="$Para
mContextRu
le/wwproje
ct:Options
/wwproject
:Option[@N
ame = 'ren
der-dpi']/
@Value" />
|
|
|
|
|
296 |
|
<xs
l:choose>
|
|
|
|
|
297 |
|
<x
sl:when te
st="string
-length($V
arRenderDP
IOption) &
gt; 0">
|
|
|
|
|
298 |
|
<
xsl:value-
of select=
"$VarRende
rDPIOption
" />
|
|
|
|
|
299 |
|
</
xsl:when>
|
|
|
|
|
300 |
|
|
|
570 |
|
|
301 |
|
<x
sl:otherwi
se>
|
|
571 |
|
<!--
Transparen
t -->
|
302 |
|
<
xsl:value-
of select=
"96" />
|
|
572 |
|
<!--
-->
|
303 |
|
</
xsl:otherw
ise>
|
|
573 |
|
<xsl:
variable n
ame="VarTr
ansparentO
ption" sel
ect="$Para
mContextRu
le/wwproje
ct:Options
/wwproject
:Option[@N
ame = 'tra
nsparent']
/@Value" /
>
|
304 |
|
</x
sl:choose>
|
|
574 |
|
<xsl:
variable n
ame="VarTr
ansparent"
select="$
VarTranspa
rentOption
= 'true'"
/>
|
305 |
|
</xs
l:variable
>
|
|
|
|
|
306 |
|
|
|
575 |
|
|
307 |
|
<!--
Wid
t
h/H
e
ight
-->
|
|
576 |
|
<!--
In
t
e
rlaced (fo
r GIFs)
-->
|
308 |
|
<!--
-->
|
|
577 |
|
<!--
-->
|
309 |
|
<xsl:varia
ble name="
Var
Wi
d
t
h
" select="
wwunits:
Con
v
e
r
t
($Va
r
D
o
cum
e
n
t
F
r
am
e
Wid
t
h, '
p
o
i
n
ts',
'in
c
h
e
s
'
) * $
Va
rRend
e
rDPI
" />
|
|
578 |
|
<xsl:varia
ble name="
Var
Interlace
d
Op
t
ion
" select="
$Param
Con
t
e
x
t
Rule/wwp
r
o
j
e
c
t
:Options/w
wp
r
oj
e
c
t
:O
p
t
i
o
n
[@Name =
'in
terla
c
e
d
'
]/@
Va
lu
e
" />
|
310 |
|
<xsl:varia
ble name="
Var
Heigh
t
" select="
wwunits:Co
nvert(
$Var
Docume
nt
F
r
a
meH
e
ight, '
p
oin
t
s', '
i
n
ches')
*
$Va
r
Rend
e
rDPI
" />
|
|
579 |
|
<xsl:varia
ble name="
Var
In
t
erlaced
" select="
$Var
I
nt
e
r
l
a
c
e
dO
p
t
i
o
n
=
't
r
u
e
'
" />
|
311 |
|
|
|
580 |
|
|
312 |
|
<!--
Form
a
t
-->
|
|
581 |
|
<!--
Qu
a
li
t
y (for JPE
Gs)
-->
|
313 |
|
<!--
-->
|
|
582 |
|
<!--
-->
|
314 |
|
<xsl:varia
ble name="
Var
Form
a
t
">
|
|
583 |
|
<xsl:varia
ble name="
Var
Qu
a
li
t
y
">
|
315 |
|
<xsl:varia
ble name="
Var
Form
a
t
Option" se
lect="$Par
amContextR
ule/wwproj
ect:Option
s/wwprojec
t:Option[@
Name = '
form
a
t
']/@Value"
/>
|
|
584 |
|
<xsl:varia
ble name="
Var
Qu
a
li
t
y
Option" se
lect="$Par
amContextR
ule/wwproj
ect:Option
s/wwprojec
t:Option[@
Name = '
qu
a
li
t
y
']/@Value"
/>
|
316 |
|
<xs
l:choose>
|
|
|
|
|
317 |
|
<x
sl:when te
st="string
-length($V
arFormatOp
tion) >
0">
|
|
|
|
|
318 |
|
<
xsl:value-
of select=
"$VarForma
tOption" /
>
|
|
|
|
|
319 |
|
</
xsl:when>
|
|
|
|
|
320 |
|
|
|
585 |
|
|
321 |
|
<xsl:
ot
h
erwi
se>
|
|
586 |
|
<xsl:
c
h
oo
se>
|
322 |
|
<xsl:
valu
e
-of
sel
e
c
t="
$Para
m
et
er
Def
a
u
l
t
F
o
rma
t
"
/
>
|
|
587 |
|
<xsl:
wh
e
n
t
e
s
t="
nu
m
b
er
($V
a
rQ
u
a
l
i
t
yOpti
o
n) &g
t
;
0"
>
|
323 |
|
</
xsl:otherw
ise>
|
|
588 |
|
<x
sl:value-o
f select="
$VarQualit
yOption" /
>
|
324 |
|
</x
sl:choose>
|
|
589 |
|
</xsl:
wh
e
n
>
|
325 |
|
</xsl:
variabl
e
>
|
|
|
|
|
326 |
|
|
|
590 |
|
|
327 |
|
<!--
Co
l
o
r Dep
th
--
>
|
|
591 |
|
<xs
l
:
o
th
erwise
>
|
328 |
|
<!--
-->
|
|
592 |
|
<xsl:va
l
u
e
-of
s
e
l
e
c
t
="75
"
/
>
|
329 |
|
<xsl:va
riab
l
e
nam
e
="VarCo
l
orD
e
p
t
h
"
>
|
|
593 |
|
<
/
xsl:
o
therwi
se>
|
330 |
|
<xs
l:variable
name="Var
ColorDepth
Option" se
lect="$Par
amContextR
ule/wwproj
ect:Option
s/wwprojec
t:Option[@
Name = 'co
lor-depth'
]/@Value"
/>
|
|
594 |
|
</xs
l:choose>
|
331 |
|
<
xsl:
cho
o
se>
|
|
595 |
|
</xsl:
variabl
e
>
|
332 |
|
<x
sl:when te
st="number
($VarColor
DepthOptio
n) > 0"
>
|
|
|
|
|
333 |
|
<
xsl:value-
of select=
"$VarColor
DepthOptio
n" />
|
|
|
|
|
334 |
|
</xsl:
wh
e
n
>
|
|
|
|
|
335 |
|
|
|
596 |
|
|
336 |
|
<xsl:
ot
h
erwi
se>
|
|
597 |
|
<!--
Determine
scaling ra
tio -->
|
337 |
|
<xsl:value
-of select
="
256
" />
|
|
598 |
|
<!--
-->
|
338 |
|
</
xsl:otherw
ise>
|
|
599 |
|
<xsl:
variable n
ame="VarUp
ScalingRat
io">
|
339 |
|
</x
sl:choose>
|
|
600 |
|
<xsl:
c
h
oo
se>
|
340 |
|
</xsl:
variabl
e
>
|
|
601 |
|
<!-
- Use imag
e-scale ma
rkers if d
efined -->
|
|
|
|
|
602 |
|
<!-
-
-->
|
|
|
|
|
603 |
|
<xs
l:when tes
t="string-
length($Va
rImageScal
e) > 0"
>
|
|
|
|
|
604 |
|
<xsl:value
-of select
="
$VarImageS
cale div 1
00.0
" />
|
|
|
|
|
605 |
|
</xsl:
wh
e
n
>
|
341 |
|
|
|
606 |
|
|
342 |
|
<!--
Grays
cale -->
|
|
607 |
|
<!--
S
cale -->
|
343 |
|
<!--
-->
|
|
608 |
|
<!--
-->
|
344 |
|
<xsl
:variable
name="VarG
rayscaleOp
tion" sele
ct="$Param
ContextRul
e/wwprojec
t:Options/
wwproject:
Option[@Na
me = 'gray
scale']/@V
alue" />
|
|
609 |
|
<xs
l:when tes
t="(string
-length($V
arScaleOpt
ion) >
0) and ($V
arScaleOpt
ion != 'no
ne') and (
number($Va
rScaleOpti
on) > 0
)">
|
345 |
|
<xsl:va
riable nam
e="VarGray
sca
l
e
"
select="$
Var
Grays
caleOption
=
'true'
" />
|
|
610 |
|
<xsl:va
l
u
e
-of
select="$
Var
S
caleOption
div
100.0
" />
|
|
|
|
|
611 |
|
</x
sl:when>
|
346 |
|
|
|
612 |
|
|
347 |
|
<!--
Transpare
nt -->
|
|
613 |
|
<xs
l:otherwis
e>
|
348 |
|
<!--
-->
|
|
614 |
|
<x
sl:value-o
f select="
1.0" />
|
349 |
|
<xsl
:variable
name="VarT
ransparent
Option" se
lect="$Par
amContextR
ule/wwproj
ect:Option
s/wwprojec
t:Option[@
Name = 'tr
ansparent'
]/@Value"
/>
|
|
615 |
|
</x
sl:otherwi
se>
|
350 |
|
<xsl
:variable
name="VarT
ransparent
" select="
$VarTransp
arentOptio
n = 'true'
" />
|
|
616 |
|
</xs
l:choose>
|
|
|
|
|
617 |
|
</xsl
:variable>
|
351 |
|
|
|
618 |
|
|
352 |
|
<!--
Int
e
r
l
a
c
e
d (fo
r
GIF
s
)
-->
|
|
619 |
|
<!--
R
e
co
r
d upsca
l
ing p
a
ramet
e
r
s
-->
|
353 |
|
<!--
-->
|
|
620 |
|
<!--
-->
|
354 |
|
<xsl
:variable
name="VarI
nterlacedO
ption" sel
ect="$Para
mContextRu
le/wwproje
ct:Options
/wwproject
:Option[@N
ame = 'int
erlaced']/
@Value" />
|
|
621 |
|
<xsl:varia
ble name="
Var
S
c
a
l
ed
Re
n
d
e
rDPI
"
>
|
355 |
|
<xsl:varia
ble name="
Var
Interlaced
" sele
c
t="$V
a
rInter
l
ac
ed
Optio
n
= 'tru
e
'
"
/
>
|
|
622 |
|
<xsl
:choose>
|
|
|
|
|
623 |
|
<xs
l:when tes
t="$VarUpS
calingRati
o > 1.0
">
|
|
|
|
|
624 |
|
<x
sl:value-o
f select="
round($Var
RenderDPI
* $VarUpSc
alingRatio
)" />
|
|
|
|
|
625 |
|
</x
sl:when>
|
356 |
|
|
|
626 |
|
|
357 |
|
<!--
Quality (
for JPEGs)
-->
|
|
627 |
|
<xsl:
oth
e
r
w
i
se
>
|
358 |
|
<!--
-->
|
|
628 |
|
<x
sl:value-o
f select="
$VarRender
DPI" />
|
359 |
|
<xsl:
variable n
am
e
="Va
r
Qual
i
ty"
>
|
|
629 |
|
</x
sl:otherwi
se>
|
360 |
|
<xs
l:variable
name="Var
QualityOpt
ion" selec
t="$ParamC
ontextRule
/wwproject
:Options/w
wproject:O
ption[@Nam
e = 'quali
ty']/@Valu
e" />
|
|
630 |
|
</xs
l:choose>
|
361 |
|
<xsl:choos
e>
|
|
631 |
|
</xsl
:variable>
|
362 |
|
<xsl:when
test="
number(
$Var
Qu
ali
tyOp
tio
n)
>
0">
|
|
632 |
|
<xsl:
variable n
ame="VarSc
aledWidth"
>
|
363 |
|
<xsl:value
-of select
="
$Var
Qual
i
t
yO
p
tio
n
" />
|
|
633 |
|
<xsl:choos
e>
|
364 |
|
</xsl:when
>
|
|
634 |
|
<xsl:when
test="
$Var
UpSc
ali
ngRa
tio
>
1.
0">
|
|
|
|
|
635 |
|
<xsl:value
-of select
="
ceiling(
$Var
W
i
d
t
h * $VarU
p
ScalingRa
tio
)
" />
|
|
|
|
|
636 |
|
</xsl:when
>
|
365 |
|
|
|
637 |
|
|
366 |
|
<xsl:other
wise>
|
|
638 |
|
<xsl:other
wise>
|
367 |
|
<xsl:value
-of select
="
75
" />
|
|
639 |
|
<xsl:value
-of select
="
ceiling($V
arWidth)
" />
|
368 |
|
</xsl:othe
rwise>
|
|
640 |
|
</xsl:othe
rwise>
|
369 |
|
</xsl:choo
se>
|
|
641 |
|
</xsl:choo
se>
|
370 |
|
</xsl:
variabl
e
>
|
|
642 |
|
</xsl
:variable>
|
|
|
|
|
643 |
|
<xsl:
variable n
ame="VarSc
aledHeight
">
|
|
|
|
|
644 |
|
<xsl
:choose>
|
|
|
|
|
645 |
|
<xs
l:when tes
t="$VarUpS
calingRati
o > 1.0
">
|
|
|
|
|
646 |
|
<x
sl:value-o
f select="
ceiling($V
arHeight *
$VarUpSca
lingRatio)
" />
|
|
|
|
|
647 |
|
</xsl:
wh
e
n
>
|
371 |
|
|
|
648 |
|
|
372 |
|
<!--
Determine
scaling ra
tio -->
|
|
649 |
|
<xs
l:otherwis
e>
|
373 |
|
<!--
-->
|
|
650 |
|
<x
sl:value-o
f select="
ceiling($V
arHeight)"
/>
|
374 |
|
<xsl
:variable
name="Var
Up
ScalingRat
io">
|
|
651 |
|
</x
sl:otherwi
se>
|
|
|
|
|
652 |
|
</xs
l:choose>
|
|
|
|
|
653 |
|
</xsl
:variable>
|
|
|
|
|
654 |
|
|
|
|
|
|
655 |
|
<!--
Rasterize
PostScript
-->
|
|
|
|
|
656 |
|
<!--
-->
|
|
|
|
|
657 |
|
<xsl:
variable n
ame="VarAd
apterName"
select="$
ParamDocum
entFrame/w
wdoc:Facet
s/wwdoc:Fa
cet[@type
= 'documen
t']/wwdoc:
Attribute[
@name = 'a
dapter']/@
value" />
|
|
|
|
|
658 |
|
<xsl:
variable n
ame="VarIm
ageInfo" s
elect="wwi
maging:Ras
terizePost
Script($Va
rPostScrip
tPath, $Va
rScaledRen
derDPI, $V
arScaledRe
nderDPI, $
VarScaledW
idth, $Var
ScaledHeig
ht, $VarFo
rmat, $Var
ColorDepth
, $VarGray
scale, $Va
rTranspare
nt, $VarIn
terlaced,
$VarQualit
y, $ParamS
plitFrame/
@path)" />
|
|
|
|
|
659 |
|
<xsl:
if test="(
number($Va
rImageInfo
/@width) &
gt; 0) and
(number($
VarImageIn
fo/@height
) > 0)"
>
|
|
|
|
|
660 |
|
<!--
Determine
down
scaling ra
tio -->
|
|
|
|
|
661 |
|
<!--
-->
|
|
|
|
|
662 |
|
<xsl
:variable
name="Var
Down
ScalingRat
io">
|
375 |
|
<xs
l:choose>
|
|
663 |
|
<xs
l:choose>
|
376 |
|
<!
-- Use ima
ge-scale m
arkers if
defined --
>
|
|
664 |
|
<!
-- Use ima
ge-scale m
arkers if
defined --
>
|
377 |
|
<!
--
--
>
|
|
665 |
|
<!
--
--
>
|
378 |
|
<x
sl:when te
st="string
-length($V
arImageSca
le) > 0
">
|
|
666 |
|
<x
sl:when te
st="string
-length($V
arImageSca
le) > 0
">
|
379 |
|
<
xsl:value-
of select=
"$VarImage
Scale div
100.0" />
|
|
667 |
|
<
xsl:value-
of select=
"$VarImage
Scale div
100.0" />
|
380 |
|
</
xsl:when>
|
|
668 |
|
</
xsl:when>
|
381 |
|
|
|
669 |
|
|
382 |
|
<!
--
Scal
e
-->
|
|
670 |
|
<!
--
Us
e
graphic op
tions
-->
|
383 |
|
<!
--
-->
|
|
671 |
|
<!
--
-->
|
384 |
|
<x
sl:when te
st="(strin
g-length($
VarScaleOp
tion) >
0) and ($
VarScaleOp
tion != 'n
one') and
(number($V
arScaleOpt
ion) >
0)">
|
|
|
|
|
385 |
|
<
xsl:value-
of select=
"$VarScale
Option div
100.0" />
|
|
|
|
|
386 |
|
</
xsl:when>
|
|
|
|
|
387 |
|
|
|
|
|
|
388 |
|
<x
sl:otherwi
se>
|
|
672 |
|
<x
sl:otherwi
se>
|
389 |
|
<
xsl:
value-
o
f
se
lect="0.0"
/
>
|
|
673 |
|
<
xsl:
cho
o
se
>
|
390 |
|
<
/
x
sl:o
th
e
rw
i
se
>
|
|
674 |
|
<
!-- Ma
x
Wid
th
/H
e
i
ght --
>
|
391 |
|
</x
sl:choose>
|
|
675 |
|
<!--
-->
|
392 |
|
</xs
l:variable
>
|
|
676 |
|
<xsl:when
test="($Va
rMaxWidthO
ption >
0) or ($V
arMaxHeigh
tOption &g
t; 0)">
|
393 |
|
|
|
677 |
|
<!--
Det
e
r
mine
scaling
ra
t
io
-->
|
394 |
|
<!--
R
e
co
r
d
up
scaling
pa
ra
me
t
ers
-->
|
|
678 |
|
<!--
-->
|
395 |
|
<!--
-->
|
|
679 |
|
<xsl:vari
able name=
"VarWidthR
atio" sele
ct="$VarMa
xWidthOpti
on div $Va
rImageInfo
/@width" /
>
|
396 |
|
<xsl:varia
ble name="
Var
Sc
a
le
dR
e
n
d
e
r
DP
I
"
>
|
|
680 |
|
<xsl:varia
ble name="
Var
HeightR
a
tio" se
le
ct="$VarMa
xH
e
ightOptio
n
d
iv $Va
r
I
mageInfo/@
height
"
/
>
|
397 |
|
<xsl:choos
e>
|
|
681 |
|
<xsl:choos
e>
|
398 |
|
<xsl:when
test="
$Var
UpSc
a
l
i
n
g
Ratio &
g
t;
1.
0
">
|
|
682 |
|
<xsl:when
test="
((
$Var
WidthR
a
t
i
o &
g
t; 0) and
($VarWidth
Ratio &
l
t;
$VarHeight
Ratio)) or
($VarHeig
htRatio =
0
)
">
|
399 |
|
<xsl:value
-of select
="
round(
$Var
RenderDPI
* $VarUpSc
al
i
ng
Ratio
)
" />
|
|
683 |
|
<xsl:value
-of select
="
$Var
W
i
dth
Ratio
" />
|
400 |
|
</xsl:when
>
|
|
684 |
|
</xsl:when
>
|
401 |
|
|
|
685 |
|
|
402 |
|
<xsl:other
wise>
|
|
686 |
|
<xsl:other
wise>
|
403 |
|
<xsl:value
-of select
="$Var
Rend
e
rDPI
" />
|
|
687 |
|
<xsl:value
-of select
="$Var
H
e
ightRatio
" />
|
404 |
|
</xsl:othe
rwise>
|
|
688 |
|
</xsl:othe
rwise>
|
405 |
|
</xsl:choo
se>
|
|
689 |
|
</xsl:choo
se>
|
406 |
|
</xs
l:variable
>
|
|
690 |
|
</xsl:when
>
|
407 |
|
<xsl
:variable
name="VarS
caledWidth
">
|
|
|
|
|
408 |
|
<xs
l:choose>
|
|
|
|
|
409 |
|
<x
sl:when te
st="$VarUp
ScalingRat
io > 1.
0">
|
|
|
|
|
410 |
|
<
xsl:value-
of select=
"ceiling($
VarWidth *
$VarUpSca
lingRatio)
" />
|
|
|
|
|
411 |
|
</xsl:when
>
|
|
|
|
|
412 |
|
|
|
691 |
|
|
413 |
|
<
xs
l
:otherwis
e
>
|
|
692 |
|
<
!-- Sca
l
e
--
>
|
414 |
|
<
xsl:value-
of select=
"ceiling($
VarWidth)"
/>
|
|
693 |
|
<!--
-->
|
415 |
|
</
xsl:otherw
ise>
|
|
694 |
|
<xsl:when
test="
(string-le
ngth(
$Var
Scal
eOpt
i
o
n
) &
g
t; 0)
a
nd ($VarSc
aleOption
!= 'none')
and (numb
er($VarSca
leOp
tio
n)
>
0
)
">
|
416 |
|
</x
sl:choose>
|
|
695 |
|
<xsl:value
-of select
="
$Var
Scal
eOp
tio
n div 100.
0
" />
|
417 |
|
</xs
l:variable
>
|
|
696 |
|
</xsl:when
>
|
418 |
|
<xsl
:variable
name="VarS
caledHeigh
t">
|
|
|
|
|
419 |
|
<xs
l:choose>
|
|
|
|
|
420 |
|
<xsl:when
test="
$Var
Up
Scal
i
n
g
R
a
tio
>
1.
0
">
|
|
|
|
|
421 |
|
<xsl:value
-of select
="
ceiling($V
arHeight *
$Var
Up
Scal
ingRa
tio
)
" />
|
|
|
|
|
422 |
|
</xsl:when
>
|
|
|
|
|
423 |
|
|
|
697 |
|
|
424 |
|
<xsl:other
wise>
|
|
698 |
|
<xsl:other
wise>
|
425 |
|
<xsl:value
-of select
="
ceiling($V
arHeight)
" />
|
|
699 |
|
<xsl:value
-of select
="
1.0
" />
|
|
|
|
|
700 |
|
</xsl:othe
rwise>
|
|
|
|
|
701 |
|
<
/xsl:choos
e>
|
426 |
|
</
xsl:otherw
ise>
|
|
702 |
|
</
xsl:otherw
ise>
|
427 |
|
</x
sl:choose>
|
|
703 |
|
</x
sl:choose>
|
428 |
|
</xs
l:variable
>
|
|
704 |
|
</xs
l:variable
>
|
429 |
|
|
|
705 |
|
|
430 |
|
<!--
Rast
e
riz
e
Pos
t
Sc
r
i
pt
-->
|
|
706 |
|
<!--
N
e
e
d
t
o
r
es
i
ze?
-->
|
431 |
|
<!--
-->
|
|
707 |
|
<!--
-->
|
432 |
|
<xsl
:variable
name="VarA
dapterName
" select="
$ParamDocu
mentFrame/
wwdoc:Face
ts/wwdoc:F
acet[@type
= 'docume
nt']/wwdoc
:Attribute
[@name = '
adapter']/
@value" />
|
|
708 |
|
<xsl
:if test="
(
$Var
D
o
w
nScal
i
ngRa
t
io
> 0
.0
) and (
$Var
D
o
wnScal
i
n
g
Ra
t
io
&
l
t;
1.
0)">
|
433 |
|
<xsl
:variable
name="VarI
mageInfo"
select="ww
imaging:Ra
sterizePos
tScript($V
arPostScri
ptPath, $V
arScaledRe
nderDPI, $
VarScaledR
enderDPI,
$VarScaled
Width, $Va
rScaledHei
ght, $VarF
ormat, $Va
rColorDept
h, $VarGra
yscale, $V
arTranspar
ent, $VarI
nterlaced,
$VarQuali
ty, $Param
SplitFrame
/@path)" /
>
|
|
709 |
|
<xs
l:variable
name="Var
ResizeWidt
h" select=
"ceiling($
VarImageIn
fo/@width
* $Var
DownScalin
gRatio
)
"
/
>
|
434 |
|
<xsl
:if test="
(
number(
$Var
ImageInf
o
/@
w
i
d
t
h)
> 0
) and (
number(
$Var
ImageInf
o
/@he
i
g
h
t
)
&
g
t;
0)">
|
|
710 |
|
<xsl:va
riab
l
e
name="Var
ResizeHeig
ht"
select="
ceiling(
$VarImage
Info/@heig
ht * $VarD
own
Scal
i
ngRatio)
" />
|
435 |
|
<!-
- Determin
e downscal
ing ratio
-->
|
|
|
|
|
436 |
|
<!-
-
-->
|
|
|
|
|
437 |
|
<xs
l:variable
name="Var
DownScalin
gRatio
"
>
|
|
|
|
|
438 |
|
<x
sl:choose>
|
|
|
|
|
439 |
|
<
!-- Use im
age-scale
markers if
defined -
->
|
|
|
|
|
440 |
|
<
!--
-
->
|
|
|
|
|
441 |
|
<
xsl:when t
est="strin
g-length($
VarImageSc
ale) >
0">
|
|
|
|
|
442 |
|
<xsl:va
l
u
e
-of
select="
$VarImage
Scal
e d
i
v 100.0
" />
|
|
|
|
|
443 |
|
<
/xsl:when>
|
|
|
|
|
444 |
|
|
|
711 |
|
|
445 |
|
<
!-- Use gr
aphic opti
ons -->
|
|
712 |
|
<xs
l:variable
name="Var
Transform"
select="w
wimaging:T
ransform($
ParamSplit
Frame/@pat
h, $VarIma
geInfo/@fo
rmat, $Var
ResizeWidt
h, $VarRes
izeHeight,
$ParamSpl
itFrame/@p
ath)" />
|
446 |
|
<
!--
-->
|
|
|
|
|
447 |
|
<
xsl:otherw
ise>
|
|
|
|
|
448 |
|
<xsl:choos
e>
|
|
|
|
|
449 |
|
<!-- Max
Width/Heig
ht -->
|
|
|
|
|
450 |
|
<!--
-->
|
|
|
|
|
451 |
|
<xsl:when
test="($V
arMaxWidth
Option >
; 0) or ($
VarMaxHeig
htOption &
gt; 0)">
|
|
|
|
|
452 |
|
<!-- Det
ermine sca
ling ratio
-->
|
|
|
|
|
453 |
|
<!--
-->
|
|
|
|
|
454 |
|
<xsl:var
iable name
="VarWidth
Ratio" sel
ect="$VarM
axWidthOpt
ion div $V
arImageInf
o/@width"
/>
|
|
|
|
|
455 |
|
<xsl:var
iable name
="VarHeigh
tRatio" se
lect="$Var
MaxHeightO
ption div
$VarImageI
nfo/@heigh
t" />
|
|
|
|
|
456 |
|
<xsl:cho
ose>
|
|
|
|
|
457 |
|
<xsl:wh
en test="(
($VarWidth
Ratio >
0) and ($
VarWidthRa
tio < $
VarHeightR
atio)) or
($VarHeigh
tRatio = 0
)">
|
|
|
|
|
458 |
|
<xsl:v
alue-of se
lect="$Var
WidthRatio
" />
|
|
|
|
|
459 |
|
</xsl:w
hen>
|
|
|
|
|
460 |
|
|
|
|
|
|
461 |
|
<xsl:ot
herwise>
|
|
|
|
|
462 |
|
<xsl:v
alue-of se
lect="$Var
HeightRati
o" />
|
|
|
|
|
463 |
|
</xsl:o
therwise>
|
|
|
|
|
464 |
|
</xsl:ch
oose>
|
|
|
|
|
465 |
|
</xsl:whe
n>
|
|
|
|
|
466 |
|
|
|
|
|
|
467 |
|
<!-- Scal
e -->
|
|
|
|
|
468 |
|
<!--
-->
|
|
|
|
|
469 |
|
<xsl:when
test="(st
ring-lengt
h($VarScal
eOption) &
gt; 0) and
($VarScal
eOption !=
'none') a
nd (number
($VarScale
Option) &g
t; 0)">
|
|
|
|
|
470 |
|
<xsl:val
ue-of sele
ct="$VarSc
aleOption
div 100.0"
/>
|
|
|
|
|
471 |
|
</xsl:whe
n>
|
|
|
|
|
472 |
|
|
|
|
|
|
473 |
|
<xsl:othe
rwise>
|
|
|
|
|
474 |
|
<xsl:val
ue-of sele
ct="0.0" /
>
|
|
|
|
|
475 |
|
</xsl:oth
erwise>
|
|
|
|
|
476 |
|
</xsl:choo
se>
|
|
|
|
|
477 |
|
<
/xsl:other
wise>
|
|
|
|
|
478 |
|
</
xsl:choose
>
|
|
|
|
|
479 |
|
</x
sl:variabl
e>
|
|
|
|
|
480 |
|
|
|
|
|
|
481 |
|
<!-
- Need to
resize? --
>
|
|
|
|
|
482 |
|
<!-
-
--
>
|
|
|
|
|
483 |
|
<xs
l:if test=
"($VarDown
ScalingRat
io > 0.
0) and ($V
arDownScal
ingRatio &
lt; 1.0)">
|
|
|
|
|
484 |
|
<x
sl:variabl
e name="Va
rResizeWid
th" select
="ceiling(
$VarImageI
nfo/@width
* $VarDow
nScalingRa
tio)" />
|
|
|
|
|
485 |
|
<x
sl:variabl
e name="Va
rResizeHei
ght" selec
t="ceiling
($VarImage
Info/@heig
ht * $VarD
ownScaling
Ratio)" />
|
|
|
|
|
486 |
|
|
|
|
|
|
487 |
|
<x
sl:variabl
e name="Va
rIgnoreRes
ize">
|
|
|
|
|
488 |
|
<
xsl:value-
of select=
"wwimaging
:Transform
($ParamSpl
itFrame/@p
ath, $VarI
mageInfo/@
format, $V
arResizeWi
dth, $VarR
esizeHeigh
t, $ParamS
plitFrame/
@path)" />
|
|
|
|
|
489 |
|
</
xsl:variab
le>
|
|
|
|
|
490 |
|
</x
sl:if>
|
|
|
|
|
491 |
|
</xs
l:if>
|
|
713 |
|
</xs
l:if>
|
492 |
|
</xsl
:if>
|
|
714 |
|
</xsl
:if>
|
493 |
|
</xsl:
if>
|
|
715 |
|
</xsl:
if>
|
494 |
|
|
|
|
|
|
495 |
|
<!-- D
ependency
info -->
|
|
|
|
|
496 |
|
<!--
-->
|
|
|
|
|
497 |
|
<wwfil
es:File pa
th="{$Para
mSplitFram
e/@path}"
type="{$Pa
rameterTyp
e}" checks
um="{wwfil
esystem:Ge
tChecksum(
$ParamSpli
tFrame/@pa
th)}" proj
ectchecksu
m="{concat
($GlobalPr
oject/wwpr
oject:Proj
ect/@Chang
eID, ':',
$VarImageS
cale, ':',
$VarScale
Option, ':
', $VarMax
WidthOptio
n, ':', $V
arMaxHeigh
tOption)}"
groupID="
{$ParamSpl
itFrame/@g
roupID}" d
ocumentID=
"{$ParamSp
litFrame/@
documentID
}" actionc
hecksum="{
$GlobalAct
ionChecksu
m}" catego
ry="{$Para
meterCateg
ory}" use=
"{$Paramet
erUse}" de
ploy="{$Pa
rameterDep
loy}">
|
|
|
|
|
498 |
|
<wwfi
les:Depend
s path="{$
VarPostScr
iptPath}"
checksum="
{$VarPostS
criptCheck
sum}" grou
pID="{$Par
amSplitFra
me/@groupI
D}" docume
ntID="{$Pa
ramSplitFr
ame/@docum
entID}" />
|
|
|
|
|
499 |
|
<wwfi
les:Depend
s path="{$
ParamBehav
iorsFile/@
path}" che
cksum="{$P
aramBehavi
orsFile/@c
hecksum}"
groupID="{
$ParamBeha
viorsFile/
@groupID}"
documentI
D="{$Param
BehaviorsF
ile/@docum
entID}" />
|
|
|
|
|
500 |
|
</wwfi
les:File>
|
|
|
|
|
501 |
|
</xsl:i
f>
|
|
716 |
|
</xsl:i
f>
|
|
|
|
|
717 |
|
|
|
|
|
|
718 |
|
<!-- De
pendency i
nfo -->
|
|
|
|
|
719 |
|
<!--
-->
|
|
|
|
|
720 |
|
<wwfile
s:File pat
h="{$Param
SplitFrame
/@path}" t
ype="{$Par
ameterType
}" checksu
m="{wwfile
system:Get
Checksum($
ParamSplit
Frame/@pat
h)}" proje
ctchecksum
="{concat(
$GlobalPro
ject/wwpro
ject:Proje
ct/@Change
ID, ':', $
VarImageSc
ale, ':',
$VarScaleO
ption, ':'
, $VarMaxW
idthOption
, ':', $Va
rMaxHeight
Option)}"
groupID="{
$ParamSpli
tFrame/@gr
oupID}" do
cumentID="
{$ParamSpl
itFrame/@d
ocumentID}
" actionch
ecksum="{$
GlobalActi
onChecksum
}" categor
y="{$Param
eterCatego
ry}" use="
{$Paramete
rUse}" dep
loy="{$Par
ameterDepl
oy}">
|
|
|
|
|
721 |
|
<wwfil
es:Depends
path="{$V
arPostScri
ptPath}" c
hecksum="{
$VarPostSc
riptChecks
um}" group
ID="{$Para
mSplitFram
e/@groupID
}" documen
tID="{$Par
amSplitFra
me/@docume
ntID}" />
|
|
|
|
|
722 |
|
<wwfil
es:Depends
path="{$P
aramBehavi
orsFile/@p
ath}" chec
ksum="{$Pa
ramBehavio
rsFile/@ch
ecksum}" g
roupID="{$
ParamBehav
iorsFile/@
groupID}"
documentID
="{$ParamB
ehaviorsFi
le/@docume
ntID}" />
|
|
|
|
|
723 |
|
</wwfil
es:File>
|
502 |
|
</xsl:if
>
|
|
724 |
|
</xsl:if
>
|
503 |
|
</xsl:tem
plate>
|
|
725 |
|
</xsl:tem
plate>
|
504 |
|
|
|
726 |
|
|
505 |
|
|
|
727 |
|
|
506 |
|
<xsl:temp
late name=
"Thumbnail
">
|
|
728 |
|
<xsl:temp
late name=
"Thumbnail
">
|
507 |
|
<xsl:par
am name="P
aramDocume
ntFrame" /
>
|
|
729 |
|
<xsl:par
am name="P
aramDocume
ntFrame" /
>
|
508 |
|
<xsl:par
am name="P
aramBehavi
orsFrame"
/>
|
|
730 |
|
<xsl:par
am name="P
aramBehavi
orsFrame"
/>
|
509 |
|
<xsl:par
am name="P
aramSplitF
rame" />
|
|
731 |
|
<xsl:par
am name="P
aramSplitF
rame" />
|
510 |
|
<xsl:par
am name="P
aramContex
tRule" />
|
|
732 |
|
<xsl:par
am name="P
aramContex
tRule" />
|
511 |
|
|
|
733 |
|
|
|
|
|
|
734 |
|
<!-- Det
ermine thu
mbnail wid
th/height
limits -->
|
|
|
|
|
735 |
|
<!--
-->
|
512 |
|
<xsl:var
iable name
="VarThumb
nailWidthO
ption">
|
|
736 |
|
<xsl:var
iable name
="VarThumb
nailWidthO
ption">
|
513 |
|
<xsl:ca
ll-templat
e name="
MaxSizeOpt
ion">
|
|
737 |
|
<xsl:ca
ll-templat
e name="
Images-
MaxSizeOpt
ion">
|
514 |
|
<xsl:w
ith-param
name="Para
mMaxSizeOp
tionValue"
select="$
ParamConte
xtRule/wwp
roject:Opt
ions/wwpro
ject:Optio
n[@Name =
'thumbnail
-width']/@
Value" />
|
|
738 |
|
<xsl:w
ith-param
name="Para
mMaxSizeOp
tionValue"
select="$
ParamConte
xtRule/wwp
roject:Opt
ions/wwpro
ject:Optio
n[@Name =
'thumbnail
-width']/@
Value" />
|
515 |
|
</xsl:c
all-templa
te>
|
|
739 |
|
</xsl:c
all-templa
te>
|
516 |
|
</xsl:va
riable>
|
|
740 |
|
</xsl:va
riable>
|
517 |
|
<xsl:var
iable name
="VarThumb
nailHeight
Option">
|
|
741 |
|
<xsl:var
iable name
="VarThumb
nailHeight
Option">
|
518 |
|
<xsl:ca
ll-templat
e name="
MaxSizeOpt
ion">
|
|
742 |
|
<xsl:ca
ll-templat
e name="
Images-
MaxSizeOpt
ion">
|
519 |
|
<xsl:w
ith-param
name="Para
mMaxSizeOp
tionValue"
select="$
ParamConte
xtRule/wwp
roject:Opt
ions/wwpro
ject:Optio
n[@Name =
'thumbnail
-height']/
@Value" />
|
|
743 |
|
<xsl:w
ith-param
name="Para
mMaxSizeOp
tionValue"
select="$
ParamConte
xtRule/wwp
roject:Opt
ions/wwpro
ject:Optio
n[@Name =
'thumbnail
-height']/
@Value" />
|
520 |
|
</xsl:c
all-templa
te>
|
|
744 |
|
</xsl:c
all-templa
te>
|
521 |
|
</xsl:va
riable>
|
|
745 |
|
</xsl:va
riable>
|
522 |
|
<xsl:if
test="($Va
rThumbnail
WidthOptio
n > 0)
or ($VarTh
umbnailHei
ghtOption
> 0)">
|
|
746 |
|
<xsl:if
test="($Va
rThumbnail
WidthOptio
n > 0)
or ($VarTh
umbnailHei
ghtOption
> 0)">
|
523 |
|
<!-- De
termine so
urce image
path -->
|
|
747 |
|
<!-- De
termine so
urce image
path -->
|
524 |
|
<!--
-->
|
|
748 |
|
<!--
-->
|
525 |
|
<xsl:va
riable nam
e="VarThum
bnailSourc
ePath">
|
|
749 |
|
<xsl:va
riable nam
e="VarThum
bnailSourc
ePath">
|
|
|
|
|
750 |
|
<xsl:v
ariable na
me="VarByR
eference"
select="$P
aramSplitF
rame/@byre
f = string
(true())"
/>
|
526 |
|
<xsl:c
hoose>
|
|
751 |
|
<xsl:c
hoose>
|
527 |
|
<!--
Thumbnails
may not h
ave been c
opied yet
-->
|
|
752 |
|
<!--
Thumbnails
may not h
ave been c
opied yet
-->
|
528 |
|
<!--
-->
|
|
753 |
|
<!--
-->
|
529 |
|
<xsl:
when test=
"$
Par
a
mSplitF
r
ame/@b
y
r
ef
!= 't
r
u
e
'
">
|
|
754 |
|
<xsl:
when test=
"$
V
a
r
B
y
R
ef
e
r
e
nce
">
|
530 |
|
<xsl
:value-of
select="$P
aramSplitF
rame/@sour
ce" />
|
|
755 |
|
<xsl
:value-of
select="$P
aramSplitF
rame/@sour
ce" />
|
531 |
|
</xsl
:when>
|
|
756 |
|
</xsl
:when>
|
532 |
|
|
|
757 |
|
|
533 |
|
<!--
Image exis
ts because
it was ju
st generat
ed -->
|
|
758 |
|
<!--
Image exis
ts because
it was ju
st generat
ed -->
|
534 |
|
<!--
-->
|
|
759 |
|
<!--
-->
|
535 |
|
<xsl:
otherwise>
|
|
760 |
|
<xsl:
otherwise>
|
536 |
|
<xsl
:value-of
select="$P
aramSplitF
rame/@path
" />
|
|
761 |
|
<xsl
:value-of
select="$P
aramSplitF
rame/@path
" />
|
537 |
|
</xsl
:otherwise
>
|
|
762 |
|
</xsl
:otherwise
>
|
538 |
|
</xsl:
choose>
|
|
763 |
|
</xsl:
choose>
|
539 |
|
</xsl:v
ariable>
|
|
764 |
|
</xsl:v
ariable>
|
540 |
|
|
|
765 |
|
|
541 |
|
<!-- Ge
t thumbnai
l source i
mage info
-->
|
|
766 |
|
<!-- Ge
t thumbnai
l source i
mage info
-->
|
542 |
|
<!--
-->
|
|
767 |
|
<!--
-->
|
543 |
|
<xsl:va
riable nam
e="VarThum
bnailSourc
eImageInfo
" select="
wwimaging:
GetInfo($V
arThumbnai
lSourcePat
h)" />
|
|
768 |
|
<xsl:va
riable nam
e="VarThum
bnailSourc
eImageInfo
" select="
wwimaging:
GetInfo($V
arThumbnai
lSourcePat
h)" />
|
544 |
|
|
|
769 |
|
|
545 |
|
<!--
De
ter
mine
scal
i
n
g
r
at
io
-->
|
|
770 |
|
<!--
Ras
ter
i
ma
g
e
fo
r
m
at
?
-->
|
546 |
|
<!--
-->
|
|
771 |
|
<!--
-->
|
547 |
|
<xsl:va
riable nam
e="Var
Scaling
Ra
t
i
o
">
|
|
772 |
|
<xsl:va
riable nam
e="Var
Ra
s
t
erImageF
o
rmatAsText
">
|
548 |
|
<xsl:v
ariable na
me="VarWid
thRatio" s
elect="$Va
rThumbnail
WidthOptio
n div $Var
ThumbnailS
ourceImage
Info/@widt
h" />
|
|
773 |
|
<xsl:c
all-templa
te name="I
mages-Rast
erImageFor
mat">
|
549 |
|
<xsl:v
ariable na
me="VarHei
ghtRatio"
select="$V
arThumbnai
lHeightOpt
ion div $V
arThumbnai
lSourceIma
geInfo/@he
ight" />
|
|
774 |
|
<xsl:
with-p
a
ram nam
e
="ParamIma
geIn
f
o"
select="$
Var
T
h
umbn
a
i
lSourceIma
geInf
o" />
|
550 |
|
<xsl:c
hoose>
|
|
775 |
|
</xsl:
c
all-templa
t
e>
|
551 |
|
<xsl:
when test=
"(($VarWid
thRatio &g
t; 0) and
($VarWidth
Ratio <
$VarHeigh
tRatio)) o
r ($VarHei
ghtRatio =
0)">
|
|
|
|
|
552 |
|
<xsl
:value-of
select="$V
arWidthRat
io" />
|
|
|
|
|
553 |
|
</xsl
:when>
|
|
|
|
|
554 |
|
|
|
|
|
|
555 |
|
<xsl:
otherwise>
|
|
|
|
|
556 |
|
<xsl:
v
a
lu
e
-o
f
select="$
Var
Heig
h
tR
a
t
i
o" />
|
|
|
|
|
557 |
|
</xsl
:otherwise
>
|
|
|
|
|
558 |
|
</xsl:
c
hoos
e>
|
|
|
|
|
559 |
|
</xsl:v
ariable>
|
|
776 |
|
</xsl:v
ariable>
|
|
|
|
|
777 |
|
<xsl:va
riable nam
e="VarRast
erImageFor
mat" selec
t="$VarRas
terImageFo
rmatAsText
= string(
true())" /
>
|
560 |
|
|
|
778 |
|
|
561 |
|
<!--
Ne
e
d
t
hu
m
bn
a
il?
-->
|
|
779 |
|
<!--
Only proc
e
ss
ras
t
er i
m
a
ges
-->
|
562 |
|
<!--
-->
|
|
780 |
|
<!--
-->
|
563 |
|
<xsl:if
test="
(
$Var
Scaling
Ra
t
io > 0.
0) and ($V
a
r
Sc
a
lin
g
Rati
o
&l
t
; 1.0)
">
|
|
781 |
|
<xsl:if
test="
$Var
Ra
s
t
e
r
Im
a
g
eF
o
rma
t
">
|
564 |
|
<!--
Thu
m
b
n
a
i
l
up-to-d
at
e?
-->
|
|
782 |
|
<!--
Deter
m
i
n
e sc
a
l
ing
r
at
io
-->
|
565 |
|
<!--
-->
|
|
783 |
|
<!--
-->
|
566 |
|
<xsl:v
ariable na
me="Var
ThumbnailP
ath" selec
t="$Param
S
plitFr
a
me/wwsp
li
ts:Thumb
n
ail/@p
at
h
"
/
>
|
|
784 |
|
<xsl:v
ariable na
me="Var
S
c
a
li
n
gR
at
io
"
>
|
567 |
|
<xsl:v
ariable na
me="VarThu
mbnailUpTo
Date" sele
ct="wwfile
sext:UpToD
ate($VarTh
umbnailPat
h, $Global
Project/ww
project:Pr
oject/@Cha
ngeID, $Pa
ramSplitFr
ame/@group
ID, $Param
SplitFrame
/@document
ID, $Globa
lActionChe
cksum)" />
|
|
785 |
|
<xsl:
variable n
ame="Var
Width
Ratio
" select="
$VarThumbn
a
il
WidthOpt
i
o
n
div
$VarThumbn
ailSourceI
mageInfo/@
width
" />
|
568 |
|
<xsl:i
f test="no
t($VarThum
bnailUpToD
ate)">
|
|
786 |
|
<xsl:
variable n
ame="Var
Height
Ratio
" select="
$VarThumbn
a
il
He
i
g
htOption d
iv
$VarThumbn
ailSourceI
mageInfo/@
height
" />
|
569 |
|
<xsl:
variable n
ame="Var
Resize
Width
" select="
ce
il
i
n
g(
$VarThumbn
ailSourceI
mageInfo/@
width
* $VarSca
lingRatio)
" />
|
|
787 |
|
<xsl:
choose>
|
570 |
|
<xsl:
variable n
ame="Var
Resize
Height
" select="
ce
il
i
n
g
(
$VarThumbn
ailSourceI
mageInfo/@
height
* $VarSca
lingRatio)
" />
|
|
788 |
|
<xsl
:when test
="($VarWid
thRatio &g
t; 0) and
($VarWidth
Ratio <
$VarHeigh
tRatio)">
|
|
|
|
|
789 |
|
<xs
l:value-of
select="$
VarWidthRa
tio" />
|
|
|
|
|
790 |
|
</xs
l:when>
|
571 |
|
|
|
791 |
|
|
572 |
|
<xsl:
variabl
e
n
am
e
="
Var
Ignor
e
R
es
i
ze
">
|
|
792 |
|
<xsl:
wh
e
n
t
e
st
="
$
Var
H
e
ight
R
at
i
o > 0
">
|
573 |
|
<xsl
:value-of
select="ww
imaging:Tr
ansform($V
arThumbnai
lSourcePat
h, $VarThu
mbnailSour
ceImageInf
o/@format,
$VarResiz
eWidth, $V
arResizeHe
ight, $Var
ThumbnailP
ath)" />
|
|
793 |
|
<xs
l:value-of
select="$
VarWidthRa
tio" />
|
574 |
|
</xsl
:variable>
|
|
794 |
|
</xsl:
when
>
|
575 |
|
</xsl:
if
>
|
|
|
|
|
576 |
|
|
|
795 |
|
|
577 |
|
<!-- T
rack thumb
nail file
-->
|
|
796 |
|
<xsl
:otherwise
>
|
578 |
|
<!--
-->
|
|
797 |
|
<xs
l:value-of
select="1
.0" />
|
579 |
|
<wwfil
es:File pa
th="{$VarT
humbnailPa
th}" type=
"{$Paramet
erThumbnai
lType}" ch
ecksum="{w
wfilesyste
m:GetCheck
sum($VarTh
umbnailPat
h)}" proje
ctchecksum
="{$Global
Project/ww
project:Pr
oject/@Cha
ngeID}" gr
oupID="{$P
aramSplitF
rame/@grou
pID}" docu
mentID="{$
ParamSplit
Frame/@doc
umentID}"
actionchec
ksum="{$Gl
obalAction
Checksum}"
category=
"" use=""
deploy="{$
ParameterD
eploy}">
|
|
798 |
|
</xs
l:otherwis
e>
|
580 |
|
<wwfi
les:Depend
s path="{$
VarThumbna
ilSourcePa
th}" check
sum="{wwfi
lesystem:G
etChecksum
($VarThumb
nailSource
Path)}" gr
oupID="{$P
aramSplitF
rame/@grou
pID}" docu
mentID="{$
ParamSplit
Frame/@doc
umentID}"
/>
|
|
799 |
|
</xsl
:choose>
|
581 |
|
</
wwfile
s
:
F
i
le
>
|
|
800 |
|
</xsl:
variable>
|
|
|
|
|
801 |
|
|
|
|
|
|
802 |
|
<!-- N
eed thumbn
ail? -->
|
|
|
|
|
803 |
|
<!--
-->
|
|
|
|
|
804 |
|
<xsl:i
f test="($
VarScaling
Ratio >
0.0) and
($VarScali
ngRatio &l
t; 1.0)">
|
|
|
|
|
805 |
|
<!--
Thumbnail
up-to-date
? -->
|
|
|
|
|
806 |
|
<!--
-->
|
|
|
|
|
807 |
|
<xsl:
variable n
ame="VarTh
umbnailPat
h" select=
"$ParamSpl
itFrame/ww
splits:Thu
mbnail/@pa
th" />
|
|
|
|
|
808 |
|
<xsl:
variable n
ame="VarTh
umbnailUpT
oDate" sel
ect="wwfil
esext:UpTo
Date($VarT
humbnailPa
th, $Globa
lProject/w
wproject:P
roject/@Ch
angeID, $P
aramSplitF
rame/@grou
pID, $Para
mSplitFram
e/@documen
tID, $Glob
alActionCh
ecksum)" /
>
|
|
|
|
|
809 |
|
<xsl:
if test="n
ot($VarThu
mbnailUpTo
Date)">
|
|
|
|
|
810 |
|
<xsl
:variable
name="VarR
esizeWidth
" select="
ceiling($V
arThumbnai
lSourceIma
geInfo/@wi
dth * $Var
ScalingRat
io)" />
|
|
|
|
|
811 |
|
<xsl
:variable
name="VarR
esizeHeigh
t" select=
"ceiling($
VarThumbna
ilSourceIm
ageInfo/@h
eight * $V
arScalingR
atio)" />
|
|
|
|
|
812 |
|
|
|
|
|
|
813 |
|
<xsl
:variable
name="VarT
ransform"
select="ww
imaging:Tr
ansform($V
arThumbnai
lSourcePat
h, $VarThu
mbnailSour
ceImageInf
o/@format,
$VarResiz
eWidth, $V
arResizeHe
ight, $Var
ThumbnailP
ath)" />
|
|
|
|
|
814 |
|
</xsl
:if>
|
|
|
|
|
815 |
|
|
|
|
|
|
816 |
|
<!--
Track thum
bnail file
-->
|
|
|
|
|
817 |
|
<!--
-->
|
|
|
|
|
818 |
|
<wwfi
les:File p
ath="{$Var
ThumbnailP
ath}" type
="{$Parame
terThumbna
ilType}" c
hecksum="{
wwfilesyst
em:GetChec
ksum($VarT
humbnailPa
th)}" proj
ectchecksu
m="{$Globa
lProject/w
wproject:P
roject/@Ch
angeID}" g
roupID="{$
ParamSplit
Frame/@gro
upID}" doc
umentID="{
$ParamSpli
tFrame/@do
cumentID}"
actionche
cksum="{$G
lobalActio
nChecksum}
" category
="" use=""
deploy="{
$Parameter
Deploy}">
|
|
|
|
|
819 |
|
<wwf
iles:Depen
ds path="{
$VarThumbn
ailSourceP
ath}" chec
ksum="{wwf
ilesystem:
GetChecksu
m($VarThum
bnailSourc
ePath)}" g
roupID="{$
ParamSplit
Frame/@gro
upID}" doc
umentID="{
$ParamSpli
tFrame/@do
cumentID}"
/>
|
|
|
|
|
820 |
|
</wwf
iles:File>
|
|
|
|
|
821 |
|
</
x
s
l
:
i
f
>
|
582 |
|
</xsl:i
f>
|
|
822 |
|
</xsl:i
f>
|
583 |
|
</xsl:if
>
|
|
823 |
|
</xsl:if
>
|
584 |
|
</xsl:tem
plate>
|
|
824 |
|
</xsl:tem
plate>
|
585 |
|
</xsl:styl
esheet>
|
|
825 |
|
</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.