|
|
Sponsor |
Re: naming convention again ;): msg#00043freedesktop.xcb
On Mon, Dec 12, 2005 at 08:35:59PM -0500, Jeremy A. Kolb wrote: > On Mon, 12 Dec 2005, Jamey Sharp wrote: > > I may still be confused, but I think you missed my point. When > > generating code for GetBooleanv from glapi.xml, why can't you do > > something like this XPath query across XCB's glx.xml? > > request[@name="GetBooleanv"]/reply/list/@name > > > > That particular example will evaluate to "data" -- so you shouldn't have > > to hardcode that string anywhere. > > Oops. I think I missed your point then. What's an XPath query? XPath is just a W3C standard way to identify particular nodes in an XML document. The expression I quoted above says, "Look for a tag named <request> that has an attribute 'name' with value 'GetBooleanv'. Look inside that <request> for a <reply> tag; look inside that for a <list> tag; and return the 'name' attribute of the <list>." But obviously XPath is not the only way to find a particular attribute in an XML document tree, so you should be able to do the same thing no matter what tools you're using; XPath is just a nice terse language for expressing these things. --Jamey
Xcb mailing list Xcb-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@xxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/xcb
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: naming convention again ;), Jeremy A. Kolb |
|---|---|
| Next by Date: | a question about request and reply, Vincent Torri |
| Previous by Thread: | Re: naming convention again ;), Jeremy A. Kolb |
| Next by Thread: | Re: PATCH: XCBParseDisplay's return value, Jamey Sharp |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business. subscribe Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field. subscribe The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business. subscribe Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company. subscribe Total Telecom Total Telecom is "The Economist of the communications industry". subscribe |
Home | sitemap
| advertise | OSDir is
an inevitable website.
|