Something like the following may provide what you're after: //nspref:*[@*[name()=$idname and text()="foo"]]
-----Original Message----- From: [EMAIL PROTECTED] [mailto:jaxen-interest-admin@;lists.sourceforge.net]On Behalf Of bob mcwhirter Sent: Wednesday, 13 November 2002 7:07 AM To: Ari Kermaier Cc: Jaxen Mailing List Subject: Re: [Jaxen] problem with variable in predicate Yah, that's just not a legal XPath. You're attempting to select an attribute who's -name- is stored in a variable. That case isn't legal. -bob On Tue, 12 Nov 2002, Ari Kermaier wrote: > Dear All, > > Is there any reason why an XPath expression like the following shouldn't > work? > > //nspref:*[@$idname="foo"] > > I'm using a DOMXPath with a SimpleVariableContext that maps the "idname" > variable to "Id" in this case. > > Thanks, > Ari Kermaier > > Ari Kermaier [EMAIL PROTECTED] > Senior Software Engineer > Phaos Technology Corp. http://www.phaos.com/ > > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > To learn the basics of securing your web site with SSL, > click here to get a FREE TRIAL of a Thawte Server Certificate: > http://www.gothawte.com/rd522.html > _______________________________________________ > Jaxen-interest mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jaxen-interest > -- Bob McWhirter [EMAIL PROTECTED] The Werken Company http://werken.com/ ------------------------------------------------------- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd522.html _______________________________________________ Jaxen-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jaxen-interest ------------------------------------------------------- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd522.html _______________________________________________ Jaxen-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jaxen-interest