[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [Fwd: Re: [Fwd: OT: XML, à quoi ça sert ?]]



POUPON Olivier wrote:
> 
> > Ben justement, ouvrez gnumeric, ecrivez deux nombres
> > (au hasard, de toute facon je ferme les yeux ;-)
> > sauvegardez au format "Gnumeric XML",
> > exitez,
> > ouvrez le fichier produit (Book1.gnumeric par defaut)
> 
> > Et constatez que le "*Gnumeric* XML" est un peu particulier (i.e illisible)
> > Je trouve cela... derangeant...
> 
> Je n'ai pas Gnumeric sous la main pour faire un test mais la libXML
> peut lire et écrire des fichier "gzipper". Le fichier ne serait pas
> illisible tout simplement parce qu'il est compressé ?

evidemment (;-) ce ne peut etre que cela...)

mais c'est pas une raison... 
1) tout le monde peut se mettre a compresser le moindre fichier texte
2) le principe du XML c'est la lisibilite brute, (quitte a etre versatile)
et si j'ai pas de gnumeric ou gunzip ou xlib sous la main ??
3) sauf erreur, quand je sauvegarde dans gnumeric je n'ai pas le choix...
3') et puis, gunzip rale quand le suffixe est pas .gz (detail mais ch...)
4) le gzip est-il une norme ?? [je sais pas] (XML si)
5) et pourquoi pas bzip ?? compress ??
etc etc

je comprends pas pourquoi ils s'embetent...

Pour la question d'origine, un fichier XML (gnumeric) attache
(3,5Ko xml contre 0,8 en gzippe, trois nombres dans trois cellules)
a comparer avec du HTML...
-- 
> Georges MARIANO                 tel: (33) 03 20 43 84 06
> INRETS, 20 rue Elisee Reclus    fax: (33) 03 20 43 83 59
> 59650 Villeneuve d'Ascq         mailto:mariano@terre.inrets.fr
> FRANCE.                         
> http://www3.inrets.fr/Public/ESTAS/Mariano.Georges/
> http://www3.inrets.fr/B-Bibliography.html         mailto:Bforum@estas1.inrets.fr
<?xml version="1.0"?>
<gmr:Workbook xmlns:gmr="http://www.gnome.org/gnumeric/v3";>
  <gmr:Attributes>
    <gmr:Attribute>
      <gmr:name>Workbook::show_horizontal_scrollbar</gmr:name>
      <gmr:type>4</gmr:type>
      <gmr:value>TRUE</gmr:value>
    </gmr:Attribute>
    <gmr:Attribute>
      <gmr:name>Workbook::show_vertical_scrollbar</gmr:name>
      <gmr:type>4</gmr:type>
      <gmr:value>TRUE</gmr:value>
    </gmr:Attribute>
    <gmr:Attribute>
      <gmr:name>Workbook::show_notebook_tabs</gmr:name>
      <gmr:type>4</gmr:type>
      <gmr:value>TRUE</gmr:value>
    </gmr:Attribute>
  </gmr:Attributes>
  <gmr:Summary>
    <gmr:Item>
      <gmr:name>application</gmr:name>
      <gmr:val-string>gnumeric</gmr:val-string>
    </gmr:Item>
    <gmr:Item>
      <gmr:name>author</gmr:name>
      <gmr:val-string>Georges MARIANO</gmr:val-string>
    </gmr:Item>
  </gmr:Summary>
  <gmr:Geometry Width="816" Height="627"/>
  <gmr:Sheets>
    <gmr:Sheet>
      <gmr:Name>Sheet1</gmr:Name>
      <gmr:MaxCol>2</gmr:MaxCol>
      <gmr:MaxRow>8</gmr:MaxRow>
      <gmr:Zoom>1.000000</gmr:Zoom>
      <gmr:PrintInformation>
        <gmr:PrintUnit Points="28.346457" PrefUnit="cm">top</gmr:PrintUnit>
        <gmr:PrintUnit Points="28.346457" PrefUnit="cm">bottom</gmr:PrintUnit>
        <gmr:PrintUnit Points="28.346457" PrefUnit="cm">left</gmr:PrintUnit>
        <gmr:PrintUnit Points="28.346457" PrefUnit="cm">right</gmr:PrintUnit>
        <gmr:PrintUnit Points="14.1732285" PrefUnit="cm">header</gmr:PrintUnit>
        <gmr:PrintUnit Points="14.1732285" PrefUnit="cm">footer</gmr:PrintUnit>
        <gmr:vcenter value="0"/>
        <gmr:hcenter value="0"/>
        <gmr:grid value="0"/>
        <gmr:monochrome value="0"/>
        <gmr:draft value="0"/>
        <gmr:titles value="0"/>
        <gmr:order>r_then_d</gmr:order>
        <gmr:orientation>landscape</gmr:orientation>
        <gmr:Header Left="" Middle="&amp;[TAB]" Right=""/>
        <gmr:Footer Left="" Middle="Page &amp;[PAGE]" Right=""/>
        <gmr:paper>A4</gmr:paper>
      </gmr:PrintInformation>
      <gmr:Cols>
        <gmr:ColInfo No="1" Unit="48" MarginA="2" MarginB="2" HardSize="0" Hidden="0"/>
        <gmr:ColInfo No="2" Unit="48" MarginA="2" MarginB="2" HardSize="0" Hidden="0"/>
      </gmr:Cols>
      <gmr:Rows>
        <gmr:RowInfo No="2" Unit="12.75" MarginA="1" MarginB="0" HardSize="0" Hidden="0"/>
        <gmr:RowInfo No="8" Unit="12.75" MarginA="1" MarginB="0" HardSize="0" Hidden="0"/>
      </gmr:Rows>
      <gmr:Selections CursorCol="2" CursorRow="8">
        <gmr:Selection startCol="2" startRow="8" endCol="2" endRow="8"/>
      </gmr:Selections>
      <gmr:Cells>
        <gmr:Cell Col="2" Row="8" Style="0">
          <gmr:Content>14</gmr:Content>
        </gmr:Cell>
        <gmr:Cell Col="1" Row="2" Style="0">
          <gmr:Content>12</gmr:Content>
        </gmr:Cell>
        <gmr:Cell Col="2" Row="2" Style="0">
          <gmr:Content>13</gmr:Content>
        </gmr:Cell>
      </gmr:Cells>
      <gmr:Solver TargetCol="-1" TargetRow="-1" ProblemType="1" Inputs=""/>
    </gmr:Sheet>
  </gmr:Sheets>
  <gmr:UIData SelectedTab="0"/>
</gmr:Workbook>

Reply to: