1<?xml version="1.0" encoding="UTF-8"?> 2 3 4<!-- 5 *********************************************************************** 6 * 7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 8 * 9 * Copyright 2000, 2010 Oracle and/or its affiliates. 10 * 11 * OpenOffice.org - a multi-platform office productivity suite 12 * 13 * This file is part of OpenOffice.org. 14 * 15 * OpenOffice.org is free software: you can redistribute it and/or modify 16 * it under the terms of the GNU Lesser General Public License version 3 17 * only, as published by the Free Software Foundation. 18 * 19 * OpenOffice.org is distributed in the hope that it will be useful, 20 * but WITHOUT ANY WARRANTY; without even the implied warranty of 21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 22 * GNU Lesser General Public License version 3 for more details 23 * (a copy is included in the LICENSE file that accompanied this code). 24 * 25 * You should have received a copy of the GNU Lesser General Public License 26 * version 3 along with OpenOffice.org. If not, see 27 * <http://www.openoffice.org/license.html> 28 * for a copy of the LGPLv3 License. 29 * 30 ************************************************************************ 31 --> 32 33<helpdocument version="1.0"> 34<meta> 35<topic id="textswriter0104090007xml" indexer="include" status="PUBLISH"> 36<title id="tit" xml-lang="en-US">Special Tags</title> 37<filename>/text/swriter/01/04090007.xhp</filename> 38</topic> 39<history> 40<created date="2003-10-31T00:00:00">Sun Microsystems, Inc.</created> 41<lastedited date="2006-11-27T08:27:44">converted from old format - fpe</lastedited> 42</history> 43</meta> 44<body> 45<bookmark xml-lang="en-US" branch="index" id="bm_id3154106"><bookmark_value>tags; in $[officename] Writer</bookmark_value> 46<bookmark_value>$[officename] Writer; special HTML tags</bookmark_value> 47<bookmark_value>HTML;special tags for fields</bookmark_value> 48<bookmark_value>fields;HTML import and export</bookmark_value> 49<bookmark_value>time fields;HTML</bookmark_value> 50<bookmark_value>date fields;HTML</bookmark_value> 51<bookmark_value>DocInformation fields</bookmark_value> 52</bookmark><comment>MW changed "$[officename] Writer;tags" to "$[officename];special HTML tags"</comment> 53<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> 54<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> 55<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> 56<section id="datumuhrzeit"> 57<paragraph role="heading" id="hd_id3154570" xml-lang="en-US" level="2" l10n="U" oldref="5">Date and Time Fields</paragraph> 58<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> 59<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> 60<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> 61<table id="tbl_id3143275"> 62<tablerow> 63<tablecell colspan="" rowspan=""> 64<paragraph role="tablehead" id="par_id3151257" xml-lang="en-US" l10n="U" oldref="9">Fields</paragraph> 65</tablecell> 66<tablecell colspan="" rowspan=""> 67<paragraph role="tablehead" id="par_id3148970" xml-lang="en-US" l10n="U" oldref="10">$[officename] Tag</paragraph> 68</tablecell> 69</tablerow> 70<tablerow> 71<tablecell colspan="" rowspan=""> 72<paragraph role="tablecontent" id="par_id3147102" xml-lang="en-US" l10n="U" oldref="11">Date is fixed</paragraph> 73</tablecell> 74<tablecell colspan="" rowspan=""> 75<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> 76</tablecell> 77</tablerow> 78<tablerow> 79<tablecell colspan="" rowspan=""> 80<paragraph role="tablecontent" id="par_id3155137" xml-lang="en-US" l10n="U" oldref="13">Date is variable</paragraph> 81</tablecell> 82<tablecell colspan="" rowspan=""> 83<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> 84</tablecell> 85</tablerow> 86<tablerow> 87<tablecell colspan="" rowspan=""> 88<paragraph role="tablecontent" id="par_id3145774" xml-lang="en-US" l10n="U" oldref="15">Time is fixed</paragraph> 89</tablecell> 90<tablecell colspan="" rowspan=""> 91<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> 92</tablecell> 93</tablerow> 94<tablerow> 95<tablecell colspan="" rowspan=""> 96<paragraph role="tablecontent" id="par_id3150110" xml-lang="en-US" l10n="U" oldref="17">Time is variable</paragraph> 97</tablecell> 98<tablecell colspan="" rowspan=""> 99<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> 100</tablecell> 101</tablerow> 102</table> 103 104</section> 105<section id="dokumentinfo"> 106<paragraph role="heading" id="hd_id3147409" xml-lang="en-US" level="2" l10n="U" oldref="23">DocInformation Fields</paragraph> 107<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> 108<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> 109<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> 110<table id="tbl_id3145265"> 111<tablerow> 112<tablecell colspan="" rowspan=""> 113<paragraph role="tablehead" id="par_id3147738" xml-lang="en-US" l10n="U" oldref="27">Fields</paragraph> 114</tablecell> 115<tablecell colspan="" rowspan=""> 116<paragraph role="tablehead" id="par_id3146334" xml-lang="en-US" l10n="U" oldref="28">$[officename] Tag</paragraph> 117</tablecell> 118</tablerow> 119<tablerow> 120<tablecell colspan="" rowspan=""> 121<paragraph role="tablecontent" id="par_id3149846" xml-lang="en-US" l10n="U" oldref="29">Description (fixed content)</paragraph> 122</tablecell> 123<tablecell colspan="" rowspan=""> 124<paragraph role="tablecontent" id="par_id3148863" xml-lang="en-US" l10n="U" oldref="30"><SDFIELD TYPE=DOCINFO SUBTYPE=COMMENT SDFIXED>Description</SDFIELD></paragraph> 125</tablecell> 126</tablerow> 127<tablerow> 128<tablecell colspan="" rowspan=""> 129<paragraph role="tablecontent" id="par_id3151083" xml-lang="en-US" l10n="U" oldref="31">Creation date</paragraph> 130</tablecell> 131<tablecell colspan="" rowspan=""> 132<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> 133</tablecell> 134</tablerow> 135<tablerow> 136<tablecell colspan="" rowspan=""> 137<paragraph role="tablecontent" id="par_id3150175" xml-lang="en-US" l10n="U" oldref="33">Creation time (fixed content)</paragraph> 138</tablecell> 139<tablecell colspan="" rowspan=""> 140<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> 141</tablecell> 142</tablerow> 143<tablerow> 144<tablecell colspan="" rowspan=""> 145<paragraph role="tablecontent" id="par_id3155077" xml-lang="en-US" l10n="U" oldref="35">Modification date</paragraph> 146</tablecell> 147<tablecell colspan="" rowspan=""> 148<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> 149</tablecell> 150</tablerow> 151</table> 152 153</section> 154</body> 155</helpdocument> 156