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:html
="http://w
ww.w3.org/
MarkUp/Wil
bur/HTML32
.dtd"
|
|
3 |
|
xmlns:html
="http://w
ww.w3.org/
MarkUp/Wil
bur/HTML32
.dtd"
|
4 |
|
xmlns:msxs
l="urn:sch
emas-micro
soft-com:x
slt"
|
|
4 |
|
xmlns:msxs
l="urn:sch
emas-micro
soft-com:x
slt"
|
5 |
|
xmlns:wwmo
de="urn:We
bWorks-Eng
ine-Mode"
|
|
5 |
|
xmlns:wwmo
de="urn:We
bWorks-Eng
ine-Mode"
|
6 |
|
xmlns:wwdo
c="urn:Web
Works-Docu
ment-Schem
a"
|
|
6 |
|
xmlns:wwdo
c="urn:Web
Works-Docu
ment-Schem
a"
|
7 |
|
xmlns:wwfi
les="urn:W
ebWorks-En
gine-Files
-Schema"
|
|
7 |
|
xmlns:wwfi
les="urn:W
ebWorks-En
gine-Files
-Schema"
|
8 |
|
xmlns:wwpr
oject="urn
:WebWorks-
Publish-Pr
oject"
|
|
8 |
|
xmlns:wwpr
oject="urn
:WebWorks-
Publish-Pr
oject"
|
9 |
|
xmlns:wwpr
ops="urn:W
ebWorks-Pr
operties-S
chema"
|
|
9 |
|
xmlns:wwpr
ops="urn:W
ebWorks-Pr
operties-S
chema"
|
10 |
|
xmlns:wwpr
ogress="ur
n:WebWorks
-XSLT-Exte
nsion-Prog
ress"
|
|
10 |
|
xmlns:wwpr
ogress="ur
n:WebWorks
-XSLT-Exte
nsion-Prog
ress"
|
11 |
|
xmlns:wwlo
g="urn:Web
Works-XSLT
-Extension
-Log"
|
|
11 |
|
xmlns:wwlo
g="urn:Web
Works-XSLT
-Extension
-Log"
|
12 |
|
xmlns:wwfi
lesystem="
urn:WebWor
ks-XSLT-Ex
tension-Fi
leSystem"
|
|
12 |
|
xmlns:wwfi
lesystem="
urn:WebWor
ks-XSLT-Ex
tension-Fi
leSystem"
|
13 |
|
xmlns:wwur
i="urn:Web
Works-XSLT
-Extension
-URI"
|
|
13 |
|
xmlns:wwur
i="urn:Web
Works-XSLT
-Extension
-URI"
|
14 |
|
xmlns:wwst
ring="urn:
WebWorks-X
SLT-Extens
ion-String
Utilities"
|
|
14 |
|
xmlns:wwst
ring="urn:
WebWorks-X
SLT-Extens
ion-String
Utilities"
|
15 |
|
xmlns:wwun
its="urn:W
ebWorks-XS
LT-Extensi
on-Units"
|
|
15 |
|
xmlns:wwun
its="urn:W
ebWorks-XS
LT-Extensi
on-Units"
|
16 |
|
xmlns:wwfi
lesext="ur
n:WebWorks
-XSLT-Exte
nsion-File
s"
|
|
16 |
|
xmlns:wwfi
lesext="ur
n:WebWorks
-XSLT-Exte
nsion-File
s"
|
17 |
|
xmlns:wwpr
ojext="urn
:WebWorks-
XSLT-Exten
sion-Proje
ct"
|
|
17 |
|
xmlns:wwpr
ojext="urn
:WebWorks-
XSLT-Exten
sion-Proje
ct"
|
18 |
|
xmlns:wwex
sldoc="urn
:WebWorks-
XSLT-Exten
sion-Docum
ent"
|
|
18 |
|
xmlns:wwex
sldoc="urn
:WebWorks-
XSLT-Exten
sion-Docum
ent"
|
19 |
|
xmlns:wwrt
f="urn:Web
Works-RTF-
DocInfo-Sc
hema"
|
|
19 |
|
xmlns:wwrt
f="urn:Web
Works-RTF-
DocInfo-Sc
hema"
|
20 |
|
exclude-re
sult-prefi
xes="xsl h
tml msxsl
wwmode wwd
oc wwproje
ct wwprogr
ess wwlog
wwfilesyst
em wwuri w
wstring ww
units wwfi
lesext wwp
rojext wwe
xsldoc wwp
rops"
|
|
20 |
|
exclude-re
sult-prefi
xes="xsl h
tml msxsl
wwmode wwd
oc wwproje
ct wwprogr
ess wwlog
wwfilesyst
em wwuri w
wstring ww
units wwfi
lesext wwp
rojext wwe
xsldoc wwp
rops"
|
21 |
|
>
|
|
21 |
|
>
|
22 |
|
<xsl:key
name="wwfi
les-files-
by-documen
tid" match
="wwfiles:
File" use=
"@document
ID" />
|
|
22 |
|
<xsl:key
name="wwfi
les-files-
by-documen
tid" match
="wwfiles:
File" use=
"@document
ID" />
|
23 |
|
|
|
23 |
|
|
24 |
|
|
|
24 |
|
|
25 |
|
<xsl:temp
late name=
"PageHeade
r">
|
|
25 |
|
<xsl:temp
late name=
"PageHeade
r">
|
26 |
|
<xsl:par
am name="P
aramFilesD
ocumentNod
e" />
|
|
26 |
|
<xsl:par
am name="P
aramFilesD
ocumentNod
e" />
|
27 |
|
<xsl:par
am name="P
aramRTFSty
lesType" /
>
|
|
27 |
|
<xsl:par
am name="P
aramRTFSty
lesType" /
>
|
28 |
|
<xsl:par
am name="P
aramSplits
" />
|
|
28 |
|
<xsl:par
am name="P
aramSplits
" />
|
29 |
|
<xsl:par
am name="P
aramSplit"
/>
|
|
29 |
|
<xsl:par
am name="P
aramSplit"
/>
|
30 |
|
|
|
30 |
|
|
31 |
|
|
|
31 |
|
|
32 |
|
<!-- RTF
Styles --
>
|
|
32 |
|
<!-- RTF
Styles --
>
|
33 |
|
<!--
-->
|
|
33 |
|
<!--
-->
|
34 |
|
<xsl:var
iable name
="VarRTFSt
ylesFile"
select="$G
lobalFiles
/wwfiles:F
iles/wwfil
es:File[(@
documentID
= $ParamS
plit/@docu
mentID) an
d (@type =
$ParamRTF
StylesType
)][1]" />
|
|
34 |
|
<xsl:var
iable name
="VarRTFSt
ylesFile"
select="$G
lobalFiles
/wwfiles:F
iles/wwfil
es:File[(@
documentID
= $ParamS
plit/@docu
mentID) an
d (@type =
$ParamRTF
StylesType
)][1]" />
|
35 |
|
<xsl:var
iable name
="VarRTFSt
yles" sele
ct="wwexsl
doc:LoadXM
LWithoutRe
solver($Va
rRTFStyles
File/@path
)" />
|
|
35 |
|
<xsl:var
iable name
="VarRTFSt
yles" sele
ct="wwexsl
doc:LoadXM
LWithoutRe
solver($Va
rRTFStyles
File/@path
)" />
|
36 |
|
|
|
36 |
|
|
37 |
|
<!-- Pag
e Rule -->
|
|
37 |
|
<!-- Pag
e Rule -->
|
38 |
|
<!--
-->
|
|
38 |
|
<!--
-->
|
39 |
|
<xsl:var
iable name
="VarPageR
ule" selec
t="wwproje
xt:GetRule
('Page', $
ParamSplit
/@stylenam
e)" />
|
|
39 |
|
<xsl:var
iable name
="VarPageR
ule" selec
t="wwproje
xt:GetRule
('Page', $
ParamSplit
/@stylenam
e)" />
|
40 |
|
|
|
40 |
|
|
41 |
|
<!-- Top
ic ID -->
|
|
41 |
|
<!-- Top
ic ID -->
|
42 |
|
<!--
-->
|
|
42 |
|
<!--
-->
|
43 |
|
<xsl:var
iable name
="VarTopic
ID" select
="concat($
ParamSplit
/@document
ID, '_', $
ParamSplit
/@id)" />
|
|
43 |
|
<xsl:var
iable name
="VarTopic
ID" select
="concat($
ParamSplit
/@document
ID, '_', $
ParamSplit
/@id)" />
|
44 |
|
|
|
44 |
|
|
45 |
|
<!-- Top
ic Title -
->
|
|
45 |
|
<!-- Top
ic Title -
->
|
46 |
|
<!--
-->
|
|
46 |
|
<!--
-->
|
47 |
|
<xsl:var
iable name
="VarTopic
Title" sel
ect="$Para
mSplit/@ti
tle" />
|
|
47 |
|
<xsl:var
iable name
="VarTopic
Title" sel
ect="$Para
mSplit/@ti
tle" />
|
48 |
|
|
|
48 |
|
|
49 |
|
<!-- Win
dow Type -
->
|
|
49 |
|
<!-- Win
dow Type -
->
|
50 |
|
<!--
-
->
|
|
50 |
|
<!--
-
->
|
51 |
|
<xsl:var
iable name
="VarWindo
wType">
|
|
51 |
|
<xsl:var
iable name
="VarWindo
wType">
|
52 |
|
<xsl:ch
oose>
|
|
52 |
|
<xsl:ch
oose>
|
53 |
|
<xsl:w
hen test="
(string-le
ngth($Para
mSplit/@wi
ndow-type)
> 0) a
nd ($Param
Split/@win
dow-type !
= 'none')"
>
|
|
53 |
|
<xsl:w
hen test="
(string-le
ngth($Para
mSplit/@wi
ndow-type)
> 0) a
nd ($Param
Split/@win
dow-type !
= 'none')"
>
|
54 |
|
<xsl:
value-of s
elect="$Pa
ramSplit/@
window-typ
e" />
|
|
54 |
|
<xsl:
value-of s
elect="$Pa
ramSplit/@
window-typ
e" />
|
55 |
|
</xsl:
when>
|
|
55 |
|
</xsl:
when>
|
56 |
|
<xsl:o
therwise>
|
|
56 |
|
<xsl:o
therwise>
|
57 |
|
<xsl:
value-of s
elect="'Ma
in'" />
|
|
57 |
|
<xsl:
value-of s
elect="'Ma
in'" />
|
58 |
|
</xsl:
otherwise>
|
|
58 |
|
</xsl:
otherwise>
|
59 |
|
</xsl:c
hoose>
|
|
59 |
|
</xsl:c
hoose>
|
60 |
|
|
|
60 |
|
|
61 |
|
</xsl:va
riable>
|
|
61 |
|
</xsl:va
riable>
|
62 |
|
|
|
62 |
|
|
63 |
|
<!-- Out
put -->
|
|
63 |
|
<!-- Out
put -->
|
64 |
|
<!--
-->
|
|
64 |
|
<!--
-->
|
65 |
|
<xsl:tex
t>{\rtf1\d
eff1
|
|
65 |
|
<xsl:tex
t>{\rtf1\d
eff1
|
66 |
|
</xsl:text
>
|
|
66 |
|
</xsl:text
>
|
67 |
|
|
|
67 |
|
|
68 |
|
<xsl:tex
t>
|
|
68 |
|
<xsl:tex
t>
|
69 |
|
{\fonttbl
|
|
69 |
|
{\fonttbl
|
70 |
|
</xsl:text
>
|
|
70 |
|
</xsl:text
>
|
71 |
|
|
|
71 |
|
|
72 |
|
<xsl:var
iable name
="VarFonts
" select="
$VarRTFSty
les/wwrtf:
DocInfo/ww
rtf:Fonts/
wwrtf:Font
" />
|
|
72 |
|
<xsl:var
iable name
="VarFonts
" select="
$VarRTFSty
les/wwrtf:
DocInfo/ww
rtf:Fonts/
wwrtf:Font
" />
|
73 |
|
<xsl:for
-each sele
ct="$VarFo
nts[1]">
|
|
73 |
|
<xsl:for
-each sele
ct="$VarFo
nts[1]">
|
74 |
|
<!-- At
tempts to
sort empty
node sets
results i
n fatal er
rors on so
me systems
-->
|
|
74 |
|
<!-- At
tempts to
sort empty
node sets
results i
n fatal er
rors on so
me systems
-->
|
75 |
|
<!--
-->
|
|
75 |
|
<!--
-->
|
76 |
|
<xsl:fo
r-each sel
ect="$VarF
onts">
|
|
76 |
|
<xsl:fo
r-each sel
ect="$VarF
onts">
|
77 |
|
<xsl:s
ort select
="@positio
n" data-ty
pe="number
" order="a
scending"
/>
|
|
77 |
|
<xsl:s
ort select
="@positio
n" data-ty
pe="number
" order="a
scending"
/>
|
78 |
|
|
|
78 |
|
|
79 |
|
<xsl:v
ariable na
me="VarFon
t" select=
"." />
|
|
79 |
|
<xsl:v
ariable na
me="VarFon
t" select=
"." />
|
80 |
|
<xsl:t
ext>{\f</x
sl:text>
|
|
80 |
|
<xsl:t
ext>{\f</x
sl:text>
|
81 |
|
<xsl:v
alue-of se
lect="$Var
Font/@posi
tion" />
|
|
81 |
|
<xsl:v
alue-of se
lect="$Var
Font/@posi
tion" />
|
82 |
|
<xsl:t
ext>\fnil
</xsl:text
>
|
|
82 |
|
<xsl:t
ext>\fnil
</xsl:text
>
|
83 |
|
|
|
83 |
|
|
84 |
|
<xsl:c
all-templa
te name="F
ontFamily"
>
|
|
84 |
|
<xsl:c
all-templa
te name="F
ontFamily"
>
|
85 |
|
<xsl:
with-param
name="Par
amFontFami
ly" select
="$VarFont
/@name" />
|
|
85 |
|
<xsl:
with-param
name="Par
amFontFami
ly" select
="$VarFont
/@name" />
|
86 |
|
</xsl:
call-templ
ate>
|
|
86 |
|
</xsl:
call-templ
ate>
|
87 |
|
|
|
87 |
|
|
88 |
|
<xsl:t
ext>;}
|
|
88 |
|
<xsl:t
ext>;}
|
89 |
|
</xsl:text
>
|
|
89 |
|
</xsl:text
>
|
90 |
|
</xsl:f
or-each>
|
|
90 |
|
</xsl:f
or-each>
|
91 |
|
</xsl:fo
r-each>
|
|
91 |
|
</xsl:fo
r-each>
|
92 |
|
|
|
92 |
|
|
93 |
|
<xsl:tex
t>}
|
|
93 |
|
<xsl:tex
t>}
|
94 |
|
</xsl:text
>
|
|
94 |
|
</xsl:text
>
|
95 |
|
|
|
95 |
|
|
96 |
|
<xsl:tex
t>
|
|
96 |
|
<xsl:tex
t>
|
97 |
|
{\colortbl
;
|
|
97 |
|
{\colortbl
;
|
98 |
|
</xsl:text
>
|
|
98 |
|
</xsl:text
>
|
99 |
|
|
|
99 |
|
|
100 |
|
<xsl:var
iable name
="VarColor
s" select=
"$VarRTFSt
yles/wwrtf
:DocInfo/w
wrtf:Color
s/wwrtf:Co
lor" />
|
|
100 |
|
<xsl:var
iable name
="VarColor
s" select=
"$VarRTFSt
yles/wwrtf
:DocInfo/w
wrtf:Color
s/wwrtf:Co
lor" />
|
101 |
|
<xsl:for
-each sele
ct="$VarCo
lors[1]">
|
|
101 |
|
<xsl:for
-each sele
ct="$VarCo
lors[1]">
|
102 |
|
<!-- At
tempts to
sort empty
node sets
results i
n fatal er
rors on so
me systems
-->
|
|
102 |
|
<!-- At
tempts to
sort empty
node sets
results i
n fatal er
rors on so
me systems
-->
|
103 |
|
<!--
-->
|
|
103 |
|
<!--
-->
|
104 |
|
<xsl:fo
r-each sel
ect="$VarC
olors">
|
|
104 |
|
<xsl:fo
r-each sel
ect="$VarC
olors">
|
105 |
|
<xsl:s
ort select
="@positio
n" data-ty
pe="number
" order="a
scending"
/>
|
|
105 |
|
<xsl:s
ort select
="@positio
n" data-ty
pe="number
" order="a
scending"
/>
|
106 |
|
|
|
106 |
|
|
107 |
|
<xsl:v
ariable na
me="VarCol
or" select
="." />
|
|
107 |
|
<xsl:v
ariable na
me="VarCol
or" select
="." />
|
108 |
|
<xsl:
value-of s
elect="wwu
nits:RTFCo
lor($VarCo
lor/@name)
" />
|
|
108 |
|
<xsl:
value-of s
elect="wwu
nits:RTFCo
lor($VarCo
lor/@name)
" />
|
109 |
|
<xsl:t
ext>;
|
|
109 |
|
<xsl:t
ext>;
|
110 |
|
</xsl:text
>
|
|
110 |
|
</xsl:text
>
|
111 |
|
</xsl:f
or-each>
|
|
111 |
|
</xsl:f
or-each>
|
112 |
|
</xsl:fo
r-each>
|
|
112 |
|
</xsl:fo
r-each>
|
113 |
|
|
|
113 |
|
|
114 |
|
<xsl:tex
t>}
|
|
114 |
|
<xsl:tex
t>}
|
115 |
|
</xsl:text
>
|
|
115 |
|
</xsl:text
>
|
116 |
|
|
|
116 |
|
|
117 |
|
<xsl:if
test="$Var
TopicTitle
">
|
|
117 |
|
<xsl:if
test="$Var
TopicTitle
">
|
118 |
|
<xsl:te
xt>
|
|
118 |
|
<xsl:te
xt>
|
119 |
|
#{\footnot
e </xsl:te
xt><xsl:va
lue-of sel
ect="$VarT
opicID" />
<xsl:text>
}</xsl:tex
t>
|
|
119 |
|
#{\footnot
e </xsl:te
xt><xsl:va
lue-of sel
ect="$VarT
opicID" />
<xsl:text>
}</xsl:tex
t>
|
120 |
|
|
|
120 |
|
|
121 |
|
<xsl:te
xt>
|
|
121 |
|
<xsl:te
xt>
|
122 |
|
${\footnot
e </xsl:te
xt><xsl:va
lue-of sel
ect="$VarT
opicTitle"
/><xsl:te
xt>}</xsl:
text>
|
|
122 |
|
${\footnot
e </xsl:te
xt><xsl:va
lue-of sel
ect="$VarT
opicTitle"
/><xsl:te
xt>}</xsl:
text>
|
123 |
|
|
|
123 |
|
|
124 |
|
<xsl:if
test="$Va
rWindowTyp
e = 'Main'
">
|
|
124 |
|
<xsl:if
test="$Va
rWindowTyp
e = 'Main'
">
|
125 |
|
<xsl:t
ext>
|
|
125 |
|
<xsl:t
ext>
|
126 |
|
+{\footnot
e </xsl:te
xt><xsl:va
lue-of sel
ect="$VarW
indowType"
/><xsl:te
xt>}</xsl:
text>
|
|
126 |
|
+{\footnot
e </xsl:te
xt><xsl:va
lue-of sel
ect="$VarW
indowType"
/><xsl:te
xt>}</xsl:
text>
|
127 |
|
</xsl:i
f>
|
|
127 |
|
</xsl:i
f>
|
128 |
|
|
|
128 |
|
|
129 |
|
<xsl:te
xt>
|
|
129 |
|
<xsl:te
xt>
|
130 |
|
>{\foot
note </xsl
:text><xsl
:value-of
select="$V
arWindowTy
pe" /><xsl
:text>}</x
sl:text>
|
|
130 |
|
>{\foot
note </xsl
:text><xsl
:value-of
select="$V
arWindowTy
pe" /><xsl
:text>}</x
sl:text>
|
131 |
|
</xsl:if
>
|
|
131 |
|
</xsl:if
>
|
132 |
|
</xsl:tem
plate>
|
|
132 |
|
</xsl:tem
plate>
|
133 |
|
|
|
133 |
|
|
134 |
|
<xsl:temp
late name=
"PageFoote
r">
|
|
134 |
|
<xsl:temp
late name=
"PageFoote
r">
|
135 |
|
<!-- Out
put -->
|
|
135 |
|
<!-- Out
put -->
|
136 |
|
<!--
-->
|
|
136 |
|
<!--
-->
|
137 |
|
<xsl:tex
t>
|
|
137 |
|
<xsl:tex
t>
|
138 |
|
}
|
|
138 |
|
}
|
139 |
|
</xsl:text
>
|
|
139 |
|
</xsl:text
>
|
140 |
|
</xsl:tem
plate>
|
|
140 |
|
</xsl:tem
plate>
|
141 |
|
|
|
141 |
|
|
142 |
|
|
|
142 |
|
|
143 |
|
<xsl:temp
late name=
"TextRunHe
ader">
|
|
143 |
|
<xsl:temp
late name=
"TextRunHe
ader">
|
144 |
|
<xsl:par
am name="P
aramSplit"
/>
|
|
144 |
|
<xsl:par
am name="P
aramSplit"
/>
|
145 |
|
<xsl:par
am name="P
aramRTFSty
lesType" /
>
|
|
145 |
|
<xsl:par
am name="P
aramRTFSty
lesType" /
>
|
146 |
|
<xsl:par
am name="P
aramTextRu
n" />
|
|
146 |
|
<xsl:par
am name="P
aramTextRu
n" />
|
147 |
|
|
|
147 |
|
|
148 |
|
<xsl:var
iable name
="VarFiles
Path" sele
ct="$Globa
lFiles/wwf
iles:Files
/wwfiles:F
ile[(@docu
mentID = $
ParamSplit
/@document
ID) and (@
type = $Pa
ramRTFStyl
esType)]/@
path" />
|
|
148 |
|
<xsl:var
iable name
="VarFiles
Path" sele
ct="$Globa
lFiles/wwf
iles:Files
/wwfiles:F
ile[(@docu
mentID = $
ParamSplit
/@document
ID) and (@
type = $Pa
ramRTFStyl
esType)]/@
path" />
|
149 |
|
<xsl:var
iable name
="VarRTFSt
yles" sele
ct="wwexsl
doc:LoadXM
LWithoutRe
solver($Va
rFilesPath
)" />
|
|
149 |
|
<xsl:var
iable name
="VarRTFSt
yles" sele
ct="wwexsl
doc:LoadXM
LWithoutRe
solver($Va
rFilesPath
)" />
|
150 |
|
|
|
150 |
|
|
151 |
|
<xsl:var
iable name
="VarConte
xtRule" se
lect="wwpr
ojext:GetC
ontextRule
('Characte
r', $Param
TextRun/@s
tylename,
$ParamSpli
t/@documen
tID, $Para
mTextRun/@
id)" />
|
|
151 |
|
<xsl:var
iable name
="VarConte
xtRule" se
lect="wwpr
ojext:GetC
ontextRule
('Characte
r', $Param
TextRun/@s
tylename,
$ParamSpli
t/@documen
tID, $Para
mTextRun/@
id)" />
|
152 |
|
|
|
152 |
|
|
153 |
|
<!-- Res
olve conte
xt propert
ies -->
|
|
153 |
|
<!-- Res
olve conte
xt propert
ies -->
|
154 |
|
<!--
-->
|
|
154 |
|
<!--
-->
|
155 |
|
<xsl:var
iable name
="VarResol
vedContext
Properties
AsXML">
|
|
155 |
|
<xsl:var
iable name
="VarResol
vedContext
Properties
AsXML">
|
156 |
|
<xsl:ca
ll-templat
e name="Pr
operties-R
esolveCont
extRule">
|
|
156 |
|
<xsl:ca
ll-templat
e name="Pr
operties-R
esolveCont
extRule">
|
157 |
|
<xsl:w
ith-param
name="Para
mDocumentC
ontext" se
lect="$Par
amTextRun"
/>
|
|
157 |
|
<xsl:w
ith-param
name="Para
mDocumentC
ontext" se
lect="$Par
amTextRun"
/>
|
158 |
|
<xsl:w
ith-param
name="Para
mPropertie
s" select=
"$VarConte
xtRule/wwp
roject:Pro
perties/ww
project:Pr
operty" />
|
|
158 |
|
<xsl:w
ith-param
name="Para
mPropertie
s" select=
"$VarConte
xtRule/wwp
roject:Pro
perties/ww
project:Pr
operty" />
|
159 |
|
<xsl:w
ith-param
name="Para
mStyleName
" select="
$ParamText
Run/@style
name" />
|
|
159 |
|
<xsl:w
ith-param
name="Para
mStyleName
" select="
$ParamText
Run/@style
name" />
|
160 |
|
<xsl:w
ith-param
name="Para
mStyleType
" select="
'Character
'" />
|
|
160 |
|
<xsl:w
ith-param
name="Para
mStyleType
" select="
'Character
'" />
|
161 |
|
<xsl:w
ith-param
name="Para
mContextSt
yle" selec
t="$ParamT
extRun/wwd
oc:Style"
/>
|
|
161 |
|
<xsl:w
ith-param
name="Para
mContextSt
yle" selec
t="$ParamT
extRun/wwd
oc:Style"
/>
|
162 |
|
</xsl:c
all-templa
te>
|
|
162 |
|
</xsl:c
all-templa
te>
|
163 |
|
</xsl:va
riable>
|
|
163 |
|
</xsl:va
riable>
|
164 |
|
<xsl:var
iable name
="VarResol
vedContext
Properties
" select="
msxsl:node
-set($VarR
esolvedCon
textProper
tiesAsXML)
/wwproject
:Property"
/>
|
|
164 |
|
<xsl:var
iable name
="VarResol
vedContext
Properties
" select="
msxsl:node
-set($VarR
esolvedCon
textProper
tiesAsXML)
/wwproject
:Property"
/>
|
165 |
|
|
|
165 |
|
|
166 |
|
<xsl:tex
t>{</xsl:t
ext>
|
|
166 |
|
<xsl:tex
t>{</xsl:t
ext>
|
167 |
|
|
|
167 |
|
|
168 |
|
<xsl:cal
l-template
name="Cha
racterAndP
aragraphMa
rkup">
|
|
168 |
|
<xsl:cal
l-template
name="Cha
racterAndP
aragraphMa
rkup">
|
169 |
|
<xsl:wi
th-param n
ame="Param
RTFStyles"
select="$
VarRTFStyl
es" />
|
|
169 |
|
<xsl:wi
th-param n
ame="Param
RTFStyles"
select="$
VarRTFStyl
es" />
|
170 |
|
<xsl:wi
th-param n
ame="Param
Properties
" select="
$VarResolv
edContextP
roperties"
/>
|
|
170 |
|
<xsl:wi
th-param n
ame="Param
Properties
" select="
$VarResolv
edContextP
roperties"
/>
|
171 |
|
</xsl:ca
ll-templat
e>
|
|
171 |
|
</xsl:ca
ll-templat
e>
|
172 |
|
|
|
172 |
|
|
173 |
|
<xsl:tex
t> </xsl:t
ext>
|
|
173 |
|
<xsl:tex
t> </xsl:t
ext>
|
174 |
|
</xsl:tem
plate>
|
|
174 |
|
</xsl:tem
plate>
|
175 |
|
|
|
175 |
|
|
176 |
|
|
|
176 |
|
|
177 |
|
<xsl:temp
late name=
"TextRunFo
oter">
|
|
177 |
|
<xsl:temp
late name=
"TextRunFo
oter">
|
178 |
|
<xsl:tex
t>}</xsl:t
ext>
|
|
178 |
|
<xsl:tex
t>}</xsl:t
ext>
|
179 |
|
</xsl:tem
plate>
|
|
179 |
|
</xsl:tem
plate>
|
180 |
|
|
|
180 |
|
|
181 |
|
|
|
181 |
|
|
182 |
|
<xsl:temp
late name=
"Paragraph
Header">
|
|
182 |
|
<xsl:temp
late name=
"Paragraph
Header">
|
183 |
|
<xsl:par
am name="P
aramSplit"
/>
|
|
183 |
|
<xsl:par
am name="P
aramSplit"
/>
|
184 |
|
<xsl:par
am name="P
aramRTFSty
lesType" /
>
|
|
184 |
|
<xsl:par
am name="P
aramRTFSty
lesType" /
>
|
185 |
|
<xsl:par
am name="P
aramParagr
aph" />
|
|
185 |
|
<xsl:par
am name="P
aramParagr
aph" />
|
186 |
|
|
|
186 |
|
|
187 |
|
<xsl:for
-each sele
ct="$Globa
lFiles[1]"
>
|
|
187 |
|
<xsl:for
-each sele
ct="$Globa
lFiles[1]"
>
|
188 |
|
<xsl:v
ariable na
me="VarFil
es" select
="key('wwf
iles-files
-by-docume
ntid', $Pa
ramSplit/@
documentID
)[@type =
$ParamRTFS
tylesType]
" />
|
|
188 |
|
<xsl:v
ariable na
me="VarFil
es" select
="key('wwf
iles-files
-by-docume
ntid', $Pa
ramSplit/@
documentID
)[@type =
$ParamRTFS
tylesType]
" />
|
189 |
|
<xsl:v
ariable na
me="VarRTF
Styles" se
lect="wwex
sldoc:Load
XMLWithout
Resolver($
VarFiles/@
path)" />
|
|
189 |
|
<xsl:v
ariable na
me="VarRTF
Styles" se
lect="wwex
sldoc:Load
XMLWithout
Resolver($
VarFiles/@
path)" />
|
190 |
|
|
|
190 |
|
|
191 |
|
<xsl:v
ariable na
me="VarCon
textRule"
select="ww
projext:Ge
tContextRu
le('Paragr
aph', $Par
amParagrap
h/@stylena
me, $Param
Split/@doc
umentID, $
ParamParag
raph/@id)"
/>
|
|
191 |
|
<xsl:v
ariable na
me="VarCon
textRule"
select="ww
projext:Ge
tContextRu
le('Paragr
aph', $Par
amParagrap
h/@stylena
me, $Param
Split/@doc
umentID, $
ParamParag
raph/@id)"
/>
|
192 |
|
<xsl:v
ariable na
me="VarRes
olvedConte
xtProperti
esAsXML">
|
|
192 |
|
<xsl:v
ariable na
me="VarRes
olvedConte
xtProperti
esAsXML">
|
193 |
|
<xsl:
call-templ
ate name="
Properties
-ResolveCo
ntextRule"
>
|
|
193 |
|
<xsl:
call-templ
ate name="
Properties
-ResolveCo
ntextRule"
>
|
194 |
|
<xsl
:with-para
m name="Pa
ramDocumen
tContext"
select="$P
aramParagr
aph" />
|
|
194 |
|
<xsl
:with-para
m name="Pa
ramDocumen
tContext"
select="$P
aramParagr
aph" />
|
195 |
|
<xsl
:with-para
m name="Pa
ramPropert
ies" selec
t="$VarCon
textRule/w
wproject:P
roperties/
wwproject:
Property"
/>
|
|
195 |
|
<xsl
:with-para
m name="Pa
ramPropert
ies" selec
t="$VarCon
textRule/w
wproject:P
roperties/
wwproject:
Property"
/>
|
196 |
|
<xsl
:with-para
m name="Pa
ramStyleNa
me" select
="$ParamPa
ragraph/@s
tylename"
/>
|
|
196 |
|
<xsl
:with-para
m name="Pa
ramStyleNa
me" select
="$ParamPa
ragraph/@s
tylename"
/>
|
197 |
|
<xsl
:with-para
m name="Pa
ramStyleTy
pe" select
="'Paragra
ph'" />
|
|
197 |
|
<xsl
:with-para
m name="Pa
ramStyleTy
pe" select
="'Paragra
ph'" />
|
198 |
|
<xsl
:with-para
m name="Pa
ramContext
Style" sel
ect="$Para
mParagraph
/wwdoc:Sty
le" />
|
|
198 |
|
<xsl
:with-para
m name="Pa
ramContext
Style" sel
ect="$Para
mParagraph
/wwdoc:Sty
le" />
|
199 |
|
</xsl
:call-temp
late>
|
|
199 |
|
</xsl
:call-temp
late>
|
200 |
|
</xsl:
variable>
|
|
200 |
|
</xsl:
variable>
|
201 |
|
<xsl:v
ariable na
me="VarRes
olvedConte
xtProperti
es" select
="msxsl:no
de-set($Va
rResolvedC
ontextProp
ertiesAsXM
L)/wwproje
ct:Propert
y" />
|
|
201 |
|
<xsl:v
ariable na
me="VarRes
olvedConte
xtProperti
es" select
="msxsl:no
de-set($Va
rResolvedC
ontextProp
ertiesAsXM
L)/wwproje
ct:Propert
y" />
|
202 |
|
|
|
202 |
|
|
203 |
|
|
|
203 |
|
|
204 |
|
<!-- T
opic ID --
>
|
|
204 |
|
<!-- T
opic ID --
>
|
205 |
|
<!--
--
>
|
|
205 |
|
<!--
--
>
|
206 |
|
<xsl:t
ext>
|
|
206 |
|
<xsl:t
ext>
|
207 |
|
#{\footnot
e </xsl:te
xt><xsl:va
lue-of sel
ect="conca
t($ParamSp
lit/@docum
entID, '_'
, $ParamPa
ragraph/@i
d)" /><xsl
:text>}
|
|
207 |
|
#{\footnot
e </xsl:te
xt><xsl:va
lue-of sel
ect="conca
t($ParamSp
lit/@docum
entID, '_'
, $ParamPa
ragraph/@i
d)" /><xsl
:text>}
|
208 |
|
</xsl:text
>
|
|
208 |
|
</xsl:text
>
|
209 |
|
|
|
209 |
|
|
210 |
|
<!-- R
eset Parag
raph Forma
tting -->
|
|
210 |
|
<!-- R
eset Parag
raph Forma
tting -->
|
211 |
|
<!--
-->
|
|
211 |
|
<!--
-->
|
212 |
|
<xsl:t
ext>\pard\
plain
\widctlpar
</xsl:text
>
|
|
212 |
|
<xsl:t
ext>\pard\
plain
</xsl:text
>
|
|
|
|
|
213 |
|
<xsl:c
hoose>
|
|
|
|
|
214 |
|
<xsl:
when test=
"$ParamPar
agraph/par
ent::wwdoc
:TableCell
">
|
|
|
|
|
215 |
|
<xsl
:text>\now
idctlpar\i
ntbl</xsl:
text>
|
|
|
|
|
216 |
|
</xsl
:when>
|
|
|
|
|
217 |
|
|
|
|
|
|
218 |
|
<xsl:
otherwise>
|
|
|
|
|
219 |
|
<xsl
:text>\wid
ctlpar</xs
l:text>
|
|
|
|
|
220 |
|
</xsl
:otherwise
>
|
|
|
|
|
221 |
|
</xsl:
choose>
|
213 |
|
|
|
222 |
|
|
214 |
|
<!-- M
ake part o
f non-scro
lling regi
on? -->
|
|
223 |
|
<!-- M
ake part o
f non-scro
lling regi
on? -->
|
215 |
|
<!--
-->
|
|
224 |
|
<!--
-->
|
216 |
|
<xsl:i
f test="$P
aramSplit/
@id = $Par
amParagrap
h/@id" >
|
|
225 |
|
<xsl:i
f test="$P
aramSplit/
@id = $Par
amParagrap
h/@id" >
|
217 |
|
<xsl:
text>\keep
n</xsl:tex
t>
|
|
226 |
|
<xsl:
text>\keep
n</xsl:tex
t>
|
218 |
|
</xsl:
if>
|
|
227 |
|
</xsl:
if>
|
219 |
|
|
|
228 |
|
|
220 |
|
<xsl:c
all-templa
te name="C
haracterAn
dParagraph
Markup">
|
|
229 |
|
<xsl:c
all-templa
te name="C
haracterAn
dParagraph
Markup">
|
221 |
|
<xsl:
with-param
name="Par
amRTFStyle
s" select=
"$VarRTFSt
yles" />
|
|
230 |
|
<xsl:
with-param
name="Par
amRTFStyle
s" select=
"$VarRTFSt
yles" />
|
222 |
|
<xsl:
with-param
name="Par
amProperti
es" select
="$VarReso
lvedContex
tPropertie
s" />
|
|
231 |
|
<xsl:
with-param
name="Par
amProperti
es" select
="$VarReso
lvedContex
tPropertie
s" />
|
223 |
|
</xsl:
call-templ
ate>
|
|
232 |
|
</xsl:
call-templ
ate>
|
224 |
|
|
|
233 |
|
|
225 |
|
<!-- B
orders -->
|
|
234 |
|
<!-- B
orders -->
|
226 |
|
<!--
-->
|
|
235 |
|
<!--
-->
|
227 |
|
<xsl:v
ariable na
me="VarBor
derBottom"
select="$
VarResolve
dContextPr
operties[@
Name = 'bo
rder-botto
m-style']/
@Value" />
|
|
236 |
|
<xsl:v
ariable na
me="VarBor
derBottom"
select="$
VarResolve
dContextPr
operties[@
Name = 'bo
rder-botto
m-style']/
@Value" />
|
228 |
|
<xsl:v
ariable na
me="VarBor
derLeft" s
elect="$Va
rResolvedC
ontextProp
erties[@Na
me = 'bord
er-left-st
yle']/@Val
ue" />
|
|
237 |
|
<xsl:v
ariable na
me="VarBor
derLeft" s
elect="$Va
rResolvedC
ontextProp
erties[@Na
me = 'bord
er-left-st
yle']/@Val
ue" />
|
229 |
|
<xsl:v
ariable na
me="VarBor
derRight"
select="$V
arResolved
ContextPro
perties[@N
ame = 'bor
der-right-
style']/@V
alue" />
|
|
238 |
|
<xsl:v
ariable na
me="VarBor
derRight"
select="$V
arResolved
ContextPro
perties[@N
ame = 'bor
der-right-
style']/@V
alue" />
|
230 |
|
<xsl:v
ariable na
me="VarBor
derTop" se
lect="$Var
ResolvedCo
ntextPrope
rties[@Nam
e = 'borde
r-top-styl
e']/@Value
" />
|
|
239 |
|
<xsl:v
ariable na
me="VarBor
derTop" se
lect="$Var
ResolvedCo
ntextPrope
rties[@Nam
e = 'borde
r-top-styl
e']/@Value
" />
|
231 |
|
|
|
240 |
|
|
232 |
|
<!-- B
order Bott
om -->
|
|
241 |
|
<!-- B
order Bott
om -->
|
233 |
|
<!--
-->
|
|
242 |
|
<!--
-->
|
234 |
|
<xsl:c
hoose>
|
|
243 |
|
<xsl:c
hoose>
|
235 |
|
<xsl:
when test=
"$VarBorde
rBottom =
'dotted'">
|
|
244 |
|
<xsl:
when test=
"$VarBorde
rBottom =
'dotted'">
|
236 |
|
<xsl
:text>\brd
rb\brdrdot
</xsl:text
>
|
|
245 |
|
<xsl
:text>\brd
rb\brdrdot
</xsl:text
>
|
237 |
|
</xsl
:when>
|
|
246 |
|
</xsl
:when>
|
238 |
|
|
|
247 |
|
|
239 |
|
<xsl:
when test=
"$VarBorde
rBottom =
'single'">
|
|
248 |
|
<xsl:
when test=
"$VarBorde
rBottom =
'single'">
|
240 |
|
<xsl
:text>\brd
rb\brdrs</
xsl:text>
|
|
249 |
|
<xsl
:text>\brd
rb\brdrs</
xsl:text>
|
241 |
|
</xsl
:when>
|
|
250 |
|
</xsl
:when>
|
242 |
|
</xsl:
choose>
|
|
251 |
|
</xsl:
choose>
|
243 |
|
|
|
252 |
|
|
244 |
|
<!-- B
order Left
-->
|
|
253 |
|
<!-- B
order Left
-->
|
245 |
|
<!--
-->
|
|
254 |
|
<!--
-->
|
246 |
|
<xsl:c
hoose>
|
|
255 |
|
<xsl:c
hoose>
|
247 |
|
<xsl:
when test=
"$VarBorde
rLeft = 'd
otted'">
|
|
256 |
|
<xsl:
when test=
"$VarBorde
rLeft = 'd
otted'">
|
248 |
|
<xsl
:text>\brd
rl\brdrdot
</xsl:text
>
|
|
257 |
|
<xsl
:text>\brd
rl\brdrdot
</xsl:text
>
|
249 |
|
</xsl
:when>
|
|
258 |
|
</xsl
:when>
|
250 |
|
|
|
259 |
|
|
251 |
|
<xsl:
when test=
"$VarBorde
rLeft = 's
ingle'">
|
|
260 |
|
<xsl:
when test=
"$VarBorde
rLeft = 's
ingle'">
|
252 |
|
<xsl
:text>\brd
rl\brdrs</
xsl:text>
|
|
261 |
|
<xsl
:text>\brd
rl\brdrs</
xsl:text>
|
253 |
|
</xsl
:when>
|
|
262 |
|
</xsl
:when>
|
254 |
|
</xsl:
choose>
|
|
263 |
|
</xsl:
choose>
|
255 |
|
|
|
264 |
|
|
256 |
|
<!-- B
order Righ
t -->
|
|
265 |
|
<!-- B
order Righ
t -->
|
257 |
|
<!--
-->
|
|
266 |
|
<!--
-->
|
258 |
|
<xsl:c
hoose>
|
|
267 |
|
<xsl:c
hoose>
|
259 |
|
<xsl:
when test=
"$VarBorde
rRight = '
dotted'">
|
|
268 |
|
<xsl:
when test=
"$VarBorde
rRight = '
dotted'">
|
260 |
|
<xsl
:text>\brd
rr\brdrdot
</xsl:text
>
|
|
269 |
|
<xsl
:text>\brd
rr\brdrdot
</xsl:text
>
|
261 |
|
</xsl
:when>
|
|
270 |
|
</xsl
:when>
|
262 |
|
|
|
271 |
|
|
263 |
|
<xsl:
when test=
"$VarBorde
rRight = '
single'">
|
|
272 |
|
<xsl:
when test=
"$VarBorde
rRight = '
single'">
|
264 |
|
<xsl
:text>\brd
rr\brdrs</
xsl:text>
|
|
273 |
|
<xsl
:text>\brd
rr\brdrs</
xsl:text>
|
265 |
|
</xsl
:when>
|
|
274 |
|
</xsl
:when>
|
266 |
|
</xsl:
choose>
|
|
275 |
|
</xsl:
choose>
|
267 |
|
|
|
276 |
|
|
268 |
|
<!-- B
order Top
-->
|
|
277 |
|
<!-- B
order Top
-->
|
269 |
|
<!--
-->
|
|
278 |
|
<!--
-->
|
270 |
|
<xsl:c
hoose>
|
|
279 |
|
<xsl:c
hoose>
|
271 |
|
<xsl:
when test=
"$VarBorde
rTop = 'do
tted'">
|
|
280 |
|
<xsl:
when test=
"$VarBorde
rTop = 'do
tted'">
|
272 |
|
<xsl
:text>\brd
rt\brdrdot
</xsl:text
>
|
|
281 |
|
<xsl
:text>\brd
rt\brdrdot
</xsl:text
>
|
273 |
|
</xsl
:when>
|
|
282 |
|
</xsl
:when>
|
274 |
|
|
|
283 |
|
|
275 |
|
<xsl:
when test=
"$VarBorde
rTop = 'si
ngle'">
|
|
284 |
|
<xsl:
when test=
"$VarBorde
rTop = 'si
ngle'">
|
276 |
|
<xsl
:text>\brd
rt\brdrs</
xsl:text>
|
|
285 |
|
<xsl
:text>\brd
rt\brdrs</
xsl:text>
|
277 |
|
</xsl
:when>
|
|
286 |
|
</xsl
:when>
|
278 |
|
</xsl:
choose>
|
|
287 |
|
</xsl:
choose>
|
279 |
|
|
|
288 |
|
|
280 |
|
<!-- A
dd First L
ine Indent
-->
|
|
289 |
|
<!-- A
dd First L
ine Indent
-->
|
281 |
|
<!--
-->
|
|
290 |
|
<!--
-->
|
282 |
|
<xsl:v
ariable na
me="VarTex
tIndent" s
elect="$Va
rResolvedC
ontextProp
erties[@Na
me = 'text
-indent']/
@Value" />
|
|
291 |
|
<xsl:v
ariable na
me="VarTex
tIndent" s
elect="$Va
rResolvedC
ontextProp
erties[@Na
me = 'text
-indent']/
@Value" />
|
283 |
|
<xsl:v
ariable na
me="VarFor
ceHangingI
ndent" sel
ect="$VarC
ontextRule
/wwproject
:Options/w
wproject:O
ption[@Nam
e = 'fidel
ity-force-
hanging-in
dent']" />
|
|
292 |
|
<xsl:v
ariable na
me="VarFor
ceHangingI
ndent" sel
ect="$VarC
ontextRule
/wwproject
:Options/w
wproject:O
ption[@Nam
e = 'fidel
ity-force-
hanging-in
dent']" />
|
284 |
|
<xsl:c
hoose>
|
|
293 |
|
<xsl:c
hoose>
|
285 |
|
<xsl:
when test=
"$VarForce
HangingInd
ent">
|
|
294 |
|
<xsl:
when test=
"$VarForce
HangingInd
ent">
|
286 |
|
<xsl
:variable
name="VarV
alueNumber
Only" sele
ct="wwunit
s:NumericP
refix($Var
TextIndent
)" />
|
|
295 |
|
<xsl
:variable
name="VarV
alueNumber
Only" sele
ct="wwunit
s:NumericP
refix($Var
TextIndent
)" />
|
287 |
|
<xsl
:variable
name="VarV
alueUnitsO
nly" selec
t="wwunits
:UnitsSuff
ix($VarTex
tIndent)"
/>
|
|
296 |
|
<xsl
:variable
name="VarV
alueUnitsO
nly" selec
t="wwunits
:UnitsSuff
ix($VarTex
tIndent)"
/>
|
288 |
|
<xsl
:variable
name="VarV
alueAsTwip
s" select=
"wwunits:C
onvert($Va
rValueNumb
erOnly, $V
arValueUni
tsOnly, 't
wips')" />
|
|
297 |
|
<xsl
:variable
name="VarV
alueAsTwip
s" select=
"wwunits:C
onvert($Va
rValueNumb
erOnly, $V
arValueUni
tsOnly, 't
wips')" />
|
289 |
|
<xsl
:text>\fi<
/xsl:text>
<xsl:value
-of select
="round($V
arValueAsT
wips)"/>
|
|
298 |
|
<xsl
:text>\fi<
/xsl:text>
<xsl:value
-of select
="round($V
arValueAsT
wips)"/>
|
290 |
|
</xsl
:when>
|
|
299 |
|
</xsl
:when>
|
291 |
|
|
|
300 |
|
|
292 |
|
<xsl:
when test=
"string-le
ngth($VarT
extIndent)
> 0">
|
|
301 |
|
<xsl:
when test=
"string-le
ngth($VarT
extIndent)
> 0">
|
293 |
|
<xsl
:variable
name="VarV
alueNumber
Only" sele
ct="wwunit
s:NumericP
refix($Var
TextIndent
)" />
|
|
302 |
|
<xsl
:variable
name="VarV
alueNumber
Only" sele
ct="wwunit
s:NumericP
refix($Var
TextIndent
)" />
|
294 |
|
<xsl
:variable
name="VarV
alueUnitsO
nly" selec
t="wwunits
:UnitsSuff
ix($VarTex
tIndent)"
/>
|
|
303 |
|
<xsl
:variable
name="VarV
alueUnitsO
nly" selec
t="wwunits
:UnitsSuff
ix($VarTex
tIndent)"
/>
|
295 |
|
<xsl
:variable
name="VarV
alueAsTwip
s" select=
"wwunits:C
onvert($Va
rValueNumb
erOnly, $V
arValueUni
tsOnly, 't
wips')" />
|
|
304 |
|
<xsl
:variable
name="VarV
alueAsTwip
s" select=
"wwunits:C
onvert($Va
rValueNumb
erOnly, $V
arValueUni
tsOnly, 't
wips')" />
|
296 |
|
<xsl
:text>\fi<
/xsl:text>
<xsl:value
-of select
="round($V
arValueAsT
wips)"/>
|
|
305 |
|
<xsl
:text>\fi<
/xsl:text>
<xsl:value
-of select
="round($V
arValueAsT
wips)"/>
|
297 |
|
</xsl
:when>
|
|
306 |
|
</xsl
:when>
|
298 |
|
</xsl:
choose>
|
|
307 |
|
</xsl:
choose>
|
299 |
|
|
|
308 |
|
|
300 |
|
<!-- M
ake non-wr
apping tex
t? -->
|
|
309 |
|
<!-- M
ake non-wr
apping tex
t? -->
|
301 |
|
<!--
-->
|
|
310 |
|
<!--
-->
|
302 |
|
<xsl:i
f test="$V
arResolved
ContextPro
perties[@N
ame = 'whi
te-space']
/@Value =
'nowrap'">
|
|
311 |
|
<xsl:i
f test="$V
arResolved
ContextPro
perties[@N
ame = 'whi
te-space']
/@Value =
'nowrap'">
|
303 |
|
<xsl:
text>\keep
</xsl:text
>
|
|
312 |
|
<xsl:
text>\keep
</xsl:text
>
|
304 |
|
</xsl:
if>
|
|
313 |
|
</xsl:
if>
|
305 |
|
|
|
314 |
|
|
306 |
|
<!-- A
dd Margin-
Left -->
|
|
315 |
|
<!-- A
dd Margin-
Left -->
|
307 |
|
<!--
-->
|
|
316 |
|
<!--
-->
|
308 |
|
<xsl:v
ariable na
me="VarMar
ginLeft" s
elect="$Va
rResolvedC
ontextProp
erties[@Na
me = 'marg
in-left']/
@Value" />
|
|
317 |
|
<xsl:v
ariable na
me="VarMar
ginLeft" s
elect="$Va
rResolvedC
ontextProp
erties[@Na
me = 'marg
in-left']/
@Value" />
|
309 |
|
<xsl:i
f test="st
ring-lengt
h($VarMarg
inLeft) &g
t; 0">
|
|
318 |
|
<xsl:i
f test="st
ring-lengt
h($VarMarg
inLeft) &g
t; 0">
|
310 |
|
<xsl:
variable n
ame="VarVa
lueNumberO
nly" selec
t="wwunits
:NumericPr
efix($VarM
arginLeft)
" />
|
|
319 |
|
<xsl:
variable n
ame="VarVa
lueNumberO
nly" selec
t="wwunits
:NumericPr
efix($VarM
arginLeft)
" />
|
311 |
|
<xsl:
variable n
ame="VarVa
lueUnitsOn
ly" select
="wwunits:
UnitsSuffi
x($VarMarg
inLeft)" /
>
|
|
320 |
|
<xsl:
variable n
ame="VarVa
lueUnitsOn
ly" select
="wwunits:
UnitsSuffi
x($VarMarg
inLeft)" /
>
|
312 |
|
<xsl:
variable n
ame="VarVa
lueAsTwips
" select="
wwunits:Co
nvert($Var
ValueNumbe
rOnly, $Va
rValueUnit
sOnly, 'tw
ips')" />
|
|
321 |
|
<xsl:
variable n
ame="VarVa
lueAsTwips
" select="
wwunits:Co
nvert($Var
ValueNumbe
rOnly, $Va
rValueUnit
sOnly, 'tw
ips')" />
|
313 |
|
<xsl:
text>\li</
xsl:text><
xsl:value-
of select=
"round($Va
rValueAsTw
ips)"/>
|
|
322 |
|
<xsl:
text>\li</
xsl:text><
xsl:value-
of select=
"round($Va
rValueAsTw
ips)"/>
|
314 |
|
<xsl:
text>\tx</
xsl:text><
xsl:value-
of select=
"round($Va
rValueAsTw
ips)"/>
|
|
323 |
|
<xsl:
text>\tx</
xsl:text><
xsl:value-
of select=
"round($Va
rValueAsTw
ips)"/>
|
315 |
|
</xsl:
if>
|
|
324 |
|
</xsl:
if>
|
316 |
|
|
|
325 |
|
|
317 |
|
<!-- M
ake center
align? --
>
|
|
326 |
|
<!-- M
ake center
align? --
>
|
318 |
|
<!--
--
>
|
|
327 |
|
<!--
--
>
|
319 |
|
<xsl:i
f test="$V
arResolved
ContextPro
perties[@N
ame = 'tex
t-align']/
@Value = '
center'">
|
|
328 |
|
<xsl:i
f test="$V
arResolved
ContextPro
perties[@N
ame = 'tex
t-align']/
@Value = '
center'">
|
320 |
|
<xsl:
text>\qc</
xsl:text>
|
|
329 |
|
<xsl:
text>\qc</
xsl:text>
|
321 |
|
</xsl:
if>
|
|
330 |
|
</xsl:
if>
|
322 |
|
|
|
331 |
|
|
323 |
|
<!-- M
ake justif
ied align?
-->
|
|
332 |
|
<!-- M
ake justif
ied align?
-->
|
324 |
|
<!--
-->
|
|
333 |
|
<!--
-->
|
325 |
|
<xsl:i
f test="$V
arResolved
ContextPro
perties[@N
ame = 'tex
t-align']/
@Value = '
justify'">
|
|
334 |
|
<xsl:i
f test="$V
arResolved
ContextPro
perties[@N
ame = 'tex
t-align']/
@Value = '
justify'">
|
326 |
|
<xsl:
text>\qj</
xsl:text>
|
|
335 |
|
<xsl:
text>\qj</
xsl:text>
|
327 |
|
</xsl:
if>
|
|
336 |
|
</xsl:
if>
|
328 |
|
|
|
337 |
|
|
329 |
|
<!-- M
ake right
align? -->
|
|
338 |
|
<!-- M
ake right
align? -->
|
330 |
|
<!--
-->
|
|
339 |
|
<!--
-->
|
331 |
|
<xsl:i
f test="$V
arResolved
ContextPro
perties[@N
ame = 'tex
t-align']/
@Value = '
right'">
|
|
340 |
|
<xsl:i
f test="$V
arResolved
ContextPro
perties[@N
ame = 'tex
t-align']/
@Value = '
right'">
|
332 |
|
<xsl:
text>\qr</
xsl:text>
|
|
341 |
|
<xsl:
text>\qr</
xsl:text>
|
333 |
|
</xsl:
if>
|
|
342 |
|
</xsl:
if>
|
334 |
|
|
|
343 |
|
|
335 |
|
<!-- A
dd Margin-
Right -->
|
|
344 |
|
<!-- A
dd Margin-
Right -->
|
336 |
|
<!--
-->
|
|
345 |
|
<!--
-->
|
337 |
|
<xsl:v
ariable na
me="VarMar
ginRight"
select="$V
arResolved
ContextPro
perties[@N
ame = 'mar
gin-right'
]/@Value"
/>
|
|
346 |
|
<xsl:v
ariable na
me="VarMar
ginRight"
select="$V
arResolved
ContextPro
perties[@N
ame = 'mar
gin-right'
]/@Value"
/>
|
338 |
|
<xsl:i
f test="st
ring-lengt
h($VarMarg
inRight) &
gt; 0">
|
|
347 |
|
<xsl:i
f test="st
ring-lengt
h($VarMarg
inRight) &
gt; 0">
|
339 |
|
<xsl:
variable n
ame="VarVa
lueNumberO
nly" selec
t="wwunits
:NumericPr
efix($VarM
arginRight
)" />
|
|
348 |
|
<xsl:
variable n
ame="VarVa
lueNumberO
nly" selec
t="wwunits
:NumericPr
efix($VarM
arginRight
)" />
|
340 |
|
<xsl:
variable n
ame="VarVa
lueUnitsOn
ly" select
="wwunits:
UnitsSuffi
x($VarMarg
inRight)"
/>
|
|
349 |
|
<xsl:
variable n
ame="VarVa
lueUnitsOn
ly" select
="wwunits:
UnitsSuffi
x($VarMarg
inRight)"
/>
|
341 |
|
<xsl:
variable n
ame="VarVa
lueAsTwips
" select="
wwunits:Co
nvert($Var
ValueNumbe
rOnly, $Va
rValueUnit
sOnly, 'tw
ips')" />
|
|
350 |
|
<xsl:
variable n
ame="VarVa
lueAsTwips
" select="
wwunits:Co
nvert($Var
ValueNumbe
rOnly, $Va
rValueUnit
sOnly, 'tw
ips')" />
|
342 |
|
<xsl:
text>\ri</
xsl:text><
xsl:value-
of select=
"round($Va
rValueAsTw
ips)"/>
|
|
351 |
|
<xsl:
text>\ri</
xsl:text><
xsl:value-
of select=
"round($Va
rValueAsTw
ips)"/>
|
343 |
|
</xsl:
if>
|
|
352 |
|
</xsl:
if>
|
344 |
|
|
|
353 |
|
|
345 |
|
<!-- A
dd Margin-
Bottom -->
|
|
354 |
|
<!-- A
dd Margin-
Bottom -->
|
346 |
|
<!--
-->
|
|
355 |
|
<!--
-->
|
347 |
|
<xsl:v
ariable na
me="VarMar
ginBottom"
select="$
VarResolve
dContextPr
operties[@
Name = 'ma
rgin-botto
m']/@Value
" />
|
|
356 |
|
<xsl:v
ariable na
me="VarMar
ginBottom"
select="$
VarResolve
dContextPr
operties[@
Name = 'ma
rgin-botto
m']/@Value
" />
|
348 |
|
<xsl:i
f test="st
ring-lengt
h($VarMarg
inBottom)
> 0">
|
|
357 |
|
<xsl:i
f test="st
ring-lengt
h($VarMarg
inBottom)
> 0">
|
349 |
|
<xsl:
variable n
ame="VarVa
lueNumberO
nly" selec
t="wwunits
:NumericPr
efix($VarM
arginBotto
m)" />
|
|
358 |
|
<xsl:
variable n
ame="VarVa
lueNumberO
nly" selec
t="wwunits
:NumericPr
efix($VarM
arginBotto
m)" />
|
350 |
|
<xsl:
variable n
ame="VarVa
lueUnitsOn
ly" select
="wwunits:
UnitsSuffi
x($VarMarg
inBottom)"
/>
|
|
359 |
|
<xsl:
variable n
ame="VarVa
lueUnitsOn
ly" select
="wwunits:
UnitsSuffi
x($VarMarg
inBottom)"
/>
|
351 |
|
<xsl:
variable n
ame="VarVa
lueAsTwips
" select="
wwunits:Co
nvert($Var
ValueNumbe
rOnly, $Va
rValueUnit
sOnly, 'tw
ips')" />
|
|
360 |
|
<xsl:
variable n
ame="VarVa
lueAsTwips
" select="
wwunits:Co
nvert($Var
ValueNumbe
rOnly, $Va
rValueUnit
sOnly, 'tw
ips')" />
|
352 |
|
<xsl:
text>\sa</
xsl:text><
xsl:value-
of select=
"round($Va
rValueAsTw
ips)"/>
|
|
361 |
|
<xsl:
text>\sa</
xsl:text><
xsl:value-
of select=
"round($Va
rValueAsTw
ips)"/>
|
353 |
|
</xsl:
if>
|
|
362 |
|
</xsl:
if>
|
354 |
|
|
|
363 |
|
|
355 |
|
<!-- A
dd Margin-
Top -->
|
|
364 |
|
<!-- A
dd Margin-
Top -->
|
356 |
|
<!--
-->
|
|
365 |
|
<!--
-->
|
357 |
|
<xsl:v
ariable na
me="VarMar
ginTop" se
lect="$Var
ResolvedCo
ntextPrope
rties[@Nam
e = 'margi
n-top']/@V
alue" />
|
|
366 |
|
<xsl:v
ariable na
me="VarMar
ginTop" se
lect="$Var
ResolvedCo
ntextPrope
rties[@Nam
e = 'margi
n-top']/@V
alue" />
|
358 |
|
<xsl:i
f test="st
ring-lengt
h($VarMarg
inTop) >
; 0">
|
|
367 |
|
<xsl:i
f test="st
ring-lengt
h($VarMarg
inTop) >
; 0">
|
359 |
|
<xsl:
variable n
ame="VarVa
lueNumberO
nly" selec
t="wwunits
:NumericPr
efix($VarM
arginTop)"
/>
|
|
368 |
|
<xsl:
variable n
ame="VarVa
lueNumberO
nly" selec
t="wwunits
:NumericPr
efix($VarM
arginTop)"
/>
|
360 |
|
<xsl:
variable n
ame="VarVa
lueUnitsOn
ly" select
="wwunits:
UnitsSuffi
x($VarMarg
inTop)" />
|
|
369 |
|
<xsl:
variable n
ame="VarVa
lueUnitsOn
ly" select
="wwunits:
UnitsSuffi
x($VarMarg
inTop)" />
|
361 |
|
<xsl:
variable n
ame="VarVa
lueAsTwips
" select="
wwunits:Co
nvert($Var
ValueNumbe
rOnly, $Va
rValueUnit
sOnly, 'tw
ips')" />
|
|
370 |
|
<xsl:
variable n
ame="VarVa
lueAsTwips
" select="
wwunits:Co
nvert($Var
ValueNumbe
rOnly, $Va
rValueUnit
sOnly, 'tw
ips')" />
|
362 |
|
<xsl:
text>\sb</
xsl:text><
xsl:value-
of select=
"round($Va
rValueAsTw
ips)"/>
|
|
371 |
|
<xsl:
text>\sb</
xsl:text><
xsl:value-
of select=
"round($Va
rValueAsTw
ips)"/>
|
363 |
|
</xsl:
if>
|
|
372 |
|
</xsl:
if>
|
364 |
|
|
|
373 |
|
|
365 |
|
<!-- S
kipping Li
ne Spacing
Stuff -->
|
|
374 |
|
<!-- S
kipping Li
ne Spacing
Stuff -->
|
366 |
|
|
|
375 |
|
|
367 |
|
<xsl:t
ext>
|
|
376 |
|
<xsl:t
ext>
|
368 |
|
</xsl:text
>
|
|
377 |
|
</xsl:text
>
|
369 |
|
</xsl:fo
r-each>
|
|
378 |
|
</xsl:fo
r-each>
|
370 |
|
</xsl:tem
plate>
|
|
379 |
|
</xsl:tem
plate>
|
371 |
|
|
|
380 |
|
|
372 |
|
|
|
381 |
|
|
373 |
|
<xsl:temp
late name=
"WinHelp-R
emapFontEn
tries">
|
|
382 |
|
<xsl:temp
late name=
"WinHelp-R
emapFontEn
tries">
|
374 |
|
<xsl:par
am name="P
aramFiles"
/>
|
|
383 |
|
<xsl:par
am name="P
aramFiles"
/>
|
375 |
|
<xsl:par
am name="P
aramMapEnt
rySets" />
|
|
384 |
|
<xsl:par
am name="P
aramMapEnt
rySets" />
|
376 |
|
<xsl:par
am name="P
aramDocume
ntID" />
|
|
385 |
|
<xsl:par
am name="P
aramDocume
ntID" />
|
377 |
|
<xsl:par
am name="P
aramRTFSty
lesType" /
>
|
|
386 |
|
<xsl:par
am name="P
aramRTFSty
lesType" /
>
|
378 |
|
<xsl:par
am name="P
aramFontFa
mily" />
|
|
387 |
|
<xsl:par
am name="P
aramFontFa
mily" />
|
379 |
|
|
|
388 |
|
|
380 |
|
<!-- Det
ermine fon
t number -
->
|
|
389 |
|
<!-- Det
ermine fon
t number -
->
|
381 |
|
<!--
-
->
|
|
390 |
|
<!--
-
->
|
382 |
|
<xsl:var
iable name
="VarFontN
umber">
|
|
391 |
|
<xsl:var
iable name
="VarFontN
umber">
|
383 |
|
<xsl:va
riable nam
e="VarFile
sPath" sel
ect="$Para
mFiles/wwf
iles:Files
/wwfiles:F
ile[(@docu
mentID = $
ParamDocum
entID) and
(@type =
$ParamRTFS
tylesType)
]/@path" /
>
|
|
392 |
|
<xsl:va
riable nam
e="VarFile
sPath" sel
ect="$Para
mFiles/wwf
iles:Files
/wwfiles:F
ile[(@docu
mentID = $
ParamDocum
entID) and
(@type =
$ParamRTFS
tylesType)
]/@path" /
>
|
384 |
|
<xsl:va
riable nam
e="VarRTFS
tyles" sel
ect="wwexs
ldoc:LoadX
MLWithoutR
esolver($V
arFilesPat
h)" />
|
|
393 |
|
<xsl:va
riable nam
e="VarRTFS
tyles" sel
ect="wwexs
ldoc:LoadX
MLWithoutR
esolver($V
arFilesPat
h)" />
|
385 |
|
|
|
394 |
|
|
386 |
|
<xsl:va
lue-of sel
ect="$VarR
TFStyles/w
wrtf:DocIn
fo/wwrtf:F
onts/wwrtf
:Font[@nam
e = $Param
FontFamily
]/@positio
n" />
|
|
395 |
|
<xsl:va
lue-of sel
ect="$VarR
TFStyles/w
wrtf:DocIn
fo/wwrtf:F
onts/wwrtf
:Font[@nam
e = $Param
FontFamily
]/@positio
n" />
|
387 |
|
</xsl:va
riable>
|
|
396 |
|
</xsl:va
riable>
|
388 |
|
|
|
397 |
|
|
389 |
|
<!-- Fon
t number f
ound? -->
|
|
398 |
|
<!-- Fon
t number f
ound? -->
|
390 |
|
<!--
-->
|
|
399 |
|
<!--
-->
|
391 |
|
<xsl:if
test="stri
ng-length(
$VarFontNu
mber) >
0">
|
|
400 |
|
<xsl:if
test="stri
ng-length(
$VarFontNu
mber) >
0">
|
392 |
|
<!-- Em
it updated
map entri
es -->
|
|
401 |
|
<!-- Em
it updated
map entri
es -->
|
393 |
|
<!--
-->
|
|
402 |
|
<!--
-->
|
394 |
|
<xsl:fo
r-each sel
ect="$Para
mMapEntryS
ets/wwexsl
doc:MapEnt
rySets/wwe
xsldoc:Map
EntrySet[@
name = $Pa
ramFontFam
ily]/wwexs
ldoc:MapEn
try">
|
|
403 |
|
<xsl:fo
r-each sel
ect="$Para
mMapEntryS
ets/wwexsl
doc:MapEnt
rySets/wwe
xsldoc:Map
EntrySet[@
name = $Pa
ramFontFam
ily]/wwexs
ldoc:MapEn
try">
|
395 |
|
<xsl:v
ariable na
me="VarMap
Entry" sel
ect="." />
|
|
404 |
|
<xsl:v
ariable na
me="VarMap
Entry" sel
ect="." />
|
396 |
|
|
|
405 |
|
|
397 |
|
<wwexs
ldoc:MapEn
try match=
"{$VarMapE
ntry/@matc
h}">{\f<xs
l:value-of
select="$
VarFontNum
ber" /><xs
l:text> </
xsl:text><
xsl:copy-o
f select="
$VarMapEnt
ry/* | $Va
rMapEntry/
text()" />
}</wwexsld
oc:MapEntr
y>
|
|
406 |
|
<wwexs
ldoc:MapEn
try match=
"{$VarMapE
ntry/@matc
h}">{\f<xs
l:value-of
select="$
VarFontNum
ber" /><xs
l:text> </
xsl:text><
xsl:copy-o
f select="
$VarMapEnt
ry/* | $Va
rMapEntry/
text()" />
}</wwexsld
oc:MapEntr
y>
|
398 |
|
</xsl:f
or-each>
|
|
407 |
|
</xsl:f
or-each>
|
399 |
|
</xsl:if
>
|
|
408 |
|
</xsl:if
>
|
400 |
|
</xsl:tem
plate>
|
|
409 |
|
</xsl:tem
plate>
|
401 |
|
|
|
410 |
|
|
402 |
|
|
|
411 |
|
|
403 |
|
<xsl:temp
late name=
"FontFamil
y">
|
|
412 |
|
<xsl:temp
late name=
"FontFamil
y">
|
404 |
|
<xsl:par
am name="P
aramFontFa
mily" />
|
|
413 |
|
<xsl:par
am name="P
aramFontFa
mily" />
|
405 |
|
|
|
414 |
|
|
406 |
|
<!-- Str
ip out mul
tiple font
family sp
ecificatio
ns -->
|
|
415 |
|
<!-- Str
ip out mul
tiple font
family sp
ecificatio
ns -->
|
407 |
|
<!--
-->
|
|
416 |
|
<!--
-->
|
408 |
|
<xsl:var
iable name
="VarSingl
eFontFamil
y">
|
|
417 |
|
<xsl:var
iable name
="VarSingl
eFontFamil
y">
|
409 |
|
<xsl:ch
oose>
|
|
418 |
|
<xsl:ch
oose>
|
410 |
|
<xsl:w
hen test="
contains($
ParamFontF
amily, ','
)">
|
|
419 |
|
<xsl:w
hen test="
contains($
ParamFontF
amily, ','
)">
|
411 |
|
<xsl:
value-of s
elect="sub
string-bef
ore($Param
FontFamily
, ',')" />
|
|
420 |
|
<xsl:
value-of s
elect="sub
string-bef
ore($Param
FontFamily
, ',')" />
|
412 |
|
</xsl:
when>
|
|
421 |
|
</xsl:
when>
|
413 |
|
|
|
422 |
|
|
414 |
|
<xsl:o
therwise>
|
|
423 |
|
<xsl:o
therwise>
|
415 |
|
<xsl:
value-of s
elect="$Pa
ramFontFam
ily" />
|
|
424 |
|
<xsl:
value-of s
elect="$Pa
ramFontFam
ily" />
|
416 |
|
</xsl:
otherwise>
|
|
425 |
|
</xsl:
otherwise>
|
417 |
|
</xsl:c
hoose>
|
|
426 |
|
</xsl:c
hoose>
|
418 |
|
</xsl:va
riable>
|
|
427 |
|
</xsl:va
riable>
|
419 |
|
|
|
428 |
|
|
420 |
|
<!-- Str
ip quotes
-->
|
|
429 |
|
<!-- Str
ip quotes
-->
|
421 |
|
<!--
-->
|
|
430 |
|
<!--
-->
|
422 |
|
<xsl:var
iable name
="VarQuote
s">
|
|
431 |
|
<xsl:var
iable name
="VarQuote
s">
|
423 |
|
<xsl:te
xt>"&
apos;</xsl
:text>
|
|
432 |
|
<xsl:te
xt>"&
apos;</xsl
:text>
|
424 |
|
</xsl:va
riable>
|
|
433 |
|
</xsl:va
riable>
|
425 |
|
<xsl:val
ue-of sele
ct="transl
ate($VarSi
ngleFontFa
mily, $Var
Quotes, ''
)" />
|
|
434 |
|
<xsl:val
ue-of sele
ct="transl
ate($VarSi
ngleFontFa
mily, $Var
Quotes, ''
)" />
|
426 |
|
</xsl:tem
plate>
|
|
435 |
|
</xsl:tem
plate>
|
427 |
|
|
|
436 |
|
|
428 |
|
|
|
437 |
|
|
429 |
|
<xsl:temp
late name=
"Character
AndParagra
phMarkup">
|
|
438 |
|
<xsl:temp
late name=
"Character
AndParagra
phMarkup">
|
430 |
|
<xsl:par
am name="P
aramRTFSty
les" />
|
|
439 |
|
<xsl:par
am name="P
aramRTFSty
les" />
|
431 |
|
<xsl:par
am name="P
aramProper
ties" />
|
|
440 |
|
<xsl:par
am name="P
aramProper
ties" />
|
432 |
|
|
|
441 |
|
|
433 |
|
<!-- Mak
e Bold? --
>
|
|
442 |
|
<!-- Mak
e Bold? --
>
|
434 |
|
<!--
--
>
|
|
443 |
|
<!--
--
>
|
435 |
|
<xsl:if
test="$Par
amProperti
es[@Name =
'font-wei
ght']/@Val
ue = 'bold
'">
|
|
444 |
|
<xsl:if
test="$Par
amProperti
es[@Name =
'font-wei
ght']/@Val
ue = 'bold
'">
|
436 |
|
<xsl:te
xt>\b</xsl
:text>
|
|
445 |
|
<xsl:te
xt>\b</xsl
:text>
|
437 |
|
</xsl:if
>
|
|
446 |
|
</xsl:if
>
|
438 |
|
|
|
447 |
|
|
439 |
|
<!-- Add
Color For
eground Nu
mber -->
|
|
448 |
|
<!-- Add
Color For
eground Nu
mber -->
|
440 |
|
<!--
-->
|
|
449 |
|
<!--
-->
|
441 |
|
<xsl:var
iable name
="VarColor
" select="
$ParamProp
erties[@Na
me = 'colo
r']/@Value
" />
|
|
450 |
|
<xsl:var
iable name
="VarColor
" select="
$ParamProp
erties[@Na
me = 'colo
r']/@Value
" />
|
442 |
|
<xsl:if
test="stri
ng-length(
$VarColor)
> 0">
|
|
451 |
|
<xsl:if
test="stri
ng-length(
$VarColor)
> 0">
|
443 |
|
<xsl:va
riable nam
e="VarColo
rNumber" s
elect="$Pa
ramRTFStyl
es/wwrtf:D
ocInfo/wwr
tf:Colors/
wwrtf:Colo
r[@name =
$VarColor]
/@position
" />
|
|
452 |
|
<xsl:va
riable nam
e="VarColo
rNumber" s
elect="$Pa
ramRTFStyl
es/wwrtf:D
ocInfo/wwr
tf:Colors/
wwrtf:Colo
r[@name =
$VarColor]
/@position
" />
|
444 |
|
|
|
453 |
|
|
445 |
|
<xsl:if
test="str
ing-length
($VarColor
Number) &g
t; 0">
|
|
454 |
|
<xsl:if
test="str
ing-length
($VarColor
Number) &g
t; 0">
|
446 |
|
<xsl:t
ext>\cf</x
sl:text><x
sl:value-o
f select="
$VarColorN
umber"/>
|
|
455 |
|
<xsl:t
ext>\cf</x
sl:text><x
sl:value-o
f select="
$VarColorN
umber"/>
|
447 |
|
</xsl:i
f>
|
|
456 |
|
</xsl:i
f>
|
448 |
|
</xsl:if
>
|
|
457 |
|
</xsl:if
>
|
449 |
|
|
|
458 |
|
|
450 |
|
<!-- Add
Color Bac
kground Nu
mber -->
|
|
459 |
|
<!-- Add
Color Bac
kground Nu
mber -->
|
451 |
|
<!--
-->
|
|
460 |
|
<!--
-->
|
452 |
|
<xsl:var
iable name
="VarBackg
roundColor
" select="
$ParamProp
erties[@Na
me = 'back
ground-col
or']/@Valu
e" />
|
|
461 |
|
<xsl:var
iable name
="VarBackg
roundColor
" select="
$ParamProp
erties[@Na
me = 'back
ground-col
or']/@Valu
e" />
|
453 |
|
<xsl:if
test="stri
ng-length(
$VarBackgr
oundColor)
> 0">
|
|
462 |
|
<xsl:if
test="stri
ng-length(
$VarBackgr
oundColor)
> 0">
|
454 |
|
<xsl:va
riable nam
e="VarColo
rNumber" s
elect="$Pa
ramRTFStyl
es/wwrtf:D
ocInfo/wwr
tf:Colors/
wwrtf:Colo
r[@name =
$VarBackgr
oundColor]
/@position
" />
|
|
463 |
|
<xsl:va
riable nam
e="VarColo
rNumber" s
elect="$Pa
ramRTFStyl
es/wwrtf:D
ocInfo/wwr
tf:Colors/
wwrtf:Colo
r[@name =
$VarBackgr
oundColor]
/@position
" />
|
455 |
|
|
|
464 |
|
|
456 |
|
<xsl:if
test="str
ing-length
($VarColor
Number) &g
t; 0">
|
|
465 |
|
<xsl:if
test="str
ing-length
($VarColor
Number) &g
t; 0">
|
457 |
|
<xsl:t
ext>\cb</x
sl:text><x
sl:value-o
f select="
$VarColorN
umber"/>
|
|
466 |
|
<xsl:t
ext>\cb</x
sl:text><x
sl:value-o
f select="
$VarColorN
umber"/>
|
458 |
|
</xsl:i
f>
|
|
467 |
|
</xsl:i
f>
|
459 |
|
</xsl:if
>
|
|
468 |
|
</xsl:if
>
|
460 |
|
|
|
469 |
|
|
461 |
|
<!-- Add
Font Numb
er -->
|
|
470 |
|
<!-- Add
Font Numb
er -->
|
462 |
|
<!--
-->
|
|
471 |
|
<!--
-->
|
463 |
|
<xsl:var
iable name
="VarFontF
amily">
|
|
472 |
|
<xsl:var
iable name
="VarFontF
amily">
|
464 |
|
<xsl:ca
ll-templat
e name="Fo
ntFamily">
|
|
473 |
|
<xsl:ca
ll-templat
e name="Fo
ntFamily">
|
465 |
|
<xsl:w
ith-param
name="Para
mFontFamil
y" select=
"$ParamPro
perties[@N
ame = 'fon
t-family']
/@Value" /
>
|
|
474 |
|
<xsl:w
ith-param
name="Para
mFontFamil
y" select=
"$ParamPro
perties[@N
ame = 'fon
t-family']
/@Value" /
>
|
466 |
|
</xsl:c
all-templa
te>
|
|
475 |
|
</xsl:c
all-templa
te>
|
467 |
|
</xsl:va
riable>
|
|
476 |
|
</xsl:va
riable>
|
468 |
|
<xsl:if
test="stri
ng-length(
$VarFontFa
mily) >
0">
|
|
477 |
|
<xsl:if
test="stri
ng-length(
$VarFontFa
mily) >
0">
|
469 |
|
<xsl:va
riable nam
e="VarFont
Number" se
lect="$Par
amRTFStyle
s/wwrtf:Do
cInfo/wwrt
f:Fonts/ww
rtf:Font[@
name = $Va
rFontFamil
y]/@positi
on" />
|
|
478 |
|
<xsl:va
riable nam
e="VarFont
Number" se
lect="$Par
amRTFStyle
s/wwrtf:Do
cInfo/wwrt
f:Fonts/ww
rtf:Font[@
name = $Va
rFontFamil
y]/@positi
on" />
|
470 |
|
|
|
479 |
|
|
471 |
|
<xsl:if
test="str
ing-length
($VarFontN
umber) >
; 0">
|
|
480 |
|
<xsl:if
test="str
ing-length
($VarFontN
umber) >
; 0">
|
472 |
|
<xsl:t
ext>\f</xs
l:text><xs
l:value-of
select="$
VarFontNum
ber"/>
|
|
481 |
|
<xsl:t
ext>\f</xs
l:text><xs
l:value-of
select="$
VarFontNum
ber"/>
|
473 |
|
</xsl:i
f>
|
|
482 |
|
</xsl:i
f>
|
474 |
|
</xsl:if
>
|
|
483 |
|
</xsl:if
>
|
475 |
|
|
|
484 |
|
|
476 |
|
<!-- Add
Font Size
-->
|
|
485 |
|
<!-- Add
Font Size
-->
|
477 |
|
<!--
-->
|
|
486 |
|
<!--
-->
|
478 |
|
<xsl:var
iable name
="VarFontS
ize" selec
t="$ParamP
roperties[
@Name = 'f
ont-size']
/@Value" /
>
|
|
487 |
|
<xsl:var
iable name
="VarFontS
ize" selec
t="$ParamP
roperties[
@Name = 'f
ont-size']
/@Value" /
>
|
479 |
|
<xsl:if
test="stri
ng-length(
$VarFontSi
ze) > 0
">
|
|
488 |
|
<xsl:if
test="stri
ng-length(
$VarFontSi
ze) > 0
">
|
480 |
|
<xsl:va
riable nam
e="VarValu
eNumberOnl
y" select=
"wwunits:N
umericPref
ix($VarFon
tSize)" />
|
|
489 |
|
<xsl:va
riable nam
e="VarValu
eNumberOnl
y" select=
"wwunits:N
umericPref
ix($VarFon
tSize)" />
|
481 |
|
<xsl:va
riable nam
e="VarValu
eUnitsOnly
" select="
wwunits:Un
itsSuffix(
$VarFontSi
ze)" />
|
|
490 |
|
<xsl:va
riable nam
e="VarValu
eUnitsOnly
" select="
wwunits:Un
itsSuffix(
$VarFontSi
ze)" />
|
482 |
|
<xsl:va
riable nam
e="VarValu
eAsHPts" s
elect="wwu
nits:Conve
rt($VarVal
ueNumberOn
ly, $VarVa
lueUnitsOn
ly, 'hpt')
" />
|
|
491 |
|
<xsl:va
riable nam
e="VarValu
eAsHPts" s
elect="wwu
nits:Conve
rt($VarVal
ueNumberOn
ly, $VarVa
lueUnitsOn
ly, 'hpt')
" />
|
483 |
|
<xsl:te
xt>\fs</xs
l:text><xs
l:value-of
select="c
eiling($Va
rValueAsHP
ts)"/>
|
|
492 |
|
<xsl:te
xt>\fs</xs
l:text><xs
l:value-of
select="c
eiling($Va
rValueAsHP
ts)"/>
|
484 |
|
</xsl:if
>
|
|
493 |
|
</xsl:if
>
|
485 |
|
|
|
494 |
|
|
486 |
|
<!-- Mak
e Italic?
-->
|
|
495 |
|
<!-- Mak
e Italic?
-->
|
487 |
|
<!--
-->
|
|
496 |
|
<!--
-->
|
488 |
|
<xsl:if
test="$Par
amProperti
es[@Name =
'font-sty
le']/@Valu
e = 'itali
c'">
|
|
497 |
|
<xsl:if
test="$Par
amProperti
es[@Name =
'font-sty
le']/@Valu
e = 'itali
c'">
|
489 |
|
<xsl:te
xt>\i</xsl
:text>
|
|
498 |
|
<xsl:te
xt>\i</xsl
:text>
|
490 |
|
</xsl:if
>
|
|
499 |
|
</xsl:if
>
|
491 |
|
|
|
500 |
|
|
492 |
|
<!-- Mak
e small-ca
ps? -->
|
|
501 |
|
<!-- Mak
e small-ca
ps? -->
|
493 |
|
<!--
-->
|
|
502 |
|
<!--
-->
|
494 |
|
<xsl:if
test="$Par
amProperti
es[@Name =
'font-var
iant']/@Va
lue = 'sma
ll-caps'">
|
|
503 |
|
<xsl:if
test="$Par
amProperti
es[@Name =
'font-var
iant']/@Va
lue = 'sma
ll-caps'">
|
495 |
|
<xsl:te
xt>\scaps<
/xsl:text>
|
|
504 |
|
<xsl:te
xt>\scaps<
/xsl:text>
|
496 |
|
</xsl:if
>
|
|
505 |
|
</xsl:if
>
|
497 |
|
|
|
506 |
|
|
498 |
|
<!-- Mak
e line thr
ough? -->
|
|
507 |
|
<!-- Mak
e line thr
ough? -->
|
499 |
|
<!--
-->
|
|
508 |
|
<!--
-->
|
500 |
|
<xsl:if
test="$Par
amProperti
es[@Name =
'text-dec
oration-li
ne-through
']/@Value
= 'single'
">
|
|
509 |
|
<xsl:if
test="$Par
amProperti
es[@Name =
'text-dec
oration-li
ne-through
']/@Value
= 'single'
">
|
501 |
|
<xsl:te
xt>\strike
</xsl:text
>
|
|
510 |
|
<xsl:te
xt>\strike
</xsl:text
>
|
502 |
|
</xsl:if
>
|
|
511 |
|
</xsl:if
>
|
503 |
|
|
|
512 |
|
|
504 |
|
<!-- Mak
e single u
nderline?
-->
|
|
513 |
|
<!-- Mak
e single u
nderline?
-->
|
505 |
|
<!--
-->
|
|
514 |
|
<!--
-->
|
506 |
|
<xsl:if
test="$Par
amProperti
es[@Name =
'text-dec
oration-un
derline']/
@Value = '
single'">
|
|
515 |
|
<xsl:if
test="$Par
amProperti
es[@Name =
'text-dec
oration-un
derline']/
@Value = '
single'">
|
507 |
|
<xsl:te
xt>\ul</xs
l:text>
|
|
516 |
|
<xsl:te
xt>\ul</xs
l:text>
|
508 |
|
</xsl:if
>
|
|
517 |
|
</xsl:if
>
|
509 |
|
|
|
518 |
|
|
510 |
|
<!-- Mak
e double u
nderline?
-->
|
|
519 |
|
<!-- Mak
e double u
nderline?
-->
|
511 |
|
<!--
-->
|
|
520 |
|
<!--
-->
|
512 |
|
<xsl:if
test="$Par
amProperti
es[@Name =
'text-dec
oration-un
derline']/
@Value = '
double'">
|
|
521 |
|
<xsl:if
test="$Par
amProperti
es[@Name =
'text-dec
oration-un
derline']/
@Value = '
double'">
|
513 |
|
<xsl:te
xt>\uldb</
xsl:text>
|
|
522 |
|
<xsl:te
xt>\uldb</
xsl:text>
|
514 |
|
</xsl:if
>
|
|
523 |
|
</xsl:if
>
|
515 |
|
|
|
524 |
|
|
516 |
|
</xsl:tem
plate>
|
|
525 |
|
</xsl:tem
plate>
|
517 |
|
|
|
526 |
|
|
518 |
|
<xsl:temp
late name=
"Paragraph
Footer">
|
|
527 |
|
<xsl:temp
late name=
"Paragraph
Footer">
|
519 |
|
<xsl:par
am name="P
aramParagr
aph" />
|
|
528 |
|
<xsl:par
am name="P
aramParagr
aph" />
|
520 |
|
|
|
529 |
|
|
521 |
|
<xsl:text>
|
|
530 |
|
<!-- Emi
t paragrap
h terminat
or -->
|
|
|
|
|
531 |
|
<!--
-->
|
|
|
|
|
532 |
|
<xsl:var
iable name
="VarEmitT
erminatorA
sText">
|
|
|
|
|
533 |
|
<xsl:ch
oose>
|
|
|
|
|
534 |
|
<!-- C
ell bounda
ry will se
rve as par
agraph ter
miniator -
->
|
|
|
|
|
535 |
|
<!--
-
->
|
|
|
|
|
536 |
|
<xsl:w
hen test="
($ParamPar
agraph/par
ent::wwdoc
:TableCell
) and (cou
nt($ParamP
aragraph |
$ParamPar
agraph/par
ent::wwdoc
:TableCell
/wwdoc:*[l
ast()]) =
1)">
|
|
|
|
|
537 |
|
<xsl:
value-of s
elect="fal
se()" />
|
|
|
|
|
538 |
|
</xsl:
when>
|
|
|
|
|
539 |
|
|
|
|
|
|
540 |
|
<!-- N
eed paragr
aph termin
ator -->
|
|
|
|
|
541 |
|
<!--
-->
|
|
|
|
|
542 |
|
<xsl:o
therwise>
|
|
|
|
|
543 |
|
<xsl:
value-of s
elect="tru
e()" />
|
|
|
|
|
544 |
|
</xsl:
otherwise>
|
|
|
|
|
545 |
|
</xsl:c
hoose>
|
|
|
|
|
546 |
|
</xsl:va
riable>
|
|
|
|
|
547 |
|
<xsl:var
iable name
="VarEmitT
erminator"
select="$
VarEmitTer
minatorAsT
ext = stri
ng(true())
" />
|
|
|
|
|
548 |
|
|
|
|
|
|
549 |
|
<!-- Emi
t? -->
|
|
|
|
|
550 |
|
<!--
-->
|
|
|
|
|
551 |
|
<xsl:if
test="$Var
EmitTermin
ator">
|
|
|
|
|
552 |
|
<!-- Re
gular para
graph term
inator or
in cell ve
rsion? -->
|
|
|
|
|
553 |
|
<!--
-->
|
|
|
|
|
554 |
|
<xsl:ch
oose>
|
|
|
|
|
555 |
|
<!-- I
n cell par
agraph ter
minator --
>
|
|
|
|
|
556 |
|
<!--
--
>
|
|
|
|
|
557 |
|
<xsl:w
hen test="
$ParamPara
graph/pare
nt::wwdoc:
TableCell"
>
|
|
|
|
|
558 |
|
<xsl:
text>
|
|
|
|
|
559 |
|
\pard
|
|
|
|
|
560 |
|
</xsl:text
>
|
|
|
|
|
561 |
|
</xsl:
when>
|
|
|
|
|
562 |
|
|
|
|
|
|
563 |
|
<!-- S
tandard pa
ragraph te
rminator -
->
|
|
|
|
|
564 |
|
<!--
-
->
|
|
|
|
|
565 |
|
<xsl:o
therwise>
|
|
|
|
|
566 |
|
<xsl:text>
|
522 |
|
\par
|
|
567 |
|
\par
|
523 |
|
</xsl:text
>
|
|
568 |
|
</xsl:text
>
|
|
|
|
|
569 |
|
</xsl:
otherwise>
|
|
|
|
|
570 |
|
</xsl:c
hoose>
|
|
|
|
|
571 |
|
</xsl:if
>
|
524 |
|
</xsl:tem
plate>
|
|
572 |
|
</xsl:tem
plate>
|
525 |
|
|
|
573 |
|
|
526 |
|
<xsl:temp
late name=
"ColumnTot
alWidth">
|
|
574 |
|
<xsl:temp
late name=
"ColumnTot
alWidth">
|
527 |
|
<xsl:par
am name="P
aramColumn
" />
|
|
575 |
|
<xsl:par
am name="P
aramColumn
" />
|
528 |
|
|
|
576 |
|
|
529 |
|
<xsl:cho
ose>
|
|
577 |
|
<xsl:cho
ose>
|
530 |
|
<xsl:wh
en test="c
ount($Para
mColumn) =
1">
|
|
578 |
|
<xsl:wh
en test="c
ount($Para
mColumn) =
1">
|
531 |
|
<xsl:v
ariable na
me="VarTot
alWidth">
|
|
579 |
|
<xsl:v
ariable na
me="VarTot
alWidth">
|
532 |
|
<xsl:
call-templ
ate name="
ColumnTota
lWidth">
|
|
580 |
|
<xsl:
call-templ
ate name="
ColumnTota
lWidth">
|
533 |
|
<xsl
:with-para
m name="Pa
ramColumn"
select="$
ParamColum
n/precedin
g-sibling:
:*[1]" />
|
|
581 |
|
<xsl
:with-para
m name="Pa
ramColumn"
select="$
ParamColum
n/precedin
g-sibling:
:*[1]" />
|
534 |
|
</xsl
:call-temp
late>
|
|
582 |
|
</xsl
:call-temp
late>
|
535 |
|
</xsl:
variable>
|
|
583 |
|
</xsl:
variable>
|
536 |
|
|
|
584 |
|
|
537 |
|
<xsl:v
ariable na
me="VarWid
thNumberOn
ly" select
="wwunits:
NumericPre
fix($Param
Column/@wi
dth)" />
|
|
585 |
|
<xsl:v
ariable na
me="VarWid
thNumberOn
ly" select
="wwunits:
NumericPre
fix($Param
Column/@wi
dth)" />
|
538 |
|
<xsl:v
ariable na
me="VarTot
alWidthNum
berOnly" s
elect="wwu
nits:Numer
icPrefix($
VarTotalWi
dth)" />
|
|
586 |
|
<xsl:v
ariable na
me="VarTot
alWidthNum
berOnly" s
elect="wwu
nits:Numer
icPrefix($
VarTotalWi
dth)" />
|
539 |
|
<xsl:v
alue-of se
lect="$Var
WidthNumbe
rOnly + $V
arTotalWid
thNumberOn
ly" />
|
|
587 |
|
<xsl:v
alue-of se
lect="$Var
WidthNumbe
rOnly + $V
arTotalWid
thNumberOn
ly" />
|
540 |
|
</xsl:w
hen>
|
|
588 |
|
</xsl:w
hen>
|
541 |
|
|
|
589 |
|
|
542 |
|
<xsl:ot
herwise>
|
|
590 |
|
<xsl:ot
herwise>
|
543 |
|
<xsl:v
alue-of se
lect="0" /
>
|
|
591 |
|
<xsl:v
alue-of se
lect="0" /
>
|
544 |
|
</xsl:o
therwise>
|
|
592 |
|
</xsl:o
therwise>
|
545 |
|
</xsl:ch
oose>
|
|
593 |
|
</xsl:ch
oose>
|
546 |
|
</xsl:tem
plate>
|
|
594 |
|
</xsl:tem
plate>
|
547 |
|
|
|
595 |
|
|
548 |
|
<xsl:temp
late name=
"TableHead
er">
|
|
596 |
|
<xsl:temp
late name=
"TableHead
er">
|
549 |
|
<xsl:par
am name="P
aramTable"
/>
|
|
597 |
|
<xsl:par
am name="P
aramTable"
/>
|
550 |
|
|
|
598 |
|
|
551 |
|
<xsl:tex
t>
|
|
599 |
|
<xsl:tex
t>
|
|
|
|
|
600 |
|
{
|
552 |
|
</xsl:text
>
|
|
601 |
|
</xsl:text
>
|
|
|
|
|
602 |
|
</xsl:tem
plate>
|
553 |
|
|
|
603 |
|
|
554 |
|
<xsl:for
-each sele
ct="$Param
Table/wwdo
c:TableCol
umns/wwdoc
:TableColu
mn">
|
|
604 |
|
<xsl:
template n
ame="
T
a
b
l
eRowHea
d
er
">
|
555 |
|
<xsl:va
riable nam
e="VarColu
mn" select
="." />
|
|
605 |
|
<xsl:
param name
="Param
T
a
b
l
e
" />
|
556 |
|
|
|
606 |
|
<
xsl:
p
ar
am name="P
aramT
able
Row" /
>
|
557 |
|
<xsl:va
riable nam
e="VarColu
mnXCoord">
|
|
|
|
|
558 |
|
<xsl:
call-
template n
ame="
Column
T
ot
a
l
Wi
d
th
">
|
|
|
|
|
559 |
|
<xsl:
with-
param name
="Param
Column" se
lect="$V
a
rCo
l
umn
" />
|
|
|
|
|
560 |
|
</xsl:
call-templ
ate>
|
|
|
|
|
561 |
|
<
/
xsl:
v
ar
i
able
>
|
|
|
|
|
562 |
|
<xsl:va
riable nam
e="VarValu
eAsTwips"
select="ww
units:Conv
ert($VarCo
lumnXCoord
, 'points'
, 'twips')
" />
|
|
|
|
|
563 |
|
<xsl:te
xt>\cellx<
/xsl:text>
<xsl:value
-of select
="round($V
arValueAsT
wips)"/>
|
|
|
|
|
564 |
|
</xsl:fo
r-each>
|
|
|
|
|
565 |
|
|
|
607 |
|
|
|
|
|
|
608 |
|
<!-- Row
declarati
on -->
|
|
|
|
|
609 |
|
<!--
-->
|
566 |
|
<xsl:tex
t>
|
|
610 |
|
<xsl:tex
t>
|
|
|
|
|
611 |
|
\intbl
|
|
|
|
|
612 |
|
\trowd\trg
aph108\trl
eft-108
|
567 |
|
</xsl:text
>
|
|
613 |
|
</xsl:text
>
|
|
|
|
|
614 |
|
|
|
|
|
|
615 |
|
<!-- Emi
t cell wid
ths -->
|
|
|
|
|
616 |
|
<!--
-->
|
|
|
|
|
617 |
|
<xsl:for
-each sele
ct="$Param
TableRow/w
wdoc:Table
Cell[1]">
|
|
|
|
|
618 |
|
<xsl:va
riable nam
e="VarFirs
tTableCell
" select="
." />
|
|
|
|
|
619 |
|
|
|
|
|
|
620 |
|
<xsl:ca
ll-templat
e name="Ta
bleRowHead
erCellBoun
daries">
|
|
|
|
|
621 |
|
<xsl:w
ith-param
name="Para
mTable" se
lect="$Par
amTable" /
>
|
|
|
|
|
622 |
|
<xsl:w
ith-param
name="Para
mTableCell
" select="
$VarFirstT
ableCell"
/>
|
|
|
|
|
623 |
|
<xsl:w
ith-param
name="Para
mColumnInd
ex" select
="1" />
|
|
|
|
|
624 |
|
</xsl:c
all-templa
te>
|
|
|
|
|
625 |
|
</xsl:fo
r-each>
|
568 |
|
</xsl:tem
plate>
|
|
626 |
|
</xsl:tem
plate>
|
569 |
|
|
|
627 |
|
|
570 |
|
<xsl:temp
late name=
"TableRowH
eader
">
|
|
628 |
|
<xsl:temp
late name=
"TableRowH
eader
CellBounda
ries
">
|
571 |
|
<
xsl:
t
e
xt
>
|
|
629 |
|
<xsl:par
am name="P
aramTable"
/>
|
572 |
|
\intbl
</xsl:
t
e
xt
>
|
|
630 |
|
<xsl:par
am name="P
aramTableC
ell" />
|
|
|
|
|
631 |
|
<xsl:par
am name="P
aramColumn
Index" />
|
|
|
|
|
632 |
|
|
|
|
|
|
633 |
|
<!-- Det
ermine col
umn span -
->
|
|
|
|
|
634 |
|
<!--
-
->
|
|
|
|
|
635 |
|
<xsl:var
iable name
="VarColum
nSpanValue
" select="
$ParamTabl
eCell/wwdo
c:Style/ww
doc:Attrib
ute[@name
= 'column-
span']/@va
lue" />
|
|
|
|
|
636 |
|
<xsl:var
iable name
="VarColum
nSpan">
|
|
|
|
|
637 |
|
<xsl:ch
oose>
|
|
|
|
|
638 |
|
<xsl:w
hen test="
string-len
gth($VarCo
lumnSpanVa
lue) >
0">
|
|
|
|
|
639 |
|
<xsl:
value-of s
elect="$Va
rColumnSpa
nValue" />
|
|
|
|
|
640 |
|
</xsl:
when>
|
|
|
|
|
641 |
|
|
|
|
|
|
642 |
|
<xsl:o
therwise>
|
|
|
|
|
643 |
|
<xsl:
value-of s
elect="1"
/>
|
|
|
|
|
644 |
|
</xsl:
otherwise>
|
|
|
|
|
645 |
|
</xsl:c
hoose>
|
|
|
|
|
646 |
|
</xsl:va
riable>
|
|
|
|
|
647 |
|
|
|
|
|
|
648 |
|
<!-- Det
ermine cel
l width --
>
|
|
|
|
|
649 |
|
<!--
--
>
|
|
|
|
|
650 |
|
<xsl:var
iable name
="VarCellB
oundary">
|
|
|
|
|
651 |
|
<xsl:ca
ll-templat
e name="Ta
bleRowHead
erCellBoun
dary">
|
|
|
|
|
652 |
|
<xsl:w
ith-param
name="Para
mTableColu
mn" select
="$ParamTa
ble/wwdoc:
TableColum
ns/wwdoc:T
ableColumn
[1]" />
|
|
|
|
|
653 |
|
<xsl:w
ith-param
name="Para
mTableColu
mnIndex" s
elect="1"
/>
|
|
|
|
|
654 |
|
<xsl:w
ith-param
name="Para
mTableColu
mnEndIndex
" select="
$ParamColu
mnIndex +
$VarColumn
Span - 1"
/>
|
|
|
|
|
655 |
|
<xsl:w
ith-param
name="Para
mAccumulat
edBoundary
" select="
0" />
|
|
|
|
|
656 |
|
</xsl:c
all-templa
te>
|
|
|
|
|
657 |
|
</xsl:va
riable>
|
|
|
|
|
658 |
|
<xsl:var
iable name
="VarValue
AsTwips" s
elect="wwu
nits:Conve
rt($VarCel
lBoundary,
'points',
'twips')"
/>
|
|
|
|
|
659 |
|
<xsl:tex
t>\cellx</
xsl:text><
xsl:value-
of select=
"round($Va
rValueAsTw
ips)"/>
|
|
|
|
|
660 |
|
|
|
|
|
|
661 |
|
<!-- Emi
t remainin
g cell wid
ths -->
|
|
|
|
|
662 |
|
<!--
-->
|
|
|
|
|
663 |
|
<xsl:for
-each sele
ct="$Param
TableCell/
following-
sibling::w
wdoc:Table
Cell[1]">
|
|
|
|
|
664 |
|
<xsl:va
riable nam
e="VarFoll
owingTable
Cell" sele
ct="." />
|
|
|
|
|
665 |
|
|
|
|
|
|
666 |
|
<xsl:ca
ll-templat
e name="Ta
bleRowHead
erCellBoun
daries">
|
|
|
|
|
667 |
|
<xsl:w
ith-param
name="Para
mTable" se
lect="$Par
amTable" /
>
|
|
|
|
|
668 |
|
<xsl:w
ith-param
name="Para
mTableCell
" select="
$VarFollow
ingTableCe
ll" />
|
|
|
|
|
669 |
|
<xsl:w
ith-param
name="Para
mColumnInd
ex" select
="$ParamCo
lumnIndex
+ $VarColu
mnSpan" />
|
|
|
|
|
670 |
|
</xsl:c
all-templa
te>
|
|
|
|
|
671 |
|
</xsl:fo
r-each>
|
|
|
|
|
672 |
|
</xsl:tem
plate>
|
|
|
|
|
673 |
|
|
|
|
|
|
674 |
|
<xsl:temp
late name=
"TableRowH
eaderCellB
oundary">
|
|
|
|
|
675 |
|
<xsl:par
am name="P
aramTableC
olumn" />
|
|
|
|
|
676 |
|
<xsl:par
am name="P
aramTableC
olumnIndex
" />
|
|
|
|
|
677 |
|
<xsl:par
am name="P
aramTableC
olumnEndIn
dex" />
|
|
|
|
|
678 |
|
<xsl:par
am name="P
aramAccumu
latedBound
ary" />
|
|
|
|
|
679 |
|
|
|
|
|
|
680 |
|
<!-- Wit
hin range?
-->
|
|
|
|
|
681 |
|
<!--
-->
|
|
|
|
|
682 |
|
<xsl:cho
ose>
|
|
|
|
|
683 |
|
<!-- Up
date width
-->
|
|
|
|
|
684 |
|
<!--
-->
|
|
|
|
|
685 |
|
<xsl:wh
en test="$
ParamTable
ColumnInde
x <= $P
aramTableC
olumnEndIn
dex">
|
|
|
|
|
686 |
|
<xsl:v
ariable na
me="VarCol
umnWidthAs
Points" se
lect="$Par
amTableCol
umn/@width
" />
|
|
|
|
|
687 |
|
<xsl:v
ariable na
me="VarCol
umnWidthAs
PointsNume
ricPrefix"
select="w
wunits:Num
ericPrefix
($VarColum
nWidthAsPo
ints)" />
|
|
|
|
|
688 |
|
<xsl:v
ariable na
me="VarUpd
atedAccumu
latedBound
ary" selec
t="$ParamA
ccumulated
Boundary +
$VarColum
nWidthAsPo
intsNumeri
cPrefix" /
>
|
|
|
|
|
689 |
|
|
|
|
|
|
690 |
|
<xsl:c
all-templa
te name="T
ableRowHea
derCellBou
ndary">
|
|
|
|
|
691 |
|
<xsl:
with-param
name="Par
amTableCol
umn" selec
t="$ParamT
ableColumn
/following
-sibling::
wwdoc:Tabl
eColumn[1]
" />
|
|
|
|
|
692 |
|
<xsl:
with-param
name="Par
amTableCol
umnIndex"
select="$P
aramTableC
olumnIndex
+ 1" />
|
|
|
|
|
693 |
|
<xsl:
with-param
name="Par
amTableCol
umnEndInde
x" select=
"$ParamTab
leColumnEn
dIndex" />
|
|
|
|
|
694 |
|
<xsl:
with-param
name="Par
amAccumula
tedBoundar
y" select=
"$VarUpdat
edAccumula
tedBoundar
y" />
|
|
|
|
|
695 |
|
</xsl:
call-templ
ate>
|
|
|
|
|
696 |
|
</xsl:w
hen>
|
|
|
|
|
697 |
|
|
|
|
|
|
698 |
|
<!-- Do
ne! -->
|
|
|
|
|
699 |
|
<!--
-->
|
|
|
|
|
700 |
|
<xsl:ot
herwise>
|
|
|
|
|
701 |
|
<xsl:v
alue-of se
lect="$Par
amAccumula
tedBoundar
y" />
|
|
|
|
|
702 |
|
<
/
xsl:
o
t
herwis
e
>
|
|
|
|
|
703 |
|
</xsl:
choos
e
>
|
573 |
|
</xsl:tem
plate>
|
|
704 |
|
</xsl:tem
plate>
|
574 |
|
|
|
705 |
|
|
575 |
|
<xsl:temp
late name=
"TableCell
Footer">
|
|
706 |
|
<xsl:temp
late name=
"TableCell
Footer">
|
576 |
|
<xsl:tex
t>\cell
|
|
707 |
|
<xsl:tex
t>\cell
|
577 |
|
</xsl:text
>
|
|
708 |
|
</xsl:text
>
|
578 |
|
</xsl:tem
plate>
|
|
709 |
|
</xsl:tem
plate>
|
579 |
|
|
|
710 |
|
|
580 |
|
<xsl:temp
late name=
"TableRowF
ooter">
|
|
711 |
|
<xsl:temp
late name=
"TableRowF
ooter">
|
581 |
|
<xsl:
text>\row
|
|
712 |
|
<xsl:
text>\row
|
582 |
|
</xsl:text
>
|
|
713 |
|
</xsl:text
>
|
583 |
|
</xsl:tem
plate>
|
|
714 |
|
</xsl:tem
plate>
|
584 |
|
|
|
715 |
|
|
585 |
|
<xsl:temp
late name=
"TableFoot
er">
|
|
716 |
|
<xsl:temp
late name=
"TableFoot
er">
|
586 |
|
<xsl:tex
t>
\pard
|
|
717 |
|
<xsl:tex
t>
}
|
|
|
|
|
718 |
|
{\par}
|
587 |
|
</xsl:text
>
|
|
719 |
|
</xsl:text
>
|
588 |
|
</xsl:tem
plate>
|
|
720 |
|
</xsl:tem
plate>
|
589 |
|
|
|
721 |
|
|
590 |
|
<xsl:temp
late name=
"Hyperlink
Header">
|
|
722 |
|
<xsl:temp
late name=
"Hyperlink
Header">
|
591 |
|
<xsl:tex
t>{\strike
</xsl:tex
t>
|
|
723 |
|
<xsl:tex
t>{\strike
</xsl:tex
t>
|
592 |
|
</xsl:tem
plate>
|
|
724 |
|
</xsl:tem
plate>
|
593 |
|
|
|
725 |
|
|
594 |
|
<xsl:temp
late name=
"Hyperlink
Footer">
|
|
726 |
|
<xsl:temp
late name=
"Hyperlink
Footer">
|
595 |
|
<xsl:par
am name="P
aramLink"
/>
|
|
727 |
|
<xsl:par
am name="P
aramLink"
/>
|
596 |
|
|
|
728 |
|
|
597 |
|
<xsl:tex
t>}{\v </x
sl:text>
|
|
729 |
|
<xsl:tex
t>}{\v </x
sl:text>
|
598 |
|
<xsl:val
ue-of sele
ct="$Param
Link"/>
|
|
730 |
|
<xsl:val
ue-of sele
ct="$Param
Link"/>
|
599 |
|
<xsl:tex
t>}</xsl:t
ext>
|
|
731 |
|
<xsl:tex
t>}</xsl:t
ext>
|
600 |
|
</xsl:tem
plate>
|
|
732 |
|
</xsl:tem
plate>
|
601 |
|
|
|
733 |
|
|
602 |
|
<xsl:temp
late name=
"URLHeader
">
|
|
734 |
|
<xsl:temp
late name=
"URLHeader
">
|
603 |
|
<xsl:tex
t>*!EF(`</
xsl:text>
|
|
735 |
|
<xsl:tex
t>*!EF(`</
xsl:text>
|
604 |
|
</xsl:tem
plate>
|
|
736 |
|
</xsl:tem
plate>
|
605 |
|
|
|
737 |
|
|
606 |
|
<xsl:temp
late name=
"URLFooter
">
|
|
738 |
|
<xsl:temp
late name=
"URLFooter
">
|
607 |
|
<xsl:tex
t>',`',1,`
');</xsl:t
ext>
|
|
739 |
|
<xsl:tex
t>',`',1,`
');</xsl:t
ext>
|
608 |
|
</xsl:tem
plate>
|
|
740 |
|
</xsl:tem
plate>
|
609 |
|
|
|
741 |
|
|
610 |
|
<xsl:temp
late name=
"LineBreak
">
|
|
742 |
|
<xsl:temp
late name=
"LineBreak
">
|
611 |
|
<xsl:tex
t>\line
|
|
743 |
|
<xsl:tex
t>\line
|
612 |
|
</xsl:text
>
|
|
744 |
|
</xsl:text
>
|
613 |
|
</xsl:tem
plate>
|
|
745 |
|
</xsl:tem
plate>
|
614 |
|
|
|
746 |
|
|
615 |
|
<xsl:temp
late name=
"ImageEmit
">
|
|
747 |
|
<xsl:temp
late name=
"ImageEmit
">
|
616 |
|
<xsl:par
am name="P
aramPath"
/>
|
|
748 |
|
<xsl:par
am name="P
aramPath"
/>
|
617 |
|
|
|
749 |
|
|
618 |
|
<xsl:tex
t>\{bmc </
xsl:text><
xsl:value-
of select=
"wwstring:
Replace(ww
string:Rep
lace($Para
mPath, '%2
0', ' '),
'/', '\\')
"/><xsl:te
xt>\}</xsl
:text>
|
|
750 |
|
<xsl:tex
t>\{bmc </
xsl:text><
xsl:value-
of select=
"wwstring:
Replace(ww
string:Rep
lace($Para
mPath, '%2
0', ' '),
'/', '\\')
"/><xsl:te
xt>\}</xsl
:text>
|
619 |
|
</xsl:tem
plate>
|
|
751 |
|
</xsl:tem
plate>
|
620 |
|
</xsl:styl
esheet>
|
|
752 |
|
</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.