Ignore:
Timestamp:
08/21/11 20:31:13 (13 years ago)
Author:
vronk
Message:

output - method, DOCTYPE, encoding issues (trying to unify for xhtml (but not over all xsls yet); test-suite update

File:
1 edited

Legend:

Unmodified
Added
Removed
  • MDService2/trunk/MDService2/src/eu/clarin/cmdi/mdservice/action/GenericProxyAction.java

    r1481 r1488  
    9393                                // TODO Auto-generated catch block
    9494                                e.printStackTrace();
     95                        } catch (NoStylesheetException e) {
     96                                // TODO Auto-generated catch block
     97                                e.printStackTrace();
    9598                        }
    9699         }
     
    196199        public String getActionContentType() {
    197200                if (format.toLowerCase().startsWith("html")) {
    198                         this.actionContentType = "text/html";
     201                        this.actionContentType = "text/html";           
     202                        //this.actionContentType = "application/xhtml+xml";
    199203                } else {
    200204                        this.actionContentType = "text/xml";
     
    408412                        return key;
    409413        }
    410         public InputStream getSourceStream() throws IOException {               
     414        public InputStream getSourceStream() throws IOException, NoStylesheetException {               
    411415                return getTargetRequest().openStream();
    412416                //      Admin.notifyUser(getProxyKey() + ".getSourceStream() - unable to open stream: " + getTargetRequest(); 
     
    446450
    447451       
    448         public static JSONArray createRepositories() throws IOException, InterruptedException, TransformerException{
     452        public static JSONArray createRepositories() throws IOException, InterruptedException, TransformerException, NoStylesheetException{
    449453                String path = Admin.getConfig().getProperty("workspaceprofile.path") + WorkspaceAction.WORKSPACE_FILENAME;//PROFILENAME_SERVER;
    450454                File file=new File(path);
     
    452456               
    453457                MDTransformer transformer = new MDTransformer();
    454                 transformer.setSrcFile(file.toURL());
     458                transformer.setSrcFile(file.toURI().toURL());
    455459                transformer.setParams(MDTransformer.createParamsMap("xml2json"));
    456460                InputStream jsonstream = transformer.transformXML(in);
     
    497501                                // TODO Auto-generated catch block
    498502                                e.printStackTrace();
     503                        } catch (NoStylesheetException e) {
     504                                // TODO Auto-generated catch block
     505                                e.printStackTrace();
    499506                        }
    500507                }
     
    536543                                e.printStackTrace();
    537544                        } catch (TransformerException e) {
     545                                // TODO Auto-generated catch block
     546                                e.printStackTrace();
     547                        } catch (NoStylesheetException e) {
    538548                                // TODO Auto-generated catch block
    539549                                e.printStackTrace();
Note: See TracChangeset for help on using the changeset viewer.