Produced by Araxis Merge on Thu Oct 16 22:30:06 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 | Thu Oct 16 22:30:06 2008 UTC | ||
2 | C:\Documents and Settings\lauren\Desktop\ww-version-snapshots\ww-version-snapshots\2008.3\WebWorks\ePublisher Pro\Formats\Wiki - MediaWiki\Transforms | html_properties.xsl | Mon Oct 13 05:52:00 2008 UTC |
Description | Between Files 1 and 2 |
|
---|---|---|
Text Blocks | Lines | |
Unchanged | 0 | 0 |
Changed | 0 | 0 |
Inserted | 1 | 335 |
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"?> | |||||
2 | <xsl:style sheet vers ion="1.0" xmlns:xsl= "http://ww w.w3.org/1 999/XSL/Tr ansform" | |||||
3 | xmlns:msxs l="urn:sch emas-micro soft-com:x slt" | |||||
4 | xmlns:wwmo de="urn:We bWorks-Eng ine-Mode" | |||||
5 | xmlns:wwdo c="urn:Web Works-Docu ment-Schem a" | |||||
6 | xmlns:wwpr oject="urn :WebWorks- Publish-Pr oject" | |||||
7 | xmlns:wwpr ops="urn:W ebWorks-Pr operties-S chema" | |||||
8 | xmlns:wwpr ogress="ur n:WebWorks -XSLT-Exte nsion-Prog ress" | |||||
9 | xmlns:wwlo g="urn:Web Works-XSLT -Extension -Log" | |||||
10 | xmlns:wwfi lesystem=" urn:WebWor ks-XSLT-Ex tension-Fi leSystem" | |||||
11 | xmlns:wwur i="urn:Web Works-XSLT -Extension -URI" | |||||
12 | xmlns:wwst ring="urn: WebWorks-X SLT-Extens ion-String Utilities" | |||||
13 | xmlns:wwun its="urn:W ebWorks-XS LT-Extensi on-Units" | |||||
14 | xmlns:wwfi lesext="ur n:WebWorks -XSLT-Exte nsion-File s" | |||||
15 | xmlns:wwpr ojext="urn :WebWorks- XSLT-Exten sion-Proje ct" | |||||
16 | xmlns:wwex sldoc="urn :WebWorks- XSLT-Exten sion-Docum ent" | |||||
17 | exclude-re sult-prefi xes="xsl m sxsl wwmod e wwdoc ww project ww progress w wlog wwfil esystem ww uri wwstri ng wwunits wwfilesex t wwprojex t wwexsldo c" | |||||
18 | > | |||||
19 | <xsl:key name="wwpr ops-proper ty-by-name " match="w wprops:Pro perty" use ="@name" / > | |||||
20 | ||||||
21 | ||||||
22 | <xsl:vari able name= "GlobalVal idHTMLProp erties" se lect="wwex sldoc:Load XMLWithout Resolver(' wwformat:T ransforms/ html_prope rties.xml' )" /> | |||||
23 | ||||||
24 | ||||||
25 | <xsl:temp late name= "HTML-Tran slateProje ctProperti es"> | |||||
26 | <xsl:par am name="P aramProper ties" /> | |||||
27 | <xsl:par am name="P aramFromAb soluteURI" /> | |||||
28 | <xsl:par am name="P aramSplits " /> | |||||
29 | ||||||
30 | <!-- tag --> | |||||
31 | <!-- --> | |||||
32 | <xsl:var iable name ="VarTag" select="$P aramProper ties[@Name = 'tag']/ @Value" /> | |||||
33 | ||||||
34 | <wwproje ct:Propert y Name="ta g" Value=" {$VarTag}" /> | |||||
35 | ||||||
36 | <!-- bac kground-po sition --> | |||||
37 | <!-- --> | |||||
38 | <xsl:var iable name ="VarBackg roundPosit ionHorizon tal" selec t="$ParamP roperties[ @Name = 'b ackground- position-h orizontal' ]/@Value" /> | |||||
39 | <xsl:var iable name ="VarBackg roundPosit ionVertica l" select= "$ParamPro perties[@N ame = 'bac kground-po sition-ver tical']/@V alue" /> | |||||
40 | <xsl:if test="(str ing-length ($VarBackg roundPosit ionHorizon tal) > 0) or (str ing-length ($VarBackg roundPosit ionVertica l) > 0) "> | |||||
41 | <xsl:va riable nam e="VarBack groundPosi tion"> | |||||
42 | <xsl:c hoose> | |||||
43 | <xsl: when test= "string-le ngth($VarB ackgroundP ositionHor izontal) & gt; 0"> | |||||
44 | <xsl :value-of select="$V arBackgrou ndPosition Horizontal " /> | |||||
45 | </xsl :when> | |||||
46 | ||||||
47 | <xsl: otherwise> | |||||
48 | <xsl :value-of select="'l eft'" /> | |||||
49 | </xsl :otherwise > | |||||
50 | </xsl: choose> | |||||
51 | ||||||
52 | <xsl:i f test="st ring-lengt h($VarBack groundPosi tionVertic al) > 0 "> | |||||
53 | <xsl: text> </xs l:text> | |||||
54 | <xsl: value-of s elect="$Va rBackgroun dPositionV ertical" / > | |||||
55 | </xsl: if> | |||||
56 | </xsl:v ariable> | |||||
57 | ||||||
58 | <xsl:if test="str ing-length ($VarBackg roundPosit ion) > 0"> | |||||
59 | <wwpro ject:Prope rty Name=" background -position" Value="{$ VarBackgro undPositio n}" /> | |||||
60 | </xsl:i f> | |||||
61 | </xsl:if > | |||||
62 | ||||||
63 | <!-- tex t-decorati on --> | |||||
64 | <!-- --> | |||||
65 | <xsl:var iable name ="VarTextD ecoration" > | |||||
66 | <xsl:fo r-each sel ect="$Para mPropertie s[@Name = 'text-deco ration-bli nk']"> | |||||
67 | <xsl:i f test="@V alue = 'tr ue'"> | |||||
68 | <xsl: value-of s elect="'bl ink '" /> | |||||
69 | </xsl: if> | |||||
70 | </xsl:f or-each> | |||||
71 | ||||||
72 | <xsl:fo r-each sel ect="$Para mPropertie s[@Name = 'text-deco ration-lin e-through' ]"> | |||||
73 | <xsl:i f test="(@ Value = 's ingle') or (@Value = 'double') "> | |||||
74 | <xsl: value-of s elect="'li ne-through '" /> | |||||
75 | </xsl: if> | |||||
76 | </xsl:f or-each> | |||||
77 | ||||||
78 | <xsl:fo r-each sel ect="$Para mPropertie s[@Name = 'text-deco ration-ove rline']"> | |||||
79 | <xsl:i f test="(@ Value = 's ingle') or (@Value = 'double') "> | |||||
80 | <xsl: value-of s elect="'ov erline '" /> | |||||
81 | </xsl: if> | |||||
82 | </xsl:f or-each> | |||||
83 | ||||||
84 | <xsl:fo r-each sel ect="$Para mPropertie s[@Name = 'text-deco ration-und erline']"> | |||||
85 | <xsl:i f test="(@ Value = 's ingle') or (@Value = 'double') "> | |||||
86 | <xsl: value-of s elect="'un derline '" /> | |||||
87 | </xsl: if> | |||||
88 | </xsl:f or-each> | |||||
89 | </xsl:va riable> | |||||
90 | <xsl:if test="stri ng-length( $VarTextDe coration) > 0"> | |||||
91 | <wwproj ect:Proper ty Name="t ext-decora tion" Valu e="{substr ing($VarTe xtDecorati on, 1, str ing-length ($VarTextD ecoration) - 1)}" /> | |||||
92 | </xsl:if > | |||||
93 | ||||||
94 | <!-- Val id CSS pro perties -- > | |||||
95 | <!-- -- > | |||||
96 | <xsl:for -each sele ct="$Param Properties "> | |||||
97 | <xsl:va riable nam e="VarProp erty" sele ct="." /> | |||||
98 | ||||||
99 | <xsl:fo r-each sel ect="$Glob alValidHTM LPropertie s[1]"> | |||||
100 | <xsl:f or-each se lect="key( 'wwprops-p roperty-by -name', $V arProperty /@Name)[1] "> | |||||
101 | <xsl: choose> | |||||
102 | <xsl :when test ="$VarProp erty/@Name = 'backgr ound-image '"> | |||||
103 | <xs l:if test= "(string-l ength($Var Property/@ Value) > ; 0) and ( $VarProper ty/@Value != 'none') "> | |||||
104 | <w wproject:P roperty Na me="{$VarP roperty/@N ame}"> | |||||
105 | < xsl:attrib ute name=" Value"> | |||||
106 | <xsl:text> url("</xsl :text> | |||||
107 | <xsl:call- template n ame="URI-R esolveProj ectFileURI "> | |||||
108 | <xsl:with -param nam e="ParamFr omAbsolute URI" selec t="$ParamF romAbsolut eURI" /> | |||||
109 | <xsl:with -param nam e="ParamSp lits" sele ct="$Param Splits" /> | |||||
110 | <xsl:with -param nam e="ParamUR I" select= "$VarPrope rty/@Value " /> | |||||
111 | </xsl:call -template> | |||||
112 | <xsl:text> ")</xsl:te xt> | |||||
113 | < /xsl:attri bute> | |||||
114 | </ wwproject: Property> | |||||
115 | </x sl:if> | |||||
116 | </xs l:when> | |||||
117 | ||||||
118 | <xsl :otherwise > | |||||
119 | <ww project:Pr operty Nam e="{$VarPr operty/@Na me}" Value ="{$VarPro perty/@Val ue}" /> | |||||
120 | </xs l:otherwis e> | |||||
121 | </xsl :choose> | |||||
122 | </xsl: for-each> | |||||
123 | </xsl:f or-each> | |||||
124 | </xsl:fo r-each> | |||||
125 | </xsl:tem plate> | |||||
126 | ||||||
127 | ||||||
128 | <xsl:temp late name= "HTML-Cata logPropert ies"> | |||||
129 | <xsl:par am name="P aramProper ties" /> | |||||
130 | ||||||
131 | <xsl:for -each sele ct="$Param Properties [1]"> | |||||
132 | <!-- At tempts to sort empty node sets results i n fatal er rors on so me systems --> | |||||
133 | <!-- --> | |||||
134 | <xsl:fo r-each sel ect="$Para mPropertie s"> | |||||
135 | <xsl:s ort select ="@Name" d ata-type=" text" orde r="ascendi ng" /> | |||||
136 | ||||||
137 | <!-- E mit Proper ty --> | |||||
138 | <!-- --> | |||||
139 | <xsl:t ext> </xs l:text> | |||||
140 | <xsl:v alue-of se lect="@Nam e" /> | |||||
141 | <xsl:t ext>: </xs l:text> | |||||
142 | <xsl:v alue-of se lect="@Val ue" /> | |||||
143 | <xsl:t ext>;</xsl :text> | |||||
144 | <xsl:t ext> | |||||
145 | </xsl:text > | |||||
146 | </xsl:f or-each> | |||||
147 | </xsl:fo r-each> | |||||
148 | </xsl:tem plate> | |||||
149 | ||||||
150 | <xsl:temp late name= "HTML-Cata logPropert iesOuter"> | |||||
151 | <xsl:par am name="P aramProper ties" /> | |||||
152 | ||||||
153 | <xsl:var iable name ="VarPrope rties" sel ect="$Para mPropertie s[@Name != 'margin-l eft']" /> | |||||
154 | <xsl:for -each sele ct="$VarPr operties[1 ]"> | |||||
155 | <!-- At tempts to sort empty node sets results i n fatal er rors on so me systems --> | |||||
156 | <!-- --> | |||||
157 | <xsl:fo r-each sel ect="$VarP roperties" > | |||||
158 | <xsl:s ort select ="@Name" d ata-type=" text" orde r="ascendi ng" /> | |||||
159 | ||||||
160 | <!-- E mit Proper ty --> | |||||
161 | <!-- --> | |||||
162 | <xsl:t ext> </xs l:text> | |||||
163 | <xsl:v alue-of se lect="@Nam e" /> | |||||
164 | <xsl:t ext>: </xs l:text> | |||||
165 | <xsl:v alue-of se lect="@Val ue" /> | |||||
166 | <xsl:t ext>;</xsl :text> | |||||
167 | <xsl:t ext> | |||||
168 | </xsl:text > | |||||
169 | </xsl:f or-each> | |||||
170 | </xsl:fo r-each> | |||||
171 | </xsl:tem plate> | |||||
172 | ||||||
173 | <xsl:temp late name= "HTML-Cata logPropert iesInner"> | |||||
174 | <xsl:par am name="P aramProper ties" /> | |||||
175 | ||||||
176 | <xsl:var iable name ="VarPrope rties" sel ect="$Para mPropertie s[(@Name ! = 'text-in dent') and (contains (@Name, 'f ont') or c ontains(@N ame, 'text ') or (@Na me = 'colo r'))]" /> | |||||
177 | <xsl:for -each sele ct="$VarPr operties[1 ]"> | |||||
178 | <!-- At tempts to sort empty node sets results i n fatal er rors on so me systems --> | |||||
179 | <!-- --> | |||||
180 | <xsl:fo r-each sel ect="$VarP roperties" > | |||||
181 | <xsl:s ort select ="@Name" d ata-type=" text" orde r="ascendi ng" /> | |||||
182 | ||||||
183 | <!-- E mit Proper ty --> | |||||
184 | <!-- --> | |||||
185 | <xsl:t ext> </xs l:text> | |||||
186 | <xsl:v alue-of se lect="@Nam e" /> | |||||
187 | <xsl:t ext>: </xs l:text> | |||||
188 | <xsl:v alue-of se lect="@Val ue" /> | |||||
189 | <xsl:t ext>;</xsl :text> | |||||
190 | <xsl:t ext> | |||||
191 | </xsl:text > | |||||
192 | </xsl:f or-each> | |||||
193 | </xsl:fo r-each> | |||||
194 | ||||||
195 | <!-- Har d code 0 v alues for margins an d padding --> | |||||
196 | <!-- --> | |||||
197 | <xsl:val ue-of sele ct="' mar gin-left: 0pt;'"/> | |||||
198 | <xsl:tex t> | |||||
199 | </xsl:text > | |||||
200 | <xsl:val ue-of sele ct="' mar gin-right: 0pt;'"/> | |||||
201 | <xsl:tex t> | |||||
202 | </xsl:text > | |||||
203 | <xsl:val ue-of sele ct="' mar gin-top: 0 pt;'"/> | |||||
204 | <xsl:tex t> | |||||
205 | </xsl:text > | |||||
206 | <xsl:val ue-of sele ct="' mar gin-bottom : 0pt;'"/> | |||||
207 | <xsl:tex t> | |||||
208 | </xsl:text > | |||||
209 | <xsl:val ue-of sele ct="' pad ding-left: 0pt;'"/> | |||||
210 | <xsl:tex t> | |||||
211 | </xsl:text > | |||||
212 | <xsl:val ue-of sele ct="' pad ding-right : 0pt;'"/> | |||||
213 | <xsl:tex t> | |||||
214 | </xsl:text > | |||||
215 | <xsl:val ue-of sele ct="' pad ding-top: 0pt;'"/> | |||||
216 | <xsl:tex t> | |||||
217 | </xsl:text > | |||||
218 | <xsl:val ue-of sele ct="' pad ding-botto m: 0pt;'"/ > | |||||
219 | <xsl:tex t> | |||||
220 | </xsl:text > | |||||
221 | </xsl:tem plate> | |||||
222 | ||||||
223 | <xsl:temp late name= "HTML-Inli neProperti es"> | |||||
224 | <xsl:par am name="P aramProper ties" /> | |||||
225 | ||||||
226 | <xsl:for -each sele ct="$Param Properties [1]"> | |||||
227 | <!-- At tempts to sort empty node sets results i n fatal er rors on so me systems --> | |||||
228 | <!-- --> | |||||
229 | <xsl:fo r-each sel ect="$Para mPropertie s"> | |||||
230 | <xsl:s ort select ="@Name" d ata-type=" text" orde r="ascendi ng" /> | |||||
231 | ||||||
232 | <!-- E mit Proper ty --> | |||||
233 | <!-- --> | |||||
234 | <xsl:v alue-of se lect="@Nam e" /> | |||||
235 | <xsl:t ext>: </xs l:text> | |||||
236 | <xsl:v alue-of se lect="@Val ue" /> | |||||
237 | <xsl:t ext>;</xsl :text> | |||||
238 | <xsl:i f test="po sition() ! = last()"> | |||||
239 | <xsl: value-of s elect="' ' " /> | |||||
240 | </xsl: if> | |||||
241 | </xsl:f or-each> | |||||
242 | </xsl:fo r-each> | |||||
243 | </xsl:tem plate> | |||||
244 | ||||||
245 | <xsl:temp late name= "HTML-Inli neProperti esOuter"> | |||||
246 | <xsl:par am name="P aramProper ties" /> | |||||
247 | <xsl:par am name="P aramContex tPropertie s" /> | |||||
248 | ||||||
249 | <xsl:var iable name ="VarTextI ndent" sel ect="wwuni ts:Numeric Prefix($Pa ramContext Properties [@Name = ' text-inden t']/@Value )" /> | |||||
250 | <xsl:var iable name ="VarTextI ndentUnits " select=" wwunits:Un itsSuffix( $ParamCont extPropert ies[@Name = 'text-in dent']/@Va lue)" /> | |||||
251 | <xsl:var iable name ="VarMargi nLeft" sel ect="wwuni ts:Numeric Prefix($Pa ramContext Properties [@Name = ' margin-lef t']/@Value )" /> | |||||
252 | <xsl:var iable name ="VarMargi nUnits" se lect="wwun its:UnitsS uffix($Par amContextP roperties[ @Name = 'm argin-left ']/@Value) " /> | |||||
253 | ||||||
254 | <!-- Mak e sure we' re talking the same language. --> | |||||
255 | <!-- --> | |||||
256 | <xsl:var iable name ="VarMargi nAsTextInd entUnit" s elect="wwu nits:Conve rt($VarMar ginLeft, $ VarMarginU nits, $Var TextIndent Units)" /> | |||||
257 | <xsl:var iable name ="VarMargi nSum" sele ct="number ($VarMargi nAsTextInd entUnit) + number($V arTextInde nt)" /> | |||||
258 | ||||||
259 | <!-- And convert i t back. -- > | |||||
260 | <!-- -- > | |||||
261 | <xsl:var iable name ="VarMargi nSumAsMarg inUnits" s elect="wwu nits:Conve rt($VarMar ginSum, $V arTextInde ntUnits, $ VarMarginU nits)" /> | |||||
262 | ||||||
263 | <!-- mar gin-left - -> | |||||
264 | <!-- - -> | |||||
265 | <xsl:tex t>margin-l eft: </xsl :text> | |||||
266 | <xsl:val ue-of sele ct="$VarMa rginSumAsM arginUnits " /> | |||||
267 | <xsl:val ue-of sele ct="$VarMa rginUnits" /> | |||||
268 | <xsl:tex t>;</xsl:t ext> | |||||
269 | ||||||
270 | <xsl:var iable name ="VarPrope rties" sel ect="$Para mPropertie s[(@Name ! = 'margin- left') and (not(cont ains(@Name , 'font')) and not(c ontains(@N ame, 'text ')) and no t(@Name = 'color'))] " /> | |||||
271 | <xsl:for -each sele ct="$VarPr operties[1 ]"> | |||||
272 | <!-- At tempts to sort empty node sets results i n fatal er rors on so me systems --> | |||||
273 | <!-- --> | |||||
274 | <xsl:fo r-each sel ect="$VarP roperties" > | |||||
275 | <xsl:s ort select ="@Name" d ata-type=" text" orde r="ascendi ng" /> | |||||
276 | ||||||
277 | <!-- E mit Proper ty --> | |||||
278 | <!-- --> | |||||
279 | <xsl:v alue-of se lect="@Nam e" /> | |||||
280 | <xsl:t ext>: </xs l:text> | |||||
281 | <xsl:v alue-of se lect="@Val ue" /> | |||||
282 | <xsl:t ext>;</xsl :text> | |||||
283 | <xsl:i f test="po sition() ! = last()"> | |||||
284 | <xsl: value-of s elect="' ' " /> | |||||
285 | </xsl: if> | |||||
286 | </xsl:f or-each> | |||||
287 | </xsl:fo r-each> | |||||
288 | </xsl:tem plate> | |||||
289 | ||||||
290 | <xsl:temp late name= "HTML-Inli neProperti esInnerNum ber"> | |||||
291 | <xsl:par am name="P aramProper ties" /> | |||||
292 | ||||||
293 | <xsl:var iable name ="VarPrope rties" sel ect="$Para mPropertie s[(@Name ! = 'text-in dent') and (@Name != 'width') and (@Name != 'white -space') a nd (contai ns(@Name, 'font') or contains( @Name, 'te xt') or (@ Name = 'co lor'))]" / > | |||||
294 | <xsl:for -each sele ct="$VarPr operties[1 ]"> | |||||
295 | <!-- At tempts to sort empty node sets results i n fatal er rors on so me systems --> | |||||
296 | <!-- --> | |||||
297 | <xsl:fo r-each sel ect="$VarP roperties" > | |||||
298 | <xsl:s ort select ="@Name" d ata-type=" text" orde r="ascendi ng" /> | |||||
299 | ||||||
300 | <!-- E mit Proper ty --> | |||||
301 | <!-- --> | |||||
302 | <xsl:v alue-of se lect="@Nam e" /> | |||||
303 | <xsl:t ext>: </xs l:text> | |||||
304 | <xsl:v alue-of se lect="@Val ue" /> | |||||
305 | <xsl:t ext>;</xsl :text> | |||||
306 | <xsl:i f test="po sition() ! = last()"> | |||||
307 | <xsl: value-of s elect="' ' " /> | |||||
308 | </xsl: if> | |||||
309 | </xsl:f or-each> | |||||
310 | </xsl:fo r-each> | |||||
311 | </xsl:tem plate> | |||||
312 | ||||||
313 | <xsl:temp late name= "HTML-Inli neProperti esInnerCon tent"> | |||||
314 | <xsl:par am name="P aramProper ties" /> | |||||
315 | ||||||
316 | <xsl:var iable name ="VarPrope rties" sel ect="$Para mPropertie s[(@Name ! = 'text-in dent') and (contains (@Name, 'f ont') or c ontains(@N ame, 'text ') or (@Na me = 'colo r'))]" /> | |||||
317 | <xsl:for -each sele ct="$VarPr operties[1 ]"> | |||||
318 | <!-- At tempts to sort empty node sets results i n fatal er rors on so me systems --> | |||||
319 | <!-- --> | |||||
320 | <xsl:fo r-each sel ect="$VarP roperties" > | |||||
321 | <xsl:s ort select ="@Name" d ata-type=" text" orde r="ascendi ng" /> | |||||
322 | ||||||
323 | <!-- E mit Proper ty --> | |||||
324 | <!-- --> | |||||
325 | <xsl:v alue-of se lect="@Nam e" /> | |||||
326 | <xsl:t ext>: </xs l:text> | |||||
327 | <xsl:v alue-of se lect="@Val ue" /> | |||||
328 | <xsl:t ext>;</xsl :text> | |||||
329 | <xsl:i f test="po sition() ! = last()"> | |||||
330 | <xsl: value-of s elect="' ' " /> | |||||
331 | </xsl: if> | |||||
332 | </xsl:f or-each> | |||||
333 | </xsl:fo r-each> | |||||
334 | </xsl:tem plate> | |||||
335 | </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.