[jade] formatting-instruction strips out markup in data:

Subject: [jade] formatting-instruction strips out markup in data:
From: Eric Marsden <emarsden@xxxxxxxxxxxxxx>
Date: 06 Jan 1999 11:14:10 +0100
Hello,

Perhaps this is contrary to the DSSSL philosophy, but I am looking for
a way to pass characters through jade unchanged. The documentation
suggests using the nonstandard `formatting-instruction', so I tried:

  (make formatting-instruction data: "<P>foo</P>")

This works when there is no markup in the raw data, but here jade
complains about the P element, and strips the markup from the output
(yes, I could construct the output using gi: "P" in this example, but
I'm looking to avoid that).

Using Jade1.1 on Linux with Norman Walsh's excellent Modular DocBook
stylesheets; here is the full example if it's useful. Another silly
question in passing: is it normal that regular `;' comments don't
work in a <style-specification-body> ?



<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
<!ENTITY dbstyle SYSTEM "/usr/local/share/sgml/stylesheets/docbook/html/docbook.dsl" CDATA DSSSL>
]>

<style-sheet>
<style-specification id="html" use="docbook">
<style-specification-body>

(declare-flow-object-class formatting-instruction
  "UNREGISTERED::James Clark//Flow Object Class::formatting-instruction")

  <!-- ... -->

(define ($html-body-start$)
  (make formatting-instruction data: "<P>foo</P>"))

</style-specification-body>
</style-specification>
<external-specification id="docbook" document="dbstyle">
</style-sheet>

-- 
Eric Marsden
emarsden @ mail.dotcom.fr
It's elephants all the way down


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread