Hi All,
I have the following stylesheet:
http://www.minaki.co.uk/test/GAZReslt.xsl
This is used to render an XML Recordset into an HTML Table. For most of the data, it works fine - however I have just noticed, on one of the other data providers, it doesn't work.
What's happening is that in some of the returned records, there are missing attributes. Here's a sample XML File:
http://www.minaki.co.uk/test/sample.xml
As you can see, in the 2nd half of the z:row's returned, 'TheAANRef' is missing and added to the end in an attribute called rs:forcenull. This shouldn't be a problem, but the XSL File is wrong.
Firstly, it draws the table header based on the schema. Then it draws each row based on the attributes of each z:row element. Unfortunatly, it uses the order of the elements as they are in z:row and not the schema, which makes it mess up (as you can see if you save them both and open in Explorer or something)
I've tried to figure it out myself, been sifting through XSLT tutorials, but I just can't get the hang of it. I know what I need to do, just not how...
Can anyone help?
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"
Please login or register to view this content. Registration is FREE | Please login or register to view this content. Registration is FREE
|