I want to generate a word docuement by transforming an XML file(data file) using XSLT. Also need to include header and footer for the document.Here is the xml structure
Code:
<Document>
<Title>GUI Requirements</Title>
<HeaderText></HeaderText>
<FooterText></FooterText>
<Sections>
<Section >
<Header number="1" style="">Screens</Header>
<Paragraph style="">text</Paragraph>
</Section>
<Section >
<Header number="1.1" style="">Screens</Header>
<List type="ordered" style="">
<Item></Item>
<Item></Item>
</List>
</Section>
<Section >
<Header number="2" style="">proc desc</Header>
<Paragraph style="">this is proc desc</Paragraph>
</Section>
<Section >
<Header number="3" style="">Usecase</Header>
<Detail>
<Rows>
<Row>
<Header>col name</Header>
<Column>
<Paragraph>text</Paragraph>
</Column>
</Row>
<Row>
<Header>Usecase</Header>
<Column>
<List type="BulletedList">
<Item>uc_345</Item>
</List>
</Column>
</Row>
</Rows>
<Caption>Table 1 Usecase Details</Caption>
</Detail>
</Section>
<Section >
<Header number="3" style="">Normal Flow Step</Header>
<Table>
<TableHeader>
<Column>Step No</Column>
<Column>Description</Column>
</TableHeader>
<Rows>
<Row>
<Column>
<Paragraph>1</Paragraph>
</Column>
<Column>
<Paragraph>text</Paragraph>
</Column>
</Row>
<Row>
<Column>
<Paragraph>2</Paragraph>
</Column>
<Column>
<List type="BulletedList">
<Item></Item>
</List>
</Column>
</Row>
</Rows>
<Caption>Table 2 Normal Flow Steps</Caption>
</Table>
</Section>
<Section >
<Header number="4">References</Header>
<Reference>
<Link>http://google.com</Link>
</Reference>
</Section>
</Sections>
</Document>