Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
关于XSLT 3.0 中的包,隐式包和未命名包是一回事吗?假设任何一个都不能被其他包使用,为什么它会说:
出于兼容性原因,包中声明的所有命名模板和模式都是公开的。
隐式包是根植于一个xsl:stylesheet而不是xsl:package元素的包。隐式包将始终未命名。但是你也可以让一个包根植于一个没有属性的xsl:package元素;@name这是未命名的,但不是隐含的。
xsl:stylesheet
xsl:package
@name
使组件公开意味着它们对调用 API 是可见的,例如,任何命名模板都可以用作指定的入口点call-template和命名模板。如果它们是私有的(否则将是默认值),则它们不能以这种方式被外部引用。
call-template