This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: unknown element selection (parent is known)
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: unknown element selection (parent is known)
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Wed, 25 Oct 2000 09:54:50 +0100
- Reply-To: xsl-list at mulberrytech dot com
> > > >
> > > Write: <xsl:for-each select="(ROWSET/ROW/*)[1]">
> Sorry. But I found the answer myself:
> <xsl:for-each select="(ROWSET[1]/ROW[1]/*)">
These are equivalent only if the first ROWSET contains a ROW and that ROW
contains a child element: which is probably true in your case.
Any respectable processor (well, Saxon, anyway), will not search the whole
document while evaluating select="(ROWSET/ROW/*)[1]": it will stop when it
finds the first one.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list