File: Data.xml
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')"/>
If ANY month name has a string-length()
greater than 4, print 'Yes,' otherwise
print 'No'
select="if (some $m in $English-months satisfies
(string-length($m) > 4)) then 'Yes' else 'No'"/>
If EVERY month name has a string-
length()
greater than 4, print 'Yes,'
otherwise
print 'No'
select="if (every $m in $English-months satisfies
(string-length($m) > 4)) then 'Yes' else 'No'"/>
Output:
If ANY month name has a string-length()
greater than 4, print 'Yes,' otherwise
print 'No'
Yes
If EVERY month name has a string-length()
greater than 4, print 'Yes,' otherwise
print 'No'
No