XUL templates and tabs

I had some problems using XUL templates to populate a tabbox using a RDF data source: the tabs were created, but switching tabs did not work. Avoiding the use of inline templates and moving the template outside of the tabbox element solved this. Looks like the tabbox was confused by the <tabs> and <tabpanels> elements inside the <template> node.

<template id="tabTemplate">
<tab uri="rdf:*" label="rdf:http://multirunner.blah/rdf#name"/>
<tabpanel uri="rdf:*">
<label value="rdf:http://multirunner.blah/rdf#name"/>
<tabbox id="rdftabbox"
template="tabTemplate" />

1 comentario:

Anónimo dijo...

Thank You very much! You saved my day.