OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: 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:


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.


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

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]