[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl:for-each question
Hey, thanks a lot. Thats a great idea. I think that´ll work. I´ve one
problem left. I try to call my templates like you wrote it. But then a
lots of templates get called and there is a weird display. Is there a
possibility to call it like:
.... <body> <xsl:call-template name="topic"/> </body> ..... <xsl:template name="topic"> <whatever> <xsl:value-of select="@name"/> <xsl:if test="topic"> <xsl:call-template name="topic"/> </xsl:if> </whatever> </xsl:template> I know that this code will not work, but it´d be great if it could work with call-template instead of apply-templates. Any ideas how to change it that it will recursively go through my topics? That´s my xml-file: <topic name="sdfsdsd"> <topic name="ghhhhghghg"> <topic name="fff"> </topic> </topic> </topic> <topic name="sdfsdsd"> </topic> ... and so on Thanks Michael Cas Tuyn wrote: Hi, 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
|