Considerations on RDF/XUL bindings

vaab <[email protected]> Thu, 12 May 2005 10:25:41 +0200
Newsgroups gmane.comp.mozilla.devel.rdf
Organization Another Netscape Collabra Server User
Message-ID <[email protected]>
Hi,

I had to write a quick XML parser in PHP for accessing RDF data. I like 
some concept of the choices in XUL. I know use really better XUL 
templates. These considerations/questions came :

- How can we access to just one element in full XUL (without javascript) 
? Say you want that the label of an element of your page should be 
gathered in your RDF datasource ...

- What about an "order" statement somewhere in the template declaration 
? as ORDER in SQL statement, it should be possible to sort answers. I 
know this is possible in trees, or in javascript, but why not give this 
possibility more low level. (this could be much more efficient if 
directly coded in C).

- Xul templating mechanism allow some sort of conditionnal building, and 
a limited way of looping. We lack recursion and an efficient way of 
building template inside template.

- If there are syntax error, or logical error, these should be shown in 
a special debug mode (why not when attribute debug is set to 'true' in 
the template itself ?)

Giving more power to the template is NOT complexifing it. Givin just 
enough power to build anything upon RDF content doesn't seem so far away 
for the actual point. And this is the future more than anything (well 
this is my idea).

Vaab