Preformatted text

"Cindy Hunt" <[email protected]>
Newsgroups gmane.text.xml.xsl.general
Message-ID <[email protected]>
> Hi-
> 
> I am working on my first XSL-FO transform and have run across a place where I am stuck. What I need to produce is a block of example code that maintains its original line breaks and indents, something like so:
> 
> begin code;
>     if x>y
>        then z;
> end code;
> 
> I am used to doing this with a FOSI, being able to set justification to "as-is". For those that speak HTML, I need something similar to <pre>. I didn't see anything in the FO specs for justification that includes this and I couldn't find anything else that seemed similar to me. The closest thing I found was white-space-treatment="preserve" on the block element but it looks like FOP doesn't support this feature when I run it.
> 
> If anyone knows how to do this, could you please share your expertise with a novice?
> 
> Thanks!
> Cindy Hunt
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.