I appreciate the effort, but you're way off.
 
First, all the rest of the xml renders -- it's just the datapath="text()" that doesn't.
 
Second, the dataset request atttribute is used for "lazy instantiation" when using the only URL transport available -- http.  Sources equal to filesystem paths are bound at compile time.
 
Third, the name() is used in this test harness correctly to show elements recursed through as the datapath context delves into the xml.  This is just a test harness to prove the bug is real.
 
What you fail to see is this -- the only difference between the two examples is one dataset is "embedded" in the lzx file, and the other is in an external file that is compiled in.  The result should be the same -- and they are not.  That's a bug.


J Crowley <[EMAIL PROTECTED]> wrote:
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
foo) and @something will access whatever the value
is that's specified inside a tag (e.g. "bar" in something="bar"/>).

So, where you have:





You should have, I believe:





(For instance. There's also, what, "item/@name", etc.)


-J Crowley

_______________________________________________
Laszlo-dev mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-dev

Reply via email to