📅  最后修改于: 2020-11-09 05:54:28             🧑  作者: Mango
以下是
Sr.No | Name & Description |
---|---|
1 |
terminate It specifies whether the transformation should terminate upon executing this instruction or not. Default is “yes”. |
Number of Occurrences | Unlimited |
---|---|
Parent elements |
xsl:attribute, xsl:comment, xsl:copy, xsl:element, xsl:fallback, xsl:foreach, xsl:if, xsl:message, xsl:otherwise, xsl:param, xsl:processinginstruction, xsl:template, xsl:variable, xsl:when, xsl:with-param, output elements |
Child elements |
xsl:apply-templates, xsl:attribute, xsl:call-template, xsl:choose, xsl:comment, xsl:copy, xsl:copy-of, xsl:element, xsl:for-each, xsl:if, xsl:processing-instruction, xsl:text, xsl:value-of, xsl:variable, output elements |
本示例通过遍历每个学生来创建具有属性rollno及其子元素
students.xml
Dinkar
Kad
Dinkar
85
Gupta
Vinni
95
Jasvir
Singh
Jazz
90
students.xsl
Students
Roll No
First Name
Last Name
Nick Name
Marks
A first name field is empty.