This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] Removing header navigation from TOC only


I can't duplicate those errors.  I took your customization file, changed the
path to html/chunk.xsl to match my system, and it works fine without errors.
Have any of the files in the original distribution been changed?

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net


----- Original Message ----- 
From: "David Cannings" <lists@edeca.net>
To: <docbook-apps@lists.oasis-open.org>
Sent: Friday, May 07, 2004 3:50 AM
Subject: Re: [docbook-apps] Removing header navigation from TOC only


> On Friday 07 May 2004 09:54, Bob Stayton wrote:
> [..]
> > I don't know of a way to remove that first nav header using parameters
> > alone.  However, the included customization of the template named
> > 'chunk-element-content' will do it.  If you don't know how to create a
> > stylesheet customization, see this reference:
>
> Thanks for your reply.  I've used your guide extensively and it's been an
> invaluable resource so far.
>
> I've tried the customization you suggested, wrapping it in:
>
> <?xml version='1.0' encoding="ISO-8859-1" ?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> version="1.0">
> <xsl:import href="html/chunk.xsl"/>
> ...
> </xsl:stylesheet>
>
> I had to provide the encoding or xsltproc got upset with me.  I now get a
> few odd errors, probably because I've import'ed the wrong xsl or I'm not
> using it right.  The first regards the call to the body.attributes
> template, xsltproc tells me:
>
> "runtime error: file docbook/html/docbook.xsl line 106 element attribute
> xsl:attribute : node already has children"
>
> This appears to be where docbook.xsl fills up that with attributes such as
> text colour, etc.  The other errors I get are simply:
>
> "xsl:call-template: misplaced text element"
>
> I must be doing something quite simple wrong, I call xsltproc like so:
>
> xsltproc --stringparam suppress.header.navigation 1 --stringparam
> admon.style 'margin-left: 10px;' --stringparam use.id.as.filename 1
> --stringparam admon.graphics 1 --stringparam
> admon.graphics.extension .png docbook/Chunked.xsl
>
> Obviously these --stringparams will move inside my customisation layer
> once I've got it working.  Am I importing the wrong file in my
> customization layer?  I do get correct output (albiet with a space above
> the header/title on pages, that can be fixed however) but I am wondering
> what I need to do to get rid of the errors.
>
> Thanks,
>
> David
>
> To unsubscribe from this list, send a post to
docbook-apps-unsubscribe@lists.oasis-open.org, or visit
http://www.oasis-open.org/mlmanage/.
>
>
>


To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]