\tags; in LibreOffice Writer\\LibreOffice Writer; tags\\HTML;special tags for fields\\fields;HTML import and export\\time fields;HTML\\date fields;HTML\\DocInformation fields\

Special Tags

When you save a document that contains fields as an HTML document, LibreOffice automatically converts date, time, and DocInformation fields to special HTML tags. The field contents are inserted between the opening and closing HTML tags of the converted fields. These special HTML tags do not correspond to standard HTML tags.

LibreOffice Writer fields are identified by the tag in an HTML document. The field type, the format, and the name of the special field are included in the opening HTML tag. The format of a field tag that is recognized by an HTML filter depends on the field type.

Date and Time Fields

For "Date" and "Time" fields, the TYPE parameter equals DATETIME. The format of the date or the time is specified by the SDNUM parameter, for example, DD:MM:YY for dates, or HH:MM:SS for time.

For fixed date and time fields, the date or the time is specified by the SDVAL parameter.

Examples of date and time special HTML tags that are recognized by LibreOffice as fields are shown in the following table:

Fields

LibreOffice Tag

Date is fixed

17/02/98

Date is variable

17/02/98

Time is fixed

10:10:36

Time is variable

10:10:36


DocInformation Fields

For DocInformation fields, the TYPE parameter equals DOCINFO. The SUBTYPE parameter displays the specific field type, for example, for the "Created" DocInformation field, SUBTYPE=CREATE. For date and time DocInformation fields, the FORMAT parameter equals DATE or TIME, and the SDNUM parameter indicates the number format that is used. The SDFIXED parameter indicates if the content of the DocInformation field is fixed or not.

The contents of a fixed date or time field are equal to the SDVAL parameter, otherwise the contents are equal to the text found between the SDFIELD HTML tags.

Examples of DocInformation special HTML tags that are recognized by LibreOffice as fields are shown in the following table:

Fields

LibreOffice Tag

Description (fixed content)

Description

Creation date

1. Quarter 98

Creation time (fixed content)

03:58:35 PM

Modification date

Mo 23 Feb, 98


Please support us!