preserve style prefix when converting documents (#4582)
This commit is contained in:
parent
b982d91c87
commit
633e083b44
|
@ -70,33 +70,53 @@
|
|||
</xsl:template>
|
||||
|
||||
<xsl:template match="legistic_part/title">
|
||||
<text:list text:style-name="Legistic_20_Part_20_Numbering">
|
||||
<text:list-item>
|
||||
<text:p text:style-name="Lpart">
|
||||
<xsl:apply-templates select="node() | text()" mode="inline"/>
|
||||
</text:p>
|
||||
</text:list-item>
|
||||
</text:list>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="legistic_book/title">
|
||||
<text:list text:style-name="Legistic_20_Book_20_Numbering">
|
||||
<text:list-item>
|
||||
<text:p text:style-name="LLivre">
|
||||
<xsl:apply-templates select="node() | text()" mode="inline"/>
|
||||
</text:p>
|
||||
</text:list-item>
|
||||
</text:list>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="legistic_title/title">
|
||||
<text:list text:style-name="Legistic_20_Title_20_Numbering">
|
||||
<text:list-item>
|
||||
<text:p text:style-name="Ltitre">
|
||||
<xsl:apply-templates select="node() | text()" mode="inline"/>
|
||||
</text:p>
|
||||
</text:list-item>
|
||||
</text:list>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="legistic_chapter/title">
|
||||
<text:list text:style-name="Legistic_20_Chapter_20_Numbering">
|
||||
<text:list-item>
|
||||
<text:p text:style-name="Lchapitre">
|
||||
<xsl:apply-templates select="node() | text()" mode="inline"/>
|
||||
</text:p>
|
||||
</text:list-item>
|
||||
</text:list>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="legistic_section/title">
|
||||
<text:list text:style-name="Legistic_20_Section_20_Numbering">
|
||||
<text:list-item>
|
||||
<text:p text:style-name="Lsection">
|
||||
<xsl:apply-templates select="node() | text()" mode="inline"/>
|
||||
</text:p>
|
||||
</text:list-item>
|
||||
</text:list>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="legistic_subsection/title">
|
||||
|
@ -105,7 +125,6 @@
|
|||
</text:p>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="title">
|
||||
<xsl:variable name="par"><xsl:value-of select="local-name(parent::node())"/></xsl:variable>
|
||||
<xsl:choose>
|
||||
|
|
|
@ -103,18 +103,18 @@
|
|||
<style:style style:name="Légistique" style:family="paragraph" style:class="text">
|
||||
<style:text-properties style:font-size-asian="10.5pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="Lpart" style:family="paragraph" style:parent-style-name="Légistique" style:next-style-name="Text_20_body" style:class="text" style:list-style-name="LegisticPartNumbering">
|
||||
<style:style style:name="Lpart" style:family="paragraph" style:parent-style-name="Légistique" style:next-style-name="Text_20_body" style:class="text" style:list-style-name="Legistic Part Numbering">
|
||||
<style:paragraph-properties fo:margin-top="0.42cm" fo:margin-bottom="0.7cm" fo:text-align="center" style:justify-single-word="false" style:page-number="auto" fo:background-color="transparent" fo:padding="0cm" fo:border="none" style:shadow="none" style:join-border="false">
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties fo:font-variant="small-caps" fo:font-size="140%" fo:font-weight="normal" style:font-size-asian="115%" style:font-weight-asian="bold" style:font-size-complex="115%" style:font-weight-complex="bold"/>
|
||||
</style:style>
|
||||
<style:style style:name="LLivre" style:family="paragraph" style:parent-style-name="Légistique" style:next-style-name="Text_20_body" style:class="text" style:list-style-name="LegisticBookNumbering">
|
||||
<style:style style:name="LLivre" style:family="paragraph" style:parent-style-name="Légistique" style:next-style-name="Text_20_body" style:class="text" style:list-style-name="Legistic Book Numbering">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"
|
||||
fo:margin-bottom="0.5cm" fo-margin-top="0.5cm"
|
||||
fo:line-height="125%"/>
|
||||
<style:text-properties fo:font-size="14pt" style:font-size-asian="10.5pt"/>
|
||||
</style:style>
|
||||
<style:style style:name="Ltitre" style:family="paragraph" style:parent-style-name="Légistique" style:next-style-name="Text_20_body" style:class="text" style:list-style-name="LegisticTitleNumbering">
|
||||
<style:style style:name="Ltitre" style:family="paragraph" style:parent-style-name="Légistique" style:next-style-name="Text_20_body" style:class="text" style:list-style-name="Legistic Title Numbering">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"
|
||||
fo:margin-bottom="0.5cm" fo-margin-top="0.5cm"
|
||||
fo:line-height="125%"/>
|
||||
|
@ -122,7 +122,7 @@
|
|||
</style:style>
|
||||
<style:style style:name="Lchapitre" style:family="paragraph"
|
||||
style:parent-style-name="Légistique" style:next-style-name="Text_20_body"
|
||||
style:list-style-name="LegisticChapNumbering" style:class="text">
|
||||
style:list-style-name="Legistic Chapter Numbering" style:class="text">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"
|
||||
fo:margin-bottom="0.5cm" fo-margin-top="0.5cm"
|
||||
fo:line-height="125%"/>
|
||||
|
@ -131,7 +131,7 @@
|
|||
<style:style style:name="Lsection"
|
||||
style:family="paragraph" style:parent-style-name="Légistique"
|
||||
style:next-style-name="Text_20_body" style:class="text"
|
||||
style:list-style-name="LegisticSectNumbering"
|
||||
style:list-style-name="Legistic Section Numbering"
|
||||
>
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"
|
||||
fo:margin-bottom="0.5cm" fo-margin-top="0.5cm"
|
||||
|
@ -269,35 +269,35 @@
|
|||
<style:list-level-properties text:space-before="2.635cm" text:min-label-width="0.635cm"/>
|
||||
</text:list-level-style-number>
|
||||
</text:list-style>
|
||||
<text:list-style style:name="LegisticChapNumbering" style:display-name="Legistic Chapter Numbering">
|
||||
<text:list-style style:name="Legistic_20_Chapter_20_Numbering" style:display-name="Legistic Chapter Numbering">
|
||||
<text:list-level-style-number text:level="1"
|
||||
text:style-name="LegisticNumberPart" style:num-prefix="Chapitre"
|
||||
style:num-format="" style:num-suffix=" ">
|
||||
</text:list-level-style-number>
|
||||
</text:list-style>
|
||||
|
||||
<text:list-style style:name="LegisticPartNumbering" style:display-name="Legistic Part Numbering">
|
||||
<text:list-style style:name="Legistic_20_Part_20_Numbering" style:display-name="Legistic Part Numbering">
|
||||
<text:list-level-style-number text:level="1"
|
||||
text:style-name="LegisticNumberPart" style:num-prefix="Partie "
|
||||
style:num-format="I" style:num-suffix=" ">
|
||||
</text:list-level-style-number>
|
||||
</text:list-style>
|
||||
|
||||
<text:list-style style:name="LegisticBookNumbering" style:display-name="Legistic Book Numbering">
|
||||
<text:list-style style:name="Legistic_20_Book_20_Numbering" style:display-name="Legistic Book Numbering">
|
||||
<text:list-level-style-number text:level="1"
|
||||
text:style-name="LegisticNumberPart" style:num-prefix="Livre"
|
||||
style:num-format="" style:num-suffix=" ">
|
||||
</text:list-level-style-number>
|
||||
</text:list-style>
|
||||
|
||||
<text:list-style style:name="LegisticTitleNumbering" style:display-name="Legistic Title Numbering">
|
||||
<text:list-style style:name="Legistic_20_Title_20_Numbering" style:display-name="Legistic Title Numbering">
|
||||
<text:list-level-style-number text:level="1"
|
||||
text:style-name="LegisticNumberPart" style:num-prefix="Titre"
|
||||
style:num-format="" style:num-suffix=" ">
|
||||
</text:list-level-style-number>
|
||||
</text:list-style>
|
||||
|
||||
<text:list-style style:name="LegisticSectNumbering" style:display-name="Legistic Section Numbering">
|
||||
<text:list-style style:name="Legistic_20_Section_20_Numbering" style:display-name="Legistic Section Numbering">
|
||||
<text:list-level-style-number text:level="1" text:style-name="LegisticNumberPart" style:num-prefix="Section" style:num-format="" style:num-suffix=" ">
|
||||
</text:list-level-style-number>
|
||||
<text:list-level-style-number text:level="2" text:style-name="LegisticNumberPart" style:num-format="I">
|
||||
|
|
Reference in New Issue