OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Subject: Re: DOCBOOK-APPS: gentext customization: remove "Abstract" and"Table of Contents" in HTML


Bob,

Thanks for your mail. Unfortunately, this customization seems to open up 
a can of worms. Processing my sdocbook file via the xhtml stylesheets 
using Instant Saxon, there are the comparative results: no customization 
versus customized

Before:
  <div class="abstract">
    <p class="title"><b>Abstract</b></p>
    <p>Some document projects successfully completed ...</p>
    <p>Now, the challenge is to integrate...</p>
  </div>

After:
<div xmlns="" xmlns:fo="http://www.w3.org/1999/XSL/Format"; class="abstract">
<p xmlns="http://www.w3.org/1999/xhtml";>Some document projects 
successfully completed...</p>
<p xmlns="http://www.w3.org/1999/xhtml";>Now, the challenge is to 
integrate...</p>
</div>

Here is the result when I run the file against the same customized file 
using the html rather than the xhtml stylesheets:
<div xmlns:fo="http://www.w3.org/1999/XSL/Format"; class="abstract">
  <p>Some document projects successfully completed...</p>
  <p>Now, the challenge is to integrate</p>
</div>

I'm afraid I can't even begin to understand what's going on here. If you 
think it may be my configuration, I will try anything you suggest.

In general, I wonder if a more reasonable approach to this wouldn't be 
for the style sheets to leave out the <p class="title"><br></p> when the 
gentext title string isare set to null?
Is the same thing done with other gentext items?
What are the implications for making this a generalized feature, I wonder?

Regards.              ...edN


Bob Stayton wrote:
> On Fri, Feb 07, 2003 at 10:41:29AM -0500, ed nixon wrote:
> 
>>I've gotten to the point where the Abstract generated text is removed 
>>and replaced with a <b/> in the <p> element. I did this using Bob's 
>>customization example at Sagehill.
>>
>>It would be preferable to eliminate the <b/> and surrounding <p 
>>class="title"> elements. Can you give me some pointers please?
> 
> 
> I think you need to create a customized template for
> handling abstract if you want to eliminate the title
> completely.  Here is the original in html/block.xsl:
> 
> <xsl:template match="abstract">
>   <div class="{name(.)}">
>     <xsl:call-template name="anchor"/>
>     <xsl:call-template name="formal.object.heading">
>       <xsl:with-param name="title">
>         <xsl:apply-templates select="." mode="title.markup">
>          <xsl:with-param name="allow-anchors" select="'1'"/>
>        </xsl:apply-templates>
>       </xsl:with-param>
>     </xsl:call-template>
>     <xsl:apply-templates/>
>   </div>
> </xsl:template>
> 
> It is the 'formal.object.heading' template that
> is outputing the <p><b> tags.
> This could be reduced to:
> 
> <xsl:template match="abstract">
>   <div class="{name(.)}">
>     <xsl:call-template name="anchor"/>
>     <xsl:apply-templates/>
>   </div>
> </xsl:template>
> 
>  
> 
>>I'd like to do the same with the "Table of Contents" gentext that 
>>appears at the top of xHTML output, but it's not obvious to me how I 
>>would do even suggested customization.
> 
> 
> That one should be controllable with the 'generate.toc'
> parameter now.  For example, change the default
> 'article  toc,title' to 'article  toc' to eliminate
> the Table of Contents title completely.
> 




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]


Powered by eList eXpress LLC