SciNotes Prefs: choose the eol according to the OS
[scilab.git] / scilab / modules / scinotes / etc / XConfiguration-scinotes.xsl
1 <?xml version='1.0' encoding='utf-8'?>\r
2 <xsl:stylesheet version ="1.0"\r
3                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">\r
4 \r
5   <xsl:template match="scinotes-preferences">\r
6     <Title text="_(Editor)">\r
7       <VBox>\r
8         <HBox>\r
9           <xsl:call-template name="BooleanCheckBox">\r
10             <xsl:with-param name="text" select="'_(Use SciNotes)'"/>\r
11             <xsl:with-param name="attr-name" select="'scinotes'"/>\r
12           </xsl:call-template>\r
13           <Glue/>\r
14         </HBox>\r
15         <xsl:variable name="enable">\r
16           <xsl:choose>\r
17             <xsl:when test="@scinotes='true'">\r
18               <xsl:text>false</xsl:text>\r
19             </xsl:when>\r
20             <xsl:otherwise>\r
21               <xsl:text>true</xsl:text>\r
22             </xsl:otherwise>\r
23           </xsl:choose>\r
24         </xsl:variable>\r
25         <Grid>\r
26           <Radiobutton value="{@external-cmd}" expected-value="true" listener="ActionListener" text="_(External editor: )" gridx="1" gridy="1" fill="none" weightx="0" anchor="west" enable="{$enable}">\r
27             <actionPerformed choose="external-cmd">\r
28               <xsl:call-template name="context"/>\r
29             </actionPerformed>\r
30           </Radiobutton>\r
31           <FileSelector gridx="2" gridy="1" weightx="1" anchor="above_baseline"\r
32                         listener="EntryListener"\r
33                         href="{@cmd}"\r
34                         dir-selection="false"\r
35                         check-entry="false">\r
36             <xsl:attribute name="enable">\r
37               <xsl:if test="@scinotes='false' and @external-cmd='true'">\r
38                 <xsl:text>true</xsl:text>\r
39               </xsl:if>\r
40             </xsl:attribute>\r
41             <entryChanged choose="cmd">\r
42               <xsl:call-template name="context"/>\r
43             </entryChanged>\r
44           </FileSelector>\r
45           <Label gridx="2" gridy="2" text="_((Don't forget to quote path containing white spaces))">\r
46             <xsl:attribute name="enable">\r
47               <xsl:if test="@scinotes='false' and @external-cmd='true'">\r
48                 <xsl:text>true</xsl:text>\r
49               </xsl:if>\r
50             </xsl:attribute>\r
51           </Label>\r
52           <Panel height="5" gridx="1" gridy="3">\r
53             <VSpace height="5"/>\r
54           </Panel>\r
55           <Radiobutton value="{@external-cmd}" expected-value="false" listener="ActionListener" text="_(Scilab command: )" gridx="1" gridy="4" fill="none" weightx="0" anchor="west" enable="{$enable}">\r
56             <actionPerformed choose="external-cmd">\r
57               <xsl:call-template name="context"/>\r
58             </actionPerformed>\r
59           </Radiobutton>\r
60           <Entry gridx="2" gridy="4" weightx="1" anchor="above_baseline"\r
61                  listener="EntryListener"\r
62                  text="{@macro}">\r
63             <xsl:attribute name="enable">\r
64               <xsl:if test="@scinotes='false' and @external-cmd='false'">\r
65                 <xsl:text>true</xsl:text>\r
66               </xsl:if>\r
67             </xsl:attribute>\r
68             <entryChanged choose="macro">\r
69               <xsl:call-template name="context"/>\r
70             </entryChanged>\r
71           </Entry>\r
72         </Grid>\r
73       </VBox>\r
74     </Title>\r
75     <VSpace height="10"/>\r
76     <Title text="_(SciNotes General settings)">\r
77       <Grid>\r
78         <Panel gridx="1" gridy="1" gridwidth="3">\r
79           <xsl:call-template name="BooleanCheckBox">\r
80             <xsl:with-param name="attr-name" select="'restart-reopen'"/>\r
81             <xsl:with-param name="text" select="'_(Restore previous session on start-up)'"/>\r
82           </xsl:call-template>\r
83         </Panel>\r
84         <Panel gridx="1" gridy="2" gridwidth="3">\r
85           <xsl:call-template name="BooleanCheckBox">\r
86             <xsl:with-param name="attr-name" select="'add-line-termination'"/>\r
87             <xsl:with-param name="text" select="'_(Add carriage return at the end of the file.)'"/>\r
88           </xsl:call-template>\r
89         </Panel>\r
90         <Label gridx="1" gridy="3" weightx="0" text="_(Number of recently opened files to display: )"/>\r
91         <Panel gridx="2" gridy="3" gridheight="2" fill="both"/>\r
92         <NumericalSpinner gridx="3"\r
93                           gridy="3"\r
94                           weightx="0"\r
95                           min-value = "0"\r
96                           increment = "1"\r
97                           length = "4"\r
98                           listener = "ActionListener"\r
99                           value = "{@number-of-recently-open}">\r
100           <actionPerformed choose="number-of-recently-open">\r
101             <xsl:call-template name="context"/>\r
102           </actionPerformed>\r
103         </NumericalSpinner>\r
104         <Label gridx="1" gridy="4" weightx="0" text="_(Default file encoding: )"/>\r
105         <Panel gridx="3" gridy="4">\r
106           <xsl:call-template name="Select">\r
107             <xsl:with-param name="among">\r
108               <option encoding="utf-8"/>\r
109               <option encoding="iso-8859-1"/>\r
110               <option encoding="windows-1252"/>\r
111             </xsl:with-param>\r
112           </xsl:call-template>\r
113         </Panel>\r
114         <Label gridx="1" gridy="5" weightx="0" text="_(Default End-Of-Line: )"/>\r
115         <Select gridx="3" gridy="5" listener="ActionListener">\r
116           <actionPerformed choose="eol">\r
117             <xsl:call-template name="context"/>\r
118           </actionPerformed>\r
119           <xsl:variable name="eol">\r
120             <xsl:choose>\r
121               <xsl:when test="@eol=''">\r
122                 <xsl:choose>\r
123                   <xsl:when test="$OS='Windows'">\r
124                     <xsl:text>Windows (CR+LF)</xsl:text>\r
125                   </xsl:when>\r
126                   <xsl:when test="$OS='Mac'">\r
127                     <xsl:text>Mac OS (CR)</xsl:text>\r
128                   </xsl:when>\r
129                   <xsl:otherwise>\r
130                     <xsl:text>Unix (LF)</xsl:text>\r
131                   </xsl:otherwise>\r
132                 </xsl:choose>\r
133               </xsl:when>\r
134               <xsl:otherwise>\r
135                 <xsl:value-of select="@eol"/>\r
136               </xsl:otherwise>\r
137             </xsl:choose>\r
138           </xsl:variable>\r
139           <option value="Unix (LF)">\r
140             <xsl:if test="$eol='Unix (LF)'">\r
141               <xsl:attribute name="selected">selected</xsl:attribute>\r
142             </xsl:if>\r
143           </option>\r
144           <option value="Windows (CR+LF)">\r
145             <xsl:if test="$eol='Windows (CR+LF)'">\r
146               <xsl:attribute name="selected">selected</xsl:attribute>\r
147             </xsl:if>\r
148           </option>\r
149           <option value="Mac OS (CR)">\r
150             <xsl:if test="$eol='Mac OS (CR)'">\r
151               <xsl:attribute name="selected">selected</xsl:attribute>\r
152             </xsl:if>\r
153           </option>\r
154         </Select>\r
155       </Grid>\r
156     </Title>\r
157   </xsl:template>\r
158 \r
159   <xsl:template match="scinotes-display">\r
160     <Title text="_(General display options)">\r
161       <Grid>\r
162         <Checkbox checked="{@highlight-current-line}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Highlight current line: )" gridx="1" gridy="1" fill="none" weightx="0" anchor="west">\r
163           <actionPerformed choose="highlight-current-line">\r
164             <xsl:call-template name="context"/>\r
165           </actionPerformed>\r
166         </Checkbox>\r
167         <Panel gridx="2" gridy="1" weightx="1"/>\r
168         <Panel gridx="3" gridy="1" weightx="1"/>\r
169         <Color color="{@current-line-color}" listener="ActionListener" gridx="4" gridy="1" weightx="0" enable="{@highlight-current-line}">\r
170           <actionPerformed choose="current-line-color">\r
171             <xsl:call-template name="context"/>\r
172           </actionPerformed>\r
173         </Color>\r
174         <Checkbox checked="{@show-line-numbers}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Show line numbers: )" gridx="1" gridy="2" fill="none" weightx="0" anchor="west">\r
175           <actionPerformed choose="show-line-numbers">\r
176             <xsl:call-template name="context"/>\r
177           </actionPerformed>\r
178         </Checkbox>\r
179         <Radiobutton value="{@whereami}" expected-value="true" listener="ActionListener" text="_(Whereami compatible)" gridx="2" gridy="2" fill="none" weightx="0" anchor="west" enable="{@show-line-numbers}">\r
180           <actionPerformed choose="whereami">\r
181             <xsl:call-template name="context"/>\r
182           </actionPerformed>\r
183         </Radiobutton>\r
184         <Radiobutton value="{@whereami}" expected-value="false" listener="ActionListener" text="_(Normal)" gridx="3" gridy="2" gridwidth="2" fill="none" weightx="0" anchor="west" enable="{@show-line-numbers}">\r
185           <actionPerformed choose="whereami">\r
186             <xsl:call-template name="context"/>\r
187           </actionPerformed>\r
188         </Radiobutton>\r
189         <Checkbox checked="{@wrap-lines}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Wrap lines)" gridx="1" gridy="3" fill="none" weightx="0" anchor="west">\r
190           <actionPerformed choose="wrap-lines">\r
191             <xsl:call-template name="context"/>\r
192           </actionPerformed>\r
193         </Checkbox>\r
194       </Grid>\r
195     </Title>\r
196     <VSpace height="10"/>\r
197     <Title text="_(Keywords)">\r
198       <Grid>\r
199         <Checkbox checked="{@keywords-colorization}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Enable keywords colorization)" gridx="1" gridy="1" fill="none" weightx="0" anchor="west">\r
200           <actionPerformed choose="keywords-colorization">\r
201             <xsl:call-template name="context"/>\r
202           </actionPerformed>\r
203         </Checkbox>\r
204         <Panel gridx="2" gridy="1" weightx="1"/>\r
205         <Link gridx="3" gridy="1" weightx="0" listener="MouseListener" text="_(Set syntax Colors)" enable="{@keywords-colorization}">\r
206           <mouseClicked set="path" value="3/" context="/" enable="{@keywords-colorization}"/>\r
207         </Link>\r
208         <Checkbox checked="{@highlight-brackets}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Highlight corresponding brackets)" gridx="1" gridy="2" fill="none" weightx="0" anchor="west">\r
209           <actionPerformed choose="highlight-brackets">\r
210             <xsl:call-template name="context"/>\r
211           </actionPerformed>\r
212         </Checkbox>\r
213         <Grid gridx="1" gridy="3" gridwidth="3" ipadx="10">\r
214           <Label gridx="1" gridy="1" weightx="0" text="_(Color: )" enable="{@highlight-brackets}"/>\r
215           <Color color="{@brackets-color}" listener="ActionListener" gridx="2" gridy="1" weightx="0" enable="{@highlight-brackets}">\r
216             <actionPerformed choose="brackets-color">\r
217               <xsl:call-template name="context"/>\r
218             </actionPerformed>\r
219           </Color>\r
220           <Panel gridx="3" gridy="1" weightx="1"/>\r
221           <Checkbox checked="{@brackets-onmouseover}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Highlight on mouse over)" gridx="4" gridy="1" fill="none" weightx="0" anchor="west" enable="{@highlight-brackets}">\r
222             <actionPerformed choose="brackets-onmouseover">\r
223               <xsl:call-template name="context"/>\r
224             </actionPerformed>\r
225           </Checkbox>\r
226           <Panel gridx="5" gridy="1" weightx="1"/>\r
227           <Label gridx="6" gridy="1" weightx="0" text="_(Style: )" enable="{@highlight-brackets}"/>\r
228           <Select gridx="7" gridy="1" listener="ActionListener" enable="{@highlight-brackets}">\r
229             <actionPerformed choose="brackets-highlightment">\r
230               <xsl:call-template name="context"/>\r
231             </actionPerformed>\r
232             <option value="_(Filled)" key="Filled"/>\r
233             <option value="_(Framed)" key="Framed"/>\r
234             <option value="_(Underlined)" key="Underlined"/>\r
235           </Select>\r
236         </Grid>\r
237         <Checkbox checked="{@highlight-keywords}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Highlight corresponding keywords (e.g. if ... end))" gridx="1" gridy="4" fill="none" weightx="0" anchor="west">\r
238           <actionPerformed choose="highlight-keywords">\r
239             <xsl:call-template name="context"/>\r
240           </actionPerformed>\r
241         </Checkbox>\r
242         <Grid gridx="1" gridy="5" gridwidth="3" ipadx="10">\r
243           <Label gridx="1" gridy="1" weightx="0" text="_(Color: )" enable="{@highlight-keywords}"/>\r
244           <Color color="{@keywords-color}" listener="ActionListener" gridx="2" gridy="1" weightx="0" enable="{@highlight-keywords}">\r
245             <actionPerformed choose="keywords-color">\r
246               <xsl:call-template name="context"/>\r
247             </actionPerformed>\r
248           </Color>\r
249           <Panel gridx="3" gridy="1" weightx="1"/>\r
250           <Checkbox checked="{@keywords-onmouseover}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Highlight on mouse over)" gridx="4" gridy="1" fill="none" weightx="0" anchor="west" enable="{@highlight-keywords}">\r
251             <actionPerformed choose="keywords-onmouseover">\r
252               <xsl:call-template name="context"/>\r
253             </actionPerformed>\r
254           </Checkbox>\r
255           <Panel gridx="5" gridy="1" weightx="1"/>\r
256           <Label gridx="6" gridy="1" weightx="0" text="_(Style: )" enable="{@highlight-keywords}"/>\r
257           <Select gridx="7" gridy="1" listener="ActionListener" enable="{@highlight-keywords}">\r
258             <actionPerformed choose="keywords-highlightment">\r
259               <xsl:call-template name="context"/>\r
260             </actionPerformed>\r
261             <option value="_(Filled)" key="Filled"/>\r
262             <option value="_(Framed)" key="Framed"/>\r
263           </Select>\r
264         </Grid>\r
265       </Grid>\r
266     </Title>\r
267     <VSpace height="10"/>\r
268     <Title text="_(Tabulation and Indentation)">\r
269       <Grid>\r
270         <Label text="_(Tabulation size: )" gridx="1" gridy="1" weightx="0"/>\r
271         <NumericalSpinner gridx="2"\r
272                           gridy="1"\r
273                           weightx="0"\r
274                           min-value = "1"\r
275                           increment = "1"\r
276                           length = "3"\r
277                           listener = "ActionListener"\r
278                           value = "{@tab-size}">\r
279           <actionPerformed choose="tab-size">\r
280             <xsl:call-template name="context"/>\r
281           </actionPerformed>\r
282         </NumericalSpinner>\r
283         <Panel gridx="3" gridy="1" weightx="1"/>\r
284         <Checkbox checked="{@use-spaces}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Use space)" gridx="4" gridy="1" fill="none" weightx="0" anchor="west">\r
285           <actionPerformed choose="use-spaces">\r
286             <xsl:call-template name="context"/>\r
287           </actionPerformed>\r
288         </Checkbox>\r
289 \r
290         <Label text="_(Representation: )" gridx="1" gridy="2" weightx="0"/>\r
291         <Radiobutton value="{@tab-representation}" expected-value="chevrons" listener="ActionListener" text="_(Chevrons)" gridx="2" gridy="2" fill="none" weightx="0" anchor="west" enable="true">\r
292           <actionPerformed choose="tab-representation">\r
293             <xsl:call-template name="context"/>\r
294           </actionPerformed>\r
295         </Radiobutton>\r
296         <Radiobutton value="{@tab-representation}" expected-value="hrule" listener="ActionListener" text="_(Horizontal rule)" gridx="3" gridy="2" fill="none" weightx="0" anchor="west" enable="true">\r
297           <actionPerformed choose="tab-representation">\r
298             <xsl:call-template name="context"/>\r
299           </actionPerformed>\r
300         </Radiobutton>\r
301         <Radiobutton value="{@tab-representation}" expected-value="vrule" listener="ActionListener" text="_(Vertical rule)" gridx="4" gridy="2" fill="none" weightx="0" anchor="west" enable="true">\r
302           <actionPerformed choose="tab-representation">\r
303             <xsl:call-template name="context"/>\r
304           </actionPerformed>\r
305         </Radiobutton>\r
306 \r
307         <Checkbox checked="{@automatic-indent}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Enable auto indentation)" gridx="1" gridy="3" fill="none" weightx="0" anchor="west">\r
308           <actionPerformed choose="use-spaces">\r
309             <xsl:call-template name="context"/>\r
310           </actionPerformed>\r
311         </Checkbox>\r
312         <Label gridy="4" text="_(Indent size: )"/>\r
313         <Panel gridy="4" gridx="2" >\r
314           <xsl:call-template name="Select">\r
315             <xsl:with-param name="among">\r
316               <option indent-size="2"/>\r
317               <option indent-size="4"/>\r
318               <option indent-size="8"/>\r
319             </xsl:with-param>\r
320           </xsl:call-template>\r
321         </Panel>\r
322       </Grid>\r
323     </Title>\r
324   </xsl:template>\r
325 \r
326   <xsl:template match="scinotes-autosave">\r
327     <Checkbox checked="{@enable}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Enable autosave in Scinotes)">\r
328       <actionPerformed choose="enable">\r
329         <xsl:call-template name="context"/>\r
330       </actionPerformed>\r
331     </Checkbox>\r
332     <VSpace height="10"/>\r
333     <Title text="_(Save options)">\r
334       <Grid>\r
335         <Label gridx="1" gridy="1" weightx="0" anchor="west" text="_(Save every )" enable="{@enable}"/>\r
336         <NumericalSpinner gridx="2"\r
337                           gridy="1"\r
338                           weightx="0"\r
339                           min-value = "1"\r
340                           increment = "1"\r
341                           length = "4"\r
342                           listener = "ActionListener"\r
343                           enable = "{@enable}"\r
344                           value = "{@save-every}">\r
345           <actionPerformed choose="save-every">\r
346             <xsl:call-template name="context"/>\r
347           </actionPerformed>\r
348         </NumericalSpinner>\r
349         <Label gridx="3" gridy="1" weightx="0" anchor="west" text="_( minutes )" enable="{@enable}"/>\r
350         <Panel gridx="4" gridy="1" gridheight="1" fill="both"/>\r
351       </Grid>\r
352     </Title>\r
353     <VSpace height="10"/>\r
354     <Title text="_(Close options)">\r
355       <Checkbox checked="{@automatic-delete}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Delete automatically saved files)" enable="{@enable}">\r
356         <actionPerformed choose="automatic-delete">\r
357           <xsl:call-template name="context"/>\r
358         </actionPerformed>\r
359       </Checkbox>\r
360     </Title>\r
361     <VSpace height="10"/>\r
362     <Title text="_(Filename)">\r
363       <Grid>\r
364         <Radiobutton value="{@append-filename}" expected-value="true" listener="ActionListener" text="_(Append filename with: )" gridx="1" gridy="1" fill="none" weightx="0" anchor="west" enable="{@enable}">\r
365           <actionPerformed choose="append-filename">\r
366             <xsl:call-template name="context"/>\r
367           </actionPerformed>\r
368         </Radiobutton>\r
369         <Panel gridx="2" gridy="1" gridheight="1" fill="both"/>\r
370         <Entry gridx="3" gridy="1" weightx="1" anchor="above_baseline"\r
371                listener="EntryListener"\r
372                text="{@append-with}">\r
373           <xsl:attribute name="enable">\r
374             <xsl:if test="@enable='true' and @append-filename='true'">\r
375               <xsl:text>true</xsl:text>\r
376             </xsl:if>\r
377           </xsl:attribute>\r
378           <entryChanged choose="append-with">\r
379             <xsl:call-template name="context"/>\r
380           </entryChanged>\r
381         </Entry>\r
382         <Radiobutton value="{@append-filename}" expected-value="false" listener="ActionListener" text="_(Replace extension with: )" gridx="1" gridy="2" fill="none" weightx="0" anchor="west" enable="{@enable}">\r
383           <actionPerformed choose="append-filename">\r
384             <xsl:call-template name="context"/>\r
385           </actionPerformed>\r
386         </Radiobutton>\r
387         <Entry gridx="3" gridy="2" weightx="1" anchor="above_baseline"\r
388                listener="EntryListener"\r
389                text="{@replace-with}">\r
390           <xsl:attribute name="enable">\r
391             <xsl:if test="@enable='true' and @append-filename='false'">\r
392               <xsl:text>true</xsl:text>\r
393             </xsl:if>\r
394           </xsl:attribute>\r
395           <entryChanged choose="replace-with">\r
396             <xsl:call-template name="context"/>\r
397           </entryChanged>\r
398         </Entry>\r
399       </Grid>\r
400     </Title>\r
401     <VSpace height="10"/>\r
402     <Title text="_(Location)">\r
403       <Grid>\r
404         <Radiobutton value="{@source-flag}" expected-value="true" listener="ActionListener" text="_(Source file directory)" gridx="1" gridy="1" fill="none" weightx="0" anchor="west" enable="{@enable}">\r
405           <actionPerformed choose="source-flag">\r
406             <xsl:call-template name="context"/>\r
407           </actionPerformed>\r
408         </Radiobutton>\r
409         <Radiobutton value="{@source-flag}" expected-value="false" listener="ActionListener" text="_(Single directory)" gridx="1" gridy="2" fill="none" weightx="0" anchor="west" enable="{@enable}">\r
410           <actionPerformed choose="source-flag">\r
411             <xsl:call-template name="context"/>\r
412           </actionPerformed>\r
413         </Radiobutton>\r
414         <Panel gridx="2" gridy="2" gridheight="1" fill="both"/>\r
415         <FileSelector gridx="3" gridy="2" href="{@single-directory}" mask="*"\r
416                       desc="_(Choose an autosave directory)"\r
417                       dir-selection = "true"\r
418                       listener="EntryListener">\r
419           <xsl:attribute name="enable">\r
420             <xsl:if test="@enable='true' and @source-flag='false'">\r
421               <xsl:text>true</xsl:text>\r
422             </xsl:if>\r
423           </xsl:attribute>\r
424           <entryChanged choose="single-directory">\r
425             <xsl:call-template name="context"/>\r
426           </entryChanged>\r
427         </FileSelector>\r
428       </Grid>\r
429     </Title>\r
430   </xsl:template>\r
431 \r
432   <xsl:template match="scinotes-header">\r
433     <Title text="_(Default header)">\r
434       <Grid>\r
435         <Checkbox checked="{@enable}" selected-value="true" unselected-value="false" listener="ActionListener" text="_(Add a default header to new file)" gridx="1" gridy="1" fill="none" weightx="0" anchor="west">\r
436           <actionPerformed choose="enable">\r
437             <xsl:call-template name="context"/>\r
438           </actionPerformed>\r
439         </Checkbox>\r
440         <Panel gridx="2" gridy="1" gridheight="1" fill="both"/>\r
441         <TextArea gridx="1" gridy="2" weightx="1" gridwidth="2" weighty="0" anchor="west"\r
442                   editable="true"\r
443                   rows="15"\r
444                   scroll="true"\r
445                   listener="EntryListener"\r
446                   enable="{@enable}">\r
447           <xsl:attribute name="text">\r
448             <xsl:value-of select="string(child::node()[1])" disable-output-escaping="yes"/>\r
449           </xsl:attribute>\r
450           <entryChanged choose-child="1">\r
451             <xsl:call-template name="context"/>\r
452           </entryChanged>\r
453         </TextArea>\r
454       </Grid>\r
455     </Title>\r
456   </xsl:template>\r
457 </xsl:stylesheet>\r