Subject: Re: [xsl] XSLT recursive template to check grand parent From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 18 Apr 2007 16:46:50 +0200 |
Hello Group, I am trying to develop a recursive template to check grand parent of a node and print some child info about grand parent. I face some problem of selecting grand parent in the recursive template. I have put xslt template for your information
<xsl:template name="urlParentTemplate">
<xsl:param name="parent"/>
<xsl:value-of select="concat('*',$parent/YMIA:Id)"/>
<xsl:if test="ancestor::$parent[2]"> <!-- it gives error here -->
<xsl:call-template name="urlParentTemplate">
<xsl:with-param name="parent" select="ancestor::*[2]"/><!-- it gives error here too-->
Cheers, -- Abel Braaksma
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSLT recursive template to ch, Tech Guru | Thread | Re: [xsl] XSLT recursive template t, David Carlisle |
[xsl] How Can I Reference previous , mulberry-xsl | Date | Re: [xsl] XSLT recursive template t, David Carlisle |
Month |