On 1 Oct 2002, at 13:38, Schreck, Tom wrote: > <column ynIdentityField="0" ynPrimaryKey="0"> > > I have several nodes in an XML document that have both ynIdentity and > ynPromaryKey attributes set to 0 as the above example indicates. I need > to pull these out and loop over them but am having difficulty writing > the XPATH expression that checks for both conditions. Any help would be > appreciated. Here's the xpath I'm currently using: > > <xsl:for-each select="//xmlTable/column[@ynIdentityField=0] and > //xmlTable/column[@ynPrimaryKey=0]"> > > This is not working.
Hi Tom, I believe the XPath you're looking for is: //xmlTable/column[@ynIdentityField=0][@ynPrimaryKey=0] - Matthew -----------------------+ cf-xml mailing list http://torchbox.com/xml/list.cfm
