|
Lines 414-419
Link Here
|
| 414 |
(string-append "Q" (question-answer-label))) |
415 |
(string-append "Q" (question-answer-label))) |
| 415 |
(else |
416 |
(else |
| 416 |
(string-append "AEN" (number->string (all-element-number nd)))))) |
417 |
(string-append "AEN" (number->string (all-element-number nd)))))) |
|
|
418 |
|
| 419 |
<!-- Conclusions: I don't know what I'm doing. |
| 420 |
Assumptions: many. |
| 421 |
--> |
| 422 |
(define (olink-href target modespec) |
| 423 |
(let* ((linfo (normalize (attribute-string (normalize "localinfo")))) |
| 424 |
(sysid (entity-system-id target)) |
| 425 |
(basef (trim-string sysid '(".sgml"))) |
| 426 |
(based (trim-string basef '("book" "article"))) |
| 427 |
(sumdoc (sgml-parse (string-append basef %olink-outline-ext%))) |
| 428 |
(root (node-property 'document-element sumdoc)) |
| 429 |
(node (if linfo (element-with-id linfo root) root)) |
| 430 |
(idfn (attribute-string (normalize "id") node)) |
| 431 |
(anchor (if idfn (string-append "#" idfn) "")) |
| 432 |
(href (string-append based |
| 433 |
(attribute-string (normalize "href") node) anchor))) |
| 434 |
href)) |
| 417 |
|
435 |
|
| 418 |
(define (xref-biblioentry target) |
436 |
(define (xref-biblioentry target) |
| 419 |
(let* ((abbrev (node-list-first |
437 |
(let* ((abbrev (node-list-first |