docbook-apps

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

    Posted 08-03-2011 17:06
    Hi Paul,
    That is correct that the href in xsl:import cannot be specified with a param. But you
    can use a catalog file, and change the catalog file at runtime to point to a different
    stylesheet version. These two references can get you started:

    http://www.sagehill.net/docbookxsl/CustomMethods.html#CatsWithCust
    http://www.sagehill.net/docbookxsl/WriteCatalog.html#MapURLtoFile

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net


    ----- Original Message -----
    From: "Paul DuBois" <paul@kitebird.com>
    To: "DocBook Apps" <docbook-apps@lists.oasis-open.org>
    Sent: Wednesday, August 03, 2011 8:23 AM
    Subject: [docbook-apps] Modify xsl:import value at runtime?


    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?
    ---------------------------------------------------------------------
    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] Modify xsl:import value at runtime?

    Posted 08-03-2011 18:44
    Hi Bob,

    Thanks, that sounds like it might be what I want. I'll give it a shot.

    On Aug 3, 2011, at 12:05 PM, Bob Stayton wrote:

    > Hi Paul,
    > That is correct that the href in xsl:import cannot be specified with a param. But you can use a catalog file, and change the catalog file at runtime to point to a different stylesheet version. These two references can get you started:
    >
    > http://www.sagehill.net/docbookxsl/CustomMethods.html#CatsWithCust
    > http://www.sagehill.net/docbookxsl/WriteCatalog.html#MapURLtoFile
    >
    > Bob Stayton
    > Sagehill Enterprises
    > bobs@sagehill.net
    >
    >
    > ----- Original Message ----- From: "Paul DuBois" <paul@kitebird.com>
    > To: "DocBook Apps" <docbook-apps@lists.oasis-open.org>
    > Sent: Wednesday, August 03, 2011 8:23 AM
    > Subject: [docbook-apps] Modify xsl:import value at runtime?
    >
    >
    > 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?
    > ---------------------------------------------------------------------
    > 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
    >