This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: unknown element selection (parent is known)


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]