docbook-apps

  • 1.  ...but no template matches.

    Posted 11-04-2007 01:21
    Hi everyone,

    I'm using the latest version of docbook-xsl. Why do I get the following
    warning?

    citebiblioid encountered in para, but no template matches.

    The result (with the fo stylesheet) is a document where the unprocessed
    <citebibliod> elements appear as they were in XML, in red.

    Thanks
    Kilian




  • 2.  Re: [docbook-apps] ...but no template matches.

    Posted 11-04-2007 10:13
    Hi,

    On Sonntag, 4. November 2007, Kilian wrote:
    >
    > I'm using the latest version of docbook-xsl. Why do I get the following
    > warning?
    >
    > citebiblioid encountered in para, but no template matches.
    >
    > The result (with the fo stylesheet) is a document where the unprocessed
    > <citebibliod> elements appear as they were in XML, in red.

    That should not happen. The message is the normal reaction when the
    stylesheets encounter an unknown element. However, in your case,
    citebiblioid is a valid element that *can* occur inside para (see [1,2]).
    Please answer the following questions:

    1. Did you validate your document?
    2. Which DocBook version do you use?
    3. Do you use the original stylesheets or a customization layer?


    Hope that gives you some idea,
    Tom


    ------ References
    [1] http://www.docbook.org/tdg5/en/html/citebiblioid.html
    [2] http://www.docbook.org/tdg/en/html/citebiblioid.html

    --
    Thomas Schraitle



  • 3.  Re: [docbook-apps] ...but no template matches.

    Posted 11-04-2007 18:43
    Hi,

    On Sonntag, 4. November 2007, Kilian wrote:

    > thanks a lot for you answer.
    >
    > Am Sonntag, den 04.11.2007, 11:12 +0100 schrieb Thomas Schraitle:
    > > That should not happen. The message is the normal reaction when the
    > > stylesheets encounter an unknown element. However, in your case,
    > > citebiblioid is a valid element that *can* occur inside para (see
    > > [1,2]). Please answer the following questions:
    > >
    > > 1. Did you validate your document?
    > > 2. Which DocBook version do you use?
    > > 3. Do you use the original stylesheets or a customization layer?
    >
    > 1. Yes, using oXygen - this is how my document starts:
    >
    > > RNGSchema="http://www.oasis-open.org/docbook/xml/5.0b5/rng/docbookxi.rn
    >g" type="xml"?>
    >         xmlns:xi="http://www.w3.org/2001/XInclude" version="5.0">
    >
    > Which also answers:
    >
    > 2. 5.0
    >
    > 3. I'm using the original stylesheets
    > (docbook-xsl-ns-1.73.2/fo/docbook.xsl), freshly downloaded.

    Normally this message is printed when you add a new element that can not
    be processed with the DocBook stylesheets. See [1] for more information.

    You wrote you don't use a customization layer so I suppose it has
    something to do with a missing namespace or the like. Do you use
    XIncludes? Did you point to a file that contains a para *without* the
    DocBook namespace?


    Best wishes,
    Tom

    ----------
    [1] http://www.sagehill.net/docbookxsl/AddNewTemplate.html#NewElements


    --
    Thomas Schraitle



  • 4.  Re: [docbook-apps] ...but no template matches.

    Posted 11-04-2007 19:34
    > You wrote you don't use a customization layer so I suppose it has
    > something to do with a missing namespace or the like. Do you use
    > XIncludes?

    No, I don't.

    I grepped all of the stylesheets - the string "citebibloid" does not occur at all. Is it possible that not all of the DocBook 5.0 elements are supported yet by DocBook XSL?




  • 5.  Re: [docbook-apps] ...but no template matches.

    Posted 11-04-2007 19:44
    Hi,

    On Sonntag, 4. November 2007, Kilian wrote:
    > > You wrote you don't use a customization layer so I suppose it has
    > > something to do with a missing namespace or the like. Do you use
    > > XIncludes?
    >
    > No, I don't.
    >
    > I grepped all of the stylesheets - the string "citebibloid" does not
    > occur at all. Is it possible that not all of the DocBook 5.0 elements
    > are supported yet by DocBook XSL?

    Ahh, you're right. I can confirm it, at least with my version of the
    DocBook XSL NS stylesheets (snapshot_7447).

    Seem you need to write a customization layer, if you need it. :)

    Best wishes,
    Tom

    --
    Thomas Schraitle



  • 6.  Re: [docbook-apps] ...but no template matches.

    Posted 11-04-2007 23:40
    Kilian wrote:
    > Hi everyone,
    >
    > I'm using the latest version of docbook-xsl. Why do I get the following
    > warning?
    >
    > citebiblioid encountered in para, but no template matches.
    >
    > The result (with the fo stylesheet) is a document where the unprocessed
    > <citebibliod> elements appear as they were in XML, in red.

    Are you using xsltproc? If so, what version? I have seen this general
    type of message for valid input with some versions of xsltproc. The
    current version does not have this problem (at least not that I have
    seen).

    % xsltproc --version
    Using libxml 20630, libxslt 10122 and libexslt 813
    xsltproc was compiled against libxml 20630, libxslt 10122 and libexslt 813
    libxslt 10122 was compiled against libxml 20630
    libexslt 813 was compiled against libxml 20630



  • 7.  Re: [docbook-apps] ...but no template matches.

    Posted 11-04-2007 23:51
    Am Sonntag, den 04.11.2007, 17:39 -0600 schrieb Paul DuBois:
    > Are you using xsltproc? If so, what version?

    $ xsltproc --version
    Using libxml 20630, libxslt 10121 and libexslt 813
    xsltproc was compiled against libxml 20629, libxslt 10121 and libexslt 813
    libxslt 10121 was compiled against libxml 20629
    libexslt 813 was compiled against libxml 20629

    > I have seen this general
    > type of message for valid input with some versions of xsltproc.

    Interesting... but I also tested with Saxon6.5. As posted earlier to the
    list, <citebiblioid> is not yet supported by the stylesheets.

    Thanks
    Kilian