docbook-apps

  • 1.  Re: [docbook-apps] Ensuring two digits in EXSLT produced time fields

    Posted 03-28-2007 17:05
    Actually, the stylesheets have a processing instruction named dbtimestamp
    that does that. The "M" format letter automatically inserts the leading
    zero if the minute number is less than 10. See:

    http://www.sagehill.net/docbookxsl/Datetime.html

    Bob Stayton
    Sagehill Enterprises
    DocBook Consulting
    bobs@sagehill.net


    ----- Original Message -----
    From: "Paul Moloney" <paul_moloney@hotmail.com>
    To: <docbook-apps@lists.oasis-open.org>
    Sent: Wednesday, March 28, 2007 7:43 AM
    Subject: [docbook-apps] Ensuring two digits in EXSLT produced time fields


    >
    > To automatically produce pubdates, I've followed the advice on this page
    > http://www.dpawson.co.uk/docbook/styling/custom.html#d2212e1704.
    >
    > In the comments, it mentions "Add number formatting to ensure two digits
    > in
    > time fields." - does anyone know how to do that? At the moment we do
    > indeed
    > get a problem that if a time is, say, 14:07, it comes out as "14:7".
    >
    > Thanks,
    >
    > P.
    >
    > --
    > View this message in context:
    > http://www.nabble.com/Ensuring-two-digits-in-EXSLT-produced-time-fields-tf3481120.html#a9716383
    > Sent from the docbook apps mailing list archive at Nabble.com.
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >
    >





  • 2.  RE: [docbook-apps] Ensuring two digits in EXSLT produced time fields

    Posted 03-28-2007 18:34
    On that note, is there any way to make the "day of the month" value drop
    the leading '0'?

    I use and I get something like 'March
    07, 2007' which seems a bit crude. I would like to see 'March 7, 2007'

    Regards,

    Dean Nelson
    Enterprise Electronics Corp




    -----Original Message-----
    From: Bob Stayton [mailto:bobs@sagehill.net]
    Sent: Wednesday, March 28, 2007 12:05 PM
    To: Paul Moloney; docbook-apps@lists.oasis-open.org
    Subject: Re: [docbook-apps] Ensuring two digits in EXSLT produced time
    fields


    Actually, the stylesheets have a processing instruction named
    dbtimestamp
    that does that. The "M" format letter automatically inserts the leading

    zero if the minute number is less than 10. See:

    http://www.sagehill.net/docbookxsl/Datetime.html

    Bob Stayton
    Sagehill Enterprises
    DocBook Consulting
    bobs@sagehill.net


    ----- Original Message -----
    From: "Paul Moloney" <paul_moloney@hotmail.com>
    To: <docbook-apps@lists.oasis-open.org>
    Sent: Wednesday, March 28, 2007 7:43 AM
    Subject: [docbook-apps] Ensuring two digits in EXSLT produced time
    fields


    >
    > To automatically produce pubdates, I've followed the advice on this
    > page http://www.dpawson.co.uk/docbook/styling/custom.html#d2212e1704.
    >
    > In the comments, it mentions "Add number formatting to ensure two
    > digits
    > in
    > time fields." - does anyone know how to do that? At the moment we do
    > indeed
    > get a problem that if a time is, say, 14:07, it comes out as "14:7".
    >
    > Thanks,
    >
    > P.
    >
    > --
    > View this message in context:
    >
    http://www.nabble.com/Ensuring-two-digits-in-EXSLT-produced-time-fields-
    tf3481120.html#a9716383
    > Sent from the docbook apps mailing list archive at Nabble.com.
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail:
    > docbook-apps-help@lists.oasis-open.org
    >
    >
    >



    ---------------------------------------------------------------------
    To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org