X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=doc%2Fyazphp.dsl;h=e0c2fda44765cf10a74c72211d1e504ba981a0ed;hb=f03238c89d03779b3d5731ffdcce0bd7c3e099bc;hp=0f3f672817d008c9b4bac93744ea0a77223b6069;hpb=1f14d2d8be1c47d9e97fdd8ec55e2e5113abe899;p=yaz-moved-to-github.git diff --git a/doc/yazphp.dsl b/doc/yazphp.dsl index 0f3f672..e0c2fda 100644 --- a/doc/yazphp.dsl +++ b/doc/yazphp.dsl @@ -1,10 +1,9 @@ - - + ]> @@ -13,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 @@ -39,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 ) @@ -76,10 +79,18 @@ public-id: %html-pubid%) (empty-sosofo)) doc-sosofo) - doc-sosofo)))) + doc-sosofo) + ) + ) + ) - + +