Jose, ScottP also made things more generic in Manakin. the /bitstream/ service there can do very much the same thing that HTMLServlet does by making the sequence id optional.
-Mark On Jul 3, 2007, at 4:08 PM, Blanco, Jose wrote: > Yes. I worked on this today, and this is what I found out. Thanks! > > -----Original Message----- > From: Larry Stone [mailto:[EMAIL PROTECTED] > Sent: Tuesday, July 03, 2007 4:02 PM > To: Blanco, Jose > Cc: [email protected] > Subject: Re: [Dspace-tech] Xml file with style sheet > >> 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 ~~~~~~~~~~~~~ Mark R. Diggory - DSpace Systems Manager MIT Libraries, Systems and Technology Services Massachusetts Institute of Technology ------------------------------------------------------------------------- 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

