XSLT(7) Attribute Value Template
来源:互联网 发布:多功能网络电力仪表 编辑:程序博客网 时间:2024/05/17 23:26
An attribute value template is an XPath expression enclosed in curly braces that's placed in the attribute value in the stylesheet. When the processor outputs that attribute, it replaces the attribute value template with its value.
For example, suppose you wanted to write a name template that changed the input name elements to empty elements with first_name, middle_initial, and last_name attributes like this:
<name first="Richard" initial="P" last="Feynman"/>
This template accomplishes that task:
<xsl:template match="name"><name first="{first_name}"initial="{middle_initial}"last="{last_name}" /></xsl:template>
Without attribute value templates, we have to use <xsl:attribute> to achieve the same functionality.
- XSLT(7) Attribute Value Template
- XSLT xsl:attribute 元素
- XSLT元素----xsl:template
- 3-7[attribute=value]属性选择器
- 3-7[attribute=value]属性选择器
- XSLT xsl:attribute-set 元素
- XSLT学习(二)template
- 56. Attribute value 属性
- XSLT常见问题(三)XSLT中attribute的使用
- XSLT - 利用template实现for循环
- XSLT - 利用template实现for循环
- magento, 根据attribute code获取attribute value
- xslt中的apply-template和call-template的区别
- attribute value must be constant
- CSS3新增属性选择器: [attribute*=value] 、[attribute^=value] 和[attribute$=value]
- XSLT学习(三)value-of
- 在Xslt中如何创建元素(Element)和属性(attribute)
- XSLT(6) Function named templates and <xsl:call-template>
- 最新Xcode 4.5 Developer Preview. 开发预览
- (一)架构概述
- boost学习之-polymorphic_cast
- Programming .NET Components 2nd 学习笔记(三)
- 【最大上升子序列+经典题】北大 poj 2533 Longest Ordered Subsequence
- XSLT(7) Attribute Value Template
- Apache整合Tomcat详解系列(一)
- 所有hibernate知识
- 一步步优化JVM二:JVM部署模型和JVM Runtime
- Panorama Application 全景视图是Windows Phone OS 7.0
- ubuntu安装星际译王
- experiment: Writing a service that runs under svchost
- 乌班图开机启动
- 10个iPhone开发网站、论坛、博客