|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
name of the parent node
hi
can any one know how to get name of parent node <xsl:value-of select="name(.)"> -for current node to get parent node can anyone help me pls thank u with regards niha |
|
#2
|
||||
|
||||
|
I believe it is
<xsl:value-of select="parent::node()"> Here is a link to help out: http://www.zvon.org/xxl/XSLTreferen...xpath.html#axes |
|
#3
|
|||
|
|||
|
thank u
i will look into that with regards niha |
|
#4
|
||||
|
||||
|
You can also use <xsl:value-of select="ancestor::node()">
|
|
#5
|
|||
|
|||
|
thank u
thank u
with regards -niha |
|
#6
|
|||
|
|||
|
<xsl:value-of select="name(..)">
the name of the parent node from current node; ".." is shorthand for "parent::" |
|
#7
|
|||
|
|||
|
thank u
thank u
with regards niha |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > name of the parent node |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|