« All the Perfectly Working Features in Mozilla | Main | HTML Overlays »

August 27, 2004

XUL Templates and Datasources

I wrote a document with some ideas regarding XUL 2.0 datasource bindings and templates, along with how other XML UI languages (Flex and XAML) do it. Its available here.

For templates, I like the idea of using XSLT. The main blocker is how to make it work on non-XML datasources, such as native datastructures. I believe we could create a watered down XPATH syntax that could cover them. XSLT has the advantage of being already speced out, well documented and used already out in the wild.

As for datasources, I am working on a XBL example of how to bind a web service to a XUL tree, though it might make more sense in XTF, so that I can do more complex RDF stuff.

Posted by doron at August 27, 2004 7:44 PM

Comments

What about doing datasources coming straight from a database? Is something like that being worked on? i.e. that I sould have a database, and have an SQL query that would be in the XUL code for the template, and it would pull the data out of the database and then let the template interface with the data?

Posted by: Jason Lustig at August 28, 2004 7:21 PM

yes, xslt is the way to go!

Posted by: jon at August 30, 2004 12:56 PM