xsl-list
[Top] [All Lists]

[xsl] Re: xsl-list Digest 2 Feb 2007 06:10:00 -0000 Issue 1036

2007-02-02 08:40:15
Thank for the help guys

One other thing though:

If my xml fragment contained a table element  how could that be handled as
it isn't in the w:p group:- it's on the same level as w:p like this:

<ns0:Body>
   <w:p>
      <w:pPr>
         <w:pStyle w:val="BodyHeading"/>
      </w:pPr>
      <w:r>
         <w:t>Heading Text</w:t>
      </w:r>
   </w:p>
   <w:p>
      <w:pPr>
         <w:pStyle w:val="NumberedText"/>
      </w:pPr>
      <w:r>
         <w:t>Some list text</w:t>
      </w:r>
   </w:p>
   <w:tbl>
      <.....table data.....>
   </w:tbl>
   <w:p>
      <w:pPr>
         <w:pStyle w:val="Text"/>
      </w:pPr>
      <w:r>
         <w:t>Some text</w:t>
      </w:r>
   </w:p>
   <w:p>
      <w:pPr>
         <w:pStyle w:val="BodyHeading"/>
      </w:pPr>
      <w:r>
         <w:t>Another Heading Text</w:t>
      </w:r>
   </w:p>
   <w:p>
      <w:pPr>
         <w:pStyle w:val="Text"/>
      </w:pPr>
      <w:r>
         <w:t>Some more text</w:t>
      </w:r>
   </w:p>
   <w:p>
      <w:pPr>
         <w:pStyle w:val="NumberedText"/>
      </w:pPr>
      <w:r>
         <w:t>Some more list text</w:t>
      </w:r>
   </w:p>
</ns0:Body>

so the output should be

<Body>
   <Section>
      <Title>Heading Text</Title> (from the first Heading)
      <List>
         <ListItem>Some list text</List>
      </List>
      <Table>
         <.....table data.....>
      </Table>
      <Para>Some text</Para>
   </Section>
   <Section>
      <Title>Another Heading Text</Title> (from the second Heading)
      <Para>Some more text</Para>
      <List>
         <ListItem>Some more list text</List>
      </List>
   </Section>
</Body>

Sorry to be a pain... I forgot to include the table element earlier.

Regards
Andy

Andy Carr
IT Specialist
Tel: Internal - 298037 External - 01252 558037
Mail Point  M1C IBM Application Services
Meudon House, Meudon Avenue, Farnborough, GU14 7NB
(Notes) Andy Carr1/UK/IBM(_at_)IBMGB
(Internet)CARRA(_at_)uk(_dot_)ibm(_dot_)com


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>