CatalogSupport4.java 文件源码

java
阅读 27 收藏 0 点赞 0 评论 0

项目:openjdk-jdk10 作者:
@DataProvider(name = "data_XSLA")
public Object[][] getDataXSL() {
    // XSLInclude.xsl has one import XSLImport_html.xsl and two includes,
    // XSLInclude_header.xsl and XSLInclude_footer.xsl;
    SAXSource xslSourceDTD = new SAXSource(new InputSource(new StringReader(xsl_includeDTD)));
    StreamSource xmlSourceDTD = new StreamSource(new StringReader(xml_xslDTD));

    SAXSource xslDocSource = new SAXSource(new InputSource(new File(xsl_doc).toURI().toASCIIString()));
    StreamSource xmlDocSource = new StreamSource(new File(xml_doc));
    return new Object[][]{
        // for resolving DTD, import and include in xsl
        {true, true, xml_catalog, xslSourceDTD, xmlSourceDTD, null, ""},
        // for resolving reference by the document function
        {true, true, xml_catalog, xslDocSource, xmlDocSource, null, "Resolved by a catalog"},
    };
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号