maurizio codogno wrote: > I am trying to tweak a DocBook stylesheet. > The quick and dirty method (i.e., editing > xxe-config:docbook/xsl/html/block.xsl ) > works, but I would like to do something cleaner. > In my .xxe config file I have the following section: > > =-=-=-=-=-= > <transform stylesheet="xsl/html/chunk.xsl" > file="__doc.xml" to="__doc.html" > > [...] lot of parameters > </transform> > =-=-=-=-=-= > > and the local stylesheet just calls the main one. > > =-=-=-=-=-= > <?xml version="1.0" encoding="US-ASCII"?> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:exsl="http://exslt.org/common" > xmlns="http://www.w3.org/1999/xhtml" version="1.0" > exclude-result-prefixes="exsl"> > > <xsl:import href="xxe-config:docbook/xsl/html/chunk.xsl"/> > > </xsl:stylesheet> > =-=-=-=-=-= > > I naively thought that it was sufficient to add the (modified) section > <xsl:template match="blockquote"> > [...] > </xsl:template> > > after the import, but XMLmind complains. Should I copy all files (well, > actually > docbook.xsl and block.xsl) to my userdir, or there is a simpler way to do > this?
I forgot to say that what's clean in the approach described in my previous email is that *you don't need to redefine process commands* such as docb.toHTML, docb.toPS, etc, just to be able to customize the XSLT style sheets. Sample mydocbook.xxe: --- <?xml version='1.0' encoding='ISO-8859-1'?> <configuration name="DocBook" xmlns="http://www.xmlmind.com/xmleditor/schema/configuration" xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration"> <include location="xxe-config:docbook/docbook.xxe"/> <property name="docb.toHTML.transform" url="true">mydocbook.xsl</property> <parameterGroup name="docb.toHTML.transformParameters"> <parameter name="callout.graphics">0</parameter> </parameterGroup> </configuration> ---

