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