Subject: Re: [xsl] For-each in XSL From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Mon, 02 Aug 2004 17:14:40 -0400 |
My XML - <location id="texas"> <name>Jim</name> <children>tommy</children> <children>pam<children> <children>sam<children> </name> </location>
I need to get to print the chilrens name in a page on a new line
The number of children can vary so I need to get all the children, when I use a for-each tag I am not able to access it.
<xsl:for-each select = "location/name/children"> <fo:block text-align="left"> <xsl:value-of select = "location/name/children"/>
</fo:block> </xsl:for-each>
<xsl:for-each select = "location/name/children"> <fo:block text-align="left"> <xsl:apply-templates/> </fo:block> </xsl:for-each>
-- World-wide on-site corporate, govt. & user group XML/XSL training. G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (F:-0995) Male Breast Cancer Awareness http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] For-each in XSL, Subbiah | Thread | RE: [xsl] For-each in XSL, Subbiah |
Re: [xsl] For-each in XSL, xptm | Date | [xsl] Splitting string, Rui Alberto L. |
Month |