X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=doc%2Fyazphp.dsl;h=e621b425957094a2dd4e9435b24118ab31aaa8c8;hb=f722c8d9517ec491e2469cdc91a3751dd5e7a6df;hp=0f3f672817d008c9b4bac93744ea0a77223b6069;hpb=1f14d2d8be1c47d9e97fdd8ec55e2e5113abe899;p=yaz-moved-to-github.git diff --git a/doc/yazphp.dsl b/doc/yazphp.dsl index 0f3f672..e621b42 100644 --- a/doc/yazphp.dsl +++ b/doc/yazphp.dsl @@ -1,21 +1,20 @@ - - + ]> +(define %use-id-as-filename% #t) +(define %output-dir% "php") (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 +38,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 +81,18 @@ public-id: %html-pubid%) (empty-sosofo)) doc-sosofo) - doc-sosofo)))) + doc-sosofo) + ) + ) + ) - + +