Package com.esri.gpt.framework.xml

Examples of com.esri.gpt.framework.xml.XsltTemplate.transform()


   * @throws TransformerException
   * @deprecated Instead use transformDetails(String xml, String xsltPath,Locale locale)
   */
  public String transformDetails(String xml, String xsltPath) throws TransformerException {
  XsltTemplate template = this.getCompiledTemplate(xsltPath)
  return template.transform(xml);
  }
  /**
   * Transforms an metadata document XML to an HTML fragment suitable for display within the
   * Metadata Details page.
View Full Code Here


     }
     }
  }
          
  XsltTemplate xsl = new XsltTemplate();
  String result =  xsl.transform(XmlIoUtil.domToString(detailsXml), xml, null);
    return result;
  }

}
View Full Code Here

          if (schematronXslt.length() == 0) continue;
         
       
          // run the validation xsl
          XsltTemplate template = this.getCompiledTemplate(schematronXslt);
          String result = template.transform(xml);
         
          // load the result SVRL document
          Document dom = DomUtil.makeDomFromString(result,true);
          Namespaces namespaces = new Namespaces();
          namespaces.add("svrl","http://purl.oclc.org/dsdl/svrl");
View Full Code Here

    if(start != -1){
       end = axlRequest.indexOf("\"",start+12);
       max =  axlRequest.substring(start+12,end);
    }

    String cswRequest = template.transform(axlRequest, params);
    getLogger().finest(" AXL2CSW transformed request : " + cswRequest);
    String cswResponse = "";
    try {
      RequestHandler handler = ProviderFactory.newHandler(context);
      OperationResponse resp = handler.handleXML(cswRequest);
View Full Code Here

    if(max != null && max.length() > 0){
      params.put("maxResults", max);
    }

    template = getCswToAxlXsltTemplate();   
    axlResponse = template.transform(cswResponse, params);
   
  } else if (axlRequest.indexOf("<GET_METADATA><GET_ROOT_DATASET") != -1) {
    StringBuffer sb = new StringBuffer();
    sb.append("<?xml version=\"1.0\" encoding=\"UTF-8\"?>")
    .append(
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.