Re: customization stylesheet errors



Hear is a typical problem: we needed to change chunking code to make
titlepage a separate chunk. So we just copied appropriate parts of
chunk-common.xsl from version 1.45 of the stylesheets and edited them.
But when we tried to use the same file as customization layer on top of
1.48, we get the following error: 

runtime error: file cvs/gnome-docu/gdp/xsl/chunk-common2.xsl line 36
element choose
 unregistered variable chunk.sections

because the chunking code has changed, there is no longer a file
chunk-common, and the  the variable chunk.sections which was used in
1.45 (and in our customization layer) is no longer used. :(

I am not sure there is a simple solution to the problem (We can't ask
for new stylesheets to be using the same structure and variables as the
old ones...) but if Norm has any suggestions, that would be great. E.g.
maybe he can specify some subset of templates/variables which are
considered "stable" (at least, that their name is not going to
change)and thus safe to use in customization layer)? What we really need
to customize is the chunking code and titlepage stuff. 

Thanks!

Sasha

On Thu, 2002-02-14 at 17:54, Daniel Veillard wrote:
> On Thu, Feb 14, 2002 at 02:25:39PM -0500, Norman Walsh wrote:
> > / Daniel Veillard <veillard redhat com> was heard to say:
> > | [ Hi Norm, the 1.48 stylesheet broke Gnome XSLT customization layers.
> > |   Seems we need some information about what constitutes the "stable"
> > |   API part of those stylesheets, Daniel ]
> > 
> > Yeah. You've raised an issue I haven't tried to deal with. Something
> > needs to be done, but I'm not exactly sure what...suggestions welcome.
> 
>   I don't know the stylesheets well enough to get anything specific but:
>      - the list of global parameters
>      - a subset of the templates, which then can be safely overriden
>        knowing they will be called by normal processing. Examples
>        are for example the TOC build, the chunking template entry points
>        and probably one per-element template
> 
>   sorry for not being more specific, people from the Gnome doc list have
> probably very precise examples in mind :-)
> 





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]