|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Reading Attributes in XSL
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
|
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
|

Cart








