forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Wheller <>
Subject Re: Help with sitemap.xmap - Docbook Plugin
Date Fri, 29 Oct 2004 14:22:35 GMT
On Friday 29 October 2004 16:12, Ross Gardler wrote:
> Sean Wheller wrote:
> > On Thursday 28 October 2004 22:39, Sean Wheller wrote:
> >>>Jut try it, if it doesn't behave the way you expect then let me know
> >>>what is happening, what you want to happen and attach a zip of your
> >>>plugin to a bug report. I'll work with you to solve any problems you
> >>>come across.
> >>
> >>Yep. Playing nicely and learning from it. :-)
> >
> > Hi,
> >
> > OK I have some problem getting the docbook transformation to XHTML to
> > show in the body of the aggregated content. I get all forrest trimmings
> > but blank body. The Docbook Plugin shown here has been stripped down to
> > on Docbook V4.3 (I figure get one working and the rest will come.)
> I think I was bitten by this the other day, but fixed it the "cheating"
> way as I only had one file, I suppose I should have posted a bug report
> - sorry.
> The html2document.xsl stylesheet assumes that there will be an H1 at the
> start of all HTML documents. Obviously this is not the case. I worked
> around it by putting an H1 at the start of my file, which was a fine
> quick fix for me (and a good quick way of testing if this is your
> problem too).
> See the following in html2document.xsl
> <!--infer structure from sibling headings-->
>      <xsl:template match="body">
>         <body>
>           <xsl:for-each select="h1">
>             <section>
>               <xsl:if test="a/@name">
>                 <xsl:attribute name="id"><xsl:value-of
> select="a/@name"/></xsl:attribute>
>               </xsl:if>

Why do we want to transform to document?

Perhaps you misunderstood. We want to take XHMTL and add that to the 
aggregation and finally get a web site.
Docbook XML -> XHTML1.0 

There should be no use for html2document.xsl or any other xsl defined in 

Sean Wheller
Technical Author

View raw message