|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Recursion (I think)
It's ok I've figured it out I think.
I've used a set of templates that call each other and work their way down the list, and use parameters to keep the id and name fields that I need. I think it works, and I'll test it on some bigger data sets and see how I go. Cheers, Nick <xsl:template name="GROUPS"> <xsl:param name="Layoutid" /> <xsl:param name="Layoutname" /> <xsl:for-each select="./Object[@type='Field']"> <xsl:call-template name="RESULTSET"> <xsl:with-param name="Layoutid" select="$Layoutid"/> <xsl:with-param name="Layoutname" select="$Layoutname"/> </xsl:call-template> </xsl:for-each> <xsl:for-each select="./Object[@type='GroupButton']/ GroupButtonObj"> <xsl:call-template name="GROUPS"> <xsl:with-param name="Layoutid" select="$Layoutid"/> <xsl:with-param name="Layoutname" select="$Layoutname"/> </xsl:call-template> </xsl:for-each> </xsl:template> On 26/09/2005, at 9:04 AM, Nicholas Orr wrote: I'm very new to XSL and learning by doing, so thanks in advance for responding. I've got some xml which has come out of a filemaker database where you can have a layoutobject that contains either field objects or other layoutobjects in a recursive style 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








