> -----Original Message-----
> From: Trevor Harmon
>
> The stylesheets I'm working on are part of a framework [1], and the
> idea is that the user of the framework never needs to look at the
> stylesheets, just use them via the Ant script I provide. And I
> certainly don't want users to have to create customization layers,
> especially after seeing how complicated things get when supporting
> both FO and HTML [2]. All I want is for the user to create a single
> XSL file containing whatever parameters and attribute-sets he needs,
> then my customization layer(s) in the framework would simply import
> that file.
>
> That would work great except for one problem: The user might place
> the file anywhere, so I can't hard-code its location into my
> customization layer. But the <xsl:import> command has to be hard-
> coded [3]!
Have you looked into XML catalogs? They allow you to use a generic URI in a
stylesheet's <xsl:import> and have a catalog resolver remap the URI to a
local path at runtime. See
http://wiki.docbook.org/topic/DocBookAndXmlCatalogs
/MJ