RE: XSL Stylesheet for Kannel's status.xml

"Oded Arbel" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
I'd rather leave the XML as it is, too. as I understand it (not an XML expert) XSL is used to transform XML into an HTML compatible format so that browsers can display it ? then you might want to modify the HTML status output and not the XML one, or maybe add another option that will take the bare XML generated and transofrm it (as you said - shouldn't be too hard).

Currently what we use here, is a PHP script that reads the XML status, takes out the interesting parts, add some more information from other places and buttons to call commands on Kannel admin interface and displays it all on a browser. it would probably be more difficult to do so if the bare XML was modified for presentation before being sent to the client.

--
Oded Arbel
m-Wise mobile solutions
[email protected]

+972-9-9581711
+972-67-340014

::..
Q: How many testers does it take to change a light bulb?
A: We just noticed the room was dark; we don't actually fix the problem.




-----Original Message-----
From: Paul Keogh [mailto:[email protected]]
Sent: Tuesday, June 25, 2002 11:30 AM
To: [email protected]
Subject: RE: XSL Stylesheet for Kannel's status.xml


> 
> And just who would execute the stylesheet? Kannel does not
> include a library that provides a XSLT transformer...
> 
> I think it's a stupid idea that is hard to implement and beyond
> the scope of Kannel. You can always transform the XML-data on the
> client side.

Well, its not that hard to implement; using the libxslt library that
partners libxml, you can apply a transform in about 3 statements.

Transformation on the client side works too, you need to modify the
status.xml document to associate the stylesheet with it, though.
Maybe there's another way without touching the XML document.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.