Subject: RE: unknown element selection (parent is known)
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Wed, 25 Oct 2000 09:54:50 +0100
|
> > > >
> > > 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
|