Sorry i should have said - i can't change the format of the XML... it's coming to me from a webservice on a remote machine. i have to work with what i've got.
Also, your code would create too many repeats i think. it looks like it would show this:
Practice One
Doctor One - F
Practice One
Doctor Two - F
Practice One
Doctor Three - F
... see what i mean? it repeats the whole practicename.
its damn hard to explain, all this XML stuff.
Main Topics
Browse All Topics





by: raizonPosted on 2002-09-18 at 08:04:19ID: 7288492
I havn't tested it but take a look at this and see if this gets what you need. Noticed I changed the sex node to an attribute.
Name/Docto r[@sex='F' ]>
<Practice>
<PracticeName>Practice One</PracticeName>
<Doctor sex="M">
</Doctor>
<Doctor sex="F">
</Doctor>
</Practice>
<xsl:for-each select="/Practice/Practice
<!--put your code here -->
</xsl:for-each>