[topicmapmail] TMs and XSL

Lars Marius Garshol larsga@ontopia.net
Fri, 21 Jan 2005 11:17:46 +0100


Hi Christoph,

* Christoph Gaisbauer
|
| I ran the fragment-tool provided by tm4j and it is ok.
|
| My question is now if this is also doable in xsl??? I don't know
| much about it, and that is why I ask. Can I extract the fragment
| just using xsl?

It's possible to do this with XSLT provided you have the topic map in
XTM form. However, many topic maps are written in other syntaxes (like
LTM, HyTM, and AsTMa=), or they are stored in a database of some sort.
For these it's quite hard to do this with XSLT.

Another problem is that XTM is *very* difficult to process with XSLT,
in part because of how identity works in XTM. If you have a normalized
XTM file (where all topics are referenced consistently, and all merged
has been performed) it is much easier. It' still not easy, but at
least it's no longer near-impossible.

I think the main question is *why* you want to use XSLT to do this. If
you're not using topic map tools, what benefit do you really get from
using topic maps?

(Another question is whether you've tried using the Vizigator that now
comes with Omnigator to see if that provides usable results. Maybe
that will do what you need, and you won't need to use XSLT at all.)

-- 
Lars Marius Garshol, Ontopian         <URL: http://www.ontopia.net >
GSM: +47 98 21 55 50                  <URL: http://www.garshol.priv.no >