1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
<?xml version="1.0" encoding="UTF-8"?>
<!--
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
-->
<helpdocument version="1.0">
<meta>
<topic id="textswriter0104090007xml" indexer="include" status="PUBLISH">
<title id="tit" xml-lang="en-US">Special Tags</title>
<filename>/text/swriter/01/04090007.xhp</filename>
</topic>
<history>
<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created>
</history>
</meta>
<body>
<bookmark xml-lang="en-US" branch="index" id="bm_id3154106"><bookmark_value>tags; in $[officename] Writer</bookmark_value>
<bookmark_value>$[officename] Writer; special HTML tags</bookmark_value>
<bookmark_value>HTML;special tags for fields</bookmark_value>
<bookmark_value>fields;HTML import and export</bookmark_value>
<bookmark_value>time fields;HTML</bookmark_value>
<bookmark_value>date fields;HTML</bookmark_value>
<bookmark_value>DocInformation fields</bookmark_value>
</bookmark><comment>MW changed "$[officename] Writer;tags" to "$[officename];special HTML tags"</comment>
<paragraph role="heading" id="hd_id3154106" xml-lang="en-US" level="1"><link href="text/swriter/01/04090007.xhp" name="Special Tags">Special Tags</link></paragraph>
<paragraph role="paragraph" id="par_id3153669" xml-lang="en-US">When you save a document that contains fields as an HTML document, $[officename] 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.</paragraph>
<paragraph role="paragraph" id="par_id3152960" xml-lang="en-US">$[officename] Writer fields are identified by the <SDFIELD> 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.</paragraph>
<section id="datumuhrzeit">
<paragraph role="heading" id="hd_id3154570" xml-lang="en-US" level="2">Date and Time Fields</paragraph>
<paragraph role="paragraph" id="par_id3149696" xml-lang="en-US">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.</paragraph>
<paragraph role="paragraph" id="par_id3155183" xml-lang="en-US">For fixed date and time fields, the date or the time is specified by the SDVAL parameter.</paragraph>
<paragraph role="paragraph" id="par_id3149485" xml-lang="en-US">Examples of date and time special HTML tags that are recognized by $[officename] as fields are shown in the following table:</paragraph>
<table id="tbl_id3143275">
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablehead" id="par_id3151257" xml-lang="en-US">Fields</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablehead" id="par_id3148970" xml-lang="en-US">$[officename] Tag</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3147102" xml-lang="en-US">Date is fixed</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3153634" xml-lang="en-US"><SDFIELD TYPE=DATETIME SDVAL="35843,4239988426" SDNUM="1031;1031;DD/MM/YY">17/02/98</SDFIELD></paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3155137" xml-lang="en-US">Date is variable</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3156275" xml-lang="en-US"><SDFIELD TYPE=DATETIME SDNUM="1031;1031;DD/MM/YY">17/02/98</SDFIELD></paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3145774" xml-lang="en-US">Time is fixed</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3155915" xml-lang="en-US"><SDFIELD TYPE=DATETIME SDVAL="35843,4240335648" SDNUM="1031;1031;HH:MM:SS">10:10:36</SDFIELD></paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3150110" xml-lang="en-US">Time is variable</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3155862" xml-lang="en-US"><SDFIELD TYPE=DATETIME SDNUM="1031;1031;HH:MM:SS">10:10:36</SDFIELD></paragraph>
</tablecell>
</tablerow>
</table>
</section>
<section id="dokumentinfo">
<paragraph role="heading" id="hd_id3147409" xml-lang="en-US" level="2">DocInformation Fields</paragraph>
<paragraph role="paragraph" id="par_id3147487" xml-lang="en-US">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.</paragraph>
<paragraph role="paragraph" id="par_id3147501" xml-lang="en-US">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.</paragraph>
<paragraph role="paragraph" id="par_id3149562" xml-lang="en-US">Examples of DocInformation special HTML tags that are recognized by $[officename] as fields are shown in the following table:</paragraph>
<table id="tbl_id3145265">
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablehead" id="par_id3147738" xml-lang="en-US">Fields</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablehead" id="par_id3146334" xml-lang="en-US">$[officename] Tag</paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3149846" xml-lang="en-US">Description (fixed content)</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3148863" xml-lang="en-US"><SDFIELD TYPE=DOCINFO SUBTYPE=COMMENT SDFIXED>Description</SDFIELD></paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3151083" xml-lang="en-US">Creation date</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3153298" xml-lang="en-US"><SDFIELD TYPE=DOCINFO SUBTYPE=CREATE FORMAT=DATE SDNUM="1031;1031;QQ YY">1. Quarter 98</SDFIELD></paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3150175" xml-lang="en-US">Creation time (fixed content)</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3156134" xml-lang="en-US"><SDFIELD TYPE=DOCINFO SUBTYPE=CREATE FORMAT=TIME SDVAL="0" SDNUM="1031;1031;HH:MM:SS AM/PM" SDFIXED>03:58:35 PM</SDFIELD></paragraph>
</tablecell>
</tablerow>
<tablerow>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3155077" xml-lang="en-US">Modification date</paragraph>
</tablecell>
<tablecell colspan="" rowspan="">
<paragraph role="tablecontent" id="par_id3154330" xml-lang="en-US"><SDFIELD TYPE=DOCINFO SUBTYPE=CHANGE FORMAT=DATE SDNUM="1031;1031;NN DD MMM, YY">Mo 23 Feb, 98</SDFIELD></paragraph>
</tablecell>
</tablerow>
</table>
</section>
</body>
</helpdocument>
|