Try adding a request="true" Also, it looks like you're trying to access "menu:/menu/name()" with things, when really what you should be doing is trying to access "menu:/menu/category/@name". (Or, replace "category" with whatever node it is of which you're trying to access the "name" attribute.) Also: text() will access whatever's between a tag (e.g. "foo" in <element>foo</element>) and @something will access whatever the value is that's specified inside a tag (e.g. "bar" in <element something="bar"/>).
So, where you have: <simplelayout axis="y" /> <text datapath="name()" /> <text datapath="text()" /> You should have, I believe: <simplelayout axis="y" /> <text datapath="category/@name" /> <text datapath="text()" /> (For instance. There's also, what, "item/@name", etc.) -J Crowley On 10/11/06, George Willis <[EMAIL PROTECTED]> wrote: > > Source to test.xml: > > <?xml version="1.0" encoding="UTF-8"?> > <menu> > <category name="Cold Sandwiches"> > <offering> > <price name="Regular" value="5.25" /> > <price name="Large" value="6.80" /> > <item name="Godfather"> > Collo, Mortadella, Genoa, Salami, Ham, Lettuce, > Tomatoes, Onion and Cheese > </item> > <item name="Union"> > Turkey, Avocado, Swiss Cheese, Sprouts, Tomatoes, Onion, > Olives and Mayo > </item> > </offering> > </category> > </menu> > > Source to xml_test.lzx: > > <?xml version="1.0" encoding="UTF-8" ?> > <canvas height="300" width="600"> > <dataset name="menu"> > <menu> > <category name="Cold Sandwiches"> > <offering> > <price name="Regular" value="5.25" /> > <price name="Large" value="6.80" /> > <item name="Godfather">Collo, Mortadella, Genoa, Salami, Ham, Lettuce, > Tomatoes, Onion and Cheese</item> > <item name="Union">Turkey, Avocado, Swiss Cheese, Sprouts, Tomatoes, Onion, > Olives and Mayo</item> > </offering> > </category> > </menu> > </dataset> > <dataset name="menu2" src="test.xml"></dataset> > > <simplelayout axis="x" /> > <view datapath="menu:/menu/*" bgcolor="green"> > <simplelayout axis="y" /> > <text datapath="name()" /> > <text datapath="text()" /> > <view datapath="./*" x="20"> > <simplelayout axis="y" /> > <text datapath="name()" /> > <text datapath="text()" /> > <view datapath="./*" x="20"> > <simplelayout axis="y" /> > <text datapath="name()" /> > <text datapath="text()" /> > <view datapath="./*" x="20"> > <simplelayout axis="y" /> > <text datapath="name()" /> > <text datapath="text()" /> > </view> > </view> > </view> > </view> > <view datapath="menu2:/menu/*" bgcolor="blue"> > <simplelayout axis="y" /> > <text datapath="name()" /> > <text datapath="text()" /> > <view datapath="./*" x="20"> > <simplelayout axis="y" /> > <text datapath="name()" /> > <text datapath="text()" /> > <view datapath="./*" x="20"> > <simplelayout axis="y" /> > <text datapath="name()" /> > <text datapath="text()" /> > <view datapath="./*" x="20"> > <simplelayout axis="y" /> > <text datapath="name()" /> > <text datapath="text()" /> > </view> > </view> > </view> > </view> > </canvas> > Output varies with null returned from "text()" when dataset has a "src" > attribute. > > > > _______________________________________________ > Laszlo-dev mailing list > [email protected] > http://www.openlaszlo.org/mailman/listinfo/laszlo-dev > > > _______________________________________________ Laszlo-dev mailing list [email protected] http://www.openlaszlo.org/mailman/listinfo/laszlo-dev
