Avatar of Larry Brister
Larry Brister
Flag for United States of America asked on


I have an xslt which is working for the root
There are a TON of fields in the root...and a couple of child nodes  for Education
My xml file starts of with <root>
Then a bunch of root nodes

So...my code starts of with this
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
                <link rel="stylesheet" type="text/css" href="test.css"/>
                <table border="0" cellpadding="0" cellspacing="0" width="100%" class="masterTable">

    <xsl:template match="root">
<DIV style="margin-bottom:20px;">
                <td class="myTD">
                    <fieldset class="myFieldSet">
                        <legend class="legendTitle">General Information</legend>
                        <table cellpadding="0" cellspacing="0" border="0" class="generalDescr">
                                <td style="font-size:12px;">
                                    <strong style="width:120px;">Name:</strong>&#160;<xsl:value-of select="FirstName"/>&#160;<xsl:value-of select="MiddleInitial"/>&#160;<xsl:value-of select="LastName"/>&#160;&#160;&#160;&#160;&#160;<strong>Goes by:</strong>&#160;<xsl:value-of select="PrefName"/>

whole bunch of stuff that works...

I now have to put repeating child node information for
            <SchoolName>Delgado CC</SchoolName>

The following is not working...
No error...just no data

   <td style="width:150px;">
         <xsl:value-of select="root/Education/School/SchoolName"/>
XML.NET ProgrammingMicrosoft Development

Avatar of undefined
Last Comment

8/22/2022 - Mon

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Larry Brister

It was Education/School
But I had to place it insode "for each"
Thanks for putting me in right direction

You're welcome
Your help has saved me hundreds of hours of internet surfing.