Subject: Re: [xsl] Recursively traversing an outline with level gaps From: "Imsieke, Gerrit, le-tex" <gerrit.imsieke@xxxxxxxxx> Date: Wed, 24 Mar 2010 22:26:06 +0100 |
Sorry, you're right. I can make a simplified test case:
ODT (styles.xml): <style:style style:name="Heading_1" text:outline-level="1"/> <style:style style:name="Heading_2" text:outline-level="2"/> <style:style style:name="Heading_3" text:outline-level="3"/> <style:style style:name="Heading_4" text:outline-level="4"/>
XHTML: <p class="Heading_1">1</p> ... <p class="Heading_3">1.1.1</p> ... <p class="Heading_1">2</p> ... <p class="Heading_2">2.1</p> ... <p class="Heading_3">2.1.1</p> ... <p class="Heading_2">2.2</p>
Desired outline (also what OpenOffice.org produces): 1 1.1.1 2 2.1 2.1.1 2.2
But if you process it recursively level after level as I described, you get: 1 2 2.1 2.1.1 2.2
Notice 1.1.1 is missing, because 1.1 is missing as well -- in other words, there is a gap between levels 1 and 3.
Does that make it clearer? How would you process such outline that all the levels are included, no matter there are gaps between them?
Martynas
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Recursively traversing an, Martynas Jusevicius | Thread | [xsl] Calculating Column Total, Shashank Jain |
Re: [xsl] Recursively traversing an, Martynas Jusevicius | Date | RE: [xsl] Evaluating XML inside att, Michael Kay |
Month |