[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook] docbook.xsl -- xsl help needed!
On Wed, Apr 23, 2003 at 10:54:41AM +0800, damar@netvigator.com wrote: > Hi, > > I have documents in docbook xml format that I would like to convert into > HTML, using docbook.xsl. My requirement is simple, and they are: > > (1) <html tag should have the id attribute with the value to be sent > as parameter during conversion <html id=$parameterValue> You can pass a parameter value with xsltproc using an option: --stringparam myparam "myvalue" In your template, use: <html id="{$myparam}"> > (2) Whole content of the page should be in one table. > (3) I have to remove the horizontal line at the top of the page, so that > title of the page starts right from the top, leaving no space. I'm not sure which horizontal line this is. I suspect it is the title page separator. In the stylesheet file html/titlepage.templates.xsl there are templates like this: xsl:template name="article.titlepage.separator"><hr/> </xsl:template> If you copy the one for your root element type (article, book, etc.) to your customization file, and remove the "<hr/>", then the horizontal rule will not be output. -- Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 The SCO Group fax: (831) 429-1887 email: bobs@sco.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]