[xep-support] <PRE> tag like behavior?

Chris Cosentino ccosenti at cisco.com
Wed Jun 2 08:12:36 PDT 2004


Thanks Ken!

Exactly what I needed.

-Chris

Wednesday, June 2, 2004, 10:53:31 AM, gkholman at CraneSoftwrights.com wrote:
GKH> At 2004-06-02 10:37 -0400, Chris Cosentino wrote:
>>Is there an easy (relatively) way to use XEP to create <PRE>-like
>>formatted text?

GKH> XSL-FO has many properties for a block that will help to get this output.

>>We currently have an inline element called <examplecode>. When
>>rendered through XEP the data is output in monospace bold font.
>>
>>If line breaks were required, we would wrap it in para tags.

GKH> Not sure what you mean there.

>>The problem we have is that we want to render example code with proper
>>indentation. The simple solution

GKH> ... is to have the stylesheet not collapse the white space and to preserve
GKH> the linefeeds that it finds:

GKH>    <block linefeed-treatment="preserve"
GKH>           white-space-treatment="preserve"
GKH>           white-space-collapse="false">
GKH>   .... indented program text ...

GKH> Then decide if you want long lines clipped or wrapped using wrap-option=.

GKH> I hope this helps.

GKH> ........................ Ken


GKH> --
GKH> Public courses: Spring 2004 world tour of hands-on XSL instruction
GKH> Next: 3-day XSLT/XPath; 2-day XSL-FO - Birmingham, UK June 14,2004

GKH> World-wide on-site corporate, govt. & user group XML/XSL training.
GKH> G. Ken Holman                
GKH> mailto:gkholman at CraneSoftwrights.com
GKH> Crane Softwrights Ltd.         
GKH> http://www.CraneSoftwrights.com/f/
GKH> Box 266, Kars, Ontario CANADA K0A-2E0    +1(613)489-0999 (F:-0995)
GKH> Male Breast Cancer Awareness 
GKH> http://www.CraneSoftwrights.com/f/bc
GKH> Legal business disclaimers: 
GKH> http://www.CraneSoftwrights.com/legal

GKH> -------------------
GKH> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
GKH> in the body of the message to majordomo at renderx.com from the address
GKH> you are subscribed from.
GKH> (*) By using the Service, you expressly agree to these
GKH> Terms of Service http://www.renderx.com/tos.html

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html



More information about the Xep-support mailing list