docbook-apps

  • 1.  Possible problem with typed indexes

    Posted 11-05-2013 01:40
    I just tried to use the type facility with indexes for the first time, and I got a strange result.

    I have indexterms with type="author" and indexterms with no type attribute. E.g.,

    <indexterm type="author"><primary>Shakespeare, William</primary></indexterm>

    I inserted two index tags, one with type="author" and one without. The one with author has a title. E.g.,

    <index type="author"></index>
    <index/>

    I get two indexes, but they are identical except for the title. That is, all of the terms, regardless of type, are in both indexes. I expected to get one complete index and one index with only the terms that have type="author".

    Has anyone else run into this? Am I doing something wrong, or is this a bug in the stylesheets (I'm using 1.78.1).

    Best regards,
    Dick Hamilton
    -------
    XML Press
    XML for Technical Communicators
    http://xmlpress.net
    hamilton@xmlpress.net






  • 2.  Re: [docbook-apps] Possible problem with typed indexes

    Posted 11-05-2013 03:04
    Richard,
    Do you have "index.on.type" set to 1? Also, the terms appearing in the
    specialized index will also appear in the general index - it's just a
    subset.
    Dave
    On 05-11-13 12:40 PM, Richard Hamilton wrote:
    > I just tried to use the type facility with indexes for the first time, and I got a strange result.
    >
    > I have indexterms with type="author" and indexterms with no type attribute. E.g.,
    >
    > <indexterm type="author"><primary>Shakespeare, William</primary></indexterm>
    >
    > I inserted two index tags, one with type="author" and one without. The one with author has a title. E.g.,
    >
    > <index type="author"></index>
    > <index/>
    >
    > I get two indexes, but they are identical except for the title. That is, all of the terms, regardless of type, are in both indexes. I expected to get one complete index and one index with only the terms that have type="author".
    >
    > Has anyone else run into this? Am I doing something wrong, or is this a bug in the stylesheets (I'm using 1.78.1).
    >
    > Best regards,
    > Dick Hamilton
    > -------
    > XML Press
    > XML for Technical Communicators
    > http://xmlpress.net
    > hamilton@xmlpress.net
    >
    >
    >
    >
    > ---------------------------------------------------------------------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
    >

    --
    *Dave Gardiner*




  • 3.  Re: [docbook-apps] Possible problem with typed indexes

    Posted 11-05-2013 03:12
    Hi Dave,

    Thanks, that did it. I should have noticed that option when I was looking at Bob's book; it's right there at the top of that section:-).

    And, yes, I know that the specialized terms appear in the general index, and that's fine.

    Best regards,
    Richard
    -------
    XML Press
    XML for Technical Communicators
    http://xmlpress.net
    hamilton@xmlpress.net



    On Nov 4, 2013, at 7:03 PM, Dave Gardiner wrote:

    > Richard,
    > Do you have "index.on.type" set to 1? Also, the terms appearing in the specialized index will also appear in the general index - it's just a subset.
    > Dave
    > On 05-11-13 12:40 PM, Richard Hamilton wrote:
    >> I just tried to use the type facility with indexes for the first time, and I got a strange result.
    >>
    >> I have indexterms with type="author" and indexterms with no type attribute. E.g.,
    >>
    >> <indexterm type="author"><primary>Shakespeare, William</primary></indexterm>
    >>
    >> I inserted two index tags, one with type="author" and one without. The one with author has a title. E.g.,
    >>
    >> <index type="author"></index>
    >> <index/>
    >>
    >> I get two indexes, but they are identical except for the title. That is, all of the terms, regardless of type, are in both indexes. I expected to get one complete index and one index with only the terms that have type="author".
    >>
    >> Has anyone else run into this? Am I doing something wrong, or is this a bug in the stylesheets (I'm using 1.78.1).
    >>
    >> Best regards,
    >> Dick Hamilton
    >> -------
    >> XML Press
    >> XML for Technical Communicators
    >>
    >> http://xmlpress.net
    >> hamilton@xmlpress.net
    >>
    >>
    >>
    >>
    >>
    >> ---------------------------------------------------------------------
    >> To unsubscribe, e-mail:
    >> docbook-apps-unsubscribe@lists.oasis-open.org
    >>
    >> For additional commands, e-mail:
    >> docbook-apps-help@lists.oasis-open.org
    >>
    >>
    >>
    >
    > --
    > Dave Gardiner
    >