docbook-apps

  • 1.  XSLT for Makefiles

    Posted 11-12-2007 20:48
    Hi,

    I have a small XSLT stylesheet that may be of use to others. It transforms a
    DocBook file into a dependency list that make can include via the "-include"
    command (only tested with GNU make so far). With it, one can autogenerate
    DocBook dependencies, much like gcc -M does.

    You can also pull out a list of all graphic files, either all of them or those
    with a specific format attribute. This helps with install-like targets that
    copy all corresponding graphics to a target directory.

    Is this of interest? If so, I'll put it up somewhere.

    Cheers,

    Paul.




  • 2.  Re: [docbook-apps] XSLT for Makefiles

    Posted 11-15-2007 18:24
    Paul Millar wrote:
    > Hi,
    >
    > I have a small XSLT stylesheet that may be of use to others. It transforms a
    > DocBook file into a dependency list that make can include via the "-include"
    > command (only tested with GNU make so far). With it, one can autogenerate
    > DocBook dependencies, much like gcc -M does.
    >
    > You can also pull out a list of all graphic files, either all of them or those
    > with a specific format attribute. This helps with install-like targets that
    > copy all corresponding graphics to a target directory.
    >
    > Is this of interest? If so, I'll put it up somewhere.

    Yep, definitely of interest.

    --
    Trygve




  • 3.  Re: [docbook-apps] XSLT for Makefiles

    Posted 11-21-2007 18:35
    On Thursday 15 November 2007 19:24:25 Trygve Laugstøl wrote:
    > Paul Millar wrote:
    > > Hi,
    > >
    > > I have a small XSLT stylesheet that may be of use to others. It
    > > transforms a DocBook file into a dependency list that make can include
    > > via the "-include" command (only tested with GNU make so far). [...]
    > > Is this of interest? If so, I'll put it up somewhere.
    >
    > Yep, definitely of interest.

    OK,

    See:
    http://www.astro.gla.ac.uk/users/paulm/
    (at the end of the "Code" list), which points to:
    http://www.astro.gla.ac.uk/users/paulm/XSLT/dependency.xsl

    Please feel free to take and use it however you want.

    If you enhance the XSLT, please let me know so I can update the version of the
    page.

    I'm still new to XSLT, so comments on general style and specific improvements
    would be nice.

    Cheers,

    Paul.