[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Splitting content from sub-elements
Hello Everyone,
I'm having trouble with breaking down a piece of XML into a simpler structure by using xslt 1.0. The problem concentrates itself specifically around splitting the content within a <Text> element from the <FootNote>, which is also part of the same element <Text >, and still keeping the order within the <Paragraph> intact. Any suggestions would be much appreciated. The original XML: <Paragraph Pstyle="Plattetekst"> <Text Cstyle="[No character style]">A line of text.</Text> <Text Cstyle="Cursief">Another line of text.</Text> <Text Cstyle="[No character style]">A 3rd line of text<FootNote ID="14"> <Paragraph Pstyle="Voetnoot"> <Text Cstyle="[No character style]">This is the content of the footnote.</Text> </Paragraph> </FootNote>that contains a footnote.</Text> <Text Cstyle="Cursief">A 4th line of text.</Text> <Text Cstyle="[No character style]">A 5th line of text that also<FootNote ID="15"> <Paragraph Pstyle="Voetnoot"> <Text Cstyle="[No character style]">This is the 2nd footnote.</Text> </Paragraph> </FootNote>a footnote.</Text> </Paragraph> The desired XML: <para> A line of text. <emphasis role="italic">Another line of text.</ emphasis> A 3rd line of text<footnote label="14"> <para>This is the content of the footnote.</para> </footnote> that contains a footnote. <emphasis role="italic">A 4th line of text.</emphasis> A 5th line of text that also<footnote label="15"> <para>This is the 2nd footnote.</para> </footnote> a footnote. </para> Regards, Casper Voortman
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|