2007/1/16, Shaun McCance <<a href="mailto:shaunm@gnome.org">shaunm@gnome.org</a>>:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Mon, 2007-01-15 at 13:22 +0100, Mikkel Kamstrup Erlandsen wrote:<br>> Hi all!<br>><br>> I uploaded my first draft of a XML query language proposal for the<br>> Wasabi desktop search spec.<br>><br>> The main part is the xml schema:
<br>> <a href="http://grillbar.org/wasabi/drafts/wasabi-query.xsd">http://grillbar.org/wasabi/drafts/wasabi-query.xsd</a>. It contains lots<br>> of comments. I've set up a wiki page to collect info, feedback, and
<br>> progress on this here:<br>> <a href="http://wiki.freedesktop.org/wiki/WasabiQueryLanguage">http://wiki.freedesktop.org/wiki/WasabiQueryLanguage</a>.<br>><br>> There's also a few example queries on the wiki page.
<br><br>Looking just at the examples, you're using what amount to<br>namespace prefixes in attribute values without declaring<br>what namespaces those prefixes bind to. For example:<br><br><request><br> <query>
<br> <equals><br> <property name="dc:title"/><br> <string caseSensitive="true">The Ugly Duckling</string><br> </equals><br> </query><br></request>
<br><br>While it's clear to me (a human) that you mean Dublin<br>Core's "title" property, it's not explicit. This should<br>be explicitly listed as:<br><br><request xmlns:dc="<a href="http://purl.org/dc/elements/1.1/">
http://purl.org/dc/elements/1.1/</a>"><br> <query><br> <equals><br> <property name="dc:title"/><br> <string caseSensitive="true">The Ugly Duckling</string>
<br> </equals><br> </query><br></request><br><br>Of course, since "dc:title" is an attribute value, rather<br>than a tag name, XML parsers won't do anything with it,<br>so the specification will have to mention explicitly that
<br>the name attribute of property must be interpreted using<br>the namespace prefixes that are in scope. W3C has set a<br>precedent for doing this with XSLT.<br><br>I would also recommend giving the entire XML dialect an
<br>XML namespace.</blockquote><div><br> </div>Yes, I absolutely agree on everything you said :-)<br><br>I left xml namespacing out to clarify the examples. The naming of the metadata fields have not been settled upon yet, so these are pretty bogus actually :-)
<br><br><br>Cheers,<br>Mikkel<br></div>