XML/OpenOffice.org e l'OpenDocument Format: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
tradotto da https://en.wikibooks.org/w/index.php?title=XML_-_Managing_Data_Exchange/OpenOffice.org_%26_OpenDocument_Format&oldid=3459215
 
m Update syntaxhighlight tags - remove use of deprecated <source> tags
 
Riga 29:
Il testo del documento è archiviato in '''content.xml'''. Per impostazione predefinita, questa è una versione ridotta del documento che tralascia elementi di formattazione come rientri o interruzioni di riga al fine di semplificare il salvataggio e l'apertura del documento stesso.
 
<sourcesyntaxhighlight lang="xml">
<office:document-content namespace declarations
office:version="1.0"
Riga 52:
</office:body>
</office:document-content>
</syntaxhighlight>
</source>
 
'''meta.xml''' contiene le meta-informazioni del documento, che possono essere modificate in File - Proprietà. Se un documento viene salvato con una password, meta.xml non verrà crittografato.
 
<sourcesyntaxhighlight lang="xml">
<?xml version="1.0" encoding="UTF-8" ?>
<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:ooo="http://openoffice.org/2004/office" office:version="1.0">
Riga 75:
</office:meta>
</office:document-meta>
</syntaxhighlight>
</source>
 
'''settings.xml''' contiene ulteriori informazioni sulle impostazioni per questo documento.
 
<sourcesyntaxhighlight lang="xml">
<?xml version="1.0" encoding="UTF-8" ?>
- <office:document-settings xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" office:version="1.0">
Riga 157:
</office:settings>
</office:document-settings>
</syntaxhighlight>
</source>
 
'''styles.xml''' contiene gli stili applicati al documento, che possono essere visualizzati nella finestra Stili e formattazione.
 
<sourcesyntaxhighlight lang="xml">
<?xml version="1.0" encoding="UTF-8" ?>
<office:document-styles xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" office:version="1.0">
Riga 257:
</office:master-styles>
</office:document-styles>
</syntaxhighlight>
</source>
 
'''manifest.xml''' nella directory meta-inf descrive la struttura del file XML.
 
<sourcesyntaxhighlight lang="xml">
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE manifest:manifest
Riga 289:
manifest:media-type="text/xml" manifest:full-path="settings.xml"/>
</manifest:manifest>
</syntaxhighlight>
</source>
 
Altri file e cartelle possono essere inclusi nell'archivio, se necessari.