[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: 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
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member