RE: [xsl] Filter out elements that have one specific sub-element and nothing else

Subject: RE: [xsl] Filter out elements that have one specific sub-element and nothing else
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 22 Feb 2007 13:32:37 -0000
> Btw, shouldn't your suggestion of:
> 
> select="listitem[node()[last()=1][self::formatinfo]]"
> 
> really need to be as a template match rather than select:
> 
> match="listitem[node()[last()=1][self::formatinfo]]"
> 

I wasn't sure how they intended to use the expression. Either is appropriate
depending on the circumstances.

Michael Kay
http://www.saxonica.com/

Current Thread