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

From: Chris Cosentino (ccosenti@cisco.com)
Date: Wed Jun 02 2004 - 08:12:36 PDT

  • Next message: Douglas_Morrison@contractor.amat.com: "[xep-support] Suppressing validation errors"

    Thanks Ken!

    Exactly what I needed.

    -Chris

    Wednesday, June 2, 2004, 10:53:31 AM, gkholman@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@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@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@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



    This archive was generated by hypermail 2.1.5 : Wed Jun 02 2004 - 08:27:21 PDT