docbook-apps

  • 1.  FOP 0.93 Span="inherit" warning

    Posted 04-25-2007 22:46
    I've been using DocBook 4.5, XSL 1.72.0 and FOP 0.93 on Windows and
    noticed that whenever I run FOP on my DocBook source, I get the
    following:

    WARNING: span="inherit" on fo:block, but no explicit value found on
    the parent FO.

    Here's a simple example that demonstrates the warning:

    "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
    <book>
    <bookinfo>

    <author><firstname>Jane</firstname><surname>Doe</surname></author>
    <copyright><year>1998</year><holder>Jane Doe</holder></copyright>
    </bookinfo>
    <chapter id="chapterone">

    <sect1 id="sectionone">

    <para>
    Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In
    tortor nibh, facilisis ac, consectetuer eget, malesuada
    molestie, augue. Etiam non nibh eget elit tincidunt commodo.
    </para>
    </sect1>
    </chapter>
    <index id="index"/>
    </book>

    Run the two commands:
    xsltproc --output testbook.fo pdfdoc.xsl testbook.xml
    fop.bat -fo testbook.fo -pdf testbook.pdf

    and you see the Warning output.

    The warning doesn't seem to be serious and I am not sure if it is an
    issue with the FO stylesheets or with FOP. Is there a good way to turn
    off the warning?

    Thanks,
    tgm



  • 2.  Re: [docbook-apps] FOP 0.93 Span="inherit" warning

    Posted 04-25-2007 23:13
    Hi,

    I'm not sure that this is really anything to worry about. I just checked
    the XSL spec out of curiosity, and it doesn't seem to say anything that
    indicates it is improper to use the "inherit" keyword on the property of an
    FO object when its parent doesn't have the same property explicitly set.

    5.9.10.1 inherit
    The property takes the same computed value as the property for the
    formatting object's parent object.

    That's all it really says. Therefore, I assume that this is just a warning
    that FOP generates, not necessarily indicating that the FO produced by the
    DocBook XSL stylesheet is illegal.

    If anyone believes otherwise, please correct me.

    Colin

    On 4/25/07, T.G. Mutato <throw6617@gmail.com> wrote:
    >
    > I've been using DocBook 4.5, XSL 1.72.0 and FOP 0.93 on Windows and
    > noticed that whenever I run FOP on my DocBook source, I get the
    > following:
    >
    > WARNING: span="inherit" on fo:block, but no explicit value found on
    > the parent FO.
    >
    > Here's a simple example that demonstrates the warning:
    >
    > > "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
    > <book>
    > <bookinfo>
    >
    > <author><firstname>Jane</firstname><surname>Doe</surname></author>
    > <copyright><year>1998</year><holder>Jane Doe</holder></copyright>
    > </bookinfo>
    > <chapter id="chapterone">
    >
    > <sect1 id="sectionone">
    >
    > <para>
    > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In
    > tortor nibh, facilisis ac, consectetuer eget, malesuada
    > molestie, augue. Etiam non nibh eget elit tincidunt commodo.
    > </para>
    > </sect1>
    > </chapter>
    > <index id="index"/>
    > </book>
    >
    > Run the two commands:
    > xsltproc --output testbook.fo pdfdoc.xsl testbook.xml
    > fop.bat -fo testbook.fo -pdf testbook.pdf
    >
    > and you see the Warning output.
    >
    > The warning doesn't seem to be serious and I am not sure if it is an
    > issue with the FO stylesheets or with FOP. Is there a good way to turn
    > off the warning?
    >
    > Thanks,
    > tgm
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >



  • 3.  Re: [docbook-apps] FOP 0.93 Span="inherit" warning

    Posted 04-26-2007 20:08
    I think your right Colin that it's nothing to worry about -- it's just
    an annoyance. Interestingly, I manually removed the span="inherit"
    from the fo file (it surrounds the Index title) -- the warning from
    FOP went away and the PDF file looked ok too.

    tgm

    On 4/25/07, Colin Shapiro <cmshapiro@gmail.com> wrote:
    > Hi,
    >
    > I'm not sure that this is really anything to worry about. I just checked
    > the XSL spec out of curiosity, and it doesn't seem to say anything that
    > indicates it is improper to use the "inherit" keyword on the property of an
    > FO object when its parent doesn't have the same property explicitly set.
    >
    > 5.9.10.1 inherit
    > The property takes the same computed value as the property for the
    > formatting object's parent object.
    >
    > That's all it really says. Therefore, I assume that this is just a warning
    > that FOP generates, not necessarily indicating that the FO produced by the
    > DocBook XSL stylesheet is illegal.
    >
    > If anyone believes otherwise, please correct me.
    >
    > Colin
    >
    >
    > On 4/25/07, T.G. Mutato <throw6617@gmail.com > wrote:
    > >
    > > I've been using DocBook 4.5, XSL 1.72.0 and FOP 0.93 on Windows and
    > > noticed that whenever I run FOP on my DocBook source, I get the
    > > following:
    > >
    > > WARNING: span="inherit" on fo:block, but no explicit value found on
    > > the parent FO.
    > >
    > > Here's a simple example that demonstrates the warning:
    > >
    > > > > "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
    > > <book>
    > > <bookinfo>
    > >
    > >
    > <author><firstname>Jane</firstname><surname>Doe</surname></author>
    > > <copyright><year>1998</year><holder>Jane
    > Doe</holder></copyright>
    > > </bookinfo>
    > > <chapter id="chapterone">
    > >
    > > <sect1 id="sectionone">
    > >
    > > <para>
    > > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In
    > > tortor nibh, facilisis ac, consectetuer eget, malesuada
    > > molestie, augue. Etiam non nibh eget elit tincidunt commodo.
    > > </para>
    > > </sect1>
    > > </chapter>
    > > <index id="index"/>
    > > </book>
    > >
    > > Run the two commands:
    > > xsltproc --output testbook.fo pdfdoc.xsl testbook.xml
    > > fop.bat -fo testbook.fo -pdf testbook.pdf
    > >
    > > and you see the Warning output.
    > >
    > > The warning doesn't seem to be serious and I am not sure if it is an
    > > issue with the FO stylesheets or with FOP. Is there a good way to turn
    > > off the warning?
    > >
    > > Thanks,
    > > tgm
    > >
    > >
    > ---------------------------------------------------------------------
    > > To unsubscribe, e-mail:
    > docbook-apps-unsubscribe@lists.oasis-open.org
    > > For additional commands, e-mail:
    > docbook-apps-help@lists.oasis-open.org
    > >
    > >
    >
    >



  • 4.  Re: [docbook-apps] FOP 0.93 Span="inherit" warning

    Posted 04-26-2007 20:38
    Yeah, the default value of span is "none" (
    http://www.w3.org/TR/2001/REC-xsl-20011015/slice7.html#span).

    So, by setting span="inherit" on a child object, you are effectively setting
    its span attribute to "none" as well.

    I think the FOP developers just designed FOP to output a warning whenever an
    "inherit" value is encountered that isn't inheriting an explicitly set
    property, even though it is still inheriting the default value as it
    should. Such a warning could be useful for debugging stylesheets.

    Colin

    On 4/26/07, T.G. Mutato <throw6617@gmail.com> wrote:
    >
    > I think your right Colin that it's nothing to worry about -- it's just
    > an annoyance. Interestingly, I manually removed the span="inherit"
    > from the fo file (it surrounds the Index title) -- the warning from
    > FOP went away and the PDF file looked ok too.
    >
    > tgm
    >
    > On 4/25/07, Colin Shapiro <cmshapiro@gmail.com> wrote:
    > > Hi,
    > >
    > > I'm not sure that this is really anything to worry about. I just
    > checked
    > > the XSL spec out of curiosity, and it doesn't seem to say anything that
    > > indicates it is improper to use the "inherit" keyword on the property of
    > an
    > > FO object when its parent doesn't have the same property explicitly set.
    > >
    > > 5.9.10.1 inherit
    > > The property takes the same computed value as the property for the
    > > formatting object's parent object.
    > >
    > > That's all it really says. Therefore, I assume that this is just a
    > warning
    > > that FOP generates, not necessarily indicating that the FO produced by
    > the
    > > DocBook XSL stylesheet is illegal.
    > >
    > > If anyone believes otherwise, please correct me.
    > >
    > > Colin
    > >
    > >
    > > On 4/25/07, T.G. Mutato <throw6617@gmail.com > wrote:
    > > >
    > > > I've been using DocBook 4.5, XSL 1.72.0 and FOP 0.93 on Windows and
    > > > noticed that whenever I run FOP on my DocBook source, I get the
    > > > following:
    > > >
    > > > WARNING: span="inherit" on fo:block, but no explicit value found on
    > > > the parent FO.
    > > >
    > > > Here's a simple example that demonstrates the warning:
    > > >
    > > > > > > "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
    > > > <book>
    > > > <bookinfo>
    > > >
    > > >
    > > <author><firstname>Jane</firstname><surname>Doe</surname></author>
    > > > <copyright><year>1998</year><holder>Jane
    > > Doe</holder></copyright>
    > > > </bookinfo>
    > > > <chapter id="chapterone">
    > > >
    > > > <sect1 id="sectionone">
    > > >
    > > > <para>
    > > > Lorem ipsum dolor sit amet, consectetuer adipiscing elit. In
    > > > tortor nibh, facilisis ac, consectetuer eget, malesuada
    > > > molestie, augue. Etiam non nibh eget elit tincidunt commodo.
    > > > </para>
    > > > </sect1>
    > > > </chapter>
    > > > <index id="index"/>
    > > > </book>
    > > >
    > > > Run the two commands:
    > > > xsltproc --output testbook.fo pdfdoc.xsl testbook.xml
    > > > fop.bat -fo testbook.fo -pdf testbook.pdf
    > > >
    > > > and you see the Warning output.
    > > >
    > > > The warning doesn't seem to be serious and I am not sure if it is an
    > > > issue with the FO stylesheets or with FOP. Is there a good way to turn
    > > > off the warning?
    > > >
    > > > Thanks,
    > > > tgm
    > > >
    > > >
    > > ---------------------------------------------------------------------
    > > > To unsubscribe, e-mail:
    > > docbook-apps-unsubscribe@lists.oasis-open.org
    > > > For additional commands, e-mail:
    > > docbook-apps-help@lists.oasis-open.org
    > > >
    > > >
    > >
    > >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >
    >