X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=doc%2Fyazphp.dsl;fp=doc%2Fyazphp.dsl;h=e0c2fda44765cf10a74c72211d1e504ba981a0ed;hp=37faadc20391deb3bcb3fcce8c1a82f8da93e19c;hb=62e8f19eea1de5311a51ca884305feed38757e81;hpb=3b3deb4d093d747360a5eb0e02c6b4e9c8a89b84 diff --git a/doc/yazphp.dsl b/doc/yazphp.dsl index 37faadc..e0c2fda 100644 --- a/doc/yazphp.dsl +++ b/doc/yazphp.dsl @@ -3,7 +3,7 @@ CDATA DSSSL> ]> @@ -12,9 +12,7 @@ (define %html-ext% ".php") (define %shade-verbatim% #t) -(define (php-code code) - (make processing-instruction - data: (string-append "php " code "?"))) +(define newline "\U-000D") (define (html-document title-sosofo body-sosofo) (let* (;; Let's look these up once, so that we can avoid calculating @@ -38,21 +36,27 @@ (doc-sosofo (if make-head? (make sequence - (php-code "require \"../id_common.inc\"") - (make element gi: "HTML" - (make element gi: "HEAD" - (make element gi: "TITLE " title-sosofo) - ($standard-html-header$ prev next prevm nextm)) - (make element gi: "BODY" - attributes: (append - (list (list "CLASS" (gi))) - %body-attr%) - (header-navigation (current-node) navlist) - body-sosofo - (footer-navigation (current-node) navlist) - ) + (make formatting-instruction data: + (string-append "<" "?php " + newline + "require \"../../id_common.inc\";" + newline + "id_header(\"" + ) + ) + title-sosofo + (make formatting-instruction data: + (string-append "\");" + newline + "?" ">" + ) + ) + (header-navigation (current-node) navlist) + body-sosofo + (footer-navigation (current-node) navlist) + (make formatting-instruction data: + (string-append "<" "?php id_footer() ?>") ) - (php-code "id_footer();") ) body-sosofo ) @@ -75,10 +79,18 @@ public-id: %html-pubid%) (empty-sosofo)) doc-sosofo) - doc-sosofo)))) + doc-sosofo) + ) + ) + ) - + +