<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/items">
<ul>
<xsl:apply-templates select="item[position() mod 2 = 1]" />
</ul>
</xsl:template>
<xsl:template match="item">
<li>
<img src="{@src}"/>
<img src="{following::item/@src}"/>
</li>
</xsl:template>
</xsl:stylesheet>
<ul>
<li>
<img src="/1.jpg"/>
<img src="/2.jpg"/>
</li>
<li>
<img src="/3.jpg"/>
<img src="/4.jpg"/>
</li>
<li>
<img src="/5.jpg"/>
<img src=""/>
</li>
</ul>
SELECT COUNT(*) AS `count`, `restaurant_id` FROM `restaurants_category` as `r` GROUP BY `restaurant_id` HAVING COUNT(*) > 1
SELECT `passengers`.`name`, `from`.`name`, `to`.`name` FROM `passengers`
JOIN `cities` AS `from` ON `passengers`.`from` = `from`.`id`
JOIN `cities` AS `to` ON `passengers`.`to` = `to`.`id`
gulp.task('pages:dev', function() {
gulp.src(config.src)
.pipe(plumber({
errorHandler: errorHandler
}))
.pipe(jade(config.settings))
.pipe(gulp.dest(config.dest))
.on('end', browserSync.reload);
});