[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Passing xml nodes to a function

Subject: Re: Passing xml nodes to a function
From: Florent Georges <darkman_spam@xxxxxxxx>
Date: Wed, 9 Aug 2006 17:14:53 +0200 (CEST)
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 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.