docbook-apps

  • 1.  Parameters in Docbook Article

    Posted 08-26-2008 13:38
    Good afternoon,

    I am starting to work with Docbook again after a long time of not using it.

    I am trying to find my feet again, and I am sure there is something that I
    used to do that I cannot work out how to do how so I am hoping you will be
    able to assist me.

    I would like to set a parameter on the command line that sets the client,
    e.g. --stringparam output.client "ACME" and then use the output.client
    within the Docbook markup and for ACME to be displayed in the final output.

    Is this possible or have I lost I completely lost the plot?

    Thanks, Russell



  • 2.  Re: [docbook-apps] Parameters in Docbook Article

    Posted 08-26-2008 13:57
      |   view attached
    Hi,

    yes that looks completely reasonable, you'd just need to decide what
    markup in the source XML would be used to hold the client name, for
    example <phrase role="xslparam" vendor="output.client"></phrase> (completely
    wild guess).

    and then define in your custom XSL the function that will match the
    above element and replace it with the content of the $output.client
    parameter....

    Hope that helps,

    Camille.

    Russell Seymour wrote:
    > Good afternoon,
    >
    > I am starting to work with Docbook again after a long time of not
    > using it.
    >
    > I am trying to find my feet again, and I am sure there is something
    > that I used to do that I cannot work out how to do how so I am hoping
    > you will be able to assist me.
    >
    > I would like to set a parameter on the command line that sets the
    > client, e.g. --stringparam output.client "ACME" and then use the
    > output.client within the Docbook markup and for ACME to be displayed
    > in the final output.
    >
    > Is this possible or have I lost I completely lost the plot?
    >
    > Thanks, Russell

    Attachment(s)

    vcf
    camille.vcf   320 B 1 version


  • 3.  Re: [docbook-apps] Parameters in Docbook Article

    Posted 08-26-2008 14:59
    Camille,

    Thanks very much for the pointer. I will give it a go and let you know how
    it goes.

    Russell



    2008/8/26 Camille Bégnis <camille@neodoc.biz>

    > Hi,
    >
    > yes that looks completely reasonable, you'd just need to decide what markup
    > in the source XML would be used to hold the client name, for example <phrase
    > role="xslparam" vendor="output.client"/> (completely wild guess).
    >
    > and then define in your custom XSL the function that will match the above
    > element and replace it with the content of the $output.client parameter....
    >
    > Hope that helps,
    >
    > Camille.
    >
    >
    > Russell Seymour wrote:
    >
    >> Good afternoon,
    >>
    >> I am starting to work with Docbook again after a long time of not using
    >> it.
    >>
    >> I am trying to find my feet again, and I am sure there is something that I
    >> used to do that I cannot work out how to do how so I am hoping you will be
    >> able to assist me.
    >>
    >> I would like to set a parameter on the command line that sets the client,
    >> e.g. --stringparam output.client "ACME" and then use the output.client
    >> within the Docbook markup and for ACME to be displayed in the final output.
    >>
    >> Is this possible or have I lost I completely lost the plot?
    >>
    >> Thanks, Russell
    >>
    >



  • 4.  Re: [docbook-apps] Parameters in Docbook Article

    Posted 08-27-2008 08:26
    Camille,

    That worked brilliantly, thanks.

    Russell

    2008/8/26 Russell Seymour <russell.seymour@turtlesystems.co.uk>

    > Camille,
    >
    > Thanks very much for the pointer. I will give it a go and let you know how
    > it goes.
    >
    > Russell
    >
    >
    >
    > 2008/8/26 Camille Bégnis <camille@neodoc.biz>
    >
    > Hi,
    >>
    >> yes that looks completely reasonable, you'd just need to decide what
    >> markup in the source XML would be used to hold the client name, for example
    >> <phrase role="xslparam" vendor="output.client"/> (completely wild guess).
    >>
    >> and then define in your custom XSL the function that will match the above
    >> element and replace it with the content of the $output.client parameter....
    >>
    >> Hope that helps,
    >>
    >> Camille.
    >>
    >>
    >> Russell Seymour wrote:
    >>
    >>> Good afternoon,
    >>>
    >>> I am starting to work with Docbook again after a long time of not using
    >>> it.
    >>>
    >>> I am trying to find my feet again, and I am sure there is something that
    >>> I used to do that I cannot work out how to do how so I am hoping you will be
    >>> able to assist me.
    >>>
    >>> I would like to set a parameter on the command line that sets the client,
    >>> e.g. --stringparam output.client "ACME" and then use the output.client
    >>> within the Docbook markup and for ACME to be displayed in the final output.
    >>>
    >>> Is this possible or have I lost I completely lost the plot?
    >>>
    >>> Thanks, Russell
    >>>
    >>
    >



  • 5.  Re: [docbook-apps] Parameters in Docbook Article

    Posted 08-27-2008 12:48
      |   view attached
    Russell Seymour wrote:
    > Camille,
    >
    > That worked brilliantly, thanks.

    Great, actually I had never thought about it before, but I guess that's
    something that could be generalized and possibly included by default in
    the docbook XSL.

    What's the others experience with this kind of requirement? (as a
    replacement to SGML ENTITY...)
    What system did you use? Xinclude?


    Camille.
    > Russell
    >
    > 2008/8/26 Russell Seymour <russell.seymour@turtlesystems.co.uk></russell.seymour@turtlesystems.co.uk>
    > <mailto:russell.seymour@turtlesystems.co.uk>>
    >
    > Camille,
    >
    > Thanks very much for the pointer. I will give it a go and let you
    > know how it goes.
    >
    > Russell
    >
    >
    >
    > 2008/8/26 Camille Bégnis <camille@neodoc.biz></camille@neodoc.biz>
    > <mailto:camille@neodoc.biz>>
    >
    > Hi,
    >
    > yes that looks completely reasonable, you'd just need to
    > decide what markup in the source XML would be used to hold the
    > client name, for example <phrase role="xslparam"></phrase>
    > vendor="output.client"/> (completely wild guess).
    >
    > and then define in your custom XSL the function that will
    > match the above element and replace it with the content of the
    > $output.client parameter....
    >
    > Hope that helps,
    >
    > Camille.
    >
    >
    > Russell Seymour wrote:
    >
    > Good afternoon,
    >
    > I am starting to work with Docbook again after a long time
    > of not using it.
    >
    > I am trying to find my feet again, and I am sure there is
    > something that I used to do that I cannot work out how to
    > do how so I am hoping you will be able to assist me.
    >
    > I would like to set a parameter on the command line that
    > sets the client, e.g. --stringparam output.client "ACME"
    > and then use the output.client within the Docbook markup
    > and for ACME to be displayed in the final output.
    >
    > Is this possible or have I lost I completely lost the plot?
    >
    > Thanks, Russell
    >
    >
    >

    </mailto:camille@neodoc.biz></mailto:russell.seymour@turtlesystems.co.uk>

    Attachment(s)

    vcf
    camille.vcf   320 B 1 version