|
Subject: Re: [xsl] Reading Attributes in XSL From: Jon Gorman <jonathan.gorman@xxxxxxxxx> Date: Tue, 15 Nov 2005 11:02:53 -0600 |
On 11/15/05, pankaj.ahuja@xxxxxxxxxxxx <pankaj.ahuja@xxxxxxxxxxxx> wrote: > > This will tell you exactly what I am trying to do: You are optimistic. To tell the honest truth, I saw this email earlier and it's confusing , long, and could have been simplified. I didn't really pay close attention. Now it's been sent to the list for the fourth time. I see nowhere a duplicated attribute or anything that resembles the problem you stated to start this thread. Your other posting has some issues, but the only thing relating to attributes that I can see just is a simple series of for-each loops (ok, templates would be better). ie <xsl:for-each select="@*"> <xsl:value-of select="." /><xsl:text> </xsl:text> </xsl:for-each> <xsl:for-each select="*/@*"> <xsl:value-of select="."/><xsl:text> </xsl:text> </xsl:for-each> The problem in your original post for this thread describes this situation: <parent foo="lark" bar="time"> <child foo="1" bar="9" /> <child foo="3" bar="2" /> <child foo="8" bar="0" /> <child foo="1" bar="1" /> </parent> And you want to get the value of the 1st attribute of the values of the first attribute of the children. David Carlisle's example should do the trick. Jon Gorman
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Reading Attributes in XSL, pankaj . ahuja | Thread | Re: [xsl] Reading Attributes in XSL, pankaj . ahuja |
| Re: [xsl] Display file name, JBryant | Date | [xsl] Getting expanded empty tag fo, Gary Stewart |
| Month |