Project

General

Profile

« Previous | Next » 

Revision 7034

do not include stylesheet for list of checksum algorithms -- there is no template for it and therefore looks blank in a browser

View differences:

src/edu/ucsb/nceas/metacat/restservice/CNResourceHandler.java
704 704
		response.setStatus(200);
705 705
		response.setContentType("text/xml");
706 706

  
707
		// style the object with a processing directive
708
		String stylesheet = null;
709
		try {
710
			stylesheet = PropertyService.getProperty("dataone.types.xsl");
711
		} catch (PropertyNotFoundException e) {
712
			logMetacat.warn("Could not locate DataONE types XSLT: "
713
					+ e.getMessage());
714
		}
707
		TypeMarshaller.marshalTypeToOutputStream(result, out);
715 708

  
716
		TypeMarshaller.marshalTypeToOutputStream(result, out, stylesheet);
717

  
718 709
	}
719 710
    
720 711
    /**

Also available in: Unified diff