edit
edit [ -newwindow | -ok] [ -readonly] [ -xml | -untaggedascii] [ -encodingstring] [ -cc | -nocc] [ -cd] [ -stylesheetname] [ -catalogdir] [ filename | -last | -current]
This command replaces the document in the Edit pane with the file specified by filename.
If a filename argument is not specified and the -catalog option does not specify a document entity, edit displays the Open dialog box.
This command has the following options:
• -newwindow — Specifies that a new window be created to display the new document. If -newwindow is not specified, the new document replaces the current document. -nw is a synonym for -newwindow.
• -ok — Opens the requested document without prompting you about unsaved changes to the current document or file. Unsaved changes will be lost. This option is ignored if -newwindow is used.
• -readonly — Opens the requested document as a read-only document.
• -xml — Specifies that the document to edit is an XML document. When this option is selected, a completeness check will not be performed (that is, -nocc is implied), and specifying -cc will have no effect.
• -encoding — Determines the encoding of the document, as specified by string; string must be one of the following strings:
Supported Encodings
Adobe-Standard-Encoding
|
Shift_JIS
|
CNS11643
|
Big5
|
ISO-10646-UCS-2
|
GB2312
|
ISO-8859-1 to ISO-8859-11
|
KSC_5601
|
ISO-8859-13 to ISO-8859-16
|
EUC-JP
|
windows-1250 to windows-1258
|
CEUC
|
US-ASCII
|
TEUC
|
UTF-16
|
EUC-KR
|
UTF-8
|
cp932
|
cp949
|
cp936
|
cp950
|
|
• -untaggedascii — Opens the requested ASCII document. SGML markup, if any, will not be interpreted. -untagged is a synonym for -untaggedascii.
• -cc — Specifies that Arbortext Editor perform a completeness check when it opens a Arbortext Editor document. (By default, a completeness check will not be done if the document was saved in Arbortext Editor.) Using this option is recommended when opening documents which were created in Arbortext Editor, but were later edited with another program.
• -nocc — Specifies that Arbortext Editor not perform a completeness check when opening a document. The document must be fully normalized according to SGML's reference concrete syntax.
If neither -cc nor -nocc is specified, the default behavior of the edit command is to search for an SGML comment containing the word “PTC Inc.” in the first 2000 characters of the document instance. If the comment is found, the document is assumed to have been created by Arbortext Editor and is normalized.
• -cd — Specifies that Arbortext Editor should change its working directory to the directory containing the file that is opened.
If this option is not included, there is no change to Arbortext Editor’s working directory when the file is opened.
• -stylesheet — Specifies the stylesheet name be used in place of the default stylesheet for the Edit view. name is the path and file name of a stylesheet file. name can also be the base name of the stylesheet file (the file name without the path). If just the base name is supplied, Arbortext Editor first searches for the file in the document directory, and then the document type directory.
• -catalog — Specifies the name of the directory dir containing an interchange catalog, which provides the document entity to be edited if no path name is specified. dir is prepended to the current set catalogpath option if not already present. If the interchange catalog specifies a FOSI for the document entity, this FOSI will be used for the Edit view unless the -fosi option is given.
• -last — Displays the previously edited file.
• -current — Reloads the current file.
Examples:
edit
edit -last -ok
edit -untag mailist
edit -r report
edit -nocc userman
edit -cd C:/test.xml
Related Topics