[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Modify xsl:import value at runtime?
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: <?xml version="1.0" encoding="utf-8"?> <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
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]