xsl-list
[Top] [All Lists]

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

2007-01-15 16:10:17
Michael Kay wrote:
select="(image[1] | image[(_at_)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

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--