[AWS] XSLT processing with AWS

Pascal Obry p.obry@wanadoo.fr
Fri, 12 Dec 2003 20:17:56 +0100


Xabier,

 > I want to process XML documents with XSLT at the server (AWS), and the
 > only solution I can figure out is to spawn a process invoking Saxon, for
 > example, each time a document has to be processed. Is there any better way
 > to do it?

Not directly. I do not know Saxon but maybe it has a clean API that could be
binded in an Ada package. With this binding you'll won't have to spawn a
process. But this will probably requires lot of work.

 > I am doing this because I want to send HTML to the client. Anyway, I would
 > not have to do it if I knew that the client browser is able to process the
 > XML document on-the-fly, producing HTML according to a given XSL
 > stylesheet. Is there any way in AWS to know which browser the client is
 > using?

Yes. See AWS.Status.User_Agent.

Pascal.

-- 

--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|         http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595