Néstor Amigo Cairo | 4 Oct 2010 12:49

Custom numbering scheme for a DocBook document (legal style stylesheet)

Hello,

I'm using dblatex v. 0.2.12-4 (GNU/Linux Ubuntu Lucid 10.04 64bit).

===

I'm trying to number DocBook document in the 'legal' (lawyer) style, to
say:

1 Chapter one
 Article 1. Article one
 Article 2. Article two
2 Chapter two
 Article 3. Article three (*not* 'one' again)
 Article 4. Article four (*not* 'two' again)

===

To achieve that, I have modified a stylesheet, which can be found in:

/usr/share/xml/docbook/stylesheet/dblatex/xsl/sections.xsl

to be able to include it in a stylesheet (renamed as 'style.xsl'), that
I call style.css:

===
<?xml version="1.0"?>

  <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
(Continue reading)

Justus-bulk | 9 Oct 2010 12:42

Re: Announce: DocBook V5.1b2

Hi -

What would it take to move docbook-slides forward to DocBook 5,
including the namespace-stripping stylesheets (and one day hopefully
DB5-native XSLT2 stylesheets)?

The SVN appears to contain a 4-year-old initial step in this direction.
How functional is it?  I think I can maintain docbook-slides if nobody
else is more eager, but since I've never looked closely at DB5 so far
(for lack of slides support), I'd prefer to take over from an
operational starting point.  Norm?

Thanks,
Justus
Tim Arnold | 12 Oct 2010 21:33
Picon
Favicon

invalid doc, but why?

Hi,
I have the following V5.0 docbook document and any validator tells me that the inner <optional> element is invalid. But where does that info come from? All I can see from the xsd file is that a <phrase> is legal inside an <optional> and an <optional> is legal inside a <phrase>. 
 
Not questioning the validity, just trying to figure out where the rule is located.
thanks,
--Tim Arnold
 
         xml:id="test" version="5.0">
  <info><title>my title</title></info>
  <section>
    <info><title>my section</title></info>
    <para>
       <optional><phrase><optional>maybe</optional></phrase>
       </optional>
    </para>
  </section>
</chapter>
 
Barton Wright | 13 Oct 2010 05:50
Favicon

RE: invalid doc, but why?

Remember that the XSD version of the DocBook 5 schema is not normative. It does its best, but it can’t convey all the subtleties of the RELAX NG schema, and the RNG schema is the only one that’s normative.

 

My hazy understanding is that <phrase> has two lives in DB 5. In its day job, <phrase> is a taxpaying citizen whose full name is db.phrase, and it has rights and responsibilities. But there is another <phrase> who goes by db._phrase, and this is the wild one who goes out at night with a shadowy underground group that call themselves the nearly ubiquitous inlines.

 

When the RNG schema allows:

  <phrase>
      <optional>blue</optional>
   </phrase>

it is acknowledging <db.phrase> as a full citizen, and <optional> as a full citizen member of the Technical Inlines group. Everything’s on the up and up.

 

But when the RNG schema allows:

    <optional>

        <phrase>red</phrase>

    </optional>

it is only because <db._phrase> showed a fake ID at the door, and pretended to be ubiquitous. And in this context, it is ubiquitous enough.

 

However, when you (ahem) relax your standards and go all whatever on us, you start trying out such wildnesses as:

    <optional>

        <phrase>

            <optional>Our goal is world domination</optional>

        </phrase>

    </optional>

Well now. That’s when the RNG schema puts it badge back on and starts checking IDs and taking names. In the ensuing round-up, it discovers that <db._phrase> isn’t all that ubiquitous and isn’t always allowed in the <optional> door – especially not carrying that <optional> suitcase. Wait, is that suitcase ticking?

 

Don’t you wish you’d taken that blue pill now?

 

[Late night silliness aside, I would love to read an accurate and somewhat saner description of why some ubiquitous inlines aren’t always ubiquitous. The phrase “ubiquitous inlines” is dropped onto the page without definition or comment in the DB 5 TDG, and it is clearly a source of confusion. And yes, I did actually buy paper, PDF, and Kindle versions of the book from O’Reilly.]

 

 

From: Tim Arnold [mailto:Tim.Arnold <at> sas.com]
Sent: Tuesday, October 12, 2010 3:33 PM
To: docbook <at> lists.oasis-open.org
Subject: [docbook] invalid doc, but why?

 

Hi,

I have the following V5.0 docbook document and any validator tells me that the inner <optional> element is invalid. But where does that info come from? All I can see from the xsd file is that a <phrase> is legal inside an <optional> and an <optional> is legal inside a <phrase>. 

 

Not questioning the validity, just trying to figure out where the rule is located.

thanks,

--Tim Arnold

 

         xml:id="test" version="5.0">

  <info><title>my title</title></info>

  <section>

    <info><title>my section</title></info>

    <para>

       <optional><phrase><optional>maybe</optional></phrase>

       </optional>

    </para>

  </section>

</chapter>

 

chris snow | 13 Oct 2010 16:16
Picon

how to throw error if imagedata not found

