|
List Info
Thread: glossary missing from xhtml output
|
|
| glossary missing from xhtml output |

|
2007-08-10 08:28:51 |
Is there any obvious (or not-so-obvious) reason that my
glossary is
missing (blank) from XHTML chunked output? I see a glossary
section and
glossary page in the output, but no glosslist or
glossentries. My
<glossary> is a child of <book>.
I've tried both the 1.72.0 and 1.73.0 stylesheets, with no
difference.
FO/PDF output shows the glossary just fine.
My customization layer is here:
http://pastebin.com/me635
a7
Thanks,
Brett
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|
|
| RE: glossary missing from xhtml output |

|
2007-08-10 10:28:59 |
We've found the same thing. I'm not sure why it works this
way--maybe
someone on the list knows?
To work around it, we put the glossary inside a
<chapter>. In the
output, this caused us to have two "Glossary"
headings: one desired (at
the Chapter level), and then an undesired one that appeared
because of
the <glossary> tag. We suppressed the latter one by
customizing the l10n
title value for <glossary> to output nothing:
<l:template name="glossary"
text=""/>
cheri
-----Original Message-----
From: Brett Leber [mailto:bleber+ cs.cmu.edu]
Sent: Friday, August 10, 2007 6:29 AM
To: docbook-apps lists.oasis-open.org
Subject: [docbook-apps] glossary missing from xhtml output
Is there any obvious (or not-so-obvious) reason that my
glossary is
missing (blank) from XHTML chunked output? I see a glossary
section and
glossary page in the output, but no glosslist or
glossentries. My
<glossary> is a child of <book>.
I've tried both the 1.72.0 and 1.73.0 stylesheets, with no
difference.
FO/PDF output shows the glossary just fine.
My customization layer is here:
http://pastebin.com/me635
a7
Thanks,
Brett
------------------------------------------------------------
---------
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
|
|
| RE: glossary missing from xhtml output |

|
2007-08-11 06:27:51 |
> -----Original Message-----
> From: Brett Leber
>
> Is there any obvious (or not-so-obvious) reason that my
glossary is
> missing (blank) from XHTML chunked output? I see a
glossary
> section and
> glossary page in the output, but no glosslist or
glossentries. My
> <glossary> is a child of <book>.
>
> I've tried both the 1.72.0 and 1.73.0 stylesheets, with
no
> difference.
> FO/PDF output shows the glossary just fine.
>
> My customization layer is here:
> http://pastebin.com/me635
a7
I can't reproduce this. When I use your customization +
1.73.0 (or 1.72.0)
to process the following file (with xsltproc),
<book xmlns="http://docbook.or
g/ns/docbook" version="5.0">
<title>Book title</title>
<chapter>
<title>Chapter 1 title</title>
<para>chapter 1 para</para>
</chapter>
<chapter>
<title>Chapter 2 title</title>
<para>chapter 2 para</para>
</chapter>
<glossary>
<glossentry>
<glossterm>XML</glossterm>
<glossdef>
<para>Extensible Markup Language</para>
</glossdef>
</glossentry>
</glossary>
</book>,
there are four output files: index.html, ch01.html,
ch02.html, go01.html.
The glossary chunk looks fine.
By the way, the recommended way of setting up a proper
chunking
customization is a little complicated. See
http://www.sagehill.net/docbookxsl/ChunkingCustomi
zation.html. The text is
not completely up-to-date with respect to changes in 1.73.0
(but I think Bob
has a new version in the works).
/MJ
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|
|
| Re: glossary missing from xhtml output |

|
2007-08-16 15:04:06 |
On 8/11/2007 7:27 AM, Mauritz Jeanson wrote:
> I can't reproduce this. When I use your customization +
1.73.0 (or 1.72.0)
> to process the following file (with xsltproc),
...
> The glossary chunk looks fine.
Investigated this further.
In my document (this one happens to be an article and not a
book, but I
had the same problem), I had the glossentry elements wrapped
in a
glosslist. When I simply added a single glossentry *after*
the
glosslist, all of the items (both in glosslist and outside)
appeared in
the XHTML output. I then removed the glosslist wrapper, and
all of the
entries appeared in the output.
The glosslist wasn't serving any purpose, so I don't need
it. But TDG v5
says that glossary can contain glosslist:
http:/
/docbook.org/tdg5/en/html/glosslist.html
http://
docbook.org/tdg5/en/html/glossary.html
Is this a bug?
Thanks again,
Brett
------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribe lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help lists.oasis-open.org
|
|
| Re: glossary missing from xhtml output |

|
2007-08-16 15:35:45 |
This is a bug in the stylesheet that only appears with
DocBook5. A
glossary can contain any number of preamble elements like
paragraphs and
lists before the glossary entries. The glosslist element
was included in
the preamble set, although it probably doesn't make much
sense in that
context, but it is permitted. In DocBook4, at least one
glossdiv or
glossentry was required after any preamble. The stylesheet
relied on that
content model to select the preceding siblings preamble
material.
In DocBook5, an empty glossary is permitted, because a
glossary can be
built automatically from glossterms in the document. In
effect, your
glossary had a preamble (the glosslist) but was otherwise
empty, and the
stylesheet wasn't expecting that. So the stylesheet needs
to be updated to
handle the new content model.
Can you please file a bug report on the SourceForge site so
this doesn't
get lost? Thanks.
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs sagehill.net
----- Original Message -----
From: "Brett Leber" <bleber+ cs.cmu.edu>
To: "Mauritz Jeanson" <mj johanneberg.com>
Cc: <docbook-apps lists.oasis-open.org>; "Dennison,
Cheri"
<cherid amazon.com>
Sent: Thursday, August 16, 2007 1:04 PM
Subject: Re: [docbook-apps] glossary missing from xhtml
output
> On 8/11/2007 7:27 AM, Mauritz Jeanson wrote:
>> I can't reproduce this. When I use your
customization + 1.73.0 (or
>> 1.72.0)
>> to process the following file (with xsltproc),
> ...
>> The glossary chunk looks fine.
>
> Investigated this further.
>
> In my document (this one happens to be an article and
not a book, but I
> had the same problem), I had the glossentry elements
wrapped in a
> glosslist. When I simply added a single glossentry
*after* the glosslist,
> all of the items (both in glosslist and outside)
appeared in the XHTML
> output. I then removed the glosslist wrapper, and all
of the entries
> appeared in the output.
>
> The glosslist wasn't serving any purpose, so I don't
need it. But TDG v5
> says that glossary can contain glosslist:
>
> http:/
/docbook.org/tdg5/en/html/glosslist.html
> http://
docbook.org/tdg5/en/html/glossary.html
>
> Is this a bug?
>
> Thanks again,
>
> Brett
>
>
>
>
------------------------------------------------------------
---------
> 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
|
|
[1-5]
|
|