| 
 
Subject: [xsl] Re: xsl-list Digest 22 Mar 2005 06:10:01 -0000 Issue 364 From: Kumar S <kumar.subscriptions@xxxxxxxxx> Date: Tue, 22 Mar 2005 20:29:12 +0530  | 
Hi Friends,
I'm having an xml as follows
        <webapps>
          <applications>
            <application>
                <name>Application1</name>
                <id>1</id>
                <users>
                    <user>
                        <name>Arjun</name>
                        <accessrestrictions>some text</accessrestrictions>
                    </user>
                    <user>
                        <name>user2</name>
                        <accessrestrictions>some text</accessrestrictions>
                    </user>
                    <user>
                        <name>user3</name>
                        <accessrestrictions>some text</accessrestrictions>
                    </user>
                    <user>
                        <name>user4</name>
                        <accessrestrictions>some text</accessrestrictions>
                    </user>
                </users>
            </application>
            <application>
		    <name>Application2</name>
		    <id>2</id>
		    <users>
			<user>
			    <name>arjun</name>
			    <accessrestrictions>some text</accessrestrictions>
			</user>
			<user>
			    <name>sruthi</name>
			    <accessrestrictions>some text</accessrestrictions>
			</user>
		    </users>
            </application>
          </applications>  
	</webapps>
I'm trying to list the name,id and then all the users for the
application using xsl
	<xsl:for-each select="webapps/applications/application"> 
	   <xsl:variable name="curid" select="id" /> 
	   <xsl:for-each select="webapps/applications/application/users/user">
	     <xsl:value-of select="$curid" />
	     <xsl:value-of select="name" />
	     <xsl:value-of select="accessrestrictions" />
	   </xsl:for-each>
	</xsl:for-each>
But the above code does not work. can anybody help me.
Thanks in advance,
Kumar S
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| RE: [xsl] Re: xsl-list Digest 22 Ma, Boopathi Rajan | Thread | Re: [xsl] Re: xsl-list Digest 22 Ma, Joe Fawcett | 
| [xsl] Re: xsl-list Digest 22 Mar 20, Kumar S | Date | [xsl] Key containing more than one , Sven Waibel | 
| Month |