1 <?xml version=
"1.0" encoding=
"utf-8"?>
5 Purpose: Common declarations for buildbot
8 Copyright: (c) 2007 Mike Wetherell
9 Licence: wxWidgets licence
12 <bot xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
13 xmlns:
exsl=
"http://exslt.org/common"
14 xmlns:
func=
"http://exslt.org/functions"
16 xsl:
extension-element-prefixes=
"func"
22 <xsl:template name=
"SVN_URL">http://svn.wxwidgets.org/svn/wx/wxWidgets/
</xsl:template>
23 <xsl:template name=
"STABLE_BRANCH">branches/WX_2_8_BRANCH
</xsl:template>
24 <xsl:variable name=
"STABLE_BRANCH"><STABLE_BRANCH/></xsl:variable>
25 <xsl:template name=
"SNAPSHOT_URL">http://biolpc22.york.ac.uk/pub
</xsl:template>
28 checkout - build step for source checkout.
30 Usage: as <svn> with defaults for <baseURL> and <defaultBranch>
35 <checkout branch="branches/WX_2_8_BRANCH"/>
38 <xsl:template name=
"checkout">
39 <xsl:param name=
"content"/>
40 <xsl:param name=
"branch" select=
"'trunk'"/>
41 <xsl:variable name=
"nodes" select=
"exsl:node-set($content)"/>
43 <xsl:if test=
"not($nodes/svnurl)">
44 <xsl:if test=
"not($nodes/baseURL)">
45 <baseURL><SVN_URL/></baseURL>
47 <xsl:if test=
"not($nodes/defaultBranch)">
48 <defaultBranch><xsl:value-of select=
"$branch"/></defaultBranch>
51 <xsl:copy-of select=
"$content"/>
56 configure - add the options attribute to <configure>
58 Usage: <configure options="-with-foobar"/>
60 <xsl:template name=
"configure">
61 <xsl:param name=
"content"/>
62 <xsl:param name=
"options"/>
64 <copy-with-defaults content=
"{$content}">
65 <command>./configure
<xsl:value-of select=
"normalize-space($options)"/></command>
71 make - specify the make command.
73 Usage: <make>nmake -f makefile.vc SHARED=1</make>
75 Used as a child of <build> to specify the make command used by the
76 <compile> elements below, if omitted 'make' is used.
78 <xsl:template name=
"make"/>
81 compile - modifiy <compile> to default to the command given by <make>
85 The <make> element of <build> spcecifies the make command used by all
86 compile build steps in the build. If <make> is not given 'make' is used.
88 The command for a particular compile build step can be further overridden
89 using its <command> element:
91 <command>myscript</command>
94 <xsl:template name=
"compile">
95 <xsl:param name=
"content"/>
97 <copy-with-defaults content=
"{$content}">
98 <command><get name=
"make" default=
"make"/></command>
104 Adds build steps to compile the library and the usual subdirectories.
106 Usage: as <compile> with the additional attributes below.
108 Usually the attributes default to suitable values, so typical usage
109 is just <compile-all/>.
111 <compile-all [ gui = 'true'|'false' ]
112 [ msw = 'true'|'false' ]
113 [ wx = 'true'|'false' ]
114 [ samples = 'true'|'false' ]
115 [ utils = 'true'|'false' ]
116 [ demos = 'true'|'false' ]
117 [ contrib = 'true'|'false' ]
118 [ tests = 'true'|'false' ] />
120 gui - if 'true' then build fully the subdirectories specified,
121 otherwise only the wxBase subset of the directories are built.
122 msw - if 'true' then build the directory 'build/msw' when building the
123 library instead of the root.
124 wx - build the library itself.
125 samples, utils, demos, contrib, tests
126 - build subdirectories.
128 <xsl:template name=
"compile-all">
129 <xsl:param name=
"content"/>
131 <xsl:param name=
"gui"><is-gui/></xsl:param>
132 <xsl:param name=
"msw"><is-msw/></xsl:param>
134 <xsl:param name=
"wx" select=
"'true'"/>
135 <xsl:param name=
"samples" select=
"'true'"/>
136 <xsl:param name=
"utils" select=
"'true'"/>
137 <xsl:param name=
"demos" select=
"$gui"/>
138 <xsl:param name=
"contrib"><has-contrib/></xsl:param>
139 <xsl:param name=
"tests"><has-tests/></xsl:param>
141 <xsl:param name=
"wx-dirs">
142 <get-dirs wx=
"{$wx}" gui=
"{$gui}" msw=
"{$msw}"/>
144 <xsl:param name=
"sample-dirs">
145 <get-dirs samples=
"{$samples}" gui=
"{$gui}" msw=
"{$msw}"/>
147 <xsl:param name=
"util-dirs">
148 <get-dirs utils=
"{$utils}" gui=
"{$gui}" msw=
"{$msw}"/>
150 <xsl:param name=
"demo-dirs">
151 <get-dirs demos=
"{$demos}" gui=
"{$gui}" msw=
"{$msw}"/>
153 <xsl:param name=
"contrib-dirs">
154 <get-dirs contrib=
"{$contrib}" gui=
"{$gui}" msw=
"{$msw}"/>
156 <xsl:param name=
"test-dirs">
157 <get-dirs tests=
"{$tests}" gui=
"{$gui}" msw=
"{$msw}"/>
160 <compile-subdirs dirs=
"{$wx-dirs}" halt=
"true">
161 <xsl:copy-of select=
"$content"/>
163 <compile-subdirs name=
"samples" dirs=
"{$sample-dirs}">
164 <xsl:copy-of select=
"$content"/>
166 <compile-subdirs name=
"utils" dirs=
"{$util-dirs}">
167 <xsl:copy-of select=
"$content"/>
169 <compile-subdirs name=
"demos" dirs=
"{$demo-dirs}">
170 <xsl:copy-of select=
"$content"/>
172 <compile-subdirs name=
"contrib" dirs=
"{$contrib-dirs}">
173 <xsl:copy-of select=
"$content"/>
175 <compile-subdirs name=
"tests" dirs=
"{$test-dirs}" halt=
"true">
176 <xsl:copy-of select=
"$content"/>
181 Helper for compile-all.
182 Returns the directories that need to be built for the various components:
183 wx (the library itself), samples, utils, demos, contrib and tests.
185 <xsl:template name=
"get-dirs">
186 <xsl:param name=
"contents"/>
188 <xsl:param name=
"gui"/>
189 <xsl:param name=
"msw"/>
191 <xsl:param name=
"wx"/>
192 <xsl:param name=
"samples"/>
193 <xsl:param name=
"utils"/>
194 <xsl:param name=
"demos"/>
195 <xsl:param name=
"contrib"/>
196 <xsl:param name=
"tests"/>
198 <xsl:if test=
"$wx = 'true'">
200 <xsl:when test=
"$msw = 'true'">build/msw
</xsl:when>
201 <xsl:otherwise>.
</xsl:otherwise>
203 <xsl:text> </xsl:text>
206 <xsl:if test=
"$samples = 'true'">
208 <xsl:when test=
"$gui = 'true'">samples
</xsl:when>
209 <xsl:otherwise>samples/console
</xsl:otherwise>
211 <xsl:text> </xsl:text>
214 <xsl:if test=
"$utils = 'true'">
216 <xsl:when test=
"$gui = 'true'">utils
</xsl:when>
217 <xsl:otherwise>utils/tex2rtf/src ../../HelpGen/src
</xsl:otherwise>
219 <xsl:text> </xsl:text>
222 <xsl:if test=
"$demos = 'true' and $gui = 'true'">demos
</xsl:if>
224 <xsl:if test=
"$contrib = 'true' and $gui = 'true'">contrib
</xsl:if>
226 <xsl:if test=
"$tests = 'true'">tests
</xsl:if>
230 compile-subdir - build step to compile a subdirectory.
232 Usage: as <compile> plus the following attributes,
233 <compile-subdir dir="foobar" [ halt="true" ]/>
235 Compiles the named subdirectory 'foobar'. Continues with the next build
236 step on failure, unless the optional attibute 'halt="true"' is given.
237 The make command used is as described for the compile step above.
239 <xsl:template name=
"compile-subdir">
240 <xsl:param name=
"content"/>
241 <xsl:param name=
"dir"/>
242 <xsl:param name=
"halt" select=
"'false'"/>
243 <compile-subdirs name=
"{$dir}" dirs=
"{$dir}" halt=
"{$halt}">
244 <xsl:copy-of select=
"$content"/>
249 compile-subdirs - adds a compile build step for each directory in a list.
251 Usage: as <compile> plus the following attributes,
252 <compile-subdir dirs="foobar1 foobar2"
257 Compiles the named subdirectories. Continues with the next build
258 step on failure, unless the optional attibute 'halt="true"' is given.
259 The make command used is as described for the compile step above.
260 The 'name' attribute can be used to give a collective name for the
261 subdirectories, and the 'sep' attibute can be used to specify the
262 separator in the 'dirs' list (defaults to space).
264 <xsl:template name=
"compile-subdirs">
265 <xsl:param name=
"content"/>
266 <xsl:param name=
"name"/>
267 <xsl:param name=
"dirs"/>
268 <xsl:param name=
"sep" select=
"' '"/>
269 <xsl:param name=
"halt" select=
"'false'"/>
270 <xsl:if test=
"translate($dirs, $sep, '')">
272 <defaults content=
"{$content}">
274 <xsl:value-of select=
"normalize-space(concat('compile ', $name))"/>
277 <xsl:value-of select=
"normalize-space(concat('compiling ', $name))"/>
280 <xsl:value-of select=
"normalize-space(concat('compile ', $name))"/>
283 <xsl:value-of select=
"$halt"/>
287 <copy-with-defaults content=
"{$content}">
289 <compile-subdirs-cmd dirs=
"{$dirs}" sep=
"{$sep}"/>
291 </copy-with-defaults>
296 <xsl:template name=
"compile-subdirs-cmd">
297 <xsl:param name=
"content"/>
298 <xsl:param name=
"dirs"/>
299 <xsl:param name=
"sep"/>
301 <xsl:when test=
"contains($dirs, $sep)">
302 <xsl:variable name=
"before" select=
"substring-before($dirs, $sep)"/>
303 <xsl:variable name=
"after" select=
"substring-after($dirs, $sep)"/>
305 <xsl:call-template name=
"compile-subdirs-cmd">
306 <xsl:with-param name=
"dirs" select=
"$before"/>
307 <xsl:with-param name=
"sep" select=
"$sep"/>
310 <xsl:if test=
"$after and substring($after, 1, 1) != ' '">
311 <xsl:text> && </xsl:text>
314 <xsl:call-template name=
"compile-subdirs-cmd">
315 <xsl:with-param name=
"dirs" select=
"$after"/>
316 <xsl:with-param name=
"sep" select=
"$sep"/>
319 <xsl:when test=
"string($dirs)">
320 <xsl:if test=
"$dirs != '.'">cd
<xsl:value-of select=
"$dirs"/> && </xsl:if>
321 <get name=
"make" default=
"make"/>
327 run-tests - build step to run the test suites.
334 <xsl:template name=
"run-tests">
335 <xsl:param name=
"content"/>
336 <xsl:param name=
"msw"><is-msw/></xsl:param>
338 <defaults content=
"{$content}">
339 <description>running tests
</description>
340 <descriptionDone>run tests
</descriptionDone>
343 <copy-with-defaults content=
"{$content}">
346 <xsl:when test=
"$msw = 'true'">
354 </copy-with-defaults>
359 We need to add something to the wxWidgets sources to run the tests with a
360 simple command so that these aren't necessary.
362 <xsl:template name=
"run-tests-win">
365 (for /d %x in (..\lib\*_dll) do @PATH=%x;%PATH%)
&&
366 (for /d %x in (*) do @if exist %x\test.exe %x\test)
&&
367 (for /d %x in (*) do @if exist %x\test_gui.exe %x\test_gui)
371 <xsl:template name=
"run-tests-unix">
375 if [ -x test_gui ]; then ./test_gui; fi
380 defaults - supply default content for an element.
382 Usage: <defaults content="{$content}">
387 Copies those child elements that do not already exist in $content.
389 <xsl:template name=
"defaults">
390 <xsl:param name=
"defaults"/>
391 <xsl:param name=
"content"/>
393 <xsl:variable name=
"def-nodes" select=
"exsl:node-set($defaults)"/>
394 <xsl:variable name=
"cont-nodes" select=
"exsl:node-set($content)"/>
396 <xsl:for-each select=
"$def-nodes/*">
397 <xsl:if test=
"not($cont-nodes/*[name() = name(current())])">
398 <xsl:copy-of select=
"."/>
404 copy-with-defaults - copy elements supplying defaults for any that are
407 Usage: <copy-with-defaults content="{$content}">
410 </copy-with-defaults>
412 Copies $content plus any child elements that do not exist in $content,
413 substituting empty elements in $content with any child elements of the
416 <xsl:template name=
"copy-with-defaults">
417 <xsl:param name=
"defaults"/>
418 <xsl:param name=
"content"/>
420 <xsl:variable name=
"def-nodes" select=
"exsl:node-set($defaults)"/>
421 <xsl:variable name=
"cont-nodes" select=
"exsl:node-set($content)"/>
423 <xsl:for-each select=
"$def-nodes/*">
424 <xsl:if test=
"not($cont-nodes/*[name() = name(current())])">
425 <xsl:copy-of select=
"."/>
429 <xsl:for-each select=
"$cont-nodes/*">
431 <xsl:when test=
"not(node())">
432 <xsl:copy-of select=
"$def-nodes/*[name() = name(current())]"/>
435 <xsl:copy-of select=
"."/>
442 get - gets the text from a child element of the current build.
444 Usage: <get name="foobar" [ default="value" ]/>
446 Gets the text from the <foobar> element of the current build, or returns
447 $default if there is not such element.
449 <xsl:template name=
"get">
450 <xsl:param name=
"content"/>
451 <xsl:param name=
"build" select=
"get:build()"/>
452 <xsl:param name=
"name"/>
453 <xsl:param name=
"default"/>
454 <xsl:variable name=
"property" select=
"get:property($name, $build)"/>
457 <xsl:when test=
"$property">
458 <xsl:apply-templates select=
"$property/node()"/>
461 <xsl:value-of select=
"$default"/>
468 Accessors to get builds and their fields. XSLT code should use these
469 instead of traversing the input tree directly.
471 <func:function name=
"get:build">
472 <func:result select=
"ancestor-or-self::build[last()]"/>
475 <func:function name=
"get:all-builds">
476 <func:result select=
"//build[not(ancestor::*[name() != name(/*)])]"/>
479 <func:function name=
"get:preceding-builds">
480 <func:result select=
"get:build()/preceding-sibling::build"/>
483 <func:function name=
"get:property">
484 <xsl:param name=
"name"/>
485 <xsl:param name=
"build" select=
"get:build()"/>
486 <func:result select=
"$build/*[name() = $name]"/>
489 <func:function name=
"get:step">
490 <xsl:param name=
"name"/>
491 <xsl:param name=
"build" select=
"get:build()"/>
492 <func:result select=
"get:property('steps', $build)/*[name() = $name]"/>
496 Returns true if this is an msw build.
498 <xsl:template name=
"is-msw">
499 <xsl:param name=
"content"/>
500 <xsl:param name=
"build" select=
"get:build()"/>
501 <xsl:value-of select=
"not(get:step('configure', $build))"/>
505 Returns true if this a gui build.
507 <xsl:template name=
"is-gui">
508 <xsl:param name=
"content"/>
509 <xsl:param name=
"build" select=
"get:build()"/>
510 <xsl:variable name=
"make"><get name=
"make" build=
"{$build}"/></xsl:variable>
511 <xsl:variable name=
"configure"><xsl:apply-templates select=
"get:step('configure', $build)"/></xsl:variable>
512 <xsl:value-of select=
"not(contains($make, 'USE_GUI=0') or contains($configure, '--disable-gui'))"/>
516 Returns true if the branch we're building has a contrib subdirectory.
518 <xsl:template name=
"has-contrib">
519 <xsl:param name=
"content"/>
520 <xsl:param name=
"build" select=
"get:build()"/>
521 <xsl:variable name=
"checkout"><xsl:apply-templates select=
"get:step('checkout', $build)"/></xsl:variable>
522 <xsl:value-of select=
"contains($checkout, 'WX_2_') and not(contains($checkout, 'WX_2_9_'))"/>
526 Returns true if the build should build the test suite.
528 <xsl:template name=
"has-tests">
529 <xsl:param name=
"content"/>
530 <xsl:param name=
"build" select=
"get:build()"/>
531 <xsl:variable name=
"configure"><xsl:apply-templates select=
"get:step('configure', $build)"/></xsl:variable>
532 <xsl:value-of select=
"get:step('run-tests', $build) or contains($configure, '--host=')"/>
536 strip - strips leading and trailing whitespace
542 Converts to text and strips leading and trailing whitespace.
544 <xsl:template name=
"strip">
545 <xsl:param name=
"content"/>
546 <xsl:variable name=
"len" select=
"string-length($content)"/>
547 <xsl:variable name=
"norm" select=
"normalize-space($content)"/>
548 <xsl:variable name=
"normlen" select=
"string-length($norm)"/>
550 <xsl:when test=
"substring($content, 1, 1) != substring($norm, 1, 1)">
551 <xsl:call-template name=
"strip">
552 <xsl:with-param name=
"content" select=
"substring($content, 2)"/>
555 <xsl:when test=
"substring($content, $len, 1) != substring($norm, $normlen, 1)">
556 <xsl:call-template name=
"strip">
557 <xsl:with-param name=
"content" select=
"substring($content, 1, $len - 1)"/>
561 <xsl:value-of select=
"$content"/>
567 normalize-space - normalises whitespace.
569 Usage: <normalize-space>
573 Converts to text, strips leading and trailing whitespace and replaces
574 sequences of whitespace characters by a single space.
576 <xsl:template name=
"normalize-space">
577 <xsl:param name=
"content"/>
578 <xsl:value-of select=
"normalize-space($content)"/>
582 lower-case - converts to lower case.
584 Usage: <lower-case>FooBar</lower-case>
586 <xsl:template name=
"lower-case">
587 <xsl:param name=
"content"/>
588 <xsl:variable name=
"lower">abcdefghijklmnopqrstuvwxyz
</xsl:variable>
589 <xsl:variable name=
"upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ
</xsl:variable>
590 <xsl:value-of select=
"translate($content, $upper, $lower)"/>
594 Helpers to convert between day numbers and names.
596 <xsl:template name=
"day-number">
597 <xsl:param name=
"content"/>
598 <xsl:param name=
"name"/>
600 <xsl:when test=
"$name = 'monday'">0</xsl:when>
601 <xsl:when test=
"$name = 'tuesday'">1</xsl:when>
602 <xsl:when test=
"$name = 'wednesday'">2</xsl:when>
603 <xsl:when test=
"$name = 'thursday'">3</xsl:when>
604 <xsl:when test=
"$name = 'friday'">4</xsl:when>
605 <xsl:when test=
"$name = 'saturday'">5</xsl:when>
606 <xsl:when test=
"$name = 'sunday'">6</xsl:when>
610 <xsl:template name=
"day-name">
611 <xsl:param name=
"content"/>
612 <xsl:param name=
"number"/>
614 <xsl:when test=
"$number = '0'">monday
</xsl:when>
615 <xsl:when test=
"$number = '1'">tuesday
</xsl:when>
616 <xsl:when test=
"$number = '2'">wednesday
</xsl:when>
617 <xsl:when test=
"$number = '3'">thursday
</xsl:when>
618 <xsl:when test=
"$number = '4'">friday
</xsl:when>
619 <xsl:when test=
"$number = '5'">saturday
</xsl:when>
620 <xsl:when test=
"$number = '6'">sunday
</xsl:when>
625 Helpers to convert between time in the format 'hhmm' and an integer
626 count of the minutes since midnight.
628 <xsl:template name=
"time-minutes">
629 <xsl:param name=
"content"/>
630 <xsl:param name=
"hhmm"/>
631 <xsl:if test=
"string-length($hhmm) = 4 and format-number($hhmm, '0000') = $hhmm">
632 <xsl:variable name=
"hour" select=
"substring($hhmm, 1, 2)"/>
633 <xsl:variable name=
"min" select=
"substring($hhmm, 3, 2)"/>
634 <xsl:if test=
"$hour >= 0 and $hour < 24 and $min >= 0 and $min < 60">
635 <xsl:value-of select=
"$hour * 60 + $min"/>
640 <xsl:template name=
"time-hhmm">
641 <xsl:param name=
"content"/>
642 <xsl:param name=
"minutes"/>
643 <xsl:value-of select=
"format-number(floor($minutes div 60) * 100 + $minutes mod 60, '0000')"/>
649 <xsl:template name=
"nightly-schedulers">
650 <xsl:param name=
"content"/>
651 <xsl:param name=
"name"/>
652 <xsl:param name=
"day"><day-number name=
"{$name}"/></xsl:param>
653 <xsl:param name=
"hour" select=
"0"/>
654 <xsl:param name=
"minute" select=
"0"/>
655 <xsl:param name=
"step" select=
"30"/>
657 <xsl:if test=
"$hour < 24">
660 <xsl:value-of select=
"concat($name, '_', format-number($hour, '00'), format-number($minute, '00'))"/>
663 <xsl:value-of select=
"$hour"/>
666 <xsl:value-of select=
"$minute"/>
668 <xsl:if test=
"$day != ''">
670 <xsl:value-of select=
"$day"/>
674 <xsl:variable name=
"next" select=
"$hour * 60 + $minute + $step"/>
675 <xsl:call-template name=
"nightly-schedulers">
676 <xsl:with-param name=
"name" select=
"$name"/>
677 <xsl:with-param name=
"day" select=
"$day"/>
678 <xsl:with-param name=
"hour" select=
"floor($next div 60)"/>
679 <xsl:with-param name=
"minute" select=
"$next mod 60"/>
680 <xsl:with-param name=
"step" select=
"$step"/>
686 scheduler - provide default for the <scheduler> build element.
688 <xsl:template name=
"scheduler">
689 <xsl:param name=
"content"/>
690 <xsl:param name=
"previous" select=
"get:property('scheduler', get:preceding-builds()[last()])"/>
691 <xsl:param name=
"step" select=
"60"/>
694 <xsl:when test=
"exsl:node-set($content)/node()">
696 <xsl:copy-of select=
"$content"/>
700 <xsl:for-each select=
"$previous">
701 <xsl:variable name=
"text">
702 <xsl:apply-templates select=
"."/>
705 <scheduler-subst text=
"{$text}" step=
"{$step}"/>
712 <xsl:template name=
"scheduler-subst">
713 <xsl:param name=
"content"/>
714 <xsl:param name=
"text"/>
715 <xsl:param name=
"step"/>
717 <xsl:variable name=
"name" select=
"substring-before($text, '_')"/>
718 <xsl:variable name=
"hhmm" select=
"substring-after($text, '_')"/>
719 <xsl:variable name=
"day"><day-number name=
"{$name}"/></xsl:variable>
720 <xsl:variable name=
"mins"><time-minutes hhmm=
"{$hhmm}"/></xsl:variable>
723 <xsl:when test=
"$mins = ''">
724 <xsl:value-of select=
"$text"/>
726 <xsl:when test=
"$day = ''">
727 <xsl:value-of select=
"$name"/>
728 <xsl:text>_
</xsl:text>
729 <time-hhmm minutes=
"{$mins + $step}"/>
732 <xsl:variable name=
"day-mins" select=
"24 * 60"/>
733 <xsl:variable name=
"week-mins" select=
"7 * $day-mins"/>
734 <xsl:variable name=
"tmp" select=
"($day + 1) * $day-mins + $mins"/>
735 <xsl:variable name=
"next" select=
"$tmp mod $week-mins + floor($tmp div $week-mins) * $step"/>
736 <day-name number=
"{floor($next div $day-mins)}"/>
737 <xsl:text>_
</xsl:text>
738 <time-hhmm minutes=
"{$next mod $day-mins}"/>
744 email - substitute '@' for ' -at- ' in email addresses.
746 <xsl:template name=
"emailfield">
747 <xsl:param name=
"content"/>
748 <xsl:param name=
"addr"/>
749 <xsl:variable name=
"at"> -at-
</xsl:variable>
751 <xsl:when test=
"contains($addr, $at)">
752 <xsl:value-of select=
"substring-before($addr, $at)"/>
753 <xsl:text>@
</xsl:text>
754 <xsl:value-of select=
"substring-after($addr, $at)"/>
757 <xsl:value-of select=
"$addr"/>
762 <xsl:template name=
"email">
763 <xsl:param name=
"content"/>
764 <xsl:param name=
"id"/>
765 <email id=
"{$id}"><emailfield addr=
"{$content}"/></email>
768 <xsl:template name=
"fromaddr">
769 <xsl:param name=
"content"/>
770 <fromaddr><emailfield addr=
"{$content}"/></fromaddr>
773 <xsl:template name=
"extraRecipient">
774 <xsl:param name=
"content"/>
775 <extraRecipient><emailfield addr=
"{$content}"/></extraRecipient>
779 mailnotifier - add a default value for <fromaddr> to <mailnotifier>
781 <xsl:template name=
"mailnotifier">
782 <xsl:param name=
"content"/>
784 <defaults content=
"{$content}">
785 <fromaddr>noreply -at- wxsite.net
</fromaddr>
787 <xsl:copy-of select=
"$content"/>