[Bese-devel] Re: TAL, dojo, namespaces

Marco Baringer mb at bese.it
Thu Feb 2 09:54:20 UTC 2006


Aycan iRiCAN wrote:

> But now I'm getting this error:
> 
>   Unrecognized namespace "dojo" referenced.

there are a copule of problems with dojo:foobar attributes:

1) when xmls (upon which tal is built) sees dojo:foobar it will attempt
to intern "FOOBAR" into the package corresponding to the dojo namespace.
the first thing you'll need to do is:

(defpackage :dojo (:use) (:export))

(push (cons "http://dojotoolkit.org/2006/dojoml" :dojo)
      yaclml:*uri-to-package*)

this way xmls will know how to handle your dojo namespace and you'll
stop gettng errors. but your code still won't work :(

2) the hard problem is that yaclml tags (and therefore tal) are not
designed to handle non keyword attributes nor output attributes with
namespace prefixes. this is due to how we, in yaclml, distinguish
between attributes and the body of the tag...turns out what i originally
thought was a pretty cool thing is biting us. i don't have a quick fix
for this atm.

-- 
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There is a crack in everything.
That's how the light gets in.
	-Leonard Cohen




More information about the bese-devel mailing list