Changeset 4bf09cc


Ignore:
Timestamp:
01/01/10 14:46:16 (3 years ago)
Author:
Aurélien Bompard <aurelien@…>
Branches:
master
Children:
cdd2ec7
Parents:
beb886c
git-author:
Aurélien Bompard <aurelien@…> (01/01/10 14:46:16)
git-committer:
Aurélien Bompard <aurelien@…> (01/01/10 14:46:16)
Message:

Convert tabs to spaces

Files:
59 edited

Legend:

Unmodified
Added
Removed
  • styles/big.txt

    r8a88bf7 r4bf09cc  
    11<style:style style:name="big" style:family="text"> 
    2         <style:text-properties fo:font-size="120%"/> 
     2    <style:text-properties fo:font-size="120%"/> 
    33</style:style> 
  • styles/caption.txt

    rc3311e7 r4bf09cc  
    11<style:style style:name="Caption" style:display-name="Caption" style:class="extra" 
    22             style:family="paragraph" style:parent-style-name="Standard"> 
    3         <style:paragraph-properties fo:margin-top="0.2cm" fo:margin-bottom="0.2cm" 
    4                                     text:number-lines="false" text:line-number="0"/> 
    5         <style:text-properties fo:font-size="95%" fo:font-style="italic"/> 
     3    <style:paragraph-properties fo:margin-top="0.2cm" fo:margin-bottom="0.2cm" 
     4                                text:number-lines="false" text:line-number="0"/> 
     5    <style:text-properties fo:font-size="95%" fo:font-style="italic"/> 
    66</style:style> 
  • styles/center.txt

    r1d2a840 r4bf09cc  
    11<style:style style:name="center" style:family="paragraph" 
    22             style:parent-style-name="Text_20_body"> 
    3         <style:paragraph-properties fo:text-align="center" 
    4                                     style:justify-single-word="false"/> 
     3    <style:paragraph-properties fo:text-align="center" 
     4                                style:justify-single-word="false"/> 
    55</style:style> 
  • styles/citation.txt

    rb44bd33 r4bf09cc  
    11<style:style style:name="Citation" style:display-name="Citation" style:family="text"> 
    2         <style:text-properties fo:font-style="italic"/> 
     2    <style:text-properties fo:font-style="italic"/> 
    33</style:style> 
  • styles/emphasis.txt

    r1d2a840 r4bf09cc  
    11<style:style style:name="Emphasis" 
    22             style:display-name="Emphasis" style:family="text"> 
    3         <style:text-properties fo:font-style="italic"/> 
     3    <style:text-properties fo:font-style="italic"/> 
    44</style:style> 
  • styles/footnote.txt

    rf394433 r4bf09cc  
    22             style:family="paragraph" style:class="extra" 
    33             style:parent-style-name="Standard"> 
    4         <style:paragraph-properties fo:margin-left="0.5cm" fo:margin-right="0cm" 
    5                fo:text-indent="-0.5cm" style:auto-text-indent="false" 
    6                text:number-lines="false" text:line-number="0"/> 
    7         <style:text-properties fo:font-size="10pt"/> 
     4    <style:paragraph-properties fo:margin-left="0.5cm" fo:margin-right="0cm" 
     5           fo:text-indent="-0.5cm" style:auto-text-indent="false" 
     6           text:number-lines="false" text:line-number="0"/> 
     7    <style:text-properties fo:font-size="10pt"/> 
    88</style:style> 
  • styles/heading1.txt

    r1d2a840 r4bf09cc  
    33              style:next-style-name="Text_20_body" style:class="text" 
    44              style:default-outline-level="1"> 
    5         <style:text-properties fo:font-size="115%" fo:font-weight="bold"/> 
     5    <style:text-properties fo:font-size="115%" fo:font-weight="bold"/> 
    66</style:style> 
  • styles/heading2.txt

    r1d2a840 r4bf09cc  
    33              style:next-style-name="Text_20_body" style:class="text" 
    44              style:default-outline-level="2"> 
    5         <style:text-properties fo:font-size="110%" fo:font-weight="bold" 
    6                                fo:font-style="italic"/> 
     5    <style:text-properties fo:font-size="110%" fo:font-weight="bold" 
     6                           fo:font-style="italic"/> 
    77</style:style> 
  • styles/heading3.txt

    r847dd04 r4bf09cc  
    33              style:next-style-name="Text_20_body" style:class="text" 
    44              style:default-outline-level="3"> 
    5         <style:text-properties fo:font-size="105%" fo:font-weight="bold"/> 
     5    <style:text-properties fo:font-size="105%" fo:font-weight="bold"/> 
    66</style:style> 
  • styles/heading4.txt

    r847dd04 r4bf09cc  
    33              style:next-style-name="Text_20_body" style:class="text" 
    44              style:default-outline-level="4"> 
    5         <style:text-properties fo:font-size="100%" fo:font-weight="bold"/> 
     5    <style:text-properties fo:font-size="100%" fo:font-weight="bold"/> 
    66</style:style> 
  • styles/heading5.txt

    r847dd04 r4bf09cc  
    33              style:next-style-name="Text_20_body" style:class="text" 
    44              style:default-outline-level="5"> 
    5         <style:text-properties fo:font-size="100%" fo:font-style="italic"/> 
     5    <style:text-properties fo:font-size="100%" fo:font-style="italic"/> 
    66</style:style> 
  • styles/heading6.txt

    r017e63d r4bf09cc  
    33              style:next-style-name="Text_20_body" style:class="text" 
    44              style:default-outline-level="6"> 
    5         <style:text-properties fo:font-size="90%" fo:font-weight="bold" 
     5    <style:text-properties fo:font-size="90%" fo:font-weight="bold" 
    66                           style:text-underline-style="solid" 
    77                           style:text-underline-width="auto" 
  • styles/horizontal_line.txt

    r1d2a840 r4bf09cc  
    22             style:family="paragraph" style:parent-style-name="Standard" 
    33             style:next-style-name="Text_20_body" style:class="html"> 
    4         <style:paragraph-properties fo:margin-top="0cm" fo:margin-bottom="0.5cm" 
    5                      style:border-line-width-bottom="0.002cm 0.035cm 0.002cm" 
    6                      fo:padding="0cm" fo:border-left="none" fo:border-right="none" 
    7                      fo:border-top="none" fo:border-bottom="0.04cm double #808080" 
    8                      text:number-lines="false" text:line-number="0" 
    9                      style:join-border="false"/> 
    10         <style:text-properties fo:font-size="6pt"/> 
     4    <style:paragraph-properties fo:margin-top="0cm" fo:margin-bottom="0.5cm" 
     5                 style:border-line-width-bottom="0.002cm 0.035cm 0.002cm" 
     6                 fo:padding="0cm" fo:border-left="none" fo:border-right="none" 
     7                 fo:border-top="none" fo:border-bottom="0.04cm double #808080" 
     8                 text:number-lines="false" text:line-number="0" 
     9                 style:join-border="false"/> 
     10    <style:text-properties fo:font-size="6pt"/> 
    1111</style:style> 
  • styles/image_inline.txt

    r1d2a840 r4bf09cc  
    11<style:style style:name="image-inline" style:family="graphic" 
    22             style:parent-style-name="Graphics"> 
    3         <style:graphic-properties style:vertical-pos="middle" 
    4                                   style:vertical-rel="text"/> 
     3    <style:graphic-properties style:vertical-pos="middle" 
     4                              style:vertical-rel="text"/> 
    55</style:style> 
  • styles/list_bullet.txt

    rd2791b6 r4bf09cc  
    11<text:list-style style:name="List_20_1" style:display-name="List 1"> 
    2         <text:list-level-style-bullet text:level="1" 
    3                 text:style-name="Bullet_20_Symbols" 
    4                 text:bullet-char="•"> 
    5                 <style:list-level-properties 
    6                     text:space-before="0.5cm" 
    7                     text:min-label-width="0.5cm"/> 
    8         </text:list-level-style-bullet> 
    9         <text:list-level-style-bullet text:level="2" 
    10                 text:style-name="Bullet_20_Symbols" 
    11                 text:bullet-char="◦"> 
    12                 <style:list-level-properties 
    13                     text:space-before="1cm" 
    14                     text:min-label-width="0.5cm"/> 
    15         </text:list-level-style-bullet> 
    16         <text:list-level-style-bullet text:level="3" 
    17                 text:style-name="Bullet_20_Symbols" 
    18                 text:bullet-char="▪"> 
    19                 <style:list-level-properties 
    20                     text:space-before="1.5cm" 
    21                     text:min-label-width="0.5cm"/> 
    22         </text:list-level-style-bullet> 
    23         <text:list-level-style-bullet text:level="4" 
    24                 text:style-name="Bullet_20_Symbols" 
    25                 text:bullet-char="•"> 
    26                 <style:list-level-properties 
    27                     text:space-before="2cm" 
    28                     text:min-label-width="0.5cm"/> 
    29         </text:list-level-style-bullet> 
    30         <text:list-level-style-bullet text:level="5" 
    31                 text:style-name="Bullet_20_Symbols" 
    32                 text:bullet-char="◦"> 
    33                 <style:list-level-properties 
    34                     text:space-before="2.5cm" 
    35                     text:min-label-width="0.5cm"/> 
    36         </text:list-level-style-bullet> 
    37         <text:list-level-style-bullet text:level="6" 
    38                 text:style-name="Bullet_20_Symbols" 
    39                 text:bullet-char="▪"> 
    40                 <style:list-level-properties 
    41                     text:space-before="3cm" 
    42                     text:min-label-width="0.5cm"/> 
    43         </text:list-level-style-bullet> 
    44         <text:list-level-style-bullet text:level="7" 
    45                 text:style-name="Bullet_20_Symbols" 
    46                 text:bullet-char="•"> 
    47                 <style:list-level-properties 
    48                     text:space-before="3.5cm" 
    49                     text:min-label-width="0.5cm"/> 
    50         </text:list-level-style-bullet> 
    51         <text:list-level-style-bullet text:level="8" 
    52                 text:style-name="Bullet_20_Symbols" 
    53                 text:bullet-char="◦"> 
    54                 <style:list-level-properties 
    55                     text:space-before="4cm" 
    56                     text:min-label-width="0.5cm"/> 
    57         </text:list-level-style-bullet> 
    58         <text:list-level-style-bullet text:level="9" 
    59                 text:style-name="Bullet_20_Symbols" 
    60                 text:bullet-char="▪"> 
    61                 <style:list-level-properties 
    62                     text:space-before="4.5cm" 
    63                     text:min-label-width="0.5cm"/> 
    64         </text:list-level-style-bullet> 
    65         <text:list-level-style-bullet text:level="10" 
    66                 text:style-name="Bullet_20_Symbols" 
    67                 text:bullet-char="•"> 
    68                 <style:list-level-properties 
    69                     text:space-before="5cm" 
    70                     text:min-label-width="0.5cm"/> 
    71         </text:list-level-style-bullet> 
     2    <text:list-level-style-bullet text:level="1" 
     3            text:style-name="Bullet_20_Symbols" 
     4            text:bullet-char="•"> 
     5        <style:list-level-properties 
     6            text:space-before="0.5cm" 
     7            text:min-label-width="0.5cm"/> 
     8    </text:list-level-style-bullet> 
     9    <text:list-level-style-bullet text:level="2" 
     10            text:style-name="Bullet_20_Symbols" 
     11            text:bullet-char="◦"> 
     12        <style:list-level-properties 
     13            text:space-before="1cm" 
     14            text:min-label-width="0.5cm"/> 
     15    </text:list-level-style-bullet> 
     16    <text:list-level-style-bullet text:level="3" 
     17            text:style-name="Bullet_20_Symbols" 
     18            text:bullet-char="▪"> 
     19        <style:list-level-properties 
     20            text:space-before="1.5cm" 
     21            text:min-label-width="0.5cm"/> 
     22    </text:list-level-style-bullet> 
     23    <text:list-level-style-bullet text:level="4" 
     24            text:style-name="Bullet_20_Symbols" 
     25            text:bullet-char="•"> 
     26        <style:list-level-properties 
     27            text:space-before="2cm" 
     28            text:min-label-width="0.5cm"/> 
     29    </text:list-level-style-bullet> 
     30    <text:list-level-style-bullet text:level="5" 
     31            text:style-name="Bullet_20_Symbols" 
     32            text:bullet-char="◦"> 
     33        <style:list-level-properties 
     34            text:space-before="2.5cm" 
     35            text:min-label-width="0.5cm"/> 
     36    </text:list-level-style-bullet> 
     37    <text:list-level-style-bullet text:level="6" 
     38            text:style-name="Bullet_20_Symbols" 
     39            text:bullet-char="▪"> 
     40        <style:list-level-properties 
     41            text:space-before="3cm" 
     42            text:min-label-width="0.5cm"/> 
     43    </text:list-level-style-bullet> 
     44    <text:list-level-style-bullet text:level="7" 
     45            text:style-name="Bullet_20_Symbols" 
     46            text:bullet-char="•"> 
     47        <style:list-level-properties 
     48            text:space-before="3.5cm" 
     49            text:min-label-width="0.5cm"/> 
     50    </text:list-level-style-bullet> 
     51    <text:list-level-style-bullet text:level="8" 
     52            text:style-name="Bullet_20_Symbols" 
     53            text:bullet-char="◦"> 
     54        <style:list-level-properties 
     55            text:space-before="4cm" 
     56            text:min-label-width="0.5cm"/> 
     57    </text:list-level-style-bullet> 
     58    <text:list-level-style-bullet text:level="9" 
     59            text:style-name="Bullet_20_Symbols" 
     60            text:bullet-char="▪"> 
     61        <style:list-level-properties 
     62            text:space-before="4.5cm" 
     63            text:min-label-width="0.5cm"/> 
     64    </text:list-level-style-bullet> 
     65    <text:list-level-style-bullet text:level="10" 
     66            text:style-name="Bullet_20_Symbols" 
     67            text:bullet-char="•"> 
     68        <style:list-level-properties 
     69            text:space-before="5cm" 
     70            text:min-label-width="0.5cm"/> 
     71    </text:list-level-style-bullet> 
    7272</text:list-style> 
  • styles/list_number.txt

    rd2791b6 r4bf09cc  
    11<text:list-style style:name="Numbering_20_1" style:display-name="Numbering 1"> 
    2         <text:list-level-style-number text:level="1" 
    3                 text:style-name="Numbering_20_Symbols" 
    4                 style:num-suffix="." 
     2    <text:list-level-style-number text:level="1" 
     3            text:style-name="Numbering_20_Symbols" 
     4            style:num-suffix="." 
    55            style:num-format="1"> 
    6                 <style:list-level-properties 
    7                     text:space-before="0.5cm" 
    8                     text:min-label-width="0.5cm"/> 
    9         </text:list-level-style-number> 
    10         <text:list-level-style-number text:level="2" 
    11                 text:style-name="Numbering_20_Symbols" 
    12                 style:num-suffix="." 
     6        <style:list-level-properties 
     7            text:space-before="0.5cm" 
     8            text:min-label-width="0.5cm"/> 
     9    </text:list-level-style-number> 
     10    <text:list-level-style-number text:level="2" 
     11            text:style-name="Numbering_20_Symbols" 
     12            style:num-suffix="." 
    1313            style:num-format="1"> 
    14                 <style:list-level-properties 
    15                     text:space-before="1cm" 
    16                     text:min-label-width="0.5cm"/> 
    17         </text:list-level-style-number> 
    18         <text:list-level-style-number text:level="3" 
    19                 text:style-name="Numbering_20_Symbols" 
    20                 style:num-suffix="." 
     14        <style:list-level-properties 
     15            text:space-before="1cm" 
     16            text:min-label-width="0.5cm"/> 
     17    </text:list-level-style-number> 
     18    <text:list-level-style-number text:level="3" 
     19            text:style-name="Numbering_20_Symbols" 
     20            style:num-suffix="." 
    2121            style:num-format="1"> 
    22                 <style:list-level-properties 
    23                     text:space-before="1.5cm" 
    24                     text:min-label-width="0.5cm"/> 
    25         </text:list-level-style-number> 
    26         <text:list-level-style-number text:level="4" 
    27                 text:style-name="Numbering_20_Symbols" 
    28                 style:num-suffix="." 
     22        <style:list-level-properties 
     23            text:space-before="1.5cm" 
     24            text:min-label-width="0.5cm"/> 
     25    </text:list-level-style-number> 
     26    <text:list-level-style-number text:level="4" 
     27            text:style-name="Numbering_20_Symbols" 
     28            style:num-suffix="." 
    2929            style:num-format="1"> 
    30                 <style:list-level-properties 
    31                     text:space-before="2cm" 
    32                     text:min-label-width="0.5cm"/> 
    33         </text:list-level-style-number> 
    34         <text:list-level-style-number text:level="5" 
    35                 text:style-name="Numbering_20_Symbols" 
    36                 style:num-suffix="." 
     30        <style:list-level-properties 
     31            text:space-before="2cm" 
     32            text:min-label-width="0.5cm"/> 
     33    </text:list-level-style-number> 
     34    <text:list-level-style-number text:level="5" 
     35            text:style-name="Numbering_20_Symbols" 
     36            style:num-suffix="." 
    3737            style:num-format="1"> 
    38                 <style:list-level-properties 
    39                     text:space-before="2.5cm" 
    40                     text:min-label-width="0.5cm"/> 
    41         </text:list-level-style-number> 
    42         <text:list-level-style-number text:level="6" 
    43                 text:style-name="Numbering_20_Symbols" 
    44                 style:num-suffix="." 
     38        <style:list-level-properties 
     39            text:space-before="2.5cm" 
     40            text:min-label-width="0.5cm"/> 
     41    </text:list-level-style-number> 
     42    <text:list-level-style-number text:level="6" 
     43            text:style-name="Numbering_20_Symbols" 
     44            style:num-suffix="." 
    4545            style:num-format="1"> 
    46                 <style:list-level-properties 
    47                     text:space-before="3cm" 
    48                     text:min-label-width="0.5cm"/> 
    49         </text:list-level-style-number> 
    50         <text:list-level-style-number text:level="7" 
    51                 text:style-name="Numbering_20_Symbols" 
    52                 style:num-suffix="." 
     46        <style:list-level-properties 
     47            text:space-before="3cm" 
     48            text:min-label-width="0.5cm"/> 
     49    </text:list-level-style-number> 
     50    <text:list-level-style-number text:level="7" 
     51            text:style-name="Numbering_20_Symbols" 
     52            style:num-suffix="." 
    5353            style:num-format="1"> 
    54                 <style:list-level-properties 
    55                     text:space-before="3.5cm" 
    56                     text:min-label-width="0.5cm"/> 
    57         </text:list-level-style-number> 
    58         <text:list-level-style-number text:level="8" 
    59                 text:style-name="Numbering_20_Symbols" 
    60                 style:num-suffix="." 
     54        <style:list-level-properties 
     55            text:space-before="3.5cm" 
     56            text:min-label-width="0.5cm"/> 
     57    </text:list-level-style-number> 
     58    <text:list-level-style-number text:level="8" 
     59            text:style-name="Numbering_20_Symbols" 
     60            style:num-suffix="." 
    6161            style:num-format="1"> 
    62                 <style:list-level-properties 
    63                     text:space-before="4cm" 
    64                     text:min-label-width="0.5cm"/> 
    65         </text:list-level-style-number> 
    66         <text:list-level-style-number text:level="9" 
    67                 text:style-name="Numbering_20_Symbols" 
    68                 style:num-suffix="." 
     62        <style:list-level-properties 
     63            text:space-before="4cm" 
     64            text:min-label-width="0.5cm"/> 
     65    </text:list-level-style-number> 
     66    <text:list-level-style-number text:level="9" 
     67            text:style-name="Numbering_20_Symbols" 
     68            style:num-suffix="." 
    6969            style:num-format="1"> 
    70                 <style:list-level-properties 
    71                     text:space-before="4.5cm" 
    72                     text:min-label-width="0.5cm"/> 
    73         </text:list-level-style-number> 
    74         <text:list-level-style-number text:level="10" 
    75                 text:style-name="Numbering_20_Symbols" 
    76                 style:num-suffix="." 
     70        <style:list-level-properties 
     71            text:space-before="4.5cm" 
     72            text:min-label-width="0.5cm"/> 
     73    </text:list-level-style-number> 
     74    <text:list-level-style-number text:level="10" 
     75            text:style-name="Numbering_20_Symbols" 
     76            style:num-suffix="." 
    7777            style:num-format="1"> 
    78                 <style:list-level-properties 
    79                     text:space-before="5cm" 
    80                     text:min-label-width="0.5cm"/> 
    81         </text:list-level-style-number> 
     78        <style:list-level-properties 
     79            text:space-before="5cm" 
     80            text:min-label-width="0.5cm"/> 
     81    </text:list-level-style-number> 
    8282</text:list-style> 
  • styles/preformatted.txt

    r019db7e r4bf09cc  
    11<style:style style:name="Preformatted_20_Text" 
    22             style:display-name="Preformatted Text" style:family="paragraph" 
    3                  style:parent-style-name="Standard" style:class="html"> 
    4         <style:paragraph-properties fo:margin-left="1cm" fo:margin-right="1cm" 
    5                                     fo:margin-top="0cm" fo:margin-bottom="0.2cm"/> 
    6         <style:text-properties style:font-name="DejaVu Sans Mono" 
    7                                fo:font-size="9pt"/> 
     3             style:parent-style-name="Standard" style:class="html"> 
     4    <style:paragraph-properties fo:margin-left="1cm" fo:margin-right="1cm" 
     5                                fo:margin-top="0cm" fo:margin-bottom="0.2cm"/> 
     6    <style:text-properties style:font-name="DejaVu Sans Mono" 
     7                           fo:font-size="9pt"/> 
    88</style:style> 
  • styles/quotations.txt

    r9507b16 r4bf09cc  
    22             style:display-name="Quotations" 
    33             style:parent-style-name="Standard" style:class="html"> 
    4         <style:paragraph-properties fo:margin-left="1cm" fo:margin-right="1cm" 
    5                                     fo:margin-top="0cm" fo:margin-bottom="0.5cm" 
    6                                     fo:text-indent="0cm" style:auto-text-indent="false" 
    7                                     fo:padding="0.2cm" 
    8                                     fo:border-left="0.088cm solid #999999"/> 
     4    <style:paragraph-properties fo:margin-left="1cm" fo:margin-right="1cm" 
     5                                fo:margin-top="0cm" fo:margin-bottom="0.5cm" 
     6                                fo:text-indent="0cm" style:auto-text-indent="false" 
     7                                fo:padding="0.2cm" 
     8                                fo:border-left="0.088cm solid #999999"/> 
    99</style:style> 
  • styles/sender.txt

    rc3311e7 r4bf09cc  
    11<style:style style:name="Sender" style:display-name="Sender" style:class="extra" 
    22             style:family="paragraph" style:parent-style-name="Standard"> 
    3         <style:paragraph-properties fo:margin-top="0cm" fo:margin-bottom="0.100cm" 
    4                                     text:number-lines="false" text:line-number="0"/> 
    5         <style:text-properties fo:font-style="italic"/> 
     3    <style:paragraph-properties fo:margin-top="0cm" fo:margin-bottom="0.100cm" 
     4                                text:number-lines="false" text:line-number="0"/> 
     5    <style:text-properties fo:font-style="italic"/> 
    66</style:style> 
  • styles/small.txt

    r8a88bf7 r4bf09cc  
    11<style:style style:name="small" style:family="text"> 
    2         <style:text-properties fo:font-size="80%"/> 
     2    <style:text-properties fo:font-size="80%"/> 
    33</style:style> 
  • styles/strong_emphasis.txt

    r1d2a840 r4bf09cc  
    11<style:style style:name="Strong_20_Emphasis" 
    22    style:display-name="Strong Emphasis" style:family="text"> 
    3         <style:text-properties fo:font-weight="bold"/> 
     3    <style:text-properties fo:font-weight="bold"/> 
    44</style:style> 
  • styles/subscript.txt

    r1d2a840 r4bf09cc  
    11<style:style style:name="sub" style:family="text"> 
    2         <style:text-properties style:text-position="sub 58%"/> 
     2     <style:text-properties style:text-position="sub 58%"/> 
    33</style:style> 
  • styles/superscript.txt

    rad32c57 r4bf09cc  
    11<style:style style:name="sup" style:family="text"> 
    2         <style:text-properties style:text-position="super 58%"/> 
     2     <style:text-properties style:text-position="super 58%"/> 
    33</style:style> 
  • styles/table_cell_a1.txt

    r1d2a840 r4bf09cc  
    11<style:style style:name="table-default.cell-A1" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.03cm solid #000000" 
    4                                      fo:border-right="none" 
    5                                      fo:border-top="0.03cm solid #000000" 
    6                                      fo:border-bottom="0.01cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.03cm solid #000000" 
     4                                 fo:border-right="none" 
     5                                 fo:border-top="0.03cm solid #000000" 
     6                                 fo:border-bottom="0.01cm solid #000000"/> 
    77</style:style> 
  • styles/table_cell_a2.txt

    r1d2a840 r4bf09cc  
    11<style:style style:name="table-default.cell-A2" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.03cm solid #000000" 
    4                                      fo:border-right="none" 
    5                                      fo:border-top="none" 
    6                                      fo:border-bottom="0.01cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.03cm solid #000000" 
     4                                 fo:border-right="none" 
     5                                 fo:border-top="none" 
     6                                 fo:border-bottom="0.01cm solid #000000"/> 
    77</style:style> 
  • styles/table_cell_a3.txt

    r1d2a840 r4bf09cc  
    11<style:style style:name="table-default.cell-A3" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.03cm solid #000000" 
    4                                      fo:border-right="none" 
    5                                      fo:border-top="none" 
    6                                      fo:border-bottom="0.03cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.03cm solid #000000" 
     4                                 fo:border-right="none" 
     5                                 fo:border-top="none" 
     6                                 fo:border-bottom="0.03cm solid #000000"/> 
    77</style:style> 
  • styles/table_cell_a4.txt

    r1d2a840 r4bf09cc  
    11<style:style style:name="table-default.cell-A4" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.03cm solid #000000" 
    4                                      fo:border-right="none" 
    5                                      fo:border-top="0.03cm solid #000000" 
    6                                      fo:border-bottom="0.03cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.03cm solid #000000" 
     4                                 fo:border-right="none" 
     5                                 fo:border-top="0.03cm solid #000000" 
     6                                 fo:border-bottom="0.03cm solid #000000"/> 
    77</style:style> 
  • styles/table_cell_b1.txt

    r1d2a840 r4bf09cc  
    11<style:style style:name="table-default.cell-B1" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.01cm solid #000000" 
    4                                      fo:border-right="none" 
    5                                      fo:border-top="0.03cm solid #000000" 
    6                                      fo:border-bottom="0.01cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.01cm solid #000000" 
     4                                 fo:border-right="none" 
     5                                 fo:border-top="0.03cm solid #000000" 
     6                                 fo:border-bottom="0.01cm solid #000000"/> 
    77</style:style> 
  • styles/table_cell_b2.txt

    r1d2a840 r4bf09cc  
    11<style:style style:name="table-default.cell-B2" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.01cm solid #000000" 
    4                                      fo:border-right="none" 
    5                                      fo:border-top="none" 
    6                                      fo:border-bottom="0.01cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.01cm solid #000000" 
     4                                 fo:border-right="none" 
     5                                 fo:border-top="none" 
     6                                 fo:border-bottom="0.01cm solid #000000"/> 
    77</style:style> 
  • styles/table_cell_b3.txt

    r1d2a840 r4bf09cc  
    11<style:style style:name="table-default.cell-B3" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.01cm solid #000000" 
    4                                      fo:border-right="none" 
    5                                      fo:border-top="none" 
    6                                      fo:border-bottom="0.03cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.01cm solid #000000" 
     4                                 fo:border-right="none" 
     5                                 fo:border-top="none" 
     6                                 fo:border-bottom="0.03cm solid #000000"/> 
    77</style:style> 
  • styles/table_cell_b4.txt

    r1d2a840 r4bf09cc  
    11<style:style style:name="table-default.cell-B4" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.01cm solid #000000" 
    4                                      fo:border-right="none" 
    5                                      fo:border-top="0.03cm solid #000000" 
    6                                      fo:border-bottom="0.03cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.01cm solid #000000" 
     4                                 fo:border-right="none" 
     5                                 fo:border-top="0.03cm solid #000000" 
     6                                 fo:border-bottom="0.03cm solid #000000"/> 
    77</style:style> 
  • styles/table_cell_c1.txt

    r1d2a840 r4bf09cc  
    11<style:style style:name="table-default.cell-C1" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.01cm solid #000000" 
    4                                      fo:border-right="0.03cm solid #000000" 
    5                                      fo:border-top="0.03cm solid #000000" 
    6                                      fo:border-bottom="0.01cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.01cm solid #000000" 
     4                                 fo:border-right="0.03cm solid #000000" 
     5                                 fo:border-top="0.03cm solid #000000" 
     6                                 fo:border-bottom="0.01cm solid #000000"/> 
    77</style:style> 
  • styles/table_cell_c2.txt

    r1d2a840 r4bf09cc  
    11<style:style style:name="table-default.cell-C2" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.01cm solid #000000" 
    4                                      fo:border-right="0.03cm solid #000000" 
    5                                      fo:border-top="none" 
    6                                      fo:border-bottom="0.01cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.01cm solid #000000" 
     4                                 fo:border-right="0.03cm solid #000000" 
     5                                 fo:border-top="none" 
     6                                 fo:border-bottom="0.01cm solid #000000"/> 
    77</style:style> 
  • styles/table_cell_c3.txt

    r1d2a840 r4bf09cc  
    11<style:style style:name="table-default.cell-C3" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.01cm solid #000000" 
    4                                      fo:border-right="0.03cm solid #000000" 
    5                                      fo:border-top="none" 
    6                                      fo:border-bottom="0.03cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.01cm solid #000000" 
     4                                 fo:border-right="0.03cm solid #000000" 
     5                                 fo:border-top="none" 
     6                                 fo:border-bottom="0.03cm solid #000000"/> 
    77</style:style> 
  • styles/table_cell_c4.txt

    r1d2a840 r4bf09cc  
    11<style:style style:name="table-default.cell-C4" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.01cm solid #000000" 
    4                                      fo:border-right="0.03cm solid #000000" 
    5                                      fo:border-top="0.03cm solid #000000" 
    6                                      fo:border-bottom="0.03cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.01cm solid #000000" 
     4                                 fo:border-right="0.03cm solid #000000" 
     5                                 fo:border-top="0.03cm solid #000000" 
     6                                 fo:border-bottom="0.03cm solid #000000"/> 
    77</style:style> 
  • styles/table_cell_fa3.txt

    r4c91c96 r4bf09cc  
    11<style:style style:name="table-default.cell-F-A3" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.03cm solid #000000" 
    4                                      fo:border-right="none" 
    5                                      fo:border-top="0.03cm solid #000000" 
    6                                      fo:border-bottom="0.03cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.03cm solid #000000" 
     4                                 fo:border-right="none" 
     5                                 fo:border-top="0.03cm solid #000000" 
     6                                 fo:border-bottom="0.03cm solid #000000"/> 
    77</style:style> 
  • styles/table_cell_fb3.txt

    r4c91c96 r4bf09cc  
    11<style:style style:name="table-default.cell-F-B3" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.01cm solid #000000" 
    4                                      fo:border-right="none" 
    5                                      fo:border-top="0.03cm solid #000000" 
    6                                      fo:border-bottom="0.03cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.01cm solid #000000" 
     4                                 fo:border-right="none" 
     5                                 fo:border-top="0.03cm solid #000000" 
     6                                 fo:border-bottom="0.03cm solid #000000"/> 
    77</style:style> 
  • styles/table_cell_fc3.txt

    r4c91c96 r4bf09cc  
    11<style:style style:name="table-default.cell-F-C3" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.01cm solid #000000" 
    4                                      fo:border-right="0.03cm solid #000000" 
    5                                      fo:border-top="0.03cm solid #000000" 
    6                                      fo:border-bottom="0.03cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.01cm solid #000000" 
     4                                 fo:border-right="0.03cm solid #000000" 
     5                                 fo:border-top="0.03cm solid #000000" 
     6                                 fo:border-bottom="0.03cm solid #000000"/> 
    77</style:style> 
  • styles/table_cell_ha1.txt

    r1cac4d7 r4bf09cc  
    11<style:style style:name="table-default.cell-H-A1" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.03cm solid #000000" 
    4                                      fo:border-right="none" 
    5                                      fo:border-top="0.03cm solid #000000" 
    6                                      fo:border-bottom="0.03cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.03cm solid #000000" 
     4                                 fo:border-right="none" 
     5                                 fo:border-top="0.03cm solid #000000" 
     6                                 fo:border-bottom="0.03cm solid #000000"/> 
    77</style:style> 
  • styles/table_cell_hb1.txt

    r1cac4d7 r4bf09cc  
    11<style:style style:name="table-default.cell-H-B1" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.01cm solid #000000" 
    4                                      fo:border-right="none" 
    5                                      fo:border-top="0.03cm solid #000000" 
    6                                      fo:border-bottom="0.03cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.01cm solid #000000" 
     4                                 fo:border-right="none" 
     5                                 fo:border-top="0.03cm solid #000000" 
     6                                 fo:border-bottom="0.03cm solid #000000"/> 
    77</style:style> 
  • styles/table_cell_hc1.txt

    r1cac4d7 r4bf09cc  
    11<style:style style:name="table-default.cell-H-C1" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.01cm solid #000000" 
    4                                      fo:border-right="0.03cm solid #000000" 
    5                                      fo:border-top="0.03cm solid #000000" 
    6                                      fo:border-bottom="0.03cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.01cm solid #000000" 
     4                                 fo:border-right="0.03cm solid #000000" 
     5                                 fo:border-top="0.03cm solid #000000" 
     6                                 fo:border-bottom="0.03cm solid #000000"/> 
    77</style:style> 
  • styles/table_cell_single.txt

    r62a0c90 r4bf09cc  
    11<style:style style:name="table-default.cell-single" style:family="table-cell"> 
    2         <style:table-cell-properties fo:padding="0.05cm" 
    3                                      fo:border-left="0.03cm solid #000000" 
    4                                      fo:border-right="0.03cm solid #000000" 
    5                                      fo:border-top="0.03cm solid #000000" 
    6                                      fo:border-bottom="0.03cm solid #000000"/> 
     2    <style:table-cell-properties fo:padding="0.05cm" 
     3                                 fo:border-left="0.03cm solid #000000" 
     4                                 fo:border-right="0.03cm solid #000000" 
     5                                 fo:border-top="0.03cm solid #000000" 
     6                                 fo:border-bottom="0.03cm solid #000000"/> 
    77</style:style> 
  • styles/table_contents.txt

    r1d2a840 r4bf09cc  
    22             style:family="paragraph" style:parent-style-name="Standard" 
    33             style:class="extra"> 
    4         <style:paragraph-properties text:number-lines="false" text:line-number="0"/> 
     4    <style:paragraph-properties text:number-lines="false" text:line-number="0"/> 
    55</style:style> 
  • styles/table_default.txt

    r4c91c96 r4bf09cc  
    11<style:style style:name="table-default" style:family="table"> 
    2         <style:table-properties style:width="100%" table:align="margins"/> 
     2    <style:table-properties style:width="100%" table:align="margins"/> 
    33</style:style> 
  • styles/table_heading.txt

    r1d2a840 r4bf09cc  
    22             style:family="paragraph" style:parent-style-name="Table_20_Contents" 
    33             style:class="extra"> 
    4         <style:paragraph-properties fo:text-align="center" style:justify-single-word="false" 
    5                                     text:number-lines="false" text:line-number="0"/> 
    6         <style:text-properties fo:font-weight="bold"/> 
     4    <style:paragraph-properties fo:text-align="center" style:justify-single-word="false" 
     5                                text:number-lines="false" text:line-number="0"/> 
     6    <style:text-properties fo:font-weight="bold"/> 
    77</style:style> 
  • styles/teletype.txt

    r019db7e r4bf09cc  
    11<style:style style:name="Teletype" style:display-name="Teletype" 
    22             style:family="text"> 
    3         <style:text-properties style:font-name="DejaVu Sans Mono" 
    4                                fo:font-size="9pt"/> 
     3    <style:text-properties style:font-name="DejaVu Sans Mono" 
     4                           fo:font-size="9pt"/> 
    55</style:style> 
  • xsl/document-content.xsl

    r3259fb7 r4bf09cc  
    11<?xml version="1.0" encoding="utf-8"?> 
    22<!-- 
    3          
    4         xhtml2odt - XHTML to ODT XML transformation. 
     3     
     4    xhtml2odt - XHTML to ODT XML transformation. 
    55    Copyright (C) 2009 Aurelien Bompard 
    66    Based on the work on docbook2odt, by Roman Fordinal 
    7         http://open.comsultia.com/docbook2odf/ 
    8          
    9         This program is free software; you can redistribute it and/or 
    10         modify it under the terms of the GNU General Public License 
    11         as published by the Free Software Foundation; either version 2 
    12         of the License, or (at your option) any later version. 
    13          
    14         This program is distributed in the hope that it will be useful, 
    15         but WITHOUT ANY WARRANTY; without even the implied warranty of 
    16         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    17         GNU General Public License for more details. 
    18          
     7    http://open.comsultia.com/docbook2odf/ 
     8     
     9    This program is free software; you can redistribute it and/or 
     10    modify it under the terms of the GNU General Public License 
     11    as published by the Free Software Foundation; either version 2 
     12    of the License, or (at your option) any later version. 
     13     
     14    This program is distributed in the hope that it will be useful, 
     15    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17    GNU General Public License for more details. 
     18     
    1919--> 
    2020<xsl:stylesheet 
    21         xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
    22         xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    23         xmlns:dc="http://purl.org/dc/elements/1.1/" 
    24         xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
    25         xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
    26         xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
    27         xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
    28         xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
    29         xmlns:xlink="http://www.w3.org/1999/xlink" 
    30         xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
    31         xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
    32         xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
    33         xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
    34         xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
    35         xmlns:math="http://www.w3.org/1998/Math/MathML" 
    36         xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
    37         xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
    38         xmlns:dom="http://www.w3.org/2001/xml-events" 
    39         xmlns:xforms="http://www.w3.org/2002/xforms" 
    40         xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    41         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    42         xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
    43         version="1.0"> 
    44          
     21    xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
     22    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
     23    xmlns:dc="http://purl.org/dc/elements/1.1/" 
     24    xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
     25    xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
     26    xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
     27    xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
     28    xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
     29    xmlns:xlink="http://www.w3.org/1999/xlink" 
     30    xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
     31    xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
     32    xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
     33    xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
     34    xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
     35    xmlns:math="http://www.w3.org/1998/Math/MathML" 
     36    xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
     37    xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
     38    xmlns:dom="http://www.w3.org/2001/xml-events" 
     39    xmlns:xforms="http://www.w3.org/2002/xforms" 
     40    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
     41    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     42    xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
     43    version="1.0"> 
     44     
    4545<xsl:include href="document-content/paragraph.xsl"/> 
    4646<xsl:include href="document-content/block.xsl"/> 
  • xsl/document-content/block.xsl

    rda90ee3 r4bf09cc  
    11<?xml version="1.0" encoding="utf-8"?> 
    22<!-- 
    3          
    4         xhtml2odt - XHTML to ODT XML transformation. 
     3     
     4    xhtml2odt - XHTML to ODT XML transformation. 
    55    Copyright (C) 2009 Aurelien Bompard 
    66    Based on the work on docbook2odt, by Roman Fordinal 
    7         http://open.comsultia.com/docbook2odf/ 
    8          
    9         This program is free software; you can redistribute it and/or 
    10         modify it under the terms of the GNU General Public License 
    11         as published by the Free Software Foundation; either version 2 
    12         of the License, or (at your option) any later version. 
    13          
    14         This program is distributed in the hope that it will be useful, 
    15         but WITHOUT ANY WARRANTY; without even the implied warranty of 
    16         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    17         GNU General Public License for more details. 
    18          
     7    http://open.comsultia.com/docbook2odf/ 
     8     
     9    This program is free software; you can redistribute it and/or 
     10    modify it under the terms of the GNU General Public License 
     11    as published by the Free Software Foundation; either version 2 
     12    of the License, or (at your option) any later version. 
     13     
     14    This program is distributed in the hope that it will be useful, 
     15    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17    GNU General Public License for more details. 
     18     
    1919--> 
    2020<xsl:stylesheet 
    21         xmlns:h="http://www.w3.org/1999/xhtml" 
    22         xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
    23         xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    24         xmlns:dc="http://purl.org/dc/elements/1.1/" 
    25         xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
    26         xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
    27         xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
    28         xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
    29         xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
    30         xmlns:xlink="http://www.w3.org/1999/xlink" 
    31         xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
    32         xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
    33         xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
    34         xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
    35         xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
    36         xmlns:math="http://www.w3.org/1998/Math/MathML" 
    37         xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
    38         xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
    39         xmlns:dom="http://www.w3.org/2001/xml-events" 
    40         xmlns:xforms="http://www.w3.org/2002/xforms" 
    41         xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    42         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    43         xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
    44         version="1.0"> 
     21    xmlns:h="http://www.w3.org/1999/xhtml" 
     22    xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
     23    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
     24    xmlns:dc="http://purl.org/dc/elements/1.1/" 
     25    xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
     26    xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
     27    xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
     28    xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
     29    xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
     30    xmlns:xlink="http://www.w3.org/1999/xlink" 
     31    xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
     32    xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
     33    xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
     34    xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
     35    xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
     36    xmlns:math="http://www.w3.org/1998/Math/MathML" 
     37    xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
     38    xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
     39    xmlns:dom="http://www.w3.org/2001/xml-events" 
     40    xmlns:xforms="http://www.w3.org/2002/xforms" 
     41    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
     42    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     43    xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
     44    version="1.0"> 
    4545 
    4646 
    4747 
    4848<xsl:template match="h:blockquote"> 
    49         <!-- special formatting is defined in paragraph --> 
    50         <xsl:apply-templates/> 
     49    <!-- special formatting is defined in paragraph --> 
     50    <xsl:apply-templates/> 
    5151</xsl:template> 
    5252 
    5353<xsl:template match="h:hr"> 
    54         <text:p text:style-name="Horizontal_20_Line"/> 
     54    <text:p text:style-name="Horizontal_20_Line"/> 
    5555</xsl:template> 
    5656 
     
    6060            <xsl:with-param name="content" select="string(.)"/> 
    6161        </xsl:call-template> 
    62         </text:p> 
     62    </text:p> 
    6363</xsl:template> 
    6464 
    6565<xsl:template name="pre.line"> 
    66         <xsl:param name="content"/> 
    67                 <xsl:choose> 
    68                         <xsl:when test="contains($content, '&#10;')"> 
    69                 <xsl:value-of select="substring-before($content, '&#10;')"/> 
    70                 <text:line-break/> 
    71                                 <xsl:call-template name="pre.line"> 
    72                                         <xsl:with-param name="content" select="substring-after($content, '&#10;')"/> 
    73                                 </xsl:call-template> 
    74                         </xsl:when> 
    75                         <xsl:otherwise> 
    76                 <xsl:value-of select="string($content)"/> 
    77                         </xsl:otherwise> 
    78                 </xsl:choose> 
     66    <xsl:param name="content"/> 
     67    <xsl:choose> 
     68        <xsl:when test="contains($content, '&#10;')"> 
     69            <xsl:value-of select="substring-before($content, '&#10;')"/> 
     70            <text:line-break/> 
     71            <xsl:call-template name="pre.line"> 
     72                <xsl:with-param name="content" select="substring-after($content, '&#10;')"/> 
     73            </xsl:call-template> 
     74        </xsl:when> 
     75        <xsl:otherwise> 
     76            <xsl:value-of select="string($content)"/> 
     77        </xsl:otherwise> 
     78    </xsl:choose> 
    7979</xsl:template> 
    8080 
    8181<xsl:template match="h:address"> 
    82         <!-- special formatting is defined in paragraph --> 
    83         <xsl:call-template name="paragraph"/> 
     82    <!-- special formatting is defined in paragraph --> 
     83    <xsl:call-template name="paragraph"/> 
    8484</xsl:template> 
    8585 
    8686<xsl:template match="h:center"> 
    87         <!-- special formatting is defined in paragraph --> 
    88         <xsl:call-template name="paragraph"/> 
     87    <!-- special formatting is defined in paragraph --> 
     88    <xsl:call-template name="paragraph"/> 
    8989</xsl:template> 
    9090 
  • xsl/document-content/ignore.xsl

    r3259fb7 r4bf09cc  
    11<?xml version="1.0" encoding="utf-8"?> 
    22<!-- 
    3          
    4         xhtml2odt - XHTML to ODT XML transformation. 
     3     
     4    xhtml2odt - XHTML to ODT XML transformation. 
    55    Copyright (C) 2009 Aurelien Bompard 
    66    Based on the work on docbook2odt, by Roman Fordinal 
    7         http://open.comsultia.com/docbook2odf/ 
    8          
    9         This program is free software; you can redistribute it and/or 
    10         modify it under the terms of the GNU General Public License 
    11         as published by the Free Software Foundation; either version 2 
    12         of the License, or (at your option) any later version. 
    13          
    14         This program is distributed in the hope that it will be useful, 
    15         but WITHOUT ANY WARRANTY; without even the implied warranty of 
    16         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    17         GNU General Public License for more details. 
    18          
     7    http://open.comsultia.com/docbook2odf/ 
     8     
     9    This program is free software; you can redistribute it and/or 
     10    modify it under the terms of the GNU General Public License 
     11    as published by the Free Software Foundation; either version 2 
     12    of the License, or (at your option) any later version. 
     13     
     14    This program is distributed in the hope that it will be useful, 
     15    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17    GNU General Public License for more details. 
     18     
    1919--> 
    2020<xsl:stylesheet 
    21         xmlns:h="http://www.w3.org/1999/xhtml" 
    22         xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
    23         xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    24         xmlns:dc="http://purl.org/dc/elements/1.1/" 
    25         xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
    26         xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
    27         xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
    28         xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
    29         xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
    30         xmlns:xlink="http://www.w3.org/1999/xlink" 
    31         xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
    32         xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
    33         xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
    34         xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
    35         xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
    36         xmlns:math="http://www.w3.org/1998/Math/MathML" 
    37         xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
    38         xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
    39         xmlns:dom="http://www.w3.org/2001/xml-events" 
    40         xmlns:xforms="http://www.w3.org/2002/xforms" 
    41         xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    42         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    43         xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
    44         version="1.0"> 
     21    xmlns:h="http://www.w3.org/1999/xhtml" 
     22    xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
     23    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
     24    xmlns:dc="http://purl.org/dc/elements/1.1/" 
     25    xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
     26    xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
     27    xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
     28    xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
     29    xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
     30    xmlns:xlink="http://www.w3.org/1999/xlink" 
     31    xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
     32    xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
     33    xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
     34    xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
     35    xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
     36    xmlns:math="http://www.w3.org/1998/Math/MathML" 
     37    xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
     38    xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
     39    xmlns:dom="http://www.w3.org/2001/xml-events" 
     40    xmlns:xforms="http://www.w3.org/2002/xforms" 
     41    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
     42    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     43    xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
     44    version="1.0"> 
    4545 
    4646<xsl:template match="h:div"> 
    47         <xsl:apply-templates/> 
     47    <xsl:apply-templates/> 
    4848</xsl:template> 
    4949 
    5050<xsl:template match="h:html"> 
    51         <xsl:apply-templates/> 
     51    <xsl:apply-templates/> 
    5252</xsl:template> 
    5353 
     
    5656 
    5757<xsl:template match="h:body"> 
    58         <xsl:apply-templates/> 
     58    <xsl:apply-templates/> 
    5959</xsl:template> 
    6060 
  • xsl/document-content/inline.xsl

    r8a88bf7 r4bf09cc  
    11<?xml version="1.0" encoding="utf-8"?> 
    22<!-- 
    3          
    4         xhtml2odt - XHTML to ODT XML transformation. 
     3     
     4    xhtml2odt - XHTML to ODT XML transformation. 
    55    Copyright (C) 2009 Aurelien Bompard 
    66    Based on the work on docbook2odt, by Roman Fordinal 
    7         http://open.comsultia.com/docbook2odf/ 
    8          
    9         This program is free software; you can redistribute it and/or 
    10         modify it under the terms of the GNU General Public License 
    11         as published by the Free Software Foundation; either version 2 
    12         of the License, or (at your option) any later version. 
    13          
    14         This program is distributed in the hope that it will be useful, 
    15         but WITHOUT ANY WARRANTY; without even the implied warranty of 
    16         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    17         GNU General Public License for more details. 
    18          
     7    http://open.comsultia.com/docbook2odf/ 
     8     
     9    This program is free software; you can redistribute it and/or 
     10    modify it under the terms of the GNU General Public License 
     11    as published by the Free Software Foundation; either version 2 
     12    of the License, or (at your option) any later version. 
     13     
     14    This program is distributed in the hope that it will be useful, 
     15    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17    GNU General Public License for more details. 
     18     
    1919--> 
    2020<xsl:stylesheet 
    21         xmlns:h="http://www.w3.org/1999/xhtml" 
    22         xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
    23         xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    24         xmlns:dc="http://purl.org/dc/elements/1.1/" 
    25         xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
    26         xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
    27         xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
    28         xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
    29         xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
    30         xmlns:xlink="http://www.w3.org/1999/xlink" 
    31         xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
    32         xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
    33         xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
    34         xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
    35         xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
    36         xmlns:math="http://www.w3.org/1998/Math/MathML" 
    37         xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
    38         xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
    39         xmlns:dom="http://www.w3.org/2001/xml-events" 
    40         xmlns:xforms="http://www.w3.org/2002/xforms" 
    41         xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    42         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    43         xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
    44         version="1.0"> 
     21    xmlns:h="http://www.w3.org/1999/xhtml" 
     22    xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
     23    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
     24    xmlns:dc="http://purl.org/dc/elements/1.1/" 
     25    xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
     26    xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
     27    xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
     28    xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
     29    xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
     30    xmlns:xlink="http://www.w3.org/1999/xlink" 
     31    xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
     32    xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
     33    xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
     34    xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
     35    xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
     36    xmlns:math="http://www.w3.org/1998/Math/MathML" 
     37    xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
     38    xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
     39    xmlns:dom="http://www.w3.org/2001/xml-events" 
     40    xmlns:xforms="http://www.w3.org/2002/xforms" 
     41    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
     42    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     43    xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
     44    version="1.0"> 
    4545 
    4646 
     
    9595 
    9696<xsl:template match="h:em|h:i"> 
    97         <text:span text:style-name="Emphasis"> 
    98                 <xsl:apply-templates/> 
    99         </text:span> 
     97    <text:span text:style-name="Emphasis"> 
     98        <xsl:apply-templates/> 
     99    </text:span> 
    100100</xsl:template> 
    101101 
    102102<xsl:template match="h:strong|h:b"> 
    103         <text:span text:style-name="Strong_20_Emphasis"> 
    104                 <xsl:apply-templates/> 
    105         </text:span> 
     103    <text:span text:style-name="Strong_20_Emphasis"> 
     104        <xsl:apply-templates/> 
     105    </text:span> 
    106106</xsl:template> 
    107107 
    108108<xsl:template match="h:sup"> 
    109         <text:span text:style-name="sup"> 
    110                 <xsl:apply-templates/> 
    111         </text:span> 
     109    <text:span text:style-name="sup"> 
     110        <xsl:apply-templates/> 
     111    </text:span> 
    112112</xsl:template> 
    113113 
    114114<xsl:template match="h:sub"> 
    115         <text:span text:style-name="sub"> 
    116                 <xsl:apply-templates/> 
    117         </text:span> 
     115    <text:span text:style-name="sub"> 
     116        <xsl:apply-templates/> 
     117    </text:span> 
    118118</xsl:template> 
    119119 
    120120<xsl:template match="h:code|h:tt|h:samp|h:kbd"> 
    121         <text:span text:style-name="Teletype"> 
    122                 <xsl:apply-templates/> 
    123         </text:span> 
     121    <text:span text:style-name="Teletype"> 
     122        <xsl:apply-templates/> 
     123    </text:span> 
    124124</xsl:template> 
    125125 
     
    129129 
    130130<xsl:template match="h:del"> 
    131         <text:span text:style-name="strike"> 
    132                 <xsl:apply-templates/> 
    133         </text:span> 
     131    <text:span text:style-name="strike"> 
     132        <xsl:apply-templates/> 
     133    </text:span> 
    134134</xsl:template> 
    135135 
    136136<xsl:template match="h:abbr|h:acronym"> 
    137         <xsl:apply-templates/> 
    138         <xsl:variable name="footnotenum" 
    139                       select="count(preceding::h:abbr) + count(preceding::h:acronym) + 1"/> 
    140         <text:note text:note-class="footnote"> 
    141                 <xsl:attribute name="text:id"> 
    142                         <xsl:text>ftn</xsl:text> 
    143                         <xsl:value-of select="$footnotenum"/> 
    144                 </xsl:attribute> 
    145                 <text:note-citation> 
    146                         <xsl:value-of select="$footnotenum"/> 
    147                 </text:note-citation> 
    148                 <text:note-body> 
    149                         <text:p text:style-name="Footnote"> 
    150                                 <xsl:value-of select="@title"/> 
    151                         </text:p> 
    152                 </text:note-body> 
    153         </text:note> 
     137    <xsl:apply-templates/> 
     138    <xsl:variable name="footnotenum" 
     139                  select="count(preceding::h:abbr) + count(preceding::h:acronym) + 1"/> 
     140    <text:note text:note-class="footnote"> 
     141        <xsl:attribute name="text:id"> 
     142            <xsl:text>ftn</xsl:text> 
     143            <xsl:value-of select="$footnotenum"/> 
     144        </xsl:attribute> 
     145        <text:note-citation> 
     146            <xsl:value-of select="$footnotenum"/> 
     147        </text:note-citation> 
     148        <text:note-body> 
     149            <text:p text:style-name="Footnote"> 
     150                <xsl:value-of select="@title"/> 
     151            </text:p> 
     152        </text:note-body> 
     153    </text:note> 
    154154</xsl:template> 
    155155 
    156156<xsl:template match="h:big"> 
    157         <text:span text:style-name="big"> 
    158                 <xsl:apply-templates/> 
    159         </text:span> 
     157    <text:span text:style-name="big"> 
     158        <xsl:apply-templates/> 
     159    </text:span> 
    160160</xsl:template> 
    161161 
    162162<xsl:template match="h:small"> 
    163         <text:span text:style-name="small"> 
    164                 <xsl:apply-templates/> 
    165         </text:span> 
     163    <text:span text:style-name="small"> 
     164        <xsl:apply-templates/> 
     165    </text:span> 
    166166</xsl:template> 
    167167 
    168168<xsl:template match="h:cite|h:dfn|h:var"> 
    169         <text:span text:style-name="Citation"> 
    170                 <xsl:apply-templates/> 
    171         </text:span> 
     169    <text:span text:style-name="Citation"> 
     170        <xsl:apply-templates/> 
     171    </text:span> 
    172172</xsl:template> 
    173173 
     
    179179 
    180180<xsl:template match="h:ins"> 
    181         <text:span text:style-name="underline"> 
    182                 <xsl:apply-templates/> 
    183         </text:span> 
     181    <text:span text:style-name="underline"> 
     182        <xsl:apply-templates/> 
     183    </text:span> 
    184184</xsl:template> 
    185185 
  • xsl/document-content/lists.xsl

    r3259fb7 r4bf09cc  
    11<?xml version="1.0" encoding="utf-8"?> 
    22<!-- 
    3          
    4         xhtml2odt - XHTML to ODT XML transformation. 
     3     
     4    xhtml2odt - XHTML to ODT XML transformation. 
    55    Copyright (C) 2009 Aurelien Bompard 
    66    Based on the work on docbook2odt, by Roman Fordinal 
    7         http://open.comsultia.com/docbook2odf/ 
    8          
    9         This program is free software; you can redistribute it and/or 
    10         modify it under the terms of the GNU General Public License 
    11         as published by the Free Software Foundation; either version 2 
    12         of the License, or (at your option) any later version. 
    13          
    14         This program is distributed in the hope that it will be useful, 
    15         but WITHOUT ANY WARRANTY; without even the implied warranty of 
    16         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    17         GNU General Public License for more details. 
    18          
     7    http://open.comsultia.com/docbook2odf/ 
     8     
     9    This program is free software; you can redistribute it and/or 
     10    modify it under the terms of the GNU General Public License 
     11    as published by the Free Software Foundation; either version 2 
     12    of the License, or (at your option) any later version. 
     13     
     14    This program is distributed in the hope that it will be useful, 
     15    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17    GNU General Public License for more details. 
     18     
    1919--> 
    2020<xsl:stylesheet 
    21         xmlns:h="http://www.w3.org/1999/xhtml" 
    22         xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
    23         xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    24         xmlns:dc="http://purl.org/dc/elements/1.1/" 
    25         xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
    26         xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
    27         xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
    28         xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
    29         xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
    30         xmlns:xlink="http://www.w3.org/1999/xlink" 
    31         xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
    32         xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
    33         xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
    34         xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
    35         xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
    36         xmlns:math="http://www.w3.org/1998/Math/MathML" 
    37         xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
    38         xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
    39         xmlns:dom="http://www.w3.org/2001/xml-events" 
    40         xmlns:xforms="http://www.w3.org/2002/xforms" 
    41         xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    42         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    43         xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
    44         version="1.0"> 
     21    xmlns:h="http://www.w3.org/1999/xhtml" 
     22    xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
     23    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
     24    xmlns:dc="http://purl.org/dc/elements/1.1/" 
     25    xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
     26    xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
     27    xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
     28    xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
     29    xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
     30    xmlns:xlink="http://www.w3.org/1999/xlink" 
     31    xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
     32    xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
     33    xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
     34    xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
     35    xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
     36    xmlns:math="http://www.w3.org/1998/Math/MathML" 
     37    xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
     38    xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
     39    xmlns:dom="http://www.w3.org/2001/xml-events" 
     40    xmlns:xforms="http://www.w3.org/2002/xforms" 
     41    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
     42    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     43    xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
     44    version="1.0"> 
    4545 
    4646 
     
    7676<xsl:template match="h:li"/> 
    7777<xsl:template match="h:li" mode="list"> 
    78         <text:list-item> 
     78    <text:list-item> 
    7979        <text:p> 
    8080            <xsl:attribute name="text:style-name"> 
     
    9292        </text:p> 
    9393        <xsl:apply-templates select="h:ul|h:ol"/> 
    94         </text:list-item> 
     94    </text:list-item> 
    9595</xsl:template> 
    9696<!-- all other content in list --> 
  • xsl/document-content/media.xsl

    r3259fb7 r4bf09cc  
    11<?xml version="1.0" encoding="utf-8"?> 
    22<!-- 
    3          
    4         xhtml2odt - XHTML to ODT XML transformation. 
     3     
     4    xhtml2odt - XHTML to ODT XML transformation. 
    55    Copyright (C) 2009 Aurelien Bompard 
    66    Based on the work on docbook2odt, by Roman Fordinal 
    7         http://open.comsultia.com/docbook2odf/ 
    8          
    9         This program is free software; you can redistribute it and/or 
    10         modify it under the terms of the GNU General Public License 
    11         as published by the Free Software Foundation; either version 2 
    12         of the License, or (at your option) any later version. 
    13          
    14         This program is distributed in the hope that it will be useful, 
    15         but WITHOUT ANY WARRANTY; without even the implied warranty of 
    16         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    17         GNU General Public License for more details. 
    18          
     7    http://open.comsultia.com/docbook2odf/ 
     8     
     9    This program is free software; you can redistribute it and/or 
     10    modify it under the terms of the GNU General Public License 
     11    as published by the Free Software Foundation; either version 2 
     12    of the License, or (at your option) any later version. 
     13     
     14    This program is distributed in the hope that it will be useful, 
     15    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17    GNU General Public License for more details. 
     18     
    1919--> 
    2020<xsl:stylesheet 
    21         xmlns:h="http://www.w3.org/1999/xhtml" 
    22         xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
    23         xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    24         xmlns:dc="http://purl.org/dc/elements/1.1/" 
    25         xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
    26         xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
    27         xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
    28         xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
    29         xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
    30         xmlns:xlink="http://www.w3.org/1999/xlink" 
    31         xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
    32         xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
    33         xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
    34         xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
    35         xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
    36         xmlns:math="http://www.w3.org/1998/Math/MathML" 
    37         xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
    38         xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
    39         xmlns:dom="http://www.w3.org/2001/xml-events" 
    40         xmlns:xforms="http://www.w3.org/2002/xforms" 
    41         xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    42         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    43         xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
    44         version="1.0"> 
     21    xmlns:h="http://www.w3.org/1999/xhtml" 
     22    xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
     23    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
     24    xmlns:dc="http://purl.org/dc/elements/1.1/" 
     25    xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
     26    xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
     27    xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
     28    xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
     29    xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
     30    xmlns:xlink="http://www.w3.org/1999/xlink" 
     31    xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
     32    xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
     33    xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
     34    xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
     35    xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
     36    xmlns:math="http://www.w3.org/1998/Math/MathML" 
     37    xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
     38    xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
     39    xmlns:dom="http://www.w3.org/2001/xml-events" 
     40    xmlns:xforms="http://www.w3.org/2002/xforms" 
     41    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
     42    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     43    xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
     44    version="1.0"> 
    4545 
    4646 
    4747<xsl:template match="h:img"> 
    48          
    49         <!-- @align                                                  --> 
    50         <!-- @contentwidth                                           --> 
    51         <!-- @contentheight                                          --> 
    52         <!-- @fileref                                                --> 
    53         <!-- @format                                                 --> 
    54         <!-- @scale                                                  --> 
    55         <!-- @scalefit                                               --> 
    56         <!-- @valign                                                 --> 
    57         <!-- @width                                                  --> 
    58         <!-- @depth                                                  --> 
    59          
    60         <xsl:element name="draw:frame"> 
     48     
     49    <!-- @align                                                  --> 
     50    <!-- @contentwidth                                           --> 
     51    <!-- @contentheight                                          --> 
     52    <!-- @fileref                                                --> 
     53    <!-- @format                                                 --> 
     54    <!-- @scale                                                  --> 
     55    <!-- @scalefit                                               --> 
     56    <!-- @valign                                                 --> 
     57    <!-- @width                                                  --> 
     58    <!-- @depth                                                  --> 
     59     
     60    <xsl:element name="draw:frame"> 
    6161 
    62                 <xsl:choose> 
    63                         <xsl:when test="substring-before(@width,'cm') &lt; 2 and substring-before(@height,'cm') &lt; 2"> 
     62        <xsl:choose> 
     63            <xsl:when test="substring-before(@width,'cm') &lt; 2 and substring-before(@height,'cm') &lt; 2"> 
    6464                <xsl:attribute name="text:anchor-type">as-char</xsl:attribute> 
    6565                <xsl:attribute name="draw:style-name">image-inline</xsl:attribute> 
    66                         </xsl:when> 
    67                         <xsl:otherwise> 
     66            </xsl:when> 
     67            <xsl:otherwise> 
    6868                <xsl:attribute name="text:anchor-type">paragraph</xsl:attribute> 
    69                         </xsl:otherwise> 
    70                 </xsl:choose> 
     69            </xsl:otherwise> 
     70        </xsl:choose> 
    7171 
    72                 <xsl:attribute name="draw:name">imageobject-<xsl:value-of select="generate-id()"/></xsl:attribute> 
    73                  
    74                 <!--<xsl:attribute name="style:rel-width">50%</xsl:attribute>--> 
    75                 <!--<xsl:attribute name="style:rel-height">100%</xsl:attribute>--> 
    76                  
    77                 <xsl:choose> 
    78                         <xsl:when test="@width|@height"> 
    79                                 <xsl:attribute name="svg:width"><xsl:value-of select="@width"/></xsl:attribute> 
    80                                 <xsl:attribute name="svg:height"><xsl:value-of select="@height"/></xsl:attribute> 
    81                                 <!-- hmmmm.... --> 
    82                         </xsl:when> 
    83                         <xsl:otherwise> 
    84                                 <!-- shit, in OpenDocument must be svg:width and height defined :(( --> 
    85                                 <!-- but I have no data!!!                                          --> 
    86                                 <!-- I love you Image::Magick!                                      --> 
    87                 <!-- 
    88                                 <xsl:attribute name="svg:width">function:getimage-width:(<xsl:value-of select="@src"/>)</xsl:attribute> 
    89                                 <xsl:attribute name="svg:height">function:getimage-height:(<xsl:value-of select="@src"/>)</xsl:attribute> 
    90                 --> 
    91                                 <xsl:attribute name="svg:width">8cm</xsl:attribute> 
    92                                 <xsl:attribute name="style:rel-width">50%</xsl:attribute> 
    93                                 <xsl:attribute name="svg:height">6cm</xsl:attribute> 
    94                                 <xsl:attribute name="style:rel-height">scale</xsl:attribute> 
    95                         </xsl:otherwise> 
    96                 </xsl:choose> 
    97                  
    98                 <xsl:attribute name="svg:y"><xsl:value-of select="$para.padding"/></xsl:attribute> 
    99                  
    100                 <xsl:attribute name="draw:z-index">1</xsl:attribute> 
    101                 <xsl:element name="draw:image"> 
    102                         <xsl:attribute name="xlink:href"><xsl:value-of select="@src"/></xsl:attribute> 
    103                         <xsl:attribute name="xlink:type">simple</xsl:attribute> 
    104                         <xsl:attribute name="xlink:type">embed</xsl:attribute> 
    105                         <xsl:attribute name="xlink:actuate">onLoad</xsl:attribute> 
    106                 </xsl:element> 
     72        <xsl:attribute name="draw:name">imageobject-<xsl:value-of select="generate-id()"/></xsl:attribute> 
     73         
     74        <xsl:choose> 
     75            <xsl:when test="@width|@height"> 
     76                <xsl:attribute name="svg:width"><xsl:value-of select="@width"/></xsl:attribute> 
     77                <xsl:attribute name="svg:height"><xsl:value-of select="@height"/></xsl:attribute> 
     78            </xsl:when> 
     79            <xsl:otherwise> 
     80                <!-- In OpenDocument svg:width and height must be defined. --> 
     81                <!-- Use defaults here --> 
     82                <xsl:attribute name="svg:width">8cm</xsl:attribute> 
     83                <xsl:attribute name="style:rel-width">50%</xsl:attribute> 
     84                <xsl:attribute name="svg:height">6cm</xsl:attribute> 
     85                <xsl:attribute name="style:rel-height">scale</xsl:attribute> 
     86            </xsl:otherwise> 
     87        </xsl:choose> 
     88         
     89        <xsl:attribute name="svg:y"><xsl:value-of select="$para.padding"/></xsl:attribute> 
     90         
     91        <xsl:attribute name="draw:z-index">1</xsl:attribute> 
     92        <xsl:element name="draw:image"> 
     93            <xsl:attribute name="xlink:href"><xsl:value-of select="@src"/></xsl:attribute> 
     94            <xsl:attribute name="xlink:type">simple</xsl:attribute> 
     95            <xsl:attribute name="xlink:type">embed</xsl:attribute> 
     96            <xsl:attribute name="xlink:actuate">onLoad</xsl:attribute> 
     97        </xsl:element> 
    10798 
    10899        <xsl:element name="svg:title"><xsl:value-of select="@alt"/></xsl:element> 
    109                  
    110         </xsl:element> 
    111          
     100         
     101    </xsl:element> 
     102     
    112103</xsl:template> 
    113104 
  • xsl/document-content/paragraph.xsl

    r4c91c96 r4bf09cc  
    11<?xml version="1.0" encoding="utf-8"?> 
    22<!-- 
    3          
    4         xhtml2odt - XHTML to ODT XML transformation. 
     3     
     4    xhtml2odt - XHTML to ODT XML transformation. 
    55    Copyright (C) 2009 Aurelien Bompard 
    66    Based on the work on docbook2odt, by Roman Fordinal 
    7         http://open.comsultia.com/docbook2odf/ 
    8          
    9         This program is free software; you can redistribute it and/or 
    10         modify it under the terms of the GNU General Public License 
    11         as published by the Free Software Foundation; either version 2 
    12         of the License, or (at your option) any later version. 
    13          
    14         This program is distributed in the hope that it will be useful, 
    15         but WITHOUT ANY WARRANTY; without even the implied warranty of 
    16         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    17         GNU General Public License for more details. 
    18          
     7    http://open.comsultia.com/docbook2odf/ 
     8     
     9    This program is free software; you can redistribute it and/or 
     10    modify it under the terms of the GNU General Public License 
     11    as published by the Free Software Foundation; either version 2 
     12    of the License, or (at your option) any later version. 
     13     
     14    This program is distributed in the hope that it will be useful, 
     15    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17    GNU General Public License for more details. 
     18     
    1919--> 
    2020<xsl:stylesheet 
    21         xmlns:h="http://www.w3.org/1999/xhtml" 
    22         xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
    23         xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    24         xmlns:dc="http://purl.org/dc/elements/1.1/" 
    25         xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
    26         xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
    27         xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
    28         xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
    29         xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
    30         xmlns:xlink="http://www.w3.org/1999/xlink" 
    31         xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
    32         xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
    33         xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
    34         xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
    35         xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
    36         xmlns:math="http://www.w3.org/1998/Math/MathML" 
    37         xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
    38         xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
    39         xmlns:dom="http://www.w3.org/2001/xml-events" 
    40         xmlns:xforms="http://www.w3.org/2002/xforms" 
    41         xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    42         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    43         xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
    44         version="1.0"> 
     21    xmlns:h="http://www.w3.org/1999/xhtml" 
     22    xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
     23    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
     24    xmlns:dc="http://purl.org/dc/elements/1.1/" 
     25    xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
     26    xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
     27    xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
     28    xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
     29    xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
     30    xmlns:xlink="http://www.w3.org/1999/xlink" 
     31    xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
     32    xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
     33    xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
     34    xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
     35    xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
     36    xmlns:math="http://www.w3.org/1998/Math/MathML" 
     37    xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
     38    xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
     39    xmlns:dom="http://www.w3.org/2001/xml-events" 
     40    xmlns:xforms="http://www.w3.org/2002/xforms" 
     41    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
     42    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     43    xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
     44    version="1.0"> 
    4545 
    4646 
    4747<xsl:template match="h:p"> 
    48         <xsl:choose> 
    49                 <xsl:when test=" 
    50                         child::h:ul| 
    51                         child::h:ol| 
    52                         child::h:blockquote| 
    53                         child::h:pre 
    54                         "> 
    55                         <!-- continue without text:p creation to child element --> 
    56                          
    57                         <!-- when in this block is some text, display it in paragraph --> 
    58                         <!-- this is not functional 
    59                         <text:p> 
    60                                 <xsl:value-of select="string(.)"/> 
    61                         </text:p> 
    62                         --> 
    63                         <!-- call template for each found element --> 
    64                         <xsl:for-each select="*"> 
    65                                 <xsl:apply-templates select="."/> 
    66                         </xsl:for-each> 
    67                 </xsl:when> 
    68                 <xsl:otherwise> 
    69                         <xsl:call-template name="paragraph"/> 
    70                 </xsl:otherwise> 
    71         </xsl:choose> 
     48    <xsl:choose> 
     49        <xsl:when test=" 
     50            child::h:ul| 
     51            child::h:ol| 
     52            child::h:blockquote| 
     53            child::h:pre 
     54            "> 
     55            <!-- continue without text:p creation to child element --> 
     56             
     57            <!-- when in this block is some text, display it in paragraph --> 
     58            <!-- this is not functional 
     59            <text:p> 
     60                <xsl:value-of select="string(.)"/> 
     61            </text:p> 
     62            --> 
     63            <!-- call template for each found element --> 
     64            <xsl:for-each select="*"> 
     65                <xsl:apply-templates select="."/> 
     66            </xsl:for-each> 
     67        </xsl:when> 
     68        <xsl:otherwise> 
     69            <xsl:call-template name="paragraph"/> 
     70        </xsl:otherwise> 
     71    </xsl:choose> 
    7272</xsl:template> 
    7373 
    7474 
    7575<xsl:template name="paragraph"> 
    76          
    77         <text:p> 
    78                  
    79                 <xsl:attribute name="text:style-name"> 
    80                         <xsl:choose> 
     76     
     77    <text:p> 
     78         
     79        <xsl:attribute name="text:style-name"> 
     80            <xsl:choose> 
    8181                <!-- those two seem unnecessary, it's handled in lists.xsl --> 
    82                                 <xsl:when test="parent::h:ul"> 
    83                                         <xsl:text>list-item-bullet</xsl:text> 
    84                                 </xsl:when> 
    85                                 <xsl:when test="parent::h:ol"> 
    86                                         <xsl:text>list-item-number</xsl:text> 
    87                                 </xsl:when> 
    88                                 <xsl:when test="parent::h:blockquote">Quotations</xsl:when> 
    89                                 <xsl:when test="contains(@style,'text-align:') and contains(@style,'center')"> 
    90                                         <xsl:text>center</xsl:text> 
    91                                 </xsl:when> 
    92                                 <xsl:when test="self::h:address">Sender</xsl:when> 
    93                                 <xsl:when test="self::h:center">center</xsl:when> 
    94                                 <xsl:otherwise>Text_20_body</xsl:otherwise> 
    95                         </xsl:choose> 
    96                 </xsl:attribute> 
    97                  
    98                 <xsl:apply-templates/> 
    99                  
    100         </text:p> 
    101          
     82                <xsl:when test="parent::h:ul"> 
     83                    <xsl:text>list-item-bullet</xsl:text> 
     84                </xsl:when> 
     85                <xsl:when test="parent::h:ol"> 
     86                    <xsl:text>list-item-number</xsl:text> 
     87                </xsl:when> 
     88                <xsl:when test="parent::h:blockquote">Quotations</xsl:when> 
     89                <xsl:when test="contains(@style,'text-align:') and contains(@style,'center')"> 
     90                    <xsl:text>center</xsl:text> 
     91                </xsl:when> 
     92                <xsl:when test="self::h:address">Sender</xsl:when> 
     93                <xsl:when test="self::h:center">center</xsl:when> 
     94                <xsl:otherwise>Text_20_body</xsl:otherwise> 
     95            </xsl:choose> 
     96        </xsl:attribute> 
     97         
     98        <xsl:apply-templates/> 
     99         
     100    </text:p> 
     101     
    102102</xsl:template> 
    103103 
  • xsl/document-content/section.xsl

    r017e63d r4bf09cc  
    11<?xml version="1.0" encoding="utf-8"?> 
    22<!-- 
    3          
    4         xhtml2odt - XHTML to ODT XML transformation. 
     3     
     4    xhtml2odt - XHTML to ODT XML transformation. 
    55    Copyright (C) 2009 Aurelien Bompard 
    66    Based on the work on docbook2odt, by Roman Fordinal 
    7         http://open.comsultia.com/docbook2odf/ 
    8          
    9         This program is free software; you can redistribute it and/or 
    10         modify it under the terms of the GNU General Public License 
    11         as published by the Free Software Foundation; either version 2 
    12         of the License, or (at your option) any later version. 
    13          
    14         This program is distributed in the hope that it will be useful, 
    15         but WITHOUT ANY WARRANTY; without even the implied warranty of 
    16         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    17         GNU General Public License for more details. 
    18          
     7    http://open.comsultia.com/docbook2odf/ 
     8     
     9    This program is free software; you can redistribute it and/or 
     10    modify it under the terms of the GNU General Public License 
     11    as published by the Free Software Foundation; either version 2 
     12    of the License, or (at your option) any later version. 
     13     
     14    This program is distributed in the hope that it will be useful, 
     15    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17    GNU General Public License for more details. 
     18     
    1919--> 
    2020<xsl:stylesheet 
    21         xmlns:h="http://www.w3.org/1999/xhtml" 
    22         xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
    23         xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    24         xmlns:dc="http://purl.org/dc/elements/1.1/" 
    25         xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
    26         xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
    27         xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
    28         xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
    29         xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
    30         xmlns:xlink="http://www.w3.org/1999/xlink" 
    31         xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
    32         xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
    33         xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
    34         xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
    35         xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
    36         xmlns:math="http://www.w3.org/1998/Math/MathML" 
    37         xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
    38         xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
    39         xmlns:dom="http://www.w3.org/2001/xml-events" 
    40         xmlns:xforms="http://www.w3.org/2002/xforms" 
    41         xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    42         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    43         xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
    44         version="1.0"> 
     21    xmlns:h="http://www.w3.org/1999/xhtml" 
     22    xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
     23    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
     24    xmlns:dc="http://purl.org/dc/elements/1.1/" 
     25    xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
     26    xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
     27    xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
     28    xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
     29    xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
     30    xmlns:xlink="http://www.w3.org/1999/xlink" 
     31    xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
     32    xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
     33    xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
     34    xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
     35    xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
     36    xmlns:math="http://www.w3.org/1998/Math/MathML" 
     37    xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
     38    xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
     39    xmlns:dom="http://www.w3.org/2001/xml-events" 
     40    xmlns:xforms="http://www.w3.org/2002/xforms" 
     41    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
     42    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     43    xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
     44    version="1.0"> 
    4545 
    4646 
    4747<xsl:template name="section" match="h:h1|h:h2|h:h3|h:h4|h:h5|h:h6"> 
    48          
    49         <!-- compute level of section --> 
    50         <xsl:variable name="level"> 
     48     
     49    <!-- compute level of section --> 
     50    <xsl:variable name="level"> 
    5151        <xsl:value-of select="substring-after(local-name(.),'h') - $heading_minus_level"/> 
    52         </xsl:variable> 
    53          
    54         <xsl:comment> 
    55                 <xsl:text>section level </xsl:text><xsl:value-of select="$level"/> 
    56         </xsl:comment> 
    57          
    58         <text:h> 
     52    </xsl:variable> 
     53     
     54    <xsl:comment> 
     55        <xsl:text>section level </xsl:text><xsl:value-of select="$level"/> 
     56    </xsl:comment> 
     57     
     58    <text:h> 
    5959        <!-- 
    60                 <xsl:attribute name="text:outline-level"> 
    61                         <xsl:value-of select="$level"/> 
    62                 </xsl:attribute> 
     60        <xsl:attribute name="text:outline-level"> 
     61            <xsl:value-of select="$level"/> 
     62        </xsl:attribute> 
    6363        --> 
    64                 <xsl:attribute name="text:style-name"><xsl:text>Heading_20_</xsl:text> 
     64        <xsl:attribute name="text:style-name"><xsl:text>Heading_20_</xsl:text> 
    6565            <xsl:value-of select="$level"/> 
    66                 </xsl:attribute> 
     66        </xsl:attribute> 
    6767 
    6868        <xsl:apply-templates/> 
    6969 
    70         </text:h> 
    71          
    72          
     70    </text:h> 
     71     
    7372</xsl:template> 
    7473 
  • xsl/document-content/tables.xsl

    r4c91c96 r4bf09cc  
    11<?xml version="1.0" encoding="utf-8"?> 
    22<!-- 
    3          
    4         xhtml2odt - XHTML to ODT XML transformation. 
     3     
     4    xhtml2odt - XHTML to ODT XML transformation. 
    55    Copyright (C) 2009 Aurelien Bompard 
    66    Based on the work on docbook2odt, by Roman Fordinal 
    7         http://open.comsultia.com/docbook2odf/ 
    8          
    9         This program is free software; you can redistribute it and/or 
    10         modify it under the terms of the GNU General Public License 
    11         as published by the Free Software Foundation; either version 2 
    12         of the License, or (at your option) any later version. 
    13          
    14         This program is distributed in the hope that it will be useful, 
    15         but WITHOUT ANY WARRANTY; without even the implied warranty of 
    16         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    17         GNU General Public License for more details. 
    18          
     7    http://open.comsultia.com/docbook2odf/ 
     8     
     9    This program is free software; you can redistribute it and/or 
     10    modify it under the terms of the GNU General Public License 
     11    as published by the Free Software Foundation; either version 2 
     12    of the License, or (at your option) any later version. 
     13     
     14    This program is distributed in the hope that it will be useful, 
     15    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17    GNU General Public License for more details. 
     18     
    1919--> 
    2020<xsl:stylesheet 
    21         xmlns:h="http://www.w3.org/1999/xhtml" 
    22         xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
    23         xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    24         xmlns:dc="http://purl.org/dc/elements/1.1/" 
    25         xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
    26         xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
    27         xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
    28         xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
    29         xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
    30         xmlns:xlink="http://www.w3.org/1999/xlink" 
    31         xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
    32         xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
    33         xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
    34         xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
    35         xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
    36         xmlns:math="http://www.w3.org/1998/Math/MathML" 
    37         xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
    38         xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
    39         xmlns:dom="http://www.w3.org/2001/xml-events" 
    40         xmlns:xforms="http://www.w3.org/2002/xforms" 
    41         xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    42         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    43         xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
    44         version="1.0"> 
     21    xmlns:h="http://www.w3.org/1999/xhtml" 
     22    xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
     23    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
     24    xmlns:dc="http://purl.org/dc/elements/1.1/" 
     25    xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
     26    xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
     27    xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
     28    xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
     29    xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
     30    xmlns:xlink="http://www.w3.org/1999/xlink" 
     31    xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
     32    xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
     33    xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
     34    xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
     35    xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
     36    xmlns:math="http://www.w3.org/1998/Math/MathML" 
     37    xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
     38    xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
     39    xmlns:dom="http://www.w3.org/2001/xml-events" 
     40    xmlns:xforms="http://www.w3.org/2002/xforms" 
     41    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
     42    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     43    xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
     44    version="1.0"> 
    4545 
    4646 
    4747<xsl:template name="table.number"> 
    48         <!-- compute number of section --> 
    49         <xsl:value-of select="count(preceding::h:table)+1"/> 
     48    <!-- compute number of section --> 
     49    <xsl:value-of select="count(preceding::h:table)+1"/> 
    5050</xsl:template> 
    5151 
     
    8888 
    8989<xsl:template match="h:tbody"> 
    90         <xsl:apply-templates/> 
     90    <xsl:apply-templates/> 
    9191</xsl:template> 
    9292 
    9393<xsl:template match="h:tr"> 
    94         <xsl:choose> 
    95                 <!-- this is header --> 
    96                 <xsl:when test="h:th"> 
    97                         <table:table-header-rows> 
    98                                 <table:table-row> 
    99                                         <xsl:apply-templates/> 
    100                                 </table:table-row> 
    101                         </table:table-header-rows> 
    102                 </xsl:when> 
    103                 <xsl:otherwise> 
    104                         <table:table-row> 
    105                                 <xsl:apply-templates/> 
    106                         </table:table-row> 
    107                 </xsl:otherwise> 
    108         </xsl:choose> 
     94    <xsl:choose> 
     95        <!-- this is header --> 
     96        <xsl:when test="h:th"> 
     97            <table:table-header-rows> 
     98                <table:table-row> 
     99                    <xsl:apply-templates/> 
     100                </table:table-row> 
     101            </table:table-header-rows> 
     102        </xsl:when> 
     103        <xsl:otherwise> 
     104            <table:table-row> 
     105                <xsl:apply-templates/> 
     106            </table:table-row> 
     107        </xsl:otherwise> 
     108    </xsl:choose> 
    109109</xsl:template> 
    110110 
     
    134134<xsl:template name="table-cell"> 
    135135 
    136         <xsl:param name="horizontal-position" /> 
    137         <xsl:param name="horizontal-count" /> 
    138         <xsl:param name="vertical-position" /> 
    139         <xsl:param name="vertical-count" /> 
    140  
    141         <xsl:comment>horizontal-position=<xsl:value-of select="$horizontal-position"/></xsl:comment> 
    142         <xsl:comment>horizontal-count=<xsl:value-of select="$horizontal-count"/></xsl:comment> 
    143         <xsl:comment>vertical-position=<xsl:value-of select="$vertical-position"/></xsl:comment> 
    144         <xsl:comment>vertical-count=<xsl:value-of select="$vertical-count"/></xsl:comment> 
    145          
    146         <table:table-cell office:value-type="string"> 
    147                  
    148                 <xsl:attribute name="table:style-name"> 
    149                         <xsl:text>table-default.cell-</xsl:text> 
    150                         <!-- prefix --> 
    151                         <xsl:if test="self::h:th"> 
    152                                 <xsl:text>H-</xsl:text> 
    153                         </xsl:if> 
    154                         <xsl:if test="parent::h:tr/parent::h:tfoot"> 
    155                                 <xsl:text>F-</xsl:text> 
    156                         </xsl:if> 
    157                         <!-- postfix defined by cell position --> 
    158                         <!-- 
    159                                 __________ 
    160                                 |A1|B1|C1| 
    161                                 |A2|B2|C2| 
    162                                 |A3|B3|C3| 
    163                                 ^^^^^^^^^^ 
    164                                 __________ 
    165                                 |A4|B4|C4| 
    166                                 ^^^^^^^^^^ 
    167                         --> 
    168                         <xsl:choose> 
    169                          
    170                                 <!-- single --> 
    171                                 <xsl:when test="$horizontal-count = 1 and $vertical-count = 1"> 
    172                                         <xsl:text>single</xsl:text> 
    173                                 </xsl:when> 
    174  
    175                                 <!-- A4 --> 
    176                                 <xsl:when test="$horizontal-position = 1 and $vertical-count = 1"> 
    177                                         <xsl:text>A4</xsl:text> 
    178                                 </xsl:when> 
    179                                 <!-- C4 --> 
    180                                 <xsl:when test="$horizontal-position = $horizontal-count and $vertical-count = 1"> 
    181                                         <xsl:text>C4</xsl:text> 
    182                                 </xsl:when> 
    183                                 <!-- B4 --> 
    184                                 <xsl:when test="$vertical-count = 1"> 
    185                                         <xsl:text>B4</xsl:text> 
    186                                 </xsl:when> 
    187                          
    188                                 <!-- tfoot A --> 
    189                                 <xsl:when test="ancestor::h:tfoot and $horizontal-position = 1"> 
    190                                         <xsl:text>A3</xsl:text> 
    191                                 </xsl:when> 
    192                                 <!-- tfoot B --> 
    193                                 <xsl:when test="ancestor::h:tfoot and $horizontal-position = $horizontal-count"> 
    194                                         <xsl:text>C3</xsl:text> 
    195                                 </xsl:when> 
    196                                 <!-- tfoot C --> 
    197                                 <xsl:when test="ancestor::h:tfoot"> 
    198                                         <xsl:text>B3</xsl:text> 
    199                                 </xsl:when> 
    200                          
    201                                 <!-- A3 --> 
    202                                 <xsl:when test="$horizontal-position = 1 and $vertical-position = $vertical-count"> 
    203                                         <xsl:text>A3</xsl:text> 
    204                                 </xsl:when> 
    205                                 <!-- C3 --> 
    206                                 <xsl:when test="$horizontal-position = $horizontal-count and $vertical-position = $vertical-count"> 
    207                                         <xsl:text>C3</xsl:text> 
    208                                 </xsl:when> 
    209                                 <!-- B3 --> 
    210                                 <xsl:when test="$vertical-position = $vertical-count"> 
    211                                         <xsl:text>B3</xsl:text> 
    212                                 </xsl:when> 
    213                          
    214                                 <!-- A1 --> 
    215                                 <xsl:when test="$horizontal-position = 1 and $vertical-position = 1"> 
    216                                         <xsl:text>A1</xsl:text> 
    217                                 </xsl:when> 
    218                                 <!-- C1 --> 
    219                                 <xsl:when test="$horizontal-position = $horizontal-count and $vertical-position = 1"> 
    220                                         <xsl:text>C1</xsl:text> 
    221                                 </xsl:when> 
    222                                 <!-- B1 --> 
    223                                 <xsl:when test="$vertical-position = 1"> 
    224                                         <xsl:text>B1</xsl:text> 
    225                                 </xsl:when> 
    226                                  
    227                                 <!-- A2 --> 
    228                                 <xsl:when test="$horizontal-position = 1"> 
    229                                         <xsl:text>A2</xsl:text> 
    230                                 </xsl:when> 
    231                                 <!-- C2 --> 
    232                                 <xsl:when test="$horizontal-position = $horizontal-count"> 
    233                                         <xsl:text>C2</xsl:text> 
    234                                 </xsl:when> 
    235                                  
    236                                 <!-- all other cells --> 
    237                                 <xsl:otherwise> 
    238                                         <xsl:text>B2</xsl:text> 
    239                                 </xsl:otherwise> 
    240                                  
    241                         </xsl:choose> 
    242                          
    243                 </xsl:attribute> 
    244                  
     136    <xsl:param name="horizontal-position" /> 
     137    <xsl:param name="horizontal-count" /> 
     138    <xsl:param name="vertical-position" /> 
     139    <xsl:param name="vertical-count" /> 
     140 
     141    <xsl:comment>horizontal-position=<xsl:value-of select="$horizontal-position"/></xsl:comment> 
     142    <xsl:comment>horizontal-count=<xsl:value-of select="$horizontal-count"/></xsl:comment> 
     143    <xsl:comment>vertical-position=<xsl:value-of select="$vertical-position"/></xsl:comment> 
     144    <xsl:comment>vertical-count=<xsl:value-of select="$vertical-count"/></xsl:comment> 
     145     
     146    <table:table-cell office:value-type="string"> 
     147         
     148        <xsl:attribute name="table:style-name"> 
     149            <xsl:text>table-default.cell-</xsl:text> 
     150            <!-- prefix --> 
     151            <xsl:if test="self::h:th"> 
     152                <xsl:text>H-</xsl:text> 
     153            </xsl:if> 
     154            <xsl:if test="parent::h:tr/parent::h:tfoot"> 
     155                <xsl:text>F-</xsl:text> 
     156            </xsl:if> 
     157            <!-- postfix defined by cell position --> 
     158            <!-- 
     159                __________ 
     160                |A1|B1|C1| 
     161                |A2|B2|C2| 
     162                |A3|B3|C3| 
     163                ^^^^^^^^^^ 
     164                __________ 
     165                |A4|B4|C4| 
     166                ^^^^^^^^^^ 
     167            --> 
     168            <xsl:choose> 
     169             
     170                <!-- single --> 
     171                <xsl:when test="$horizontal-count = 1 and $vertical-count = 1"> 
     172                    <xsl:text>single</xsl:text> 
     173                </xsl:when> 
     174 
     175                <!-- A4 --> 
     176                <xsl:when test="$horizontal-position = 1 and $vertical-count = 1"> 
     177                    <xsl:text>A4</xsl:text> 
     178                </xsl:when> 
     179                <!-- C4 --> 
     180                <xsl:when test="$horizontal-position = $horizontal-count and $vertical-count = 1"> 
     181                    <xsl:text>C4</xsl:text> 
     182                </xsl:when> 
     183                <!-- B4 --> 
     184                <xsl:when test="$vertical-count = 1"> 
     185                    <xsl:text>B4</xsl:text> 
     186                </xsl:when> 
     187             
     188                <!-- tfoot A --> 
     189                <xsl:when test="ancestor::h:tfoot and $horizontal-position = 1"> 
     190                    <xsl:text>A3</xsl:text> 
     191                </xsl:when> 
     192                <!-- tfoot B --> 
     193                <xsl:when test="ancestor::h:tfoot and $horizontal-position = $horizontal-count"> 
     194                    <xsl:text>C3</xsl:text> 
     195                </xsl:when> 
     196                <!-- tfoot C --> 
     197                <xsl:when test="ancestor::h:tfoot"> 
     198                    <xsl:text>B3</xsl:text> 
     199                </xsl:when> 
     200             
     201                <!-- A3 --> 
     202                <xsl:when test="$horizontal-position = 1 and $vertical-position = $vertical-count"> 
     203                    <xsl:text>A3</xsl:text> 
     204                </xsl:when> 
     205                <!-- C3 --> 
     206                <xsl:when test="$horizontal-position = $horizontal-count and $vertical-position = $vertical-count"> 
     207                    <xsl:text>C3</xsl:text> 
     208                </xsl:when> 
     209                <!-- B3 --> 
     210                <xsl:when test="$vertical-position = $vertical-count"> 
     211                    <xsl:text>B3</xsl:text> 
     212                </xsl:when> 
     213             
     214                <!-- A1 --> 
     215                <xsl:when test="$horizontal-position = 1 and $vertical-position = 1"> 
     216                    <xsl:text>A1</xsl:text> 
     217                </xsl:when> 
     218                <!-- C1 --> 
     219                <xsl:when test="$horizontal-position = $horizontal-count and $vertical-position = 1"> 
     220                    <xsl:text>C1</xsl:text> 
     221                </xsl:when> 
     222                <!-- B1 --> 
     223                <xsl:when test="$vertical-position = 1"> 
     224                    <xsl:text>B1</xsl:text> 
     225                </xsl:when> 
     226                 
     227                <!-- A2 --> 
     228                <xsl:when test="$horizontal-position = 1"> 
     229                    <xsl:text>A2</xsl:text> 
     230                </xsl:when> 
     231                <!-- C2 --> 
     232                <xsl:when test="$horizontal-position = $horizontal-count"> 
     233                    <xsl:text>C2</xsl:text> 
     234                </xsl:when> 
     235                 
     236                <!-- all other cells --> 
     237                <xsl:otherwise> 
     238                    <xsl:text>B2</xsl:text> 
     239                </xsl:otherwise> 
     240                 
     241            </xsl:choose> 
     242             
     243        </xsl:attribute> 
     244         
    245245        <text:p> 
    246246            <xsl:choose> 
     
    254254            <xsl:apply-templates/> 
    255255        </text:p> 
    256         </table:table-cell> 
     256    </table:table-cell> 
    257257</xsl:template> 
    258258 
  • xsl/param.xsl

    r3259fb7 r4bf09cc  
    11<?xml version="1.0" encoding="utf-8"?> 
    22<!-- 
    3          
    4         xhtml2odt - XHTML to ODT XML transformation. 
     3     
     4    xhtml2odt - XHTML to ODT XML transformation. 
    55    Copyright (C) 2009 Aurelien Bompard 
    66    Based on the work on docbook2odt, by Roman Fordinal 
    7         http://open.comsultia.com/docbook2odf/ 
    8          
    9         This program is free software; you can redistribute it and/or 
    10         modify it under the terms of the GNU General Public License 
    11         as published by the Free Software Foundation; either version 2 
    12         of the License, or (at your option) any later version. 
    13          
    14         This program is distributed in the hope that it will be useful, 
    15         but WITHOUT ANY WARRANTY; without even the implied warranty of 
    16         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    17         GNU General Public License for more details. 
    18          
     7    http://open.comsultia.com/docbook2odf/ 
     8     
     9    This program is free software; you can redistribute it and/or 
     10    modify it under the terms of the GNU General Public License 
     11    as published by the Free Software Foundation; either version 2 
     12    of the License, or (at your option) any later version. 
     13     
     14    This program is distributed in the hope that it will be useful, 
     15    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17    GNU General Public License for more details. 
     18     
    1919--> 
    2020<xsl:stylesheet 
    21         xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
    22         xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    23         xmlns:dc="http://purl.org/dc/elements/1.1/" 
    24         xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
    25         xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
    26         xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
    27         xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
    28         xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
    29         xmlns:xlink="http://www.w3.org/1999/xlink" 
    30         xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
    31         xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
    32         xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
    33         xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
    34         xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
    35         xmlns:math="http://www.w3.org/1998/Math/MathML" 
    36         xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
    37         xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
    38         xmlns:dom="http://www.w3.org/2001/xml-events" 
    39         xmlns:xforms="http://www.w3.org/2002/xforms" 
    40         xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    41         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    42         xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
    43         version="1.0"> 
    44          
    45          
    46         <xsl:param name="root_url">http://<xsl:value-of select="$domain"/></xsl:param> 
    47         <!-- <xsl:param name="heading.minus.level">2</xsl:param> --> 
    48         <xsl:param name="para.padding">0.20cm</xsl:param> 
    49          
     21    xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
     22    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
     23    xmlns:dc="http://purl.org/dc/elements/1.1/" 
     24    xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
     25    xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
     26    xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
     27    xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
     28    xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
     29    xmlns:xlink="http://www.w3.org/1999/xlink" 
     30    xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
     31    xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
     32    xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
     33    xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
     34    xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
     35    xmlns:math="http://www.w3.org/1998/Math/MathML" 
     36    xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
     37    xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
     38    xmlns:dom="http://www.w3.org/2001/xml-events" 
     39    xmlns:xforms="http://www.w3.org/2002/xforms" 
     40    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
     41    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     42    xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
     43    version="1.0"> 
     44     
     45     
     46    <xsl:param name="root_url">http://<xsl:value-of select="$domain"/></xsl:param> 
     47    <!-- <xsl:param name="heading.minus.level">2</xsl:param> --> 
     48    <xsl:param name="para.padding">0.20cm</xsl:param> 
     49     
    5050</xsl:stylesheet> 
    5151 
  • xsl/specific.xsl

    r3259fb7 r4bf09cc  
    11<?xml version="1.0" encoding="utf-8"?> 
    22<!-- 
    3          
    4         xhtml2odt - XHTML to ODT XML transformation. 
     3     
     4    xhtml2odt - XHTML to ODT XML transformation. 
    55    Copyright (C) 2009 Aurelien Bompard 
    66    Based on the work on docbook2odt, by Roman Fordinal 
    7         http://open.comsultia.com/docbook2odf/ 
    8          
    9         This program is free software; you can redistribute it and/or 
    10         modify it under the terms of the GNU General Public License 
    11         as published by the Free Software Foundation; either version 2 
    12         of the License, or (at your option) any later version. 
    13          
    14         This program is distributed in the hope that it will be useful, 
    15         but WITHOUT ANY WARRANTY; without even the implied warranty of 
    16         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    17         GNU General Public License for more details. 
    18          
     7    http://open.comsultia.com/docbook2odf/ 
     8     
     9    This program is free software; you can redistribute it and/or 
     10    modify it under the terms of the GNU General Public License 
     11    as published by the Free Software Foundation; either version 2 
     12    of the License, or (at your option) any later version. 
     13     
     14    This program is distributed in the hope that it will be useful, 
     15    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17    GNU General Public License for more details. 
     18     
    1919--> 
    2020<xsl:stylesheet 
    21         xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
    22         xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    23         xmlns:dc="http://purl.org/dc/elements/1.1/" 
    24         xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
    25         xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
    26         xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
    27         xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
    28         xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
    29         xmlns:xlink="http://www.w3.org/1999/xlink" 
    30         xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
    31         xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
    32         xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
    33         xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
    34         xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
    35         xmlns:math="http://www.w3.org/1998/Math/MathML" 
    36         xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
    37         xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
    38         xmlns:dom="http://www.w3.org/2001/xml-events" 
    39         xmlns:xforms="http://www.w3.org/2002/xforms" 
    40         xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    41         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    42         xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
    43         version="1.0"> 
    44          
     21    xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
     22    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
     23    xmlns:dc="http://purl.org/dc/elements/1.1/" 
     24    xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
     25    xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
     26    xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
     27    xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
     28    xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
     29    xmlns:xlink="http://www.w3.org/1999/xlink" 
     30    xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
     31    xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
     32    xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
     33    xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
     34    xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
     35    xmlns:math="http://www.w3.org/1998/Math/MathML" 
     36    xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
     37    xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
     38    xmlns:dom="http://www.w3.org/2001/xml-events" 
     39    xmlns:xforms="http://www.w3.org/2002/xforms" 
     40    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
     41    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     42    xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
     43    version="1.0"> 
     44     
    4545<xsl:include href="specific/trac.xsl"/> 
    4646 
  • xsl/specific/trac.xsl

    r8a88bf7 r4bf09cc  
    11<?xml version="1.0" encoding="utf-8"?> 
    22<!-- 
    3          
    4         xhtml2odt - XHTML to ODT XML transformation. 
     3     
     4    xhtml2odt - XHTML to ODT XML transformation. 
    55    Copyright (C) 2009 Aurelien Bompard 
    66    Based on the work on docbook2odt, by Roman Fordinal 
    7         http://open.comsultia.com/docbook2odf/ 
    8          
    9         This program is free software; you can redistribute it and/or 
    10         modify it under the terms of the GNU General Public License 
    11         as published by the Free Software Foundation; either version 2 
    12         of the License, or (at your option) any later version. 
    13          
    14         This program is distributed in the hope that it will be useful, 
    15         but WITHOUT ANY WARRANTY; without even the implied warranty of 
    16         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    17         GNU General Public License for more details. 
    18          
     7    http://open.comsultia.com/docbook2odf/ 
     8     
     9    This program is free software; you can redistribute it and/or 
     10    modify it under the terms of the GNU General Public License 
     11    as published by the Free Software Foundation; either version 2 
     12    of the License, or (at your option) any later version. 
     13     
     14    This program is distributed in the hope that it will be useful, 
     15    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17    GNU General Public License for more details. 
     18     
    1919--> 
    2020<xsl:stylesheet 
    21         xmlns:h="http://www.w3.org/1999/xhtml" 
    22         xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
    23         xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    24         xmlns:dc="http://purl.org/dc/elements/1.1/" 
    25         xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
    26         xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
    27         xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
    28         xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
    29         xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
    30         xmlns:xlink="http://www.w3.org/1999/xlink" 
    31         xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
    32         xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
    33         xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
    34         xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
    35         xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
    36         xmlns:math="http://www.w3.org/1998/Math/MathML" 
    37         xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
    38         xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
    39         xmlns:dom="http://www.w3.org/2001/xml-events" 
    40         xmlns:xforms="http://www.w3.org/2002/xforms" 
    41         xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    42         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    43         xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
    44         version="1.0"> 
     21    xmlns:h="http://www.w3.org/1999/xhtml" 
     22    xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
     23    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
     24    xmlns:dc="http://purl.org/dc/elements/1.1/" 
     25    xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
     26    xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
     27    xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
     28    xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
     29    xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
     30    xmlns:xlink="http://www.w3.org/1999/xlink" 
     31    xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
     32    xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
     33    xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
     34    xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
     35    xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
     36    xmlns:math="http://www.w3.org/1998/Math/MathML" 
     37    xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
     38    xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
     39    xmlns:dom="http://www.w3.org/2001/xml-events" 
     40    xmlns:xforms="http://www.w3.org/2002/xforms" 
     41    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
     42    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     43    xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
     44    version="1.0"> 
    4545 
    4646 
    4747<xsl:template match="h:span[@class='underline']"> 
    48         <text:span text:style-name="underline"> 
    49                 <xsl:apply-templates/> 
    50         </text:span> 
     48    <text:span text:style-name="underline"> 
     49        <xsl:apply-templates/> 
     50    </text:span> 
    5151</xsl:template> 
    5252 
  • xsl/xhtml2odt.xsl

    rbeb886c r4bf09cc  
    11<?xml version="1.0" encoding="UTF-8"?> 
    22<!-- 
    3          
    4         xhtml2odt - XHTML to ODT XML transformation. 
     3     
     4    xhtml2odt - XHTML to ODT XML transformation. 
    55    Copyright (C) 2009 Aurelien Bompard 
    66    Based on the work on docbook2odt, by Roman Fordinal 
    7         http://open.comsultia.com/docbook2odf/ 
    8          
    9         This program is free software; you can redistribute it and/or 
    10         modify it under the terms of the GNU General Public License 
    11         as published by the Free Software Foundation; either version 2 
    12         of the License, or (at your option) any later version. 
    13          
    14         This program is distributed in the hope that it will be useful, 
    15         but WITHOUT ANY WARRANTY; without even the implied warranty of 
    16         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    17         GNU General Public License for more details. 
    18          
     7    http://open.comsultia.com/docbook2odf/ 
     8     
     9    This program is free software; you can redistribute it and/or 
     10    modify it under the terms of the GNU General Public License 
     11    as published by the Free Software Foundation; either version 2 
     12    of the License, or (at your option) any later version. 
     13     
     14    This program is distributed in the hope that it will be useful, 
     15    but WITHOUT ANY WARRANTY; without even the implied warranty of 
     16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
     17    GNU General Public License for more details. 
     18     
    1919--> 
    2020<xsl:stylesheet 
    21                 xmlns:h="http://www.w3.org/1999/xhtml" 
    22                 xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
    23                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
    24                 xmlns:dc="http://purl.org/dc/elements/1.1/" 
    25                 xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
    26                 xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
    27                 xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
    28                 xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
    29                 xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
    30                 xmlns:xlink="http://www.w3.org/1999/xlink" 
    31                 xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
    32                 xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
    33                 xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
    34                 xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
    35                 xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
    36                 xmlns:math="http://www.w3.org/1998/Math/MathML" 
    37                 xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
    38                 xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
    39                 xmlns:dom="http://www.w3.org/2001/xml-events" 
    40                 xmlns:xforms="http://www.w3.org/2002/xforms" 
    41                 xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
    42                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    43                 xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
    44                 exclude-result-prefixes="office xsl dc text style table draw fo xlink meta number svg chart dr3d math form script dom xforms xsd xsi presentation h" 
    45                 version="1.0"> 
    46          
     21    xmlns:h="http://www.w3.org/1999/xhtml" 
     22    xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" 
     23    xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
     24    xmlns:dc="http://purl.org/dc/elements/1.1/" 
     25    xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" 
     26    xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" 
     27    xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" 
     28    xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" 
     29    xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" 
     30    xmlns:xlink="http://www.w3.org/1999/xlink" 
     31    xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"  
     32    xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" 
     33    xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" 
     34    xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" 
     35    xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" 
     36    xmlns:math="http://www.w3.org/1998/Math/MathML" 
     37    xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" 
     38    xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" 
     39    xmlns:dom="http://www.w3.org/2001/xml-events" 
     40    xmlns:xforms="http://www.w3.org/2002/xforms" 
     41    xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
     42    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     43    xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" 
     44    exclude-result-prefixes="office xsl dc text style table draw fo xlink meta number svg chart dr3d math form script dom xforms xsd xsi presentation h" 
     45    version="1.0"> 
     46     
    4747<!-- SETTINGS --> 
    4848<xsl:decimal-format name="staff" digit="D" /> 
Note: See TracChangeset for help on using the changeset viewer.