Re: [xsl] Find a specific element or fall back to element 1

Subject: Re: [xsl] Find a specific element or fall back to element 1
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Tue, 16 Jan 2007 00:08:54 +0100
Michael Kay wrote:
select="(image[1] | image[@default='true'])[last()]"

I see that Michael beat me to it. This is definitely a truly short solution (I wished I think of those more often in my own projects)!


-- Abel

Current Thread