File: Transform.xslt
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
select="('January', 'February', 'March', 'April',
'May', 'June', 'July', 'August',
'September', 'October', 'November',
'December')"/>
select="('Januar', 'Februar', 'März', 'April',
'Mai', 'Juni', 'Juli', 'August',
'September', 'Oktober', 'November',
'Dezember')"/>
select="for $m in ($English-months, $German-months) return
if (starts-with($m, 'J'))
then concat ($m, ' starts with J!
')
else ''"
separator=""/>
Output:
January starts with J!
June starts with J!
July starts with J!
Januar starts with J!
Juni starts with J!
Juli starts with J!