Is there some complete example how to load the template with XML file
and not rdf based source? I was only able to find some fragments how
this should be used and not a whole working example.
Thanks in advance
Matjaž
Here is my non working example:
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://alf/skin/alf.css" type="text/css"?>
<window
id ="main-application"
orient ="vertical"
xmlns
="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
width ="1024"
height ="768"
persist ="width height screenX screenY"
>
<button label="hi"/>
<data id="data">
<label name="A" />
<label name="B" />
<label name="C" />
<label name="D" />
<label name="E" />
</data>
<vbox >
<button label="kva"/>
<vbox datasources="#data" ref="."
querytype="xml" flex="1">
<template>
<button uri="?" label="?name"/>
</template>
</vbox>
</vbox>
</window>
Hi and kva buttons are displayed, other five are not. What I am doing wrong?
I am working with : Mozilla XULRunner 1.9a1_2006092823
Thanks in advance
Matjaž
That feature isn't available yet. The code that implements it is waiting
to be reviewed. See bug https://bugzilla.mozilla.org/show_bug.cgi?id=321171
Neil
So this is just in your branch ?
Could you give an instructions how to /where to put your patch ?
I am building the xulrunner almost nightly, adding some additional files
should't make a big change. :-)
Regards
Matjaž
The patch is not valid for trunk builds any more. Could you refresh it a
bit?
Thanks in advance
Matjaž
Neil Deakin pravi: