Next in thread → Next in month →

Re: [docbook-apps] Option to select an import statement

From
Richard Hamilton <>
Date
2011-12-07T18:23:17+00:00
ID
Thread
Re: [docbook-apps] Option to select an import statement
One option is to use XML catalogs.

Bob Stayton's book describes how to set up catalogs:

http://www.sagehill.net/docbookxsl/Catalogs.html

You could also create two "shell" stylesheets that do nothing but import the files you need (with your customization imported after the standard file). Then, point the xsl processor at the one you want. That way you don't need two copies of your customization.

BTW, I have only done this second method once, so there may be some potential glitches depending on what you're trying to do, but it's worth a try.

HTH.

Richard Hamilton


On Dec 7, 2011, at 12:16 AM, Xmplar wrote:

> In a customised stylesheet, I have two options to import a chunking stylesheet for HTML chunking:
> 
>     <xsl:import href="file:///c:/DocBook_xslns1-76/xhtml-1_1/onechunk.xsl" />
>     <xsl:import href="file:///c:/DocBook_xslns1-76/xhtml-1_1/chunkfast.xsl" />
> 
> How can I give users the option of selecting one import statement or the other, by using some sort of selection variable?
> I know I can comment out either import statement, but is there a slicker way to do this with a simple "1" or "0" selection? 
> 
> -- 
> Dave Gardiner
Next in thread → Next in month →