Coder Social home page Coder Social logo

lo48576 / dbcookbook Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tomschr/dbcookbook

0.0 1.0 0.0 35.89 MB

Cookbook for DocBook and DocBook XSL stylesheets

Home Page: http://doccookbook.sf.net/

License: Other

Python 0.24% XProc 0.48% Shell 0.36% XSLT 85.36% CSS 1.48% Perl 0.12% Makefile 0.06% Ruby 0.09% JavaScript 7.84% Java 0.15% HTML 3.61% NewLisp 0.03% Perl 6 0.03% SystemVerilog 0.04% Batchfile 0.01% XQuery 0.10%

dbcookbook's Introduction

Welcome to "The DoCookBook"

image

Info

See https://github.com/tomschr/dbcookbook

Author

Thomas Schraitle <tom_schr AT web DOT de>

Description

Cookbook for DocBook and DocBook XSL stylesheets

HTML

http://doccookbook.sourceforge.net

License

The book is licensed as Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Germany License (CC by-nc-sa 3.0 DE) See http://creativecommons.org/licenses/by-nc-sa/3.0/de/

Mission

The DoCookBook project aims to create an open source book about DocBook and the DocBook XSL stylesheets written in a cookbook-style manner and released under a Creative Commons license.

Concept

This book is written in a "cookbook" style. The book contains "topics" which are divided into a problem, the corresponding solution, some discussions, and optional related information. It is very easy just to go to the table of contents and see if there is something useful that fits to your problem. Solutions are usually written in a procedural style which contains several steps.

Target Group

It is assumed you have a decent knowledge about XML and DocBook. It doesn't hurt if you know CSS and XSLT. As such, it is aimed more for DocBook developers than writers.

Structure of the Book and Organization

The main file is "en/xml/DocBook-Cookbook.xml". It contains xi:include elements which refers to chapters, appendices and other second level elements.

# Struture of Book with Main Chapters 
en/xml/DocBook-Cookbook.xml
|
+-- 5.1/        # (1)
|
+-- common/     # (2)
|
+-- db/         # (3)
|
+-- epub/       # (4)
| 
+-- fo/         # (5)
|
+-- html/       # (6)
|
+--- structure/ # (7)
(1) Contains the DocBook Schema and possible customizations
(2) Contains topics to common customizations
(3) Contains topics to DocBook's markup
(4) Planned: will contain customizations to EPUB output format
(5) Contains topics to FO customizations
(6) Contains topics to HTML, XHTML, and other customizations based on HTML
(7) Contains topics how to manipulate DocBook's structure

Some topics contain directories which stores XSLT, XML, or other example files. In some cases these are incorporated into the XML source, sometimes they are just lying around for testing purposes.

Each topic is a self-contained matter of a specific problem and its solution with discussion. Use the skeleton file "en/xml/topic.empty.xml" as a starting point. It contains the basic structure and you just need to add the flesh of your topic.

Contribute

Do you miss anything? Have you discovered an error? Have an idea about how to improve the book? Great! If you want to contribute to the book, you can do it in different ways:

  • Write me a mail to <tom_schr (AT) web.de> and send me your comments
  • Extend the tickets (Ideas for New Topics) at http://github/tomschr/dbcookbook/issues
  • Clone this repository and send me patches

This repository uses git flow from https://github.com/petervanderdoes/gitflow-avh see Vincent Driessen Git branching model

How to build the book

Currently, building the book works but it's not as nice as I would like to see it.

  • Building chunked HTML: use ./bin/dbsaxon
  • Building single HTML: use bin/dbsaxon9

At the moment, it is a mixture of XSLT 1.0 and XSLT 2.0 stylesheets. To avoid maintaing two different CSS files (one for the XSLT 1.0 output, the other for 2.0), the HTML files coming from XSLT 1.0 are "cleaned up". This cleanup step makes the structure compatible to the XSLT 2.0 output.

How you can help

  • Find typos, grammar problems, inconsistencies, or plain errors
  • Send me patches
  • Write your own topic

dbcookbook's People

Contributors

der-schmelle2 avatar stefanhinz avatar tomschr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.