Is it possible for an error to be thrown during processing if a file
referred to by imagedata is not found?

    <mediaobject>
      <imageobject>
        <imagedata fileref="../../images/coding-cycle.png"/>
      </imageobject>
    </mediaobject>

Many thanks,

Chris
Tim Arnold | 13 Oct 2010 16:55
Picon
Favicon

RE: invalid doc, but why?

Hi Barton,

That is one great explanation and gave me a laugh or two this morning. Thanks.    

 

I had always wondered what the deal was with those underscored elements in the documentation, figuring that it was important but not understanding how. It would be good to see more documentation on those.

 

In any case, I don't have many of these corner cases like optional:phrase:optional or option:phrase:inlineequation

So I'll take care of postprocessing these in a separate, somewhat messy, subroutine.

 

thanks for your fantastic explanation. friggin' phrase wildnesses!

 

--Tim Arnold

 

 

From: Barton Wright [mailto:bwright <at> streambase.com]
Sent: Tuesday, October 12, 2010 11:50 PM
To: Tim Arnold; docbook <at> lists.oasis-open.org
Subject: RE: invalid doc, but why?

 

Remember that the XSD version of the DocBook 5 schema is not normative. It does its best, but it can’t convey all the subtleties of the RELAX NG schema, and the RNG schema is the only one that’s normative.

 

My hazy understanding is that <phrase> has two lives in DB 5. In its day job, <phrase> is a taxpaying citizen whose full name is db.phrase, and it has rights and responsibilities. But there is another <phrase> who goes by db._phrase, and this is the wild one who goes out at night with a shadowy underground group that call themselves the nearly ubiquitous inlines.

 

When the RNG schema allows:

  <phrase>
      <optional>blue</optional>
   </phrase>

it is acknowledging <db.phrase> as a full citizen, and <optional> as a full citizen member of the Technical Inlines group. Everything’s on the up and up.

 

But when the RNG schema allows:

    <optional>

        <phrase>red</phrase>

    </optional>

it is only because <db._phrase> showed a fake ID at the door, and pretended to be ubiquitous. And in this context, it is ubiquitous enough.

 

However, when you (ahem) relax your standards and go all whatever on us, you start trying out such wildnesses as:

    <optional>

        <phrase>

            <optional>Our goal is world domination</optional>

        </phrase>

    </optional>

Well now. That’s when the RNG schema puts it badge back on and starts checking IDs and taking names. In the ensuing round-up, it discovers that <db._phrase> isn’t all that ubiquitous and isn’t always allowed in the <optional> door – especially not carrying that <optional> suitcase. Wait, is that suitcase ticking?

 

Don’t you wish you’d taken that blue pill now?

 

[Late night silliness aside, I would love to read an accurate and somewhat saner description of why some ubiquitous inlines aren’t always ubiquitous. The phrase “ubiquitous inlines” is dropped onto the page without definition or comment in the DB 5 TDG, and it is clearly a source of confusion. And yes, I did actually buy paper, PDF, and Kindle versions of the book from O’Reilly.]

 

 

From: Tim Arnold [mailto:Tim.Arnold <at> sas.com]
Sent: Tuesday, October 12, 2010 3:33 PM
To: docbook <at> lists.oasis-open.org
Subject: [docbook] invalid doc, but why?

 

Hi,

I have the following V5.0 docbook document and any validator tells me that the inner <optional> element is invalid. But where does that info come from? All I can see from the xsd file is that a <phrase> is legal inside an <optional> and an <optional> is legal inside a <phrase>. 

 

Not questioning the validity, just trying to figure out where the rule is located.

thanks,

--Tim Arnold

 

         xml:id="test" version="5.0">

  <info><title>my title</title></info>

  <section>

    <info><title>my section</title></info>

    <para>

       <optional><phrase><optional>maybe</optional></phrase>

       </optional>

    </para>

  </section>

</chapter>

 

Jim Campbell | 13 Oct 2010 18:27
Favicon

Re: how to throw error if imagedata not found

Hi there, Chris,

On Wed, Oct 13, 2010 at 9:16 AM, chris snow <chsnow123 <at> gmail.com> wrote:
Is it possible for an error to be thrown during processing if a file
referred to by imagedata is not found?

   <mediaobject>
     <imageobject>
       <imagedata fileref="../../images/coding-cycle.png"/>
     </imageobject>
   </mediaobject>

Many thanks,

Chris

It might not be exactly what you are looking for, but one option would be to include the image via an xinclude mechanism, and then include a xinclude fallback.  It might go something like this:
 
   <mediaobject>
     <imageobject>
       <xi:include fileref="../../images/coding-cycle.png">
         <xi:fallback>Image file is unavailable.</xi:fallback>
       </xi:include>
     </imageobject>
   </mediaobject>
 
You would need to use a DTD or schema (or at least a DTD fragment) that allows for use of xinclude.
 
I hope this helps,

