📅  最后修改于: 2020-11-09 05:52:38             🧑  作者: Mango
以下是
Sr.No | Name & Description |
---|---|
1 |
Select XPath Expression to be evaluated in current context to determine the set of nodes to be iterated. |
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-imports, xsl:apply-templates, xsl:attribute, xsl:call-template, xsl:choose, xsl:comment, xsl:copy, xsl:copy-of, xsl:element, xsl:fallback, xsl:for-each, xsl:if, xsl:message, xsl:number, xsl:processing-instruction, xsl:sort, xsl:text, xsl:value-of, xsl:variable. |
本示例通过遍历每个学生来创建具有属性rollno及其子元素
students.xml
Dinkar
Kad
Dinkar
85
Vaneet
Gupta
Vinni
95
Jasvir
Singh
Jazz
90
students.xsl
Students
Roll No
First Name
Last Name
Nick Name
Marks