I think what you're trying to do is distinguish between c02s that are a subseries (level=subseries) and c02s that are a file (level=file) so you can output them differently. If that's the case, then the test you want is something like this: <xsl:choose> <xsl:when test="@level='file'"> <xsl:call-template name="c02-file-level"/> [or put the actual code here if you don't want to use a separate template] </xsl:when> <xsl:otherwise> <xsl:call-template name="c02-subseries-level"/> [or put the actual code here if you don't want to use a separate template] </xsl:otherwise> </xsl:choose> Michele ----- Original Message ----- From: "Amy Stout" <[log in to unmask]> To: <[log in to unmask]> Sent: Thursday, July 07, 2005 3:38 PM Subject: help! xslt question > Hi All, > > This will probably be a snap for you experts out there, > but for me it is not! :) > > Please, if you have a moment, see this web page: > http://buzz.freeshell.org/xml.pdf > > This is a file that explains my problem. The first section > is my XML. I am happy with this. The second is my XSLT. > This does not work as it outputs the third section instead > of outputting the subseries information beneath the series > information and the folder in the table. > > Hoping this makes sense. Any ideas?? I think I need to use > conditionals, but based on what condition I wonder... > > Thank you! > Amy