2007/09/22

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">
<tabs>
<tab uri="rdf:*" label="rdf:http://multirunner.blah/rdf#name"/>
</tabs>
<tabpanels>
<tabpanel uri="rdf:*">
<label value="rdf:http://multirunner.blah/rdf#name"/>
</tabpanel>
</tabpanels>
</template>
<tabbox id="rdftabbox"
datasources="rdftabs.rdf"
ref="http://multirunner.blah/tabs"
template="tabTemplate" />

1 comentario:

Anónimo dijo...

Thank You very much! You saved my day.

Michael