docbook-apps

  • 1.  Modify xsl:import value at runtime?

    Posted 08-03-2011 15:24
    I have a transform wrapper that begins like this:



    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">

    <xsl:import href="docbook-xsl/html/docbook.xsl"/>
    ...


    So it imports the stylesheets from the docbook-xsl directory.
    I would like to be able to select from among any of several
    stylesheets: docbook-xsl-1.75.2, docbook-xsl-1.76.1, etc.
    (For testing, or to enable different teams that all use the
    same wrapper to select a different underlying DocBook XSL
    stylesheet version.)

    But I would like to be able to do the selectin at runtime rather than
    by creating multiple wrappers that vary only in the xsl:import
    line.

    The href value cannot, as far as I can tell, be specified
    using a parameter. Is there a way to accomplish what I want?
    Perhaps using catalog entries?


  • 2.  Re: [docbook-apps] Modify xsl:import value at runtime?

    Posted 08-03-2011 16:53
    Dnia sroda, 3 sierpnia 2011 o 17:23:46 Paul DuBois napisal(a):
    > But I would like to be able to do the selectin at runtime rather than
    > by creating multiple wrappers that vary only in the xsl:import
    > line.

    You can create the wrapper on the fly, using sed or whatever.

    HTH,
    Chris