xref.1
来自「HTML-XML-utils由一套小型C程序(过滤器)组成」· 1 代码 · 共 106 行
1
106 行
.de d \" begin display.sp.in +4.nf...de e \" end display.in -4.fi.sp...TH man 1 "4 Aug 2000".SH NAMExref \- generate cross-references inside and between HTML files.SH SYNOPSIS.B xref.RB "[\| " \-x " \|]".RB "[\| " \-b.IR base " \|]".RB "[\| " \-i.IR index " \|]".RI "[\| -- \|] [\| " input " [\| " output " \|] \|]".SH DESCRIPTION.LPThe.B xrefcommand links inline elements to DFN elements with the same content.It adds ID attributes where necessary. If the content of a DFN orother element isn't suitable, the TITLE attribute may be used toprovide the term to use for comparisons..LPHere is an example:.d<p>A <dfn>b-box</dfn> is defined to be...<p>For every b there is a <em>b-box</em>....eThe output of.B xrefwill be similar to this:.d<p>A <dfn id="b-box">b-box</dfn> is defined to be...<p>For every b there is a <em><a href="#b-box">b-box<a/></em>....e.SH OPTIONSThe following options are supported:.TP 10.B \-xUse XML conventions: empty elements are written with a slash at theend: <IMG\ />.TP.BI \-b " base"Sets the prefix for the generated URLs. By default.I baseis empty, which generates URLs like "#b-box" above. If.I baseis set to, e.g., "http://xyz/", the URLs will look like"http://xyz/#b-box"..TP.BI \-i " index"Directs.I xrefto read terms from a database file before looking for them in thedocument and afterwards store the terms that were found in the samefile. DFN element in the document ovrride terms found in.IR index "."This allows.I xrefto be run multiple times on different files, to make the files referto each other. It may be necessary to run the commands twice, toresolve all cross-references..SH OPERANDSThe following operands are supported:.TP 10.I inputThe name of an HTML file. If absent, standard input is read instead.The special name "-" also indicates standard input. The.I inputmay be a URL..TP.I outputThe file to write to. If absent, standard output is used. This may.I notbe a URL..SH "EXIT STATUS"The following exit values are returned:.TP 10.B 0Successful completion..TP.B >0An error occurred in the parsing of the HTML file..B tocwill try to correct the error and produce output anyway..SH "SEE ALSO".BR index (1),.BR num (1),.BR toc (1),.BR normalize (1),.BR xml2asc (1).BR asc2xml (1).SH BUGS.LPThe error recovery for incorrect HTML is primitive..LPThe program generates ID attributes, but doesn't generate <a name=...>tags, so the links only work in browsers that recognize ID attributes.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?