Sorry about late reply. Also haven't gotten around to fixing the IE
problems. Been working.
Tin-tags is not a template system. There is a module, template.xml, that
is written using tin-tags. It implements templates and concepts
assosiated with these. These templates are essentially the same as
templates in XSLT.
I see that there was ground for misunderstanding. I wanted to give an
example without the js code so that the connection between creating and
using tin-tags became clearer. I also think its very nice that the
template tin-tag is a meta-class
XSLT is a powerful tool. But it is not practical to use it to solve all
problems. Eventually you will fall back to javascript. Also, I think you
can only have one PI per XML document and this makes it impractical use in
situations where you need to have different views on the same data. You
have to invoke XSLT using javascript or add the correct PI server-side.
I consider creating a tin-tag that lets you load XML and transform it using
XSLT by writing:
<tin
instance="xslt"
source="path/to/source"
filter="path/to/filer"
/>
Or something like that. The filter attribute refers to the XSLT document.
In general, using many different tools to create a project results in
added complexity because you have to glue all these different tools
together and that requires programming and creates dependencies.
In the browser environment you know that you can always fall back on
javascript. Tin-tags allows for friendly integration of anything that can
be expressed using javascript, so when using it, you are guaranteed never
having to use traditional js hacking with global objects/functions and
id-attributes/tag-names and what not
Also, I think that inserting nonstandard tags into the document object is
perfectly fine even for browsers that do not understand namespaces. After
all, it's not HTML/XHTML anymore once it is parsed. It is a javascript
object with some event-based or similar connection to the graphical
representation of the document. Not sure I'm right about this though.
Thomas