> I have an xml file that references a style sheet, but I'm not able to > get the xml file to render correctly using the style sheet when I > deposit this file into deep blue. I realize that I need to create a > servlet to handle xml files, just like there is one for html files. > Before I do this, I wanted to check if any one out there has already > done this, or if there is in fact some other quicker way of doing this.
You should just be able to use the HTMLServlet itself on the XML file; it works on any kind of content type, although the MIME-type it sends your browser is whatever the bitstream's BitstreamFormat dictates. So, if your bitstream has the name "foo.xml" in item 1721.1/99404, try the URL http://dspace.mit.edu/html/1721.1/99404/foo.xml (substitute appropriately of course..) If that XML file makes relative-URL references to the XSL stylesheets, then it ought to "just work". You may have to tweak the BitstreamFormat and MIME type of the stylesheet bitstreams if the browser is fussy about their MIME types. It should just be a matter of getting the Item display page to use the HTMLServlet for your XML bitstreams the way it does for HTML, which is purely a kludge. -- Larry ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ DSpace-tech mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dspace-tech

