Subject: Re: [xsl] stylesheet expansion
From: "Colin Adams" <colinpauladams@xxxxxxxxxxxxxx>
Date: Tue, 11 Dec 2007 07:52:17 +0000
On 10/12/2007, Andrew Welch <andrew.j.welch@xxxxxxxxx> wrote: > As Colin has said, compiled stylesheets seem to be the only way, but > may be not what the OP was after. Did I really say ONLY? Well, whether or not I said it, I am going to disagree with myself, and Andrew, on this. Since a better way is to use OASIS XML catalogs. It is more portable than compiled transformations (not completely portable, of course - some processors won't support them). We added such a catalog to the FXSL distribution. So now it is possible to redistribute a tranformation that makes use of the FXSL library without having to worry about any configuration/editing, etc. We just use the formal URI for a given FXSL module, and the catalog (which the user installs on their system as part of the FXSL install) resolves this to the file on the local system completely automatically (if your processor is set up to use catalogs - ideally you use one such as xsltproc or Gestalt where this is built-in). I intend to do just this to provide some example modules of how to use the new powerful collections that I am currently implementing in Gestalt. They are so powerful that you need the power of FXSL to fully tame their power. Hopefuly I can con (oops, that you read persuade) Dmitre into actually doing the coding. > Ideally importable compiled "stylesheet modules" will be invented soon.... :) It may be ideal for you, but it won't solve the OP's problem at all. He will be in exactly the same situation as now.