docbook-apps

Expand all | Collapse all

Re: [docbook-apps] DB soft-hyphen characters and DB 5: entity doesn't work

  • 1.  Re: [docbook-apps] DB soft-hyphen characters and DB 5: entity doesn't work

    Posted 02-03-2011 22:51
    Hi Tom,
    The ­ entity is declared to be the same character reference ­, so if the
    character reference works then the problem is in resolving the entity reference. I
    infer from your use of the -ns- stylesheets that you are using DocBook 5. The DocBook
    5 RNG schema does not support entity declarations, so ­ is not declared in your
    documents. You should be getting a parsing error to that effect.

    A workaround is required to use the DocBook entity declarations from DocBook 4. See
    this reference for more information:

    http://www.sagehill.net/docbookxsl/Db5Entities.html#CharEntities

    Let me know if I'm misunderstanding the problem.

    Bob Stayton
    Sagehill Enterprises
    bobs@sagehill.net





  • 2.  Re: [docbook-apps] DB soft-hyphen characters and DB 5: entity doesn't work

    Posted 02-04-2011 00:13
    On Thu, Feb 3, 2011 at 16:51, Bob Stayton <bobs@sagehill.net> wrote:
    > Hi Tom,
    > The ­ entity is declared to be the same character reference ­, so
    > if the character reference works then the problem is in resolving the entity
    > reference. I infer from your use of the -ns- stylesheets that you are using
    ...
    > DocBook 5. The DocBook 5 RNG schema does not support entity declarations, so
    > ­ is not declared in your documents.  You should be getting a parsing

    I now remember I read that somewhere, in your book, I believe--sorry.

    In fact, as I try again, the exact error message is

    parser error : Entity 'shy' not defined

    Thanks, Bob.

    Regards,

    -Tom