
On Fri, Mar 11, 2011 at 5:02 PM, ibtisam jamal <ibty.jamal@gmail.com> wrote:
Thanks for the advice...this XSLT is giving me issues how do i create a table based on ,how should the table look . <suitablejobs xsi:noNamespaceSchemaLocation="SuitableJobsfinal.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <company> <companyname> <companyname>String</companyname> </companyname> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>0</salaryammount> <details>String</details> </jobdescription> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>0</salaryammount> <details>String</details> </jobdescription> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>0</salaryammount> <details>String</details> </jobdescription> </company> <company> <companyname> <companyname>String</companyname> </companyname> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>0</salaryammount> <details>String</details> </jobdescription> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>0</salaryammount> <details>String</details> </jobdescription> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>/0</salaryammount> <details>String</details> </jobdescription> </company> </suitablejobs>
There is something not correct in thisdocument structure ... e.g. you have nested "companyname" elements -- why ? <company> <companyname> <companyname>String</companyname> </companyname> .... perhaps this should be "companyname" at the first level ? <company> <companyname>String</companyname> then you have multiple "jobdescription" elements within <company>. these are better grouped within a "jobdescriptions" element , something like : <company> ..... <jobdescriptions> <jobdescription> <jobtitle>String</jobtitle> <salaryammount>0</salaryammount> <details>String</details> </jobdescription> ...... </jobdescriptions> So assuming you made the changes as described above -- the way to display them in a tabular way. if you notice the job-descriptions are grouped by company name ... so one way to do it is to make the "companyname" a heading and put the job descriptions in a table ... something like : A Company Job title | Salary | Details ---------------------------------- A title | 10,000 | Some info ----------------------------------- B title | 20,000 | Some info2 --------------------------------------- B Company Job title | Salary | Details ---------------------------------- C title | 10,000 | Some info ----------------------------------- D title | 20,000 | Some info2 ---------------------------------------