Computer Science Canada XSLT problems |
Author: | StarGateSG-1 [ Thu Apr 13, 2006 7:34 am ] |
Post subject: | XSLT problems |
Hello, I am having trouble getting all my fields in XSLT script to show, most of them show, but this one field doesn't. I will attach the fiels when i figure out were the attach section is?? |
Author: | StarGateSG-1 [ Thu Apr 13, 2006 7:40 am ] | ||||
Post subject: | |||||
hmm... Were is the add attachments? O well I will post them. Note: you will be able to see the problem right away. This is the data file, the dats is test data though.
This is the XSLT file.
|
Author: | rdrake [ Thu Apr 13, 2006 3:03 pm ] | ||
Post subject: | |||
It looks like, while it's pulling data from the xml file, it's not pulling everything out. Take a look at the line as follows:
Now, as for a solution, I really don't know. Just heard of XSLT myself, and I've had no time to investigate it further. |
Author: | rdrake [ Thu Apr 13, 2006 3:23 pm ] | ||||
Post subject: | |||||
Sorry for the double post, but I couldn't seem to edit my previous post... Anyways, I've dug up a solution. The level you want to get up to is one higher than where your for-each statement is looking, right? So, you must go up a level before you can access the data. This can be achieved as follows:
|