[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: parent()
Subject: Re: parent() From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 10 Jul 2000 18:40:14 +0100 (BST) |
I tried to get the value of the id attribute of a parent 'element' node. <xsl:value-of select="../@id"/> returns nothing don't know why... This is the correct expression. Usual reasons for not getting the value you expect is that the current node is not what you think it is. <xsl:value-of select="../element"/> returns the subtree If you ask for the string value of an element you get the character data of all the descendents of the element. David XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
parent(), Spychalski, Frank | Thread | RE: parent(), Spychalski, Frank |
RE: RJZF for "format" in xsl:number, Kay Michael | Date | RE: child node using variable, Robert C. Lyons |
Month |