哪位高手指点一下的使用方法?

chenwenfeng2002 2003-06-24 11:21:06
我一直搞不懂!
...全文
54 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
houjianxun 2003-06-24
  • 打赏
  • 举报
回复
记得好像是水利出版社出版的叫XSLT程序员参考指南,你可以买来看看
houjianxun 2003-06-24
  • 打赏
  • 举报
回复
<xsl:apply-templates> Element
Directs the XSLT processor to find the appropriate template to apply, based on the type and context of each selected node.

<xsl:apply-templates
select = Expression
mode = QName>
</xsl:apply-templates>
Attributes
select
Can be used to process nodes selected by an expression, instead of processing all children. The value of the select attribute is an expression, which must evaluate to a node-set. The selected node-set is processed in document order, unless a different sort order has been specified.
mode
The mode attribute allows an element to be processed multiple times, each time producing a different result. If <xsl:template> does not have a match attribute, it cannot have a mode attribute. If an <xsl:apply-templates> element has a mode attribute, it applies only to template rules from <xsl:template> elements that have a mode attribute with the same value. If an <xsl:apply-templates> element does not have a mode attribute, it applies only to template rules from <xsl:template> elements that do not have a mode attribute.
Remarks
The <xsl:apply-templates> element first selects a set of nodes using the expression specified in the select attribute. If this attribute is left unspecified, all children of the current node are selected. For each of the selected nodes, <xsl:apply-templates> directs the XSLT processor to find an appropriate <xsl:template> to apply. Templates are tested for applicability by comparing the node to the XPath expression specified in the template's match attribute. If more than one template satisfies the match pattern, the one appearing with the highest priority is chosen. If several templates have the same priority, the last in the style sheet is chosen.

For more information, see Handling Irregular Data Hierarchies.

The following topic provides an example of the <xsl:apply-templates> element.
chenwenfeng2002 2003-06-24
  • 打赏
  • 举报
回复
up.

62,046

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术交流专区
javascript云原生 企业社区
社区管理员
  • ASP.NET
  • .Net开发者社区
  • R小R
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

.NET 社区是一个围绕开源 .NET 的开放、热情、创新、包容的技术社区。社区致力于为广大 .NET 爱好者提供一个良好的知识共享、协同互助的 .NET 技术交流环境。我们尊重不同意见,支持健康理性的辩论和互动,反对歧视和攻击。

希望和大家一起共同营造一个活跃、友好的社区氛围。

试试用AI创作助手写篇文章吧