[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] How to specify an attribute-set?
On Dec 29, 2006, at 4:48 PM, Thomas Schraitle wrote: > I am not very familiar with Ant but as fas as I understood it, you > need a > customization layer (see [1,2]). Simply said, you create a XSLT > stylesheet, import the original DocBook stylesheet, move your > parameters > from your Ant task to the customization layer and add your attribute > sets. > > Delete all <param> in your Ant task and use your customized stylesheet > instead the original one. Hope it's clear from this rough > description. :) Okay, I finally understand. Seeing Example 8.1 was the trick. There's a snag, though. 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]! What about doing a simple XML include [4]? Can that be parameterized? Or should I try generating the framework's customization layer on-the- fly, as Michael Kay suggests [3]? Thanks, Trevor [1] http://hr-xsl.sourceforge.net/ [2] http://www.sagehill.net/docbookxsl/ CustomMethods.html#CustomizingBoth [3] http://sourceware.org/ml/xsl-list/2002-05/msg01525.html [4] http://xml.silmaril.ie/authors/includes/
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]