I found the answer last time I was 'playing' with xsl, but I didn't need to use it then and like an idiot, I didn't save where I found it.
I've tried Google but it's not coming up with what I need.
From Access I'm exporting a file to xml in the following format:
So that's 3 records, 2 for JoeSmith and one for KateLee. I'm going to be using another program to email them, so I need them in the following format:
(If there's any case mistakes, I hand wrote this as an example, it'll all be good on the real version; also, line breaks are to make it easier to read)
I know about the for-each code:
But I need help with filling in the [****]
I'm guessing it'll start [Who=, but I can't figure out how to make it equal the currently selected 'who'.
Thanks in advance
Mandi
I've tried Google but it's not coming up with what I need.
From Access I'm exporting a file to xml in the following format:
Code:
<XMLTemp> <Who>JoeSmith</Who> <Contact>Billy Joe</Contact> <telephone>123457980</telephone> <PostCode>XX1 2XX</PostCode> <When>01/01/2009</When> <Who>JoeSmith</Who> <Contact>Brenda George</Contact> <telephone>3216549870</telephone> <PostCode>XX5 3XX</PostCode> <When>01/01/2009</When> <Who>KateLee</Who> <Contact>Iain Smith</Contact> <telephone>45687354189</telephone> <PostCode>AB1 2XX</PostCode> <When>01/01/2009</When> </XMLTemp>
Code:
<XMLTemp> <Who>JoeSmith <Person> <Contact>Billy Joe</Contact> <telephone>123457980</telephone> <PostCode>XX1 2XX</PostCode> <When>01/01/2009</When> </Person> <Person> <Contact>Brenda George</Contact> <telephone>3216549870</telephone> <PostCode>XX5 3XX</PostCode> <When>01/01/2009</When> </Person> </Who> <Who>KateLee <Person> <Contact>Iain Smith</Contact> <telephone>45687354189</telephone> <PostCode>AB1 2XX</PostCode> <When>01/01/2009</When> </Person> </Who> </XMLTemp>
I know about the for-each code:
Code:
<xsl:for-each select="//XMLtemp[*****]">
I'm guessing it'll start [Who=, but I can't figure out how to make it equal the currently selected 'who'.
Thanks in advance
Mandi
Comment