xsl-list
[Top] [All Lists]

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

2007-02-22 06:32:57
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/


--~------------------------------------------------------------------
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>
--~--