View Single Post
 
Old October 2nd, 2006, 07:22 AM
prithvi28 prithvi28 is offline
Registered User
 
Join Date: Sep 2006
Location: , , .
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks mhkay. I created the templates for formattign different phone numbers and date. I am using an import statement as I I needed formatting in multiple files.
I replaced the above piece of script with
Code:
<xsl:for-each select="n1:phone">
                                    <xsl:for-each select="n1:mobile">                                        
                                        <xsdLocal:MobilePhone>
                                                <xsl:call-template name="format_phone">
                                                    <xsl:with-param name="in_phone" select="."/>
                                                </xsl:call-template>
                                        </xsdLocal:MobilePhone>
                                    </xsl:for-each>
                                </xsl:for-each>
Regarding for-each, did you mean I should be able to completely get rid of them ?
Thanks,