Re: wayland implementation conformance

2011-01-27 Thread Sami Kyöstilä
Hi, On Wednesday 26 January 2011 16:57:29 ext Kristian Høgsberg wrote: > That's a good question. My intention is to have wayland.xml be the > official interfaces, but you're right that the drm interface is > specific to the Linux drm driver model and maybe that should be split > out into its own

Re: wayland implementation conformance

2011-01-27 Thread Jeremy Volkman
Here's a DTD to go along with the relaxng schema. The DTD is less restrictive, but still provides basic validation. This would go along with a DOCTYPE definition on the protocol document. Perhaps something like this: http://wayland.freedesktop.org/wayland-1.0.dtd";> -Jeremy On Thu, Jan 27, 2011

Re: wayland implementation conformance

2011-01-27 Thread Casey Dahlin
On Thu, Jan 27, 2011 at 11:35:17AM -0500, Jeremy Volkman wrote: > Sure. xmllint, which comes with libxml2 (libxml2-utils in Ubuntu), supports > RELAX NG these days. > > scout:protocol jvolkman$ xmllint --noout --relaxng schema.xml wayland.xml > wayland.xml validates > > -Jeremy > The only issue

Re: wayland implementation conformance

2011-01-27 Thread Jeremy Volkman
Sure. xmllint, which comes with libxml2 (libxml2-utils in Ubuntu), supports RELAX NG these days. scout:protocol jvolkman$ xmllint --noout --relaxng schema.xml wayland.xml wayland.xml validates -Jeremy 2011/1/27 Kristian Høgsberg > On Wed, Jan 26, 2011 at 5:09 PM, Jeremy Volkman > wrote: > > H

Re: wayland implementation conformance

2011-01-27 Thread Kristian Høgsberg
On Wed, Jan 26, 2011 at 5:09 PM, Jeremy Volkman wrote: > Here's my stab at a Wayland schema written in RELAX NG. It can be converted > to a W3C schema if preferred, but RELAX NG provides more functionality. For > example, the schema is able to require an "interface" attribute for an > argument onl

Re: wayland implementation conformance

2011-01-26 Thread Jeremy Volkman
Here's my stab at a Wayland schema written in RELAX NG. It can be converted to a W3C schema if preferred, but RELAX NG provides more functionality. For example, the schema is able to require an "interface" attribute for an argument only if the argument type is "object" or "new_id". -Jeremy 2011/1

Re: wayland implementation conformance

2011-01-26 Thread Kristian Høgsberg
2011/1/26 Casey Dahlin : > On Wed, Jan 26, 2011 at 01:40:25PM -0500, Kristian Høgsberg wrote: >> 2011/1/26 Josh Leverette : >> > I'm not certain, but I think there could eventually be enough variation >> > for that to be needed. However, even if there isn't, parsing an XML file >> > might be a be

Re: wayland implementation conformance

2011-01-26 Thread Casey Dahlin
On Wed, Jan 26, 2011 at 01:40:25PM -0500, Kristian Høgsberg wrote: > 2011/1/26 Josh Leverette : > > I'm not certain, but I think there could eventually be enough variation for > > that to be needed. However, even if there isn't, parsing an XML file might > > be a better long term solution that we

Re: wayland implementation conformance

2011-01-26 Thread Kristian Høgsberg
2011/1/26 Josh Leverette : > I'm not certain, but I think there could eventually be enough variation for > that to be needed. However, even if there isn't, parsing an XML file might be > a better long term solution that weakly linked functions and things like > that. Perhaps we could modify his

Re: wayland implementation conformance

2011-01-26 Thread Josh Leverette
I'm not certain, but I think there could eventually be enough variation for that to be needed. However, even if there isn't, parsing an XML file might be a better long term solution that weakly linked functions and things like that. Perhaps we could modify his idea about an XML profile structure

Re: wayland implementation conformance

2011-01-26 Thread Kristian Høgsberg
On Wed, Jan 26, 2011 at 12:15 PM, Marcus Lorentzon wrote: > On 01/26/2011 03:57 PM, Kristian Høgsberg wrote: >> >> On Wed, Jan 26, 2011 at 8:22 AM, Tiago Vignatti >>  wrote: >> >>> >>> Hi, >>> >>> I hijacked this comment which Kristian made in the other email thread; my >>> comments are inline. >

Re: wayland implementation conformance

2011-01-26 Thread Marcus Lorentzon
On 01/26/2011 03:57 PM, Kristian Høgsberg wrote: On Wed, Jan 26, 2011 at 8:22 AM, Tiago Vignatti wrote: Hi, I hijacked this comment which Kristian made in the other email thread; my comments are inline. On 01/24/2011 09:30 PM, ext Kristian Høgsberg wrote: Once of the things that X

Re: wayland implementation conformance

2011-01-26 Thread Kristian Høgsberg
On Wed, Jan 26, 2011 at 8:22 AM, Tiago Vignatti wrote: > Hi, > > I hijacked this comment which Kristian made in the other email thread; my > comments are inline. > > On 01/24/2011 09:30 PM, ext Kristian Høgsberg wrote: >> >> Once of the things that X got right was the extension model.  Wayland >>

wayland implementation conformance

2011-01-26 Thread Tiago Vignatti
Hi, I hijacked this comment which Kristian made in the other email thread; my comments are inline. On 01/24/2011 09:30 PM, ext Kristian Høgsberg wrote: > > Once of the things that X got right was the extension model. Wayland > takes it one step further by making everything an extension: the o