FreeBSD Bugzilla – Attachment 14744 Details for
Bug 27605
[patch] Cross-document references (<olink>)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 4.47 KB, created by
dd
on 2001-05-24 04:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
dd
Created:
2001-05-24 04:50:01 UTC
Size:
4.47 KB
patch
obsolete
>--- /dev/null Mon May 21 18:50:52 2001 >+++ share/sgml/olink.dsl Thu Apr 19 18:16:33 2001 >@@ -0,0 +1,47 @@ >+<!-- $FreeBSD: doc/share/sgml/default.dsl,v 1.1 2000/09/28 23:29:48 nbm Exp $ --> >+ >+<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [ >+<!ENTITY olink.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook OLink Summary V1.1//EN" CDATA DSSSL> >+]> >+ >+<style-sheet> >+ <style-specification use="olink"> >+ <style-specification-body> >+ <![ %output.html; [ >+ >+ (define %gentext-nav-use-tables% >+ ;; Use tables to build the navigation headers and footers? >+ #t) >+ >+ (define %html-ext% >+ ;; Default extension for HTML output files >+ ".html") >+ >+ (define %shade-verbatim% >+ ;; Should verbatim environments be shaded? >+ #f) >+ >+ (define %use-id-as-filename% >+ ;; Use ID attributes as name for component HTML files? >+ #t) >+ >+ (define %root-filename% >+ ;; Name for the root HTML document >+ "index") >+ >+ (define html-manifest >+ ;; Write a manifest? >+ #f) >+ >+ (define %generate-legalnotice-link% >+ ;; Should legal notices be a link to a separate file? >+ ;; >+ ;; Naturally, this has no effect if you're building one big >+ ;; HTML file. >+ #t) >+ ]]> >+ </style-specification-body> >+ </style-specification> >+ >+ <external-specification id="olink" document="olink.dsl"> >+</style-sheet> >--- /dev/null Mon May 21 18:50:52 2001 >+++ share/sgml/doc-refs.ent Thu Apr 19 22:44:07 2001 >@@ -0,0 +1,2 @@ >+<!ENTITY doc.faq SYSTEM "../../books/faq/faq.sgml" CDATA SGML> >+<!ENTITY doc.handbook SYSTEM "../../books/handbook/book.sgml" CDATA SGML> >Index: share/sgml/freebsd.dsl >=================================================================== >RCS file: /st/src/FreeBSD/doc/share/sgml/freebsd.dsl,v >retrieving revision 1.29 >diff -u -r1.29 freebsd.dsl >--- share/sgml/freebsd.dsl 2001/05/20 17:30:44 1.29 >+++ share/sgml/freebsd.dsl 2001/05/22 02:58:42 >@@ -414,6 +415,23 @@ > (string-append "Q" (question-answer-label))) > (else > (string-append "AEN" (number->string (all-element-number nd)))))) >+ >+ <!-- Conclusions: I don't know what I'm doing. >+ Assumptions: many. >+ --> >+ (define (olink-href target modespec) >+ (let* ((linfo (normalize (attribute-string (normalize "localinfo")))) >+ (sysid (entity-system-id target)) >+ (basef (trim-string sysid '(".sgml"))) >+ (based (trim-string basef '("book" "article"))) >+ (sumdoc (sgml-parse (string-append basef %olink-outline-ext%))) >+ (root (node-property 'document-element sumdoc)) >+ (node (if linfo (element-with-id linfo root) root)) >+ (idfn (attribute-string (normalize "id") node)) >+ (anchor (if idfn (string-append "#" idfn) "")) >+ (href (string-append based >+ (attribute-string (normalize "href") node) anchor))) >+ href)) > > (define (xref-biblioentry target) > (let* ((abbrev (node-list-first >Index: share/sgml/catalog >=================================================================== >RCS file: /st/src/FreeBSD/doc/share/sgml/catalog,v >retrieving revision 1.14 >diff -u -r1.14 catalog >--- share/sgml/catalog 2001/02/20 19:10:47 1.14 >+++ share/sgml/catalog 2001/05/22 02:58:42 >@@ -20,6 +20,9 @@ > PUBLIC "-//FreeBSD//ENTITIES DocBook Manual Page Entities//EN" > "man-refs.ent" > >+PUBLIC "-//FreeBSD//ENTITIES DocBook Document Entities//EN" >+ "doc-refs.ent" >+ > PUBLIC "-//FreeBSD//DOCUMENT DocBook Stylesheet//EN" > "freebsd.dsl" > >Index: share/mk/doc.docbook.mk >=================================================================== >RCS file: /st/src/FreeBSD/doc/share/mk/doc.docbook.mk,v >retrieving revision 1.31 >diff -u -r1.31 doc.docbook.mk >--- share/mk/doc.docbook.mk 2001/03/27 16:15:07 1.31 >+++ share/mk/doc.docbook.mk 2001/05/22 02:58:42 >@@ -68,6 +68,7 @@ > NSGMLS?= ${PREFIX}/bin/nsgmls > .endif > >+DSLOLINK?= ${DOC_PREFIX}/share/sgml/olink.dsl > DSLHTML?= ${DOC_PREFIX}/share/sgml/default.dsl > DSLPRINT?= ${DOC_PREFIX}/share/sgml/default.dsl > FREEBSDCATALOG= ${DOC_PREFIX}/share/sgml/catalog >@@ -193,7 +194,13 @@ > > .MAIN: all > >-all: ${_docs} >+# XXX FIXME >+CLEANFILES+= ${DOC}.olink >+ >+all: ${DOC}.olink ${_docs} >+ >+${DOC}.olink: ${SRCS} >+ ${JADE} -ioutput.html ${JADEOPTS} -d ${DSLOLINK} -t sgml ${MASTERDOC} > ${.TARGET} || (rm -f ${.TARGET} && false) > > index.html HTML.manifest: ${SRCS} ${LOCAL_IMAGES_LIB} ${IMAGES_PNG} > .if defined(GEN_INDEX)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 27605
: 14744 |
14745