|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl:value-of
Hi
if you want to print the text of the element, in the for loop, Then you may have to do <xsl:value-of select = "text()"/> ( to get the text of the node ( excluding the text contained within any child element) or <xsl:value-of select = "."/> ( to get the text of the node ( including the text contained within any child element) what you are doing is ../b which is the b element of its parent.. so in your case, when you loop through each b, and when you say <xsl:value-of select = "../b"> what happens is that the processor gets the parent node's all 'b'child elements...and since you are calling <xsl:value-of select> you allways get parent element's first 'b' child element for each b element. this is because value-of gives the string value of the first node in document order of the supplied node set.
From: Cenk Uysal <cenk_uysal@xxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: xsl:value-of Date: Mon, 1 Jul 2002 05:44:44 -0700 (PDT) _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








