Produced by Araxis Merge on Thu Oct 16 22:30:09 2008 UTC. See www.araxis.com for information about Merge. This report uses XHTML and CSS2, and is best viewed with a reasonably standards compliant browser such as the latest version of Firefox or Internet Explorer. For optimum results when printing this report, use landscape orientation and enable printing of background images and colours in your browser.
# | Location | File | Last Modified |
---|---|---|---|
1 | C:\Documents and Settings\lauren\Desktop\ww-version-snapshots\ww-version-snapshots\2008.2\WebWorks\ePublisher Pro\Formats\WinHelp\Transforms | winhelp_rtf.xsl | Fri Jun 27 18:05:58 2008 UTC |
2 | C:\Documents and Settings\lauren\Desktop\ww-version-snapshots\ww-version-snapshots\2008.3\WebWorks\ePublisher Pro\Formats\WinHelp\Transforms | winhelp_rtf.xsl | Mon Oct 13 05:51:50 2008 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 3 | 1472 |
Changed | 0 | 0 |
Inserted | 2 | 16 |
Removed | 0 | 0 |
Whitespace | All differences in whitespace within lines are ignored |
---|---|
Character case | Differences in character case are significant |
Line endings | Differences in line endings (CR and LF characters) are ignored |
CR/LF characters | Not shown in the comparison detail |
No regular expressions were active.
1 | <?xml vers ion="1.0" encoding=" UTF-8"?> | 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</xsl :text> | 212 | <xsl:t ext>\pard\ plain</xsl :text> | |||
213 | <xsl:c hoose> | 213 | <xsl:c hoose> | |||
214 | <xsl: when test= "$ParamPar agraph/par ent::wwdoc :TableCell "> | 214 | <xsl: when test= "$ParamPar agraph/par ent::wwdoc :TableCell "> | |||
215 | <xsl :text>\now idctlpar\i ntbl</xsl: text> | 215 | <xsl :text>\now idctlpar\i ntbl</xsl: text> | |||
216 | </xsl :when> | 216 | </xsl :when> | |||
217 | 217 | |||||
218 | <xsl: otherwise> | 218 | <xsl: otherwise> | |||
219 | <xsl :text>\wid ctlpar</xs l:text> | 219 | <xsl :text>\wid ctlpar</xs l:text> | |||
220 | </xsl :otherwise > | 220 | </xsl :otherwise > | |||
221 | </xsl: choose> | 221 | </xsl: choose> | |||
222 | 222 | |||||
223 | <!-- M ake part o f non-scro lling regi on? --> | 223 | <!-- M ake part o f non-scro lling regi on? --> | |||
224 | <!-- --> | 224 | <!-- --> | |||
225 | <xsl:i f test="$P aramSplit/ @id = $Par amParagrap h/@id" > | 225 | <xsl:i f test="$P aramSplit/ @id = $Par amParagrap h/@id" > | |||
226 | <xsl: text>\keep n</xsl:tex t> | 226 | <xsl: text>\keep n</xsl:tex t> | |||
227 | </xsl: if> | 227 | </xsl: if> | |||
228 | 228 | |||||
229 | <xsl:c all-templa te name="C haracterAn dParagraph Markup"> | 229 | <xsl:c all-templa te name="C haracterAn dParagraph Markup"> | |||
230 | <xsl: with-param name="Par amRTFStyle s" select= "$VarRTFSt yles" /> | 230 | <xsl: with-param name="Par amRTFStyle s" select= "$VarRTFSt yles" /> | |||
231 | <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" /> | |||
232 | </xsl: call-templ ate> | 232 | </xsl: call-templ ate> | |||
233 | 233 | |||||
234 | <!-- B orders --> | 234 | <!-- B orders --> | |||
235 | <!-- --> | 235 | <!-- --> | |||
236 | <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" /> | |||
237 | <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" /> | |||
238 | <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" /> | |||
239 | <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 " /> | |||
240 | 240 | |||||
241 | <!-- B order Bott om --> | 241 | <!-- B order Bott om --> | |||
242 | <!-- --> | 242 | <!-- --> | |||
243 | <xsl:c hoose> | 243 | <xsl:c hoose> | |||
244 | <xsl: when test= "$VarBorde rBottom = 'dotted'"> | 244 | <xsl: when test= "$VarBorde rBottom = 'dotted'"> | |||
245 | <xsl :text>\brd rb\brdrdot </xsl:text > | 245 | <xsl :text>\brd rb\brdrdot </xsl:text > | |||
246 | </xsl :when> | 246 | </xsl :when> | |||
247 | 247 | |||||
248 | <xsl: when test= "$VarBorde rBottom = 'single'"> | 248 | <xsl: when test= "$VarBorde rBottom = 'single'"> | |||
249 | <xsl :text>\brd rb\brdrs</ xsl:text> | 249 | <xsl :text>\brd rb\brdrs</ xsl:text> | |||
250 | </xsl :when> | 250 | </xsl :when> | |||
251 | </xsl: choose> | 251 | </xsl: choose> | |||
252 | 252 | |||||
253 | <!-- B order Left --> | 253 | <!-- B order Left --> | |||
254 | <!-- --> | 254 | <!-- --> | |||
255 | <xsl:c hoose> | 255 | <xsl:c hoose> | |||
256 | <xsl: when test= "$VarBorde rLeft = 'd otted'"> | 256 | <xsl: when test= "$VarBorde rLeft = 'd otted'"> | |||
257 | <xsl :text>\brd rl\brdrdot </xsl:text > | 257 | <xsl :text>\brd rl\brdrdot </xsl:text > | |||
258 | </xsl :when> | 258 | </xsl :when> | |||
259 | 259 | |||||
260 | <xsl: when test= "$VarBorde rLeft = 's ingle'"> | 260 | <xsl: when test= "$VarBorde rLeft = 's ingle'"> | |||
261 | <xsl :text>\brd rl\brdrs</ xsl:text> | 261 | <xsl :text>\brd rl\brdrs</ xsl:text> | |||
262 | </xsl :when> | 262 | </xsl :when> | |||
263 | </xsl: choose> | 263 | </xsl: choose> | |||
264 | 264 | |||||
265 | <!-- B order Righ t --> | 265 | <!-- B order Righ t --> | |||
266 | <!-- --> | 266 | <!-- --> | |||
267 | <xsl:c hoose> | 267 | <xsl:c hoose> | |||
268 | <xsl: when test= "$VarBorde rRight = ' dotted'"> | 268 | <xsl: when test= "$VarBorde rRight = ' dotted'"> | |||
269 | <xsl :text>\brd rr\brdrdot </xsl:text > | 269 | <xsl :text>\brd rr\brdrdot </xsl:text > | |||
270 | </xsl :when> | 270 | </xsl :when> | |||
271 | 271 | |||||
272 | <xsl: when test= "$VarBorde rRight = ' single'"> | 272 | <xsl: when test= "$VarBorde rRight = ' single'"> | |||
273 | <xsl :text>\brd rr\brdrs</ xsl:text> | 273 | <xsl :text>\brd rr\brdrs</ xsl:text> | |||
274 | </xsl :when> | 274 | </xsl :when> | |||
275 | </xsl: choose> | 275 | </xsl: choose> | |||
276 | 276 | |||||
277 | <!-- B order Top --> | 277 | <!-- B order Top --> | |||
278 | <!-- --> | 278 | <!-- --> | |||
279 | <xsl:c hoose> | 279 | <xsl:c hoose> | |||
280 | <xsl: when test= "$VarBorde rTop = 'do tted'"> | 280 | <xsl: when test= "$VarBorde rTop = 'do tted'"> | |||
281 | <xsl :text>\brd rt\brdrdot </xsl:text > | 281 | <xsl :text>\brd rt\brdrdot </xsl:text > | |||
282 | </xsl :when> | 282 | </xsl :when> | |||
283 | 283 | |||||
284 | <xsl: when test= "$VarBorde rTop = 'si ngle'"> | 284 | <xsl: when test= "$VarBorde rTop = 'si ngle'"> | |||
285 | <xsl :text>\brd rt\brdrs</ xsl:text> | 285 | <xsl :text>\brd rt\brdrs</ xsl:text> | |||
286 | </xsl :when> | 286 | </xsl :when> | |||
287 | </xsl: choose> | 287 | </xsl: choose> | |||
288 | 288 | |||||
289 | <!-- A dd First L ine Indent --> | 289 | <!-- A dd First L ine Indent --> | |||
290 | <!-- --> | 290 | <!-- --> | |||
291 | <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" /> | |||
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']" /> | 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']" /> | |||
293 | <xsl:c hoose> | 293 | <xsl:c hoose> | |||
294 | <xsl: when test= "$VarForce HangingInd ent"> | 294 | <xsl: when test= "$VarForce HangingInd ent"> | |||
295 | <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 )" /> | |||
296 | <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)" /> | |||
297 | <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')" /> | |||
298 | <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)"/> | |||
299 | </xsl :when> | 299 | </xsl :when> | |||
300 | 300 | |||||
301 | <xsl: when test= "string-le ngth($VarT extIndent) > 0"> | 301 | <xsl: when test= "string-le ngth($VarT extIndent) > 0"> | |||
302 | <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 )" /> | |||
303 | <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)" /> | |||
304 | <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')" /> | |||
305 | <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)"/> | |||
306 | </xsl :when> | 306 | </xsl :when> | |||
307 | </xsl: choose> | 307 | </xsl: choose> | |||
308 | 308 | |||||
309 | <!-- M ake non-wr apping tex t? --> | 309 | <!-- M ake non-wr apping tex t? --> | |||
310 | <!-- --> | 310 | <!-- --> | |||
311 | <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'"> | |||
312 | <xsl: text>\keep </xsl:text > | 312 | <xsl: text>\keep </xsl:text > | |||
313 | </xsl: if> | 313 | </xsl: if> | |||
314 | 314 | |||||
315 | <!-- A dd Margin- Left --> | 315 | <!-- A dd Margin- Left --> | |||
316 | <!-- --> | 316 | <!-- --> | |||
317 | <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" /> | |||
318 | <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"> | |||
319 | <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) " /> | |||
320 | <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)" / > | |||
321 | <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')" /> | |||
322 | <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)"/> | |||
323 | <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)"/> | |||
324 | </xsl: if> | 324 | </xsl: if> | |||
325 | 325 | |||||
326 | <!-- M ake center align? -- > | 326 | <!-- M ake center align? -- > | |||
327 | <!-- -- > | 327 | <!-- -- > | |||
328 | <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'"> | |||
329 | <xsl: text>\qc</ xsl:text> | 329 | <xsl: text>\qc</ xsl:text> | |||
330 | </xsl: if> | 330 | </xsl: if> | |||
331 | 331 | |||||
332 | <!-- M ake justif ied align? --> | 332 | <!-- M ake justif ied align? --> | |||
333 | <!-- --> | 333 | <!-- --> | |||
334 | <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'"> | |||
335 | <xsl: text>\qj</ xsl:text> | 335 | <xsl: text>\qj</ xsl:text> | |||
336 | </xsl: if> | 336 | </xsl: if> | |||
337 | 337 | |||||
338 | <!-- M ake right align? --> | 338 | <!-- M ake right align? --> | |||
339 | <!-- --> | 339 | <!-- --> | |||
340 | <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'"> | |||
341 | <xsl: text>\qr</ xsl:text> | 341 | <xsl: text>\qr</ xsl:text> | |||
342 | </xsl: if> | 342 | </xsl: if> | |||
343 | 343 | |||||
344 | <!-- A dd Margin- Right --> | 344 | <!-- A dd Margin- Right --> | |||
345 | <!-- --> | 345 | <!-- --> | |||
346 | <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" /> | |||
347 | <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"> | |||
348 | <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 )" /> | |||
349 | <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)" /> | |||
350 | <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')" /> | |||
351 | <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)"/> | |||
352 | </xsl: if> | 352 | </xsl: if> | |||
353 | 353 | |||||
354 | <!-- A dd Margin- Bottom --> | 354 | <!-- A dd Margin- Bottom --> | |||
355 | <!-- --> | 355 | <!-- --> | |||
356 | <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 " /> | |||
357 | <xsl:i f test="st ring-lengt h($VarMarg inBottom) > 0"> | 357 | <xsl:i f test="st ring-lengt h($VarMarg inBottom) > 0"> | |||
358 | <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)" /> | |||
359 | <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)" /> | |||
360 | <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')" /> | |||
361 | <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)"/> | |||
362 | </xsl: if> | 362 | </xsl: if> | |||
363 | 363 | |||||
364 | <!-- A dd Margin- Top --> | 364 | <!-- A dd Margin- Top --> | |||
365 | <!-- --> | 365 | <!-- --> | |||
366 | <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" /> | |||
367 | <xsl:i f test="st ring-lengt h($VarMarg inTop) > ; 0"> | 367 | <xsl:i f test="st ring-lengt h($VarMarg inTop) > ; 0"> | |||
368 | <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)" /> | |||
369 | <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)" /> | |||
370 | <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')" /> | |||
371 | <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)"/> | |||
372 | </xsl: if> | 372 | </xsl: if> | |||
373 | 373 | |||||
374 | <!-- S kipping Li ne Spacing Stuff --> | 374 | <!-- S kipping Li ne Spacing Stuff --> | |||
375 | 375 | |||||
376 | <xsl:t ext> | 376 | <xsl:t ext> | |||
377 | </xsl:text > | 377 | </xsl:text > | |||
378 | </xsl:fo r-each> | 378 | </xsl:fo r-each> | |||
379 | </xsl:tem plate> | 379 | </xsl:tem plate> | |||
380 | 380 | |||||
381 | 381 | |||||
382 | <xsl:temp late name= "WinHelp-R emapFontEn tries"> | 382 | <xsl:temp late name= "WinHelp-R emapFontEn tries"> | |||
383 | <xsl:par am name="P aramFiles" /> | 383 | <xsl:par am name="P aramFiles" /> | |||
384 | <xsl:par am name="P aramMapEnt rySets" /> | 384 | <xsl:par am name="P aramMapEnt rySets" /> | |||
385 | <xsl:par am name="P aramDocume ntID" /> | 385 | <xsl:par am name="P aramDocume ntID" /> | |||
386 | <xsl:par am name="P aramRTFSty lesType" / > | 386 | <xsl:par am name="P aramRTFSty lesType" / > | |||
387 | <xsl:par am name="P aramFontFa mily" /> | 387 | <xsl:par am name="P aramFontFa mily" /> | |||
388 | 388 | |||||
389 | <!-- Det ermine fon t number - -> | 389 | <!-- Det ermine fon t number - -> | |||
390 | <!-- - -> | 390 | <!-- - -> | |||
391 | <xsl:var iable name ="VarFontN umber"> | 391 | <xsl:var iable name ="VarFontN umber"> | |||
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" / > | 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" / > | |||
393 | <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)" /> | |||
394 | 394 | |||||
395 | <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" /> | |||
396 | </xsl:va riable> | 396 | </xsl:va riable> | |||
397 | 397 | |||||
398 | <!-- Fon t number f ound? --> | 398 | <!-- Fon t number f ound? --> | |||
399 | <!-- --> | 399 | <!-- --> | |||
400 | <xsl:if test="stri ng-length( $VarFontNu mber) > 0"> | 400 | <xsl:if test="stri ng-length( $VarFontNu mber) > 0"> | |||
401 | <!-- Em it updated map entri es --> | 401 | <!-- Em it updated map entri es --> | |||
402 | <!-- --> | 402 | <!-- --> | |||
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"> | 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"> | |||
404 | <xsl:v ariable na me="VarMap Entry" sel ect="." /> | 404 | <xsl:v ariable na me="VarMap Entry" sel ect="." /> | |||
405 | 405 | |||||
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> | 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> | |||
407 | </xsl:f or-each> | 407 | </xsl:f or-each> | |||
408 | </xsl:if > | 408 | </xsl:if > | |||
409 | </xsl:tem plate> | 409 | </xsl:tem plate> | |||
410 | 410 | |||||
411 | 411 | |||||
412 | <xsl:temp late name= "FontFamil y"> | 412 | <xsl:temp late name= "FontFamil y"> | |||
413 | <xsl:par am name="P aramFontFa mily" /> | 413 | <xsl:par am name="P aramFontFa mily" /> | |||
414 | 414 | |||||
415 | <!-- Str ip out mul tiple font family sp ecificatio ns --> | 415 | <!-- Str ip out mul tiple font family sp ecificatio ns --> | |||
416 | <!-- --> | 416 | <!-- --> | |||
417 | <xsl:var iable name ="VarSingl eFontFamil y"> | 417 | <xsl:var iable name ="VarSingl eFontFamil y"> | |||
418 | <xsl:ch oose> | 418 | <xsl:ch oose> | |||
419 | <xsl:w hen test=" contains($ ParamFontF amily, ',' )"> | 419 | <xsl:w hen test=" contains($ ParamFontF amily, ',' )"> | |||
420 | <xsl: value-of s elect="sub string-bef ore($Param FontFamily , ',')" /> | 420 | <xsl: value-of s elect="sub string-bef ore($Param FontFamily , ',')" /> | |||
421 | </xsl: when> | 421 | </xsl: when> | |||
422 | 422 | |||||
423 | <xsl:o therwise> | 423 | <xsl:o therwise> | |||
424 | <xsl: value-of s elect="$Pa ramFontFam ily" /> | 424 | <xsl: value-of s elect="$Pa ramFontFam ily" /> | |||
425 | </xsl: otherwise> | 425 | </xsl: otherwise> | |||
426 | </xsl:c hoose> | 426 | </xsl:c hoose> | |||
427 | </xsl:va riable> | 427 | </xsl:va riable> | |||
428 | 428 | |||||
429 | <!-- Str ip quotes --> | 429 | <!-- Str ip quotes --> | |||
430 | <!-- --> | 430 | <!-- --> | |||
431 | <xsl:var iable name ="VarQuote s"> | 431 | <xsl:var iable name ="VarQuote s"> | |||
432 | <xsl:te xt>"& apos;</xsl :text> | 432 | <xsl:te xt>"& apos;</xsl :text> | |||
433 | </xsl:va riable> | 433 | </xsl:va riable> | |||
434 | <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, '' )" /> | |||
435 | </xsl:tem plate> | 435 | </xsl:tem plate> | |||
436 | 436 | |||||
437 | 437 | |||||
438 | <xsl:temp late name= "Character AndParagra phMarkup"> | 438 | <xsl:temp late name= "Character AndParagra phMarkup"> | |||
439 | <xsl:par am name="P aramRTFSty les" /> | 439 | <xsl:par am name="P aramRTFSty les" /> | |||
440 | <xsl:par am name="P aramProper ties" /> | 440 | <xsl:par am name="P aramProper ties" /> | |||
441 | 441 | |||||
442 | <!-- Mak e Bold? -- > | 442 | <!-- Mak e Bold? -- > | |||
443 | <!-- -- > | 443 | <!-- -- > | |||
444 | <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 '"> | |||
445 | <xsl:te xt>\b</xsl :text> | 445 | <xsl:te xt>\b</xsl :text> | |||
446 | </xsl:if > | 446 | </xsl:if > | |||
447 | 447 | |||||
448 | <!-- Add Color For eground Nu mber --> | 448 | <!-- Add Color For eground Nu mber --> | |||
449 | <!-- --> | 449 | <!-- --> | |||
450 | <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 " /> | |||
451 | <xsl:if test="stri ng-length( $VarColor) > 0"> | 451 | <xsl:if test="stri ng-length( $VarColor) > 0"> | |||
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 " /> | 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 " /> | |||
453 | 453 | |||||
454 | <xsl:if test="str ing-length ($VarColor Number) &g t; 0"> | 454 | <xsl:if test="str ing-length ($VarColor Number) &g t; 0"> | |||
455 | <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"/> | |||
456 | </xsl:i f> | 456 | </xsl:i f> | |||
457 | </xsl:if > | 457 | </xsl:if > | |||
458 | 458 | |||||
459 | <!-- Add Color Bac kground Nu mber --> | 459 | <!-- Add Color Bac kground Nu mber --> | |||
460 | <!-- --> | 460 | <!-- --> | |||
461 | <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" /> | |||
462 | <xsl:if test="stri ng-length( $VarBackgr oundColor) > 0"> | 462 | <xsl:if test="stri ng-length( $VarBackgr oundColor) > 0"> | |||
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 " /> | 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 " /> | |||
464 | 464 | |||||
465 | <xsl:if test="str ing-length ($VarColor Number) &g t; 0"> | 465 | <xsl:if test="str ing-length ($VarColor Number) &g t; 0"> | |||
466 | <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"/> | |||
467 | </xsl:i f> | 467 | </xsl:i f> | |||
468 | </xsl:if > | 468 | </xsl:if > | |||
469 | 469 | |||||
470 | <!-- Add Font Numb er --> | 470 | <!-- Add Font Numb er --> | |||
471 | <!-- --> | 471 | <!-- --> | |||
472 | <xsl:var iable name ="VarFontF amily"> | 472 | <xsl:var iable name ="VarFontF amily"> | |||
473 | <xsl:ca ll-templat e name="Fo ntFamily"> | 473 | <xsl:ca ll-templat e name="Fo ntFamily"> | |||
474 | <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" / > | |||
475 | </xsl:c all-templa te> | 475 | </xsl:c all-templa te> | |||
476 | </xsl:va riable> | 476 | </xsl:va riable> | |||
477 | <xsl:if test="stri ng-length( $VarFontFa mily) > 0"> | 477 | <xsl:if test="stri ng-length( $VarFontFa mily) > 0"> | |||
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" /> | 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" /> | |||
479 | 479 | |||||
480 | <xsl:if test="str ing-length ($VarFontN umber) > ; 0"> | 480 | <xsl:if test="str ing-length ($VarFontN umber) > ; 0"> | |||
481 | <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"/> | |||
482 | </xsl:i f> | 482 | </xsl:i f> | |||
483 | </xsl:if > | 483 | </xsl:if > | |||
484 | 484 | |||||
485 | <!-- Add Font Size --> | 485 | <!-- Add Font Size --> | |||
486 | <!-- --> | 486 | <!-- --> | |||
487 | <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" / > | |||
488 | <xsl:if test="stri ng-length( $VarFontSi ze) > 0 "> | 488 | <xsl:if test="stri ng-length( $VarFontSi ze) > 0 "> | |||
489 | <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)" /> | |||
490 | <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)" /> | |||
491 | <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') " /> | |||
492 | <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)"/> | |||
493 | </xsl:if > | 493 | </xsl:if > | |||
494 | 494 | |||||
495 | <!-- Mak e Italic? --> | 495 | <!-- Mak e Italic? --> | |||
496 | <!-- --> | 496 | <!-- --> | |||
497 | <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'"> | |||
498 | <xsl:te xt>\i</xsl :text> | 498 | <xsl:te xt>\i</xsl :text> | |||
499 | </xsl:if > | 499 | </xsl:if > | |||
500 | 500 | |||||
501 | <!-- Mak e small-ca ps? --> | 501 | <!-- Mak e small-ca ps? --> | |||
502 | <!-- --> | 502 | <!-- --> | |||
503 | <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'"> | |||
504 | <xsl:te xt>\scaps< /xsl:text> | 504 | <xsl:te xt>\scaps< /xsl:text> | |||
505 | </xsl:if > | 505 | </xsl:if > | |||
506 | 506 | |||||
507 | <!-- Mak e line thr ough? --> | 507 | <!-- Mak e line thr ough? --> | |||
508 | <!-- --> | 508 | <!-- --> | |||
509 | <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' "> | |||
510 | <xsl:te xt>\strike </xsl:text > | 510 | <xsl:te xt>\strike </xsl:text > | |||
511 | </xsl:if > | 511 | </xsl:if > | |||
512 | 512 | |||||
513 | <!-- Mak e single u nderline? --> | 513 | <!-- Mak e single u nderline? --> | |||
514 | <!-- --> | 514 | <!-- --> | |||
515 | <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'"> | |||
516 | <xsl:te xt>\ul</xs l:text> | 516 | <xsl:te xt>\ul</xs l:text> | |||
517 | </xsl:if > | 517 | </xsl:if > | |||
518 | 518 | |||||
519 | <!-- Mak e double u nderline? --> | 519 | <!-- Mak e double u nderline? --> | |||
520 | <!-- --> | 520 | <!-- --> | |||
521 | <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'"> | |||
522 | <xsl:te xt>\uldb</ xsl:text> | 522 | <xsl:te xt>\uldb</ xsl:text> | |||
523 | </xsl:if > | 523 | </xsl:if > | |||
524 | 524 | |||||
525 | </xsl:tem plate> | 525 | </xsl:tem plate> | |||
526 | 526 | |||||
527 | <xsl:temp late name= "Paragraph Footer"> | 527 | <xsl:temp late name= "Paragraph Footer"> | |||
528 | <xsl:par am name="P aramParagr aph" /> | 528 | <xsl:par am name="P aramParagr aph" /> | |||
529 | 529 | |||||
530 | <!-- Emi t paragrap h terminat or --> | 530 | <!-- Emi t paragrap h terminat or --> | |||
531 | <!-- --> | 531 | <!-- --> | |||
532 | <xsl:var iable name ="VarEmitT erminatorA sText"> | 532 | <xsl:var iable name ="VarEmitT erminatorA sText"> | |||
533 | <xsl:ch oose> | 533 | <xsl:ch oose> | |||
534 | <!-- C ell bounda ry will se rve as par agraph ter miniator - -> | 534 | <!-- C ell bounda ry will se rve as par agraph ter miniator - -> | |||
535 | <!-- - -> | 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)"> | 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()" /> | 537 | <xsl: value-of s elect="fal se()" /> | |||
538 | </xsl: when> | 538 | </xsl: when> | |||
539 | 539 | |||||
540 | <!-- N eed paragr aph termin ator --> | 540 | <!-- N eed paragr aph termin ator --> | |||
541 | <!-- --> | 541 | <!-- --> | |||
542 | <xsl:o therwise> | 542 | <xsl:o therwise> | |||
543 | <xsl: value-of s elect="tru e()" /> | 543 | <xsl: value-of s elect="tru e()" /> | |||
544 | </xsl: otherwise> | 544 | </xsl: otherwise> | |||
545 | </xsl:c hoose> | 545 | </xsl:c hoose> | |||
546 | </xsl:va riable> | 546 | </xsl:va riable> | |||
547 | <xsl:var iable name ="VarEmitT erminator" select="$ VarEmitTer minatorAsT ext = stri ng(true()) " /> | 547 | <xsl:var iable name ="VarEmitT erminator" select="$ VarEmitTer minatorAsT ext = stri ng(true()) " /> | |||
548 | 548 | |||||
549 | <!-- Emi t? --> | 549 | <!-- Emi t? --> | |||
550 | <!-- --> | 550 | <!-- --> | |||
551 | <xsl:if test="$Var EmitTermin ator"> | 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> | |||||
552 | <xsl:te xt> | 566 | <xsl: text> | |||
553 | \par | 567 | \par | |||
554 | </xsl:text > | 568 | </xsl:text > | |||
569 | </xsl: otherwise> | |||||
570 | </xsl:c hoose> | |||||
555 | </xsl:if > | 571 | </xsl:if > | |||
556 | </xsl:tem plate> | 572 | </xsl:tem plate> | |||
557 | 573 | |||||
558 | <xsl:temp late name= "ColumnTot alWidth"> | 574 | <xsl:temp late name= "ColumnTot alWidth"> | |||
559 | <xsl:par am name="P aramColumn " /> | 575 | <xsl:par am name="P aramColumn " /> | |||
560 | 576 | |||||
561 | <xsl:cho ose> | 577 | <xsl:cho ose> | |||
562 | <xsl:wh en test="c ount($Para mColumn) = 1"> | 578 | <xsl:wh en test="c ount($Para mColumn) = 1"> | |||
563 | <xsl:v ariable na me="VarTot alWidth"> | 579 | <xsl:v ariable na me="VarTot alWidth"> | |||
564 | <xsl: call-templ ate name=" ColumnTota lWidth"> | 580 | <xsl: call-templ ate name=" ColumnTota lWidth"> | |||
565 | <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]" /> | |||
566 | </xsl :call-temp late> | 582 | </xsl :call-temp late> | |||
567 | </xsl: variable> | 583 | </xsl: variable> | |||
568 | 584 | |||||
569 | <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)" /> | |||
570 | <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)" /> | |||
571 | <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" /> | |||
572 | </xsl:w hen> | 588 | </xsl:w hen> | |||
573 | 589 | |||||
574 | <xsl:ot herwise> | 590 | <xsl:ot herwise> | |||
575 | <xsl:v alue-of se lect="0" / > | 591 | <xsl:v alue-of se lect="0" / > | |||
576 | </xsl:o therwise> | 592 | </xsl:o therwise> | |||
577 | </xsl:ch oose> | 593 | </xsl:ch oose> | |||
578 | </xsl:tem plate> | 594 | </xsl:tem plate> | |||
579 | 595 | |||||
580 | <xsl:temp late name= "TableHead er"> | 596 | <xsl:temp late name= "TableHead er"> | |||
581 | <xsl:par am name="P aramTable" /> | 597 | <xsl:par am name="P aramTable" /> | |||
582 | 598 | |||||
583 | <xsl:tex t> | 599 | <xsl:tex t> | |||
584 | { | 600 | { | |||
585 | </xsl:text > | 601 | </xsl:text > | |||
586 | </xsl:tem plate> | 602 | </xsl:tem plate> | |||
587 | 603 | |||||
588 | <xsl:temp late name= "TableRowH eader"> | 604 | <xsl:temp late name= "TableRowH eader"> | |||
589 | <xsl:par am name="P aramTable" /> | 605 | <xsl:par am name="P aramTable" /> | |||
590 | <xsl:par am name="P aramTableR ow" /> | 606 | <xsl:par am name="P aramTableR ow" /> | |||
591 | 607 | |||||
592 | <!-- Row declarati on --> | 608 | <!-- Row declarati on --> | |||
593 | <!-- --> | 609 | <!-- --> | |||
594 | <xsl:tex t> | 610 | <xsl:tex t> | |||
595 | \intbl | 611 | \intbl | |||
596 | \trowd\trg aph108\trl eft-108 | 612 | \trowd\trg aph108\trl eft-108 | |||
597 | </xsl:text > | 613 | </xsl:text > | |||
598 | 614 | |||||
599 | <!-- Emi t cell wid ths --> | 615 | <!-- Emi t cell wid ths --> | |||
600 | <!-- --> | 616 | <!-- --> | |||
601 | <xsl:for -each sele ct="$Param TableRow/w wdoc:Table Cell[1]"> | 617 | <xsl:for -each sele ct="$Param TableRow/w wdoc:Table Cell[1]"> | |||
602 | <xsl:va riable nam e="VarFirs tTableCell " select=" ." /> | 618 | <xsl:va riable nam e="VarFirs tTableCell " select=" ." /> | |||
603 | 619 | |||||
604 | <xsl:ca ll-templat e name="Ta bleRowHead erCellBoun daries"> | 620 | <xsl:ca ll-templat e name="Ta bleRowHead erCellBoun daries"> | |||
605 | <xsl:w ith-param name="Para mTable" se lect="$Par amTable" / > | 621 | <xsl:w ith-param name="Para mTable" se lect="$Par amTable" / > | |||
606 | <xsl:w ith-param name="Para mTableCell " select=" $VarFirstT ableCell" /> | 622 | <xsl:w ith-param name="Para mTableCell " select=" $VarFirstT ableCell" /> | |||
607 | <xsl:w ith-param name="Para mColumnInd ex" select ="1" /> | 623 | <xsl:w ith-param name="Para mColumnInd ex" select ="1" /> | |||
608 | </xsl:c all-templa te> | 624 | </xsl:c all-templa te> | |||
609 | </xsl:fo r-each> | 625 | </xsl:fo r-each> | |||
610 | </xsl:tem plate> | 626 | </xsl:tem plate> | |||
611 | 627 | |||||
612 | <xsl:temp late name= "TableRowH eaderCellB oundaries" > | 628 | <xsl:temp late name= "TableRowH eaderCellB oundaries" > | |||
613 | <xsl:par am name="P aramTable" /> | 629 | <xsl:par am name="P aramTable" /> | |||
614 | <xsl:par am name="P aramTableC ell" /> | 630 | <xsl:par am name="P aramTableC ell" /> | |||
615 | <xsl:par am name="P aramColumn Index" /> | 631 | <xsl:par am name="P aramColumn Index" /> | |||
616 | 632 | |||||
617 | <!-- Det ermine col umn span - -> | 633 | <!-- Det ermine col umn span - -> | |||
618 | <!-- - -> | 634 | <!-- - -> | |||
619 | <xsl:var iable name ="VarColum nSpanValue " select=" $ParamTabl eCell/wwdo c:Style/ww doc:Attrib ute[@name = 'column- span']/@va lue" /> | 635 | <xsl:var iable name ="VarColum nSpanValue " select=" $ParamTabl eCell/wwdo c:Style/ww doc:Attrib ute[@name = 'column- span']/@va lue" /> | |||
620 | <xsl:var iable name ="VarColum nSpan"> | 636 | <xsl:var iable name ="VarColum nSpan"> | |||
621 | <xsl:ch oose> | 637 | <xsl:ch oose> | |||
622 | <xsl:w hen test=" string-len gth($VarCo lumnSpanVa lue) > 0"> | 638 | <xsl:w hen test=" string-len gth($VarCo lumnSpanVa lue) > 0"> | |||
623 | <xsl: value-of s elect="$Va rColumnSpa nValue" /> | 639 | <xsl: value-of s elect="$Va rColumnSpa nValue" /> | |||
624 | </xsl: when> | 640 | </xsl: when> | |||
625 | 641 | |||||
626 | <xsl:o therwise> | 642 | <xsl:o therwise> | |||
627 | <xsl: value-of s elect="1" /> | 643 | <xsl: value-of s elect="1" /> | |||
628 | </xsl: otherwise> | 644 | </xsl: otherwise> | |||
629 | </xsl:c hoose> | 645 | </xsl:c hoose> | |||
630 | </xsl:va riable> | 646 | </xsl:va riable> | |||
631 | 647 | |||||
632 | <!-- Det ermine cel l width -- > | 648 | <!-- Det ermine cel l width -- > | |||
633 | <!-- -- > | 649 | <!-- -- > | |||
634 | <xsl:var iable name ="VarCellB oundary"> | 650 | <xsl:var iable name ="VarCellB oundary"> | |||
635 | <xsl:ca ll-templat e name="Ta bleRowHead erCellBoun dary"> | 651 | <xsl:ca ll-templat e name="Ta bleRowHead erCellBoun dary"> | |||
636 | <xsl:w ith-param name="Para mTableColu mn" select ="$ParamTa ble/wwdoc: TableColum ns/wwdoc:T ableColumn [1]" /> | 652 | <xsl:w ith-param name="Para mTableColu mn" select ="$ParamTa ble/wwdoc: TableColum ns/wwdoc:T ableColumn [1]" /> | |||
637 | <xsl:w ith-param name="Para mTableColu mnIndex" s elect="1" /> | 653 | <xsl:w ith-param name="Para mTableColu mnIndex" s elect="1" /> | |||
638 | <xsl:w ith-param name="Para mTableColu mnEndIndex " select=" $ParamColu mnIndex + $VarColumn Span - 1" /> | 654 | <xsl:w ith-param name="Para mTableColu mnEndIndex " select=" $ParamColu mnIndex + $VarColumn Span - 1" /> | |||
639 | <xsl:w ith-param name="Para mAccumulat edBoundary " select=" 0" /> | 655 | <xsl:w ith-param name="Para mAccumulat edBoundary " select=" 0" /> | |||
640 | </xsl:c all-templa te> | 656 | </xsl:c all-templa te> | |||
641 | </xsl:va riable> | 657 | </xsl:va riable> | |||
642 | <xsl:var iable name ="VarValue AsTwips" s elect="wwu nits:Conve rt($VarCel lBoundary, 'points', 'twips')" /> | 658 | <xsl:var iable name ="VarValue AsTwips" s elect="wwu nits:Conve rt($VarCel lBoundary, 'points', 'twips')" /> | |||
643 | <xsl:tex t>\cellx</ xsl:text>< xsl:value- of select= "round($Va rValueAsTw ips)"/> | 659 | <xsl:tex t>\cellx</ xsl:text>< xsl:value- of select= "round($Va rValueAsTw ips)"/> | |||
644 | 660 | |||||
645 | <!-- Emi t remainin g cell wid ths --> | 661 | <!-- Emi t remainin g cell wid ths --> | |||
646 | <!-- --> | 662 | <!-- --> | |||
647 | <xsl:for -each sele ct="$Param TableCell/ following- sibling::w wdoc:Table Cell[1]"> | 663 | <xsl:for -each sele ct="$Param TableCell/ following- sibling::w wdoc:Table Cell[1]"> | |||
648 | <xsl:va riable nam e="VarFoll owingTable Cell" sele ct="." /> | 664 | <xsl:va riable nam e="VarFoll owingTable Cell" sele ct="." /> | |||
649 | 665 | |||||
650 | <xsl:ca ll-templat e name="Ta bleRowHead erCellBoun daries"> | 666 | <xsl:ca ll-templat e name="Ta bleRowHead erCellBoun daries"> | |||
651 | <xsl:w ith-param name="Para mTable" se lect="$Par amTable" / > | 667 | <xsl:w ith-param name="Para mTable" se lect="$Par amTable" / > | |||
652 | <xsl:w ith-param name="Para mTableCell " select=" $VarFollow ingTableCe ll" /> | 668 | <xsl:w ith-param name="Para mTableCell " select=" $VarFollow ingTableCe ll" /> | |||
653 | <xsl:w ith-param name="Para mColumnInd ex" select ="$ParamCo lumnIndex + $VarColu mnSpan" /> | 669 | <xsl:w ith-param name="Para mColumnInd ex" select ="$ParamCo lumnIndex + $VarColu mnSpan" /> | |||
654 | </xsl:c all-templa te> | 670 | </xsl:c all-templa te> | |||
655 | </xsl:fo r-each> | 671 | </xsl:fo r-each> | |||
656 | </xsl:tem plate> | 672 | </xsl:tem plate> | |||
657 | 673 | |||||
658 | <xsl:temp late name= "TableRowH eaderCellB oundary"> | 674 | <xsl:temp late name= "TableRowH eaderCellB oundary"> | |||
659 | <xsl:par am name="P aramTableC olumn" /> | 675 | <xsl:par am name="P aramTableC olumn" /> | |||
660 | <xsl:par am name="P aramTableC olumnIndex " /> | 676 | <xsl:par am name="P aramTableC olumnIndex " /> | |||
661 | <xsl:par am name="P aramTableC olumnEndIn dex" /> | 677 | <xsl:par am name="P aramTableC olumnEndIn dex" /> | |||
662 | <xsl:par am name="P aramAccumu latedBound ary" /> | 678 | <xsl:par am name="P aramAccumu latedBound ary" /> | |||
663 | 679 | |||||
664 | <!-- Wit hin range? --> | 680 | <!-- Wit hin range? --> | |||
665 | <!-- --> | 681 | <!-- --> | |||
666 | <xsl:cho ose> | 682 | <xsl:cho ose> | |||
667 | <!-- Up date width --> | 683 | <!-- Up date width --> | |||
668 | <!-- --> | 684 | <!-- --> | |||
669 | <xsl:wh en test="$ ParamTable ColumnInde x <= $P aramTableC olumnEndIn dex"> | 685 | <xsl:wh en test="$ ParamTable ColumnInde x <= $P aramTableC olumnEndIn dex"> | |||
670 | <xsl:v ariable na me="VarCol umnWidthAs Points" se lect="$Par amTableCol umn/@width " /> | 686 | <xsl:v ariable na me="VarCol umnWidthAs Points" se lect="$Par amTableCol umn/@width " /> | |||
671 | <xsl:v ariable na me="VarCol umnWidthAs PointsNume ricPrefix" select="w wunits:Num ericPrefix ($VarColum nWidthAsPo ints)" /> | 687 | <xsl:v ariable na me="VarCol umnWidthAs PointsNume ricPrefix" select="w wunits:Num ericPrefix ($VarColum nWidthAsPo ints)" /> | |||
672 | <xsl:v ariable na me="VarUpd atedAccumu latedBound ary" selec t="$ParamA ccumulated Boundary + $VarColum nWidthAsPo intsNumeri cPrefix" / > | 688 | <xsl:v ariable na me="VarUpd atedAccumu latedBound ary" selec t="$ParamA ccumulated Boundary + $VarColum nWidthAsPo intsNumeri cPrefix" / > | |||
673 | 689 | |||||
674 | <xsl:c all-templa te name="T ableRowHea derCellBou ndary"> | 690 | <xsl:c all-templa te name="T ableRowHea derCellBou ndary"> | |||
675 | <xsl: with-param name="Par amTableCol umn" selec t="$ParamT ableColumn /following -sibling:: wwdoc:Tabl eColumn[1] " /> | 691 | <xsl: with-param name="Par amTableCol umn" selec t="$ParamT ableColumn /following -sibling:: wwdoc:Tabl eColumn[1] " /> | |||
676 | <xsl: with-param name="Par amTableCol umnIndex" select="$P aramTableC olumnIndex + 1" /> | 692 | <xsl: with-param name="Par amTableCol umnIndex" select="$P aramTableC olumnIndex + 1" /> | |||
677 | <xsl: with-param name="Par amTableCol umnEndInde x" select= "$ParamTab leColumnEn dIndex" /> | 693 | <xsl: with-param name="Par amTableCol umnEndInde x" select= "$ParamTab leColumnEn dIndex" /> | |||
678 | <xsl: with-param name="Par amAccumula tedBoundar y" select= "$VarUpdat edAccumula tedBoundar y" /> | 694 | <xsl: with-param name="Par amAccumula tedBoundar y" select= "$VarUpdat edAccumula tedBoundar y" /> | |||
679 | </xsl: call-templ ate> | 695 | </xsl: call-templ ate> | |||
680 | </xsl:w hen> | 696 | </xsl:w hen> | |||
681 | 697 | |||||
682 | <!-- Do ne! --> | 698 | <!-- Do ne! --> | |||
683 | <!-- --> | 699 | <!-- --> | |||
684 | <xsl:ot herwise> | 700 | <xsl:ot herwise> | |||
685 | <xsl:v alue-of se lect="$Par amAccumula tedBoundar y" /> | 701 | <xsl:v alue-of se lect="$Par amAccumula tedBoundar y" /> | |||
686 | </xsl:o therwise> | 702 | </xsl:o therwise> | |||
687 | </xsl:ch oose> | 703 | </xsl:ch oose> | |||
688 | </xsl:tem plate> | 704 | </xsl:tem plate> | |||
689 | 705 | |||||
690 | <xsl:temp late name= "TableCell Footer"> | 706 | <xsl:temp late name= "TableCell Footer"> | |||
691 | <xsl:tex t>\cell | 707 | <xsl:tex t>\cell | |||
692 | </xsl:text > | 708 | </xsl:text > | |||
693 | </xsl:tem plate> | 709 | </xsl:tem plate> | |||
694 | 710 | |||||
695 | <xsl:temp late name= "TableRowF ooter"> | 711 | <xsl:temp late name= "TableRowF ooter"> | |||
696 | <xsl: text>\row | 712 | <xsl: text>\row | |||
697 | </xsl:text > | 713 | </xsl:text > | |||
698 | </xsl:tem plate> | 714 | </xsl:tem plate> | |||
699 | 715 | |||||
700 | <xsl:temp late name= "TableFoot er"> | 716 | <xsl:temp late name= "TableFoot er"> | |||
701 | <xsl:tex t>} | 717 | <xsl:tex t>} | |||
702 | {\par} | 718 | {\par} | |||
703 | </xsl:text > | 719 | </xsl:text > | |||
704 | </xsl:tem plate> | 720 | </xsl:tem plate> | |||
705 | 721 | |||||
706 | <xsl:temp late name= "Hyperlink Header"> | 722 | <xsl:temp late name= "Hyperlink Header"> | |||
707 | <xsl:tex t>{\strike </xsl:tex t> | 723 | <xsl:tex t>{\strike </xsl:tex t> | |||
708 | </xsl:tem plate> | 724 | </xsl:tem plate> | |||
709 | 725 | |||||
710 | <xsl:temp late name= "Hyperlink Footer"> | 726 | <xsl:temp late name= "Hyperlink Footer"> | |||
711 | <xsl:par am name="P aramLink" /> | 727 | <xsl:par am name="P aramLink" /> | |||
712 | 728 | |||||
713 | <xsl:tex t>}{\v </x sl:text> | 729 | <xsl:tex t>}{\v </x sl:text> | |||
714 | <xsl:val ue-of sele ct="$Param Link"/> | 730 | <xsl:val ue-of sele ct="$Param Link"/> | |||
715 | <xsl:tex t>}</xsl:t ext> | 731 | <xsl:tex t>}</xsl:t ext> | |||
716 | </xsl:tem plate> | 732 | </xsl:tem plate> | |||
717 | 733 | |||||
718 | <xsl:temp late name= "URLHeader "> | 734 | <xsl:temp late name= "URLHeader "> | |||
719 | <xsl:tex t>*!EF(`</ xsl:text> | 735 | <xsl:tex t>*!EF(`</ xsl:text> | |||
720 | </xsl:tem plate> | 736 | </xsl:tem plate> | |||
721 | 737 | |||||
722 | <xsl:temp late name= "URLFooter "> | 738 | <xsl:temp late name= "URLFooter "> | |||
723 | <xsl:tex t>',`',1,` ');</xsl:t ext> | 739 | <xsl:tex t>',`',1,` ');</xsl:t ext> | |||
724 | </xsl:tem plate> | 740 | </xsl:tem plate> | |||
725 | 741 | |||||
726 | <xsl:temp late name= "LineBreak "> | 742 | <xsl:temp late name= "LineBreak "> | |||
727 | <xsl:tex t>\line | 743 | <xsl:tex t>\line | |||
728 | </xsl:text > | 744 | </xsl:text > | |||
729 | </xsl:tem plate> | 745 | </xsl:tem plate> | |||
730 | 746 | |||||
731 | <xsl:temp late name= "ImageEmit "> | 747 | <xsl:temp late name= "ImageEmit "> | |||
732 | <xsl:par am name="P aramPath" /> | 748 | <xsl:par am name="P aramPath" /> | |||
733 | 749 | |||||
734 | <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> | |||
735 | </xsl:tem plate> | 751 | </xsl:tem plate> | |||
736 | </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.