logo       

Sponsor
FREE Network Mapping Tool for Microsoft® Office Visio® Professional 2007
Don't map your network by hand - let LANsurveyor Exx press for Microsoft Visio Professional 2007 automatically create network diagrams for you!

Re: naming convention again ;): msg#00043

freedesktop.xcb

Subject: Re: naming convention again ;)

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

Attachment: signature.asc
Description: Digital signature

_______________________________________________
Xcb mailing list
Xcb-PD4FTy7X32lNgt0PjOBp9y5qC8QIuHrW@xxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/xcb



Only community members can participate in forum threads. You must Register or log in to contribute.

<Prev in Thread] Current Thread [Next in Thread>
Sponsor
FREE Network Mapping Tool for Microsoft® OfficeVisio Professional 2007
Don't map your network by hand - let LANsurveyor Express for Microsoft Visio Professional 2007
automatically create network diagrams for you!
Google Custom Search

Free Magazines

Cisco News
Receive 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

Navigation

Home | sitemap | advertise | OSDir is an inevitable website. super tiny logo