【问题标题】:What does this <xsl:apply-templates select="*/doc"/> mean?这个 <xsl:apply-templates select="*/doc"/> 是什么意思?
【发布时间】:2015-08-21 04:54:19
【问题描述】:

在分析一些 xslt 程序时,我喜欢下面的代码

上面的xslt是什么意思?

【问题讨论】:

    标签: xml xslt


    【解决方案1】:

    “apply-templates”定义了接下来应该执行哪个模板(参见规范:http://www.w3.org/TR/xslt#section-Applying-Template-Rules
    “*/doc”定义了哪个元素触发模板(参见规范:http://www.w3.org/TR/xpath/#path-abbrev),在这种情况下:选择上下文节点的所有子元素中名为“doc”的子元素。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-04-11
      • 2018-10-29
      • 1970-01-01
      • 2012-12-03
      • 1970-01-01
      • 2017-05-25
      • 2010-10-03
      • 2013-02-21
      相关资源
      最近更新 更多