[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Passing xml nodes to a function
"Bansal, Rabinder" wrote: > teleNumbers > telList > numbers > teleType H > teleNumber 0145454545 I didn't fully understand your requirement, but you seem to want the name of all elements, indentend, with their own text nodes if any (it is just a guess): <xsl:template match="*"> <xsl:param name="indent" select="''"/> <xsl:value-of select="$indent"/> <xsl:value-of select="name()"/> <xsl:if test="text()"> <xsl:text>: </xsl:text> <xsl:value-of select="text()"/> </xsl:if> <xsl:apply-templates select="*"> <xsl:with-param name="indent" select="concat($indent, ' ')"/> </xsl:apply-templates> </xsl:template> Regards, --drkm ___________________________________________________________________________ Dicouvrez un nouveau moyen de poser toutes vos questions quelque soit le sujet ! Yahoo! Questions/Riponses pour partager vos connaissances, vos opinions et vos expiriences. http://fr.answers.yahoo.com
|
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
|