Results 1 to 2 of 2

Thread: XSLT headache

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2002
    Location
    Mesa, Arizona
    Posts
    45

    XSLT headache

    I'm not quit sure what i'm missing but I need to insert some data into a table using XSLT. I just can't seem to get the class child data from the XML file to be inserted after the term header. I have zip up the files if anyone can help me out. I'm using MS Visual Studio.Net for this adventure.

    Matthew Nace
    [email protected]
    Attached Files Attached Files

  2. #2
    Addicted Member
    Join Date
    Nov 2000
    Posts
    217
    Close...You're xpath expression was a little off.

    Code:
    <xsl:for-each select="/School/Terms/Class">
    <TR>					
    	<TD><xsl:value-of select="Semester"/></TD>
    	<TD><xsl:value-of select="Name"/></TD>
    	<TD><xsl:value-of select="Course"/></TD>
    	<TD><xsl:value-of select="Teacher"/></TD>
    	<TD><xsl:value-of select="Grade"/></TD>
    </TR>
    </xsl:for-each>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width