docbook-apps

Assigning Default Role Values to Elements

  • 1.  Assigning Default Role Values to Elements

    Posted 10-31-2006 22:06
    docbook-rng 5.0b9 xsl-1.71.1 saxon-6.5.5 oxygen-7.2 (eclipse-3.2.1
    plugin)



    First, located a code fragment from Bob Stayton's excellent book to
    generate bare HTML content (remove the , , and tags,
    as well as the template calls that fill the element and generate
    the header and footer). In the enterprise this is a major issue. Output
    will be Internet-specific. Enterprise Intranet Portal HTML and FO (PDF)
    will continue to utilize out-of-the-box DocBook XSL with just a few
    customizations.



    I must now assign default role values to numerous elements to match the
    enterprise's HTML CSS class selectors. Can someone post a stylesheet
    customization example; elements include emphasis, emphasis role=strong,
    chapter, sect1-5, entry (thead), entry (tbody), entry (entrytbl tbody),
    etc. *.propagates.style stringparms will all be set to 1.



    Combined with bare HTML content generation, this customization will
    result in the organization's default DocBook stylesheet for Internet
    publication.



    Assistance would be greatly appreciated.



    Ray