Jim
Cramer, David W (David | 13 Oct 2010 18:42

RE: how to throw error if imagedata not found

Hi Chris,

Here’s what we do:

 

The build runs an xslt that produces a list of images used. Ant then checks to make sure all are the images available and kills with a useful error message the build if any are missing. To avoid an annoying build/fail/fix/repeat cycle, the error message shows all missing images rather than only listing the first missing image it finds.

 

I think to do something like this within the xslt would require that you write an extension/call out to java.

 

David

 

From: jwcampbell <at> gmail.com [mailto:jwcampbell <at> gmail.com] On Behalf Of Jim Campbell
Sent: Wednesday, October 13, 2010 11:27 AM
To: chris snow
Cc: docbook <at> lists.oasis-open.org
Subject: Re: [docbook] how to throw error if imagedata not found

 

Hi there, Chris,

On Wed, Oct 13, 2010 at 9:16 AM, chris snow <chsnow123 <at> gmail.com> wrote:

Is it possible for an error to be thrown during processing if a file
referred to by imagedata is not found?

   <mediaobject>
     <imageobject>
       <imagedata fileref="../../images/coding-cycle.png"/>
     </imageobject>
   </mediaobject>

Many thanks,

Chris

It might not be exactly what you are looking for, but one option would be to include the image via an xinclude mechanism, and then include a xinclude fallback.  It might go something like this:

 

   <mediaobject>
     <imageobject>

       <xi:include fileref="../../images/coding-cycle.png">
         <xi:fallback>Image file is unavailable.</xi:fallback>
       </xi:include>
     </imageobject>
   </mediaobject>

 

You would need to use a DTD or schema (or at least a DTD fragment) that allows for use of xinclude.

 

I hope this helps,


Jim

Bob Stayton | 19 Oct 2010 08:11

DocBook Technical Committee Meeting Agenda: 20 October 2010

DocBook Technical Committee Meeting Agenda: 20 October 2010
=============================================================

The DocBook Technical Committee will meet on Wednesday, 20 October 2010 at
01:00p EDT (10:00a PDT, 17:00GMT, 18:00BST, 19:00CEST, 02:00JST+,
022:30p India+) for 90 minutes.

Attendance at teleconferences is restricted to members
(and prospective members) of the committee.

This is the phone number for Wednesday's DocBook TC call:

Phone: +1-719-387-5556
 Code: 902213

The DocBook TC uses the #docbook IRC channel on
irc.freenode.org.  The IRC channel is used for exchanging
URIs, providing out-of-band comments, and other aspects
of the teleconference, so please join us there if at
all possible.

Agenda

1. Roll call
2. Accepting the minutes [1] of the previous meeting.
3. Next meeting: 17 November 2010
4. Review of the agenda.
5. Review of open action items

  a.  Norm to develop a proposal for maintaining the DocBook websites.

  b.  Larry and Nancy to render the current reltable example from
      Bob and Norm with the current assembly elements for
      comparison.

  c.  Nancy to send some example reltables to the tc-list.

  d.  Bob to write up a short policy statement about the use
      of the DocBook namespace.

  e.  Bob to respond to RFE 3035565.

  f.  Jirka to investigate transclusion-to-XInclude mapping.

6.  Publishing Subcommittee report.

7.  Online documentation for 5.0 *and* 5.1 (Bob).

8.  Reltables in modular DocBook.

9.  Transclusion in DocBook.

Please see Jirka's updated proposal and discussion thread. [2]

10.  Discussion of Larry's help example in assembly and  <at> type proposal. [3]

11.  Review of Requests for Enhancement

    To browse a specific RFE, enter the URL (on one line):

      http://sourceforge.net/tracker/index.php?func=detail&;
      group_id=21935&atid=384107&aid=XXXX

    RFEs to revisit for 6.0
      1907003  biblioid content model too broad  

    RFEs to be considered 
      1679665  Add better support for modular documentation  
      2820190  add a topic element  
      2820947  Ability to transclude text 
      2964576  disallow table in entry  
      3035565  Allow sections at any level  

      No new RFEs.

-----

[1] http://lists.oasis-open.org/archives/docbook-tc/201009/msg00010.html
[2] http://lists.oasis-open.org/archives/docbook-tc/201010/msg00001.html
[3] http://lists.oasis-open.org/archives/docbook-tc/201009/msg00007.html

Bob Stayton
Sagehill Enterprises
bobs <at> sagehill.net
George Cristian Bina | 20 Oct 2010 06:26
Favicon
Gravatar

Re: [docbook-apps] Re: DocBook Inquiries

Hi,

On 10/20/10 6:57 AM, Bob Stayton wrote:
> Hi Andrew,
> I'm not aware of any DocBook video tutorials. Perhaps others can chime
> in on this subject.

We have a number of video tutorials at
http://www.oxygenxml.com/videos.html
and a few of them are directly related to DocBook. They are also related 
with oXygen but you should expect similar support also in other tools:

http://www.oxygenxml.com/demo/DocBook_Editing_in_Author.html
http://www.oxygenxml.com/demo/DocBook_Profiling.html
http://www.oxygenxml.com/demo/DocBook_Customization.html

Best Regards,
George
--

-- 
George Cristian Bina
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com

Gmane