public interface Templates
模板必须是线程安全的对于一个给定的实例在多个线程同时运行,并且可以在一个给定的会话中多次使用。
Modifier and Type | Method and Description |
---|---|
Properties |
getOutputProperties()
得到相应的有效的XSL属性:输出要素。
|
Transformer |
newTransformer()
为这个模板对象创建一个新的转换上下文。
|
Transformer newTransformer() throws TransformerConfigurationException
TransformerConfigurationException
如果变压器不能创建。
Properties getOutputProperties()
Transformer.setOutputProperties(java.util.Properties)
。
返回的属性应包含属性设置的样式表,这些性质是“违约”的默认属性指定的section 16 of the XSL Transformations (XSLT) W3C Recommendation。这是专门设置的样式属性应该在基础属性列表,而XSLT默认属性中没有具体的设置应在“默认值”属性列表。因此,getoutputproperties()。getProperty(字符串键)将获得的任何财产,是由样式表,或默认的属性,而getoutputproperties()。把(字符串键)仅检索进行显式设置的样式属性。
XSLT,Attribute Value Templates属性值将返回未展开的(因为这一点是没有上下文)。在属性值模板的命名空间前缀将膨胀,使它们保持有效的XPath值。
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.