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