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] | [List Home]


Subject: [docbook-apps] why doesn't DB have an element for context breaks?


Thanks for the reply. But your solution doesn't meet my needs exactly. It assumes that content has been broken down into sections, but I'm talking about basically unstructured content where the break occurs between arbitrary paragraphs within a chapter. 

I realize that docbook doesn't have to slavishly follow HTML5's content model, and it's certainly not hard to  to accomplish what I want through css classes alone. I was more curious why such an element was never introduced. 

Robert 




*************************************************************

Docbook templates could use a lot of improvements, not just more
features but also refactoring for easier customization. Here's how I've
solved the same problem. I've added a small template which will generate
a separator at the beginning of every section with no title:

<xsl:template match="d:section|d:sect1|d:sect2|d:sect3|d:sect4|d:sect5">
  <xsl:if test="not(d:title|d:info/d:title)">
    <div class="nameless-section-sep">
      <xsl:text>*&#8195;*&#8195;*</xsl:text>
    </div>
  </xsl:if>
  <xsl:apply-imports/>
</xsl:template>

Don't forget to set appropriate margins and text centering in your CSS
style sheet and then simply wrap the text following the desired
narrative break in the <section> tag.

Regards,
Martin Doucha

--
Robert Nagle
22118 FINCASTLE DR KATY TX 77450-1727
(Cell) 832-251-7522; (Skype) idiotprogrammer;  Carbon Neutral Since Jan 2010



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