|
Subject: Re: processing-instruction? From: Chris Maden <crism@xxxxxxx> Date: Fri, 6 Mar 1998 17:47:47 -0500 |
[Stig S. Bakken]
> I am trying to customize the modular docbook stylesheets to produce
> HTML with embedded PHP3 code, which is done with <?php ?> processing
> instructions.
>
> I am trying to replace the document header with the following:
>
> <?php
> require("shared-manual.inc");
> manualHeader("Section Heading");
> ?>
>
> However, since processing-instruction is an atomic flow object, I
> can't use the sosofo containing the "Section Heading" data when
> creating the processing instruction. The PI wants a string for its
> data. So I need some way of converting the "title" sosofo to a
> string. Is that possible?
Since you cant (make processing-instruction), do this instead:
(sosofo-append (make formatting-instruction
data: "<?php require(\"")
(do-something-with-the-required-file)
(make formatting-instruction
data: "\"); manualHeader(\"")
(do-something-with-the-section-heading)
(make formatting-instruction
data: "\"); ?>"))
HTH,
Chris
--
<!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
<!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
"<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
<USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| processing-instruction?, Stig S. Bakken | Thread | Re: processing-instruction?, Paul Prescod |
| processing-instruction?, Stig S. Bakken | Date | RE: processing-instruction?, Reynolds, Gregg |
| Month |