473,803 Members | 2,807 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Docbook: generic technical document published for multiple clients

Hi,

Our company provides ASP services to multiple government agencies. These
agencies in turn provide our ASP services to the general public through
their web portals. As part of our service we need to provide end-user
documentation for the general public to use our ASP tools, providing
really simple to understand step-by-step instruction with lots and lots
of picture examples.

As part of my project to create this documentation, I managed to stumble
across Docbook, and it looks like a great way for us to maintain our end-
user docs.

My last remaining obstacle to overcome however is this:

We have several different government agencies as clients. Each agency
would like to have the end-user documentation customized to refer to
their agency specifically. Example: if both the City of Anaheim City
Clerk's office is our client and the Santa Clara County Registrar of
Voters is also our client, then my documentation would need to change
from this

"For more information, contact the City Clerk's office at 909-555-1212
during our normal business hours from 8AM to 5PM"

to

"For more information, contact the Registrar of Voter's office at 408-
555-1212 during our normal business hours from 9AM to 5PM"

For the vast majority of the documentation, the content of the document
will be identical, but for small sections, I will need to substitute
content specific to a particular government agency.

I have considered building a XSL stylesheet that does nothing more than
taking a single "master" docbook instance, and producing subsidiary
output docbook instances, one for each of our agency clients, then using
the "normal Docbook" html and PDF output stylesheets to generate the
final output(s) for each agency.

Does this sound reasonable? Is there some other more obvious way to
customize docbook documents? Is there a way to use replaceable
"parameters " within a docbook instance? This is where my lack of XSL
knowledge really hurts...

Any advice would be appreciated.

Best Regards,

David Montgomery
Jul 20 '05 #1
1 1723
David Montgomery wrote:
Hi,

Our company provides ASP services to multiple government agencies. These
agencies in turn provide our ASP services to the general public through
their web portals. As part of our service we need to provide end-user
documentation for the general public to use our ASP tools, providing
really simple to understand step-by-step instruction with lots and lots
of picture examples.

As part of my project to create this documentation, I managed to stumble
across Docbook, and it looks like a great way for us to maintain our end-
user docs.

My last remaining obstacle to overcome however is this:

We have several different government agencies as clients. Each agency
would like to have the end-user documentation customized to refer to
their agency specifically. Example: if both the City of Anaheim City
Clerk's office is our client and the Santa Clara County Registrar of
Voters is also our client, then my documentation would need to change
from this

"For more information, contact the City Clerk's office at 909-555-1212
during our normal business hours from 8AM to 5PM"

to

"For more information, contact the Registrar of Voter's office at 408-
555-1212 during our normal business hours from 9AM to 5PM"

For the vast majority of the documentation, the content of the document
will be identical, but for small sections, I will need to substitute
content specific to a particular government agency.
These are known as "effectivities" , and are usually handled in DocBook
with the attributes arch, condition, conformance, os, revision, security,
userlevel, and vendor. You can add your own if you need, making a
declaration in the local.effectivi ty.attrib parameter entity, eg

<?xml version="1.0"?>
<!DOCTYPE article SYSTEM "/dtds/docbook/docbookx.dtd" [
<!ENTITY % local.effectivi ty.attrib "agency ENTITIES #IMPLIED">
<!NOTATION text SYSTEM "plaintext" >
<!ENTITY anaheim SYSTEM "ana.txt" NDATA text>
<!ENTITY santa-clara SYSTEM "sc.txt" NDATA text>
]>
<article>
<para agency="anaheim santa-clara"></para>
</article>

Making the values ENTITIES ensures (by validation) that only predefined
values can be used.

Your XSLT stylesheet can now access these values in processing, and
make suitable variations to the output.
I have considered building a XSL stylesheet that does nothing more than
taking a single "master" docbook instance, and producing subsidiary
output docbook instances, one for each of our agency clients, then using
the "normal Docbook" html and PDF output stylesheets to generate the
final output(s) for each agency.


The above method automates the process and lets you use a single XSL[T]
stylesheet for any of the document types.

///Peter
--
"The cat in the box is both a wave and a particle"
-- Terry Pratchett, introducing quantum physics in _The Authentic Cat_
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2686
by: David Winter | last post by:
(Sorry - couldn't find a generic DocBook NG - I hope this is close enough.) I'm considering moving my documentation and translation business - which is currently done in proprietary formats such as FrameMaker, Word and XPress - to a system centered around DocBook. I'm currently reading "DocBook - The Definitive Guide", but I'll need a few answers ASAP ... So maybe a kind soul could give me at least a few hints.
3
2727
by: Dr. Laurence Leff | last post by:
I am having trouble doing the basics with xmlto on Redhat to convert DocBook XML into the various files. I believe the problem is the first line on the files: Here is starter file (notes.xml): <!DOCTYPE Book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"> <!ENTITY chap1 SYSTEM "chap1.xml"> <Book><title>CS310 notes</title></BOOK>
3
4070
by: ZJT | last post by:
What are the ways and corresponding tools to transform a docbook document to a pdf document? Thanks a lot!
0
1383
by: b | last post by:
When I create chm with docbook I have most of the pages on one file. So, when I search for "Linux" page begins with "Sample HTML" .... I get the page with several pages in one. Can this be avoided? Can every page (copyright, disclaimer, credits) be on separate pages? Also when viewing chm "Sample xml" text is in the same page as "introduction", "copyright" ... here is xml: Sample-HOWTO.xml
2
1736
by: Yarco | last post by:
I'm learning for docbook under win32. I download: openjade-1_3_1-2-bin docbook-xml-4.4 docbook-dsssl-1.79 ldp.dsl And then copy all openjade bin\ to win32 system\, and then create a directory share\ under my workhome. Copy openjade-dsssl, docbook-xml-4.4, docbook-dsssl-1.79 to share\. ldp.dsl into docbook-dsssl-1.79\html\.
7
8106
by: mike p. | last post by:
I have a docbook xml file, and am using standard docbook 1.61.3 xsl stylesheets to do xhtml transform. Transform works fine when using MSXML. When I try to do the following using asp.net 1.1: private void Page_Load(object sender, System.EventArgs e) { // load content XslTransform trans = new XslTransform();
3
2158
by: Otmar Ganahl | last post by:
Hi! In my application I transform a docbook file to a html view using the webcontrol "Xml" (with a xsl).It works fine, except the using of the tag "fileref" in the docbook-file will cause an exception: _ctl1_DesktopThreePanes1_ThreePanes__ctl3_xml1: Failed! Object reference not set to an instance of an object. (The IE6.0 xml-parser transform the docbook file
1
2687
by: Will Parsons | last post by:
I am trying to get started with using Docbook/xml using free tools and am stymied in generating printable documentation from even the simplest source. I have attempted to generate a PDF using xmlto (which I guess is a shell interface to xsltproc) for the docbook source on a variety of platforms: Debian GNU/Linux stable, Gentoo GNU/Linux, FreeBSD, and Cygwin. In no case have I been successful, and the error messages are certainly not...
2
3351
by: Joseph Kesselman | last post by:
Since the recent "Docbook on Windows" question brought this up... I did a bit of checking on the current status of these schemas, what they're intended for and how they interrelate. IBM's Robert Weir reports that there have been "some discussions in OASIS, between the ODF, DocBook and DITA TC's to come up with a positioning and interop story involving these three standards, with the intent of giving a demo at an OASIS symposium next...
0
9703
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10550
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10317
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10295
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9125
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5501
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5633
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4275
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2972
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.