[AWS] embedding resorces into an AWS

Pascal Obry p.obry@wanadoo.fr
Mon, 2 Feb 2004 18:46:15 +0100


Xabier,

 > We estimate approx. 10-12 Mb for the resource files all together.
 > Do you think is it feasible to do it this way?

Yes I think so.

 > I will try to make it clearer. As yo can see in the code I am sending you
 > below,
 > XSLT and XML filenames (strings) are passed into Ada_Xslt to get the
 > transformation of XML documents by applying them XSLT script
 > (as you know, Ada_Xslt is a binding of an XSL transformation engine that
 > enables XSL transformation in any Ada program using for that the Gnome
 > libxslt libraries).  I can not figure out, in this case, how AWS can deal
 > with XML
 > and XSLT files as resources. 

But AWS can't in this case since it is not involved :) It is the case that the
XSL transformation engine can't handle the resources as it knows just nothing
about them. You should probably read the resource data into a buffer (string
or whatever the XSL can handle) and pass this to the XSL engine.

 > Besides what I said just above about the XML/XSLT files, the server also
 > fails
 > when serving regular files such as HTML or GIF files that have been
 > embedded
 > as resources (indeed, it doesn't find the default index.html page).
 > Do you think there is a bug?

I would be surprised as there is some tests about this feature, but all is
possible :) This should be working so yes it looks like a bug.

 > Do you want me to send you a more complete excerpt of the code?

Yes please.

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