public interface URIResolver
实现此接口的对象,可由处理器调用,将document(),xsl:import或xsl:include中使用的URI转换为Source对象。
Source resolve(String href, String base) throws TransformerException
href
- 一个href属性,可以是相对的或绝对的。
base
- 如果绝对URI是必需的,第一个参数将被绝对的基本URI。
TransformerException
- if an error occurs when trying to resolve the URI.
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.