Next in thread → Next in month →

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

From
Paul DuBois <>
Date
2011-08-03T18:44:05+00:00
ID
Thread
Re: [docbook-apps] Modify xsl:import value at runtime?
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
> 
> 
> 
> ----- Original Message ----- From: "Paul DuBois" <>
> To: "DocBook Apps" <>
> 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: 
> For additional commands, e-mail: 
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
>
Next in thread → Next in